{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Linear Regression" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "%matplotlib inline\n", "import matplotlib.pyplot as plt\n", "import pandas as pd\n", "import numpy as np" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "df = pd.read_csv('../data/weight-height.csv')" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
| \n", " | Gender | \n", "Height | \n", "Weight | \n", "
|---|---|---|---|
| 0 | \n", "Male | \n", "73.847017 | \n", "241.893563 | \n", "
| 1 | \n", "Male | \n", "68.781904 | \n", "162.310473 | \n", "
| 2 | \n", "Male | \n", "74.110105 | \n", "212.740856 | \n", "
| 3 | \n", "Male | \n", "71.730978 | \n", "220.042470 | \n", "
| 4 | \n", "Male | \n", "69.881796 | \n", "206.349801 | \n", "