You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Data-Science-For-Beginners/1-Introduction/04-stats-and-probability/solution/assignment.ipynb

945 lines
552 KiB

{
"cells": [
{
"cell_type": "markdown",
"source": [
"## Introduction to Probability and Statistics\r\n",
"## Assignment\r\n",
"\r\n",
"In this assignment, we will use the dataset of diabetes patients taken [from here](https://www4.stat.ncsu.edu/~boos/var.select/diabetes.html)."
],
"metadata": {}
},
{
"cell_type": "code",
"execution_count": 13,
"source": [
"import pandas as pd\r\n",
"import numpy as np\r\n",
"import matplotlib.pyplot as plt\r\n",
"\r\n",
"df = pd.read_csv(\"../../../data/diabetes.tsv\",sep='\\t')\r\n",
"df.head()"
],
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
" AGE SEX BMI BP S1 S2 S3 S4 S5 S6 Y\n",
"0 59 2 32.1 101.0 157 93.2 38.0 4.0 4.8598 87 151\n",
"1 48 1 21.6 87.0 183 103.2 70.0 3.0 3.8918 69 75\n",
"2 72 2 30.5 93.0 156 93.6 41.0 4.0 4.6728 85 141\n",
"3 24 1 25.3 84.0 198 131.4 40.0 5.0 4.8903 89 206\n",
"4 50 1 23.0 101.0 192 125.4 52.0 4.0 4.2905 80 135"
],
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>AGE</th>\n",
" <th>SEX</th>\n",
" <th>BMI</th>\n",
" <th>BP</th>\n",
" <th>S1</th>\n",
" <th>S2</th>\n",
" <th>S3</th>\n",
" <th>S4</th>\n",
" <th>S5</th>\n",
" <th>S6</th>\n",
" <th>Y</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>59</td>\n",
" <td>2</td>\n",
" <td>32.1</td>\n",
" <td>101.0</td>\n",
" <td>157</td>\n",
" <td>93.2</td>\n",
" <td>38.0</td>\n",
" <td>4.0</td>\n",
" <td>4.8598</td>\n",
" <td>87</td>\n",
" <td>151</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>48</td>\n",
" <td>1</td>\n",
" <td>21.6</td>\n",
" <td>87.0</td>\n",
" <td>183</td>\n",
" <td>103.2</td>\n",
" <td>70.0</td>\n",
" <td>3.0</td>\n",
" <td>3.8918</td>\n",
" <td>69</td>\n",
" <td>75</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>72</td>\n",
" <td>2</td>\n",
" <td>30.5</td>\n",
" <td>93.0</td>\n",
" <td>156</td>\n",
" <td>93.6</td>\n",
" <td>41.0</td>\n",
" <td>4.0</td>\n",
" <td>4.6728</td>\n",
" <td>85</td>\n",
" <td>141</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>24</td>\n",
" <td>1</td>\n",
" <td>25.3</td>\n",
" <td>84.0</td>\n",
" <td>198</td>\n",
" <td>131.4</td>\n",
" <td>40.0</td>\n",
" <td>5.0</td>\n",
" <td>4.8903</td>\n",
" <td>89</td>\n",
" <td>206</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>50</td>\n",
" <td>1</td>\n",
" <td>23.0</td>\n",
" <td>101.0</td>\n",
" <td>192</td>\n",
" <td>125.4</td>\n",
" <td>52.0</td>\n",
" <td>4.0</td>\n",
" <td>4.2905</td>\n",
" <td>80</td>\n",
" <td>135</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
]
},
"metadata": {},
"execution_count": 13
}
],
"metadata": {}
},
{
"cell_type": "markdown",
"source": [
"\r\n",
"In this dataset, columns as the following:\r\n",
"* Age and sex are self-explanatory\r\n",
"* BMI is body mass index\r\n",
"* BP is average blood pressure\r\n",
"* S1 through S6 are different blood measurements\r\n",
"* Y is the qualitative measure of disease progression over one year\r\n",
"\r\n",
"Let's study this dataset using methods of probability and statistics.\r\n",
"\r\n",
"### Task 1: Compute mean values and variance for all values"
],
"metadata": {}
},
{
"cell_type": "code",
"execution_count": 5,
"source": [
"df.describe()"
],
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
" AGE SEX BMI BP S1 S2 \\\n",
"count 442.000000 442.000000 442.000000 442.000000 442.000000 442.000000 \n",
"mean 48.518100 1.468326 26.375792 94.647014 189.140271 115.439140 \n",
"std 13.109028 0.499561 4.418122 13.831283 34.608052 30.413081 \n",
"min 19.000000 1.000000 18.000000 62.000000 97.000000 41.600000 \n",
"25% 38.250000 1.000000 23.200000 84.000000 164.250000 96.050000 \n",
"50% 50.000000 1.000000 25.700000 93.000000 186.000000 113.000000 \n",
"75% 59.000000 2.000000 29.275000 105.000000 209.750000 134.500000 \n",
"max 79.000000 2.000000 42.200000 133.000000 301.000000 242.400000 \n",
"\n",
" S3 S4 S5 S6 Y \n",
"count 442.000000 442.000000 442.000000 442.000000 442.000000 \n",
"mean 49.788462 4.070249 4.641411 91.260181 152.133484 \n",
"std 12.934202 1.290450 0.522391 11.496335 77.093005 \n",
"min 22.000000 2.000000 3.258100 58.000000 25.000000 \n",
"25% 40.250000 3.000000 4.276700 83.250000 87.000000 \n",
"50% 48.000000 4.000000 4.620050 91.000000 140.500000 \n",
"75% 57.750000 5.000000 4.997200 98.000000 211.500000 \n",
"max 99.000000 9.090000 6.107000 124.000000 346.000000 "
],
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>AGE</th>\n",
" <th>SEX</th>\n",
" <th>BMI</th>\n",
" <th>BP</th>\n",
" <th>S1</th>\n",
" <th>S2</th>\n",
" <th>S3</th>\n",
" <th>S4</th>\n",
" <th>S5</th>\n",
" <th>S6</th>\n",
" <th>Y</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>count</th>\n",
" <td>442.000000</td>\n",
" <td>442.000000</td>\n",
" <td>442.000000</td>\n",
" <td>442.000000</td>\n",
" <td>442.000000</td>\n",
" <td>442.000000</td>\n",
" <td>442.000000</td>\n",
" <td>442.000000</td>\n",
" <td>442.000000</td>\n",
" <td>442.000000</td>\n",
" <td>442.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>mean</th>\n",
" <td>48.518100</td>\n",
" <td>1.468326</td>\n",
" <td>26.375792</td>\n",
" <td>94.647014</td>\n",
" <td>189.140271</td>\n",
" <td>115.439140</td>\n",
" <td>49.788462</td>\n",
" <td>4.070249</td>\n",
" <td>4.641411</td>\n",
" <td>91.260181</td>\n",
" <td>152.133484</td>\n",
" </tr>\n",
" <tr>\n",
" <th>std</th>\n",
" <td>13.109028</td>\n",
" <td>0.499561</td>\n",
" <td>4.418122</td>\n",
" <td>13.831283</td>\n",
" <td>34.608052</td>\n",
" <td>30.413081</td>\n",
" <td>12.934202</td>\n",
" <td>1.290450</td>\n",
" <td>0.522391</td>\n",
" <td>11.496335</td>\n",
" <td>77.093005</td>\n",
" </tr>\n",
" <tr>\n",
" <th>min</th>\n",
" <td>19.000000</td>\n",
" <td>1.000000</td>\n",
" <td>18.000000</td>\n",
" <td>62.000000</td>\n",
" <td>97.000000</td>\n",
" <td>41.600000</td>\n",
" <td>22.000000</td>\n",
" <td>2.000000</td>\n",
" <td>3.258100</td>\n",
" <td>58.000000</td>\n",
" <td>25.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>25%</th>\n",
" <td>38.250000</td>\n",
" <td>1.000000</td>\n",
" <td>23.200000</td>\n",
" <td>84.000000</td>\n",
" <td>164.250000</td>\n",
" <td>96.050000</td>\n",
" <td>40.250000</td>\n",
" <td>3.000000</td>\n",
" <td>4.276700</td>\n",
" <td>83.250000</td>\n",
" <td>87.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>50%</th>\n",
" <td>50.000000</td>\n",
" <td>1.000000</td>\n",
" <td>25.700000</td>\n",
" <td>93.000000</td>\n",
" <td>186.000000</td>\n",
" <td>113.000000</td>\n",
" <td>48.000000</td>\n",
" <td>4.000000</td>\n",
" <td>4.620050</td>\n",
" <td>91.000000</td>\n",
" <td>140.500000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>75%</th>\n",
" <td>59.000000</td>\n",
" <td>2.000000</td>\n",
" <td>29.275000</td>\n",
" <td>105.000000</td>\n",
" <td>209.750000</td>\n",
" <td>134.500000</td>\n",
" <td>57.750000</td>\n",
" <td>5.000000</td>\n",
" <td>4.997200</td>\n",
" <td>98.000000</td>\n",
" <td>211.500000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>max</th>\n",
" <td>79.000000</td>\n",
" <td>2.000000</td>\n",
" <td>42.200000</td>\n",
" <td>133.000000</td>\n",
" <td>301.000000</td>\n",
" <td>242.400000</td>\n",
" <td>99.000000</td>\n",
" <td>9.090000</td>\n",
" <td>6.107000</td>\n",
" <td>124.000000</td>\n",
" <td>346.000000</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
]
},
"metadata": {},
"execution_count": 5
}
],
"metadata": {}
},
{
"cell_type": "code",
"execution_count": 8,
"source": [
"# Another way\r\n",
"pd.DataFrame([df.mean(),df.var()],index=['Mean','Variance']).head()"
],
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
" AGE SEX BMI BP S1 S2 \\\n",
"Mean 48.51810 1.468326 26.375792 94.647014 189.140271 115.439140 \n",
"Variance 171.84661 0.249561 19.519798 191.304401 1197.717241 924.955494 \n",
"\n",
" S3 S4 S5 S6 Y \n",
"Mean 49.788462 4.070249 4.641411 91.260181 152.133484 \n",
"Variance 167.293585 1.665261 0.272892 132.165712 5943.331348 "
],
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>AGE</th>\n",
" <th>SEX</th>\n",
" <th>BMI</th>\n",
" <th>BP</th>\n",
" <th>S1</th>\n",
" <th>S2</th>\n",
" <th>S3</th>\n",
" <th>S4</th>\n",
" <th>S5</th>\n",
" <th>S6</th>\n",
" <th>Y</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>Mean</th>\n",
" <td>48.51810</td>\n",
" <td>1.468326</td>\n",
" <td>26.375792</td>\n",
" <td>94.647014</td>\n",
" <td>189.140271</td>\n",
" <td>115.439140</td>\n",
" <td>49.788462</td>\n",
" <td>4.070249</td>\n",
" <td>4.641411</td>\n",
" <td>91.260181</td>\n",
" <td>152.133484</td>\n",
" </tr>\n",
" <tr>\n",
" <th>Variance</th>\n",
" <td>171.84661</td>\n",
" <td>0.249561</td>\n",
" <td>19.519798</td>\n",
" <td>191.304401</td>\n",
" <td>1197.717241</td>\n",
" <td>924.955494</td>\n",
" <td>167.293585</td>\n",
" <td>1.665261</td>\n",
" <td>0.272892</td>\n",
" <td>132.165712</td>\n",
" <td>5943.331348</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
]
},
"metadata": {},
"execution_count": 8
}
],
"metadata": {}
},
{
"cell_type": "code",
"execution_count": 9,
"source": [
"# Or, more simply, for the mean (variance can be done similarly)\r\n",
"df.mean()"
],
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"AGE 48.518100\n",
"SEX 1.468326\n",
"BMI 26.375792\n",
"BP 94.647014\n",
"S1 189.140271\n",
"S2 115.439140\n",
"S3 49.788462\n",
"S4 4.070249\n",
"S5 4.641411\n",
"S6 91.260181\n",
"Y 152.133484\n",
"dtype: float64"
]
},
"metadata": {},
"execution_count": 9
}
],
"metadata": {}
},
{
"cell_type": "markdown",
"source": [
"### Task 2: Plot boxplots for BMI, BP and Y depending on gender"
],
"metadata": {}
},
{
"cell_type": "code",
"execution_count": 17,
"source": [
"for col in ['BMI','BP','Y']:\r\n",
" df.boxplot(column=col,by='SEX')\r\n",
"plt.show()"
],
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
],
"image/svg+xml": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\r\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\r\n \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\r\n<svg height=\"331.60425pt\" version=\"1.1\" viewBox=\"0 0 402.765 331.60425\" width=\"402.765pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n <metadata>\r\n <rdf:RDF xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\r\n <cc:Work>\r\n <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\r\n <dc:date>2021-08-23T15:11:06.698534</dc:date>\r\n <dc:format>image/svg+xml</dc:format>\r\n <dc:creator>\r\n <cc:Agent>\r\n <dc:title>Matplotlib v3.4.2, https://matplotlib.org/</dc:title>\r\n </cc:Agent>\r\n </dc:creator>\r\n </cc:Work>\r\n </rdf:RDF>\r\n </metadata>\r\n <defs>\r\n <style type=\"text/css\">*{stroke-linecap:butt;stroke-linejoin:round;}</style>\r\n </defs>\r\n <g id=\"figure_1\">\r\n <g id=\"patch_1\">\r\n <path d=\"M 0 331.60425 \r\nL 402.765 331.60425 \r\nL 402.765 -0 \r\nL 0 -0 \r\nz\r\n\" style=\"fill:#ffffff;\"/>\r\n </g>\r\n <g id=\"axes_1\">\r\n <g id=\"patch_2\">\r\n <path d=\"M 26.925 294.048 \r\nL 395.565 294.048 \r\nL 395.565 34.848 \r\nL 26.925 34.848 \r\nz\r\n\" style=\"fill:#ffffff;\"/>\r\n </g>\r\n <g id=\"matplotlib.axis_1\">\r\n <g id=\"xtick_1\">\r\n <g id=\"line2d_1\">\r\n <path clip-path=\"url(#p7dd5e4a9d7)\" d=\"M 119.085 294.048 \r\nL 119.085 34.848 \r\n\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n </g>\r\n <g id=\"line2d_2\">\r\n <defs>\r\n <path d=\"M 0 0 \r\nL 0 3.5 \r\n\" id=\"me82354fbd4\" style=\"stroke:#000000;stroke-width:0.8;\"/>\r\n </defs>\r\n <g>\r\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"119.085\" xlink:href=\"#me82354fbd4\" y=\"294.048\"/>\r\n </g>\r\n </g>\r\n <g id=\"text_1\">\r\n <!-- 1 -->\r\n <g transform=\"translate(115.90375 308.646437)scale(0.1 -0.1)\">\r\n <defs>\r\n <path d=\"M 794 531 \r\nL 1825 531 \r\nL 1825 4091 \r\nL 703 3866 \r\nL 703 4441 \r\nL 1819 4666 \r\nL 2450 4666 \r\nL 2450 531 \r\nL 3481 531 \r\nL 3481 0 \r\nL 794 0 \r\nL 794 531 \r\nz\r\n\" id=\"DejaVuSans-31\" transform=\"scale(0.015625)\"/>\r\n </defs>\r\n <use xlink:href=\"#DejaVuSans-31\"/>\r\n </g>\r\n </g>\r\n </g>\r\n <g id=\"xtick_2\">\r\n <g id=\"line2d_3\">\r\n <path clip-path=\"url(#p7dd5e4a9d7)\" d=\"M 303.405 294.048 \r\nL 303.405 34.848 \r\n\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n </g>\r\n <g id=\"line2d_4\">\r\n <g>\r\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"303.405\" xlink:href=\"#me82354fbd4\" y=\"294.048\"/>\r\n </g>\r\n </g>\r\n <g id=\"text_2\">\r\n <!-- 2 -->\r\n <g transform=\"translate(300.22375 308.646437)scale(0.1 -0.1)\">\r\n <defs>\r\n <path d=\"M 1228 531 \r\nL 3431 531 \r\nL 3431 0 \r\nL 469 0 \r\nL 469 531 \r\nQ 828 903 1448 1529 \r\nQ 2069 2156 2228 2338 \r\nQ 2531 2678 2651 2914 \r\nQ 2772 3150 2772 3378 \r\nQ 2772 3750 2511 3984 \r\nQ 2250 4219 1831 4219 \r\nQ 1534 4219 1204 4116 \r\nQ 875 4013 500 3803 \r\nL 500 4441 \r\nQ 881 4594 1212 4672 \r\nQ 1544 4750 1819 4750 \r\nQ 2544 4750 2975 4387 \r\nQ 3406 4025 3406 3419 \r\nQ 3406 3131 3298 2873 \r\nQ 3191 2616 2906 2266 \r\nQ 2828 2175 2409 1742 \r\nQ 1991 1309 1228 531 \r\nz\r\n\" id=\"DejaVuSans-32\" transform=\"scale(0.015625)\"/>\r\n </defs>\r\n <use xlink:href=\"#DejaVuSans-32\"/>\r\n </g>\r\n </g>\r\n </g>\r\n <g id=\"text_3\">\r\n <!-- SEX -->\r\n <g transform=\"translate(201.486406 322.324562)scale(0.1 -0.1)\">\r\n <defs>\r\n <path d=\"M 3425 4513 \r\nL 3425 3897 \r\nQ 3066 4069 2747 4153 \r\nQ 2428 4238 2131 4238 \r\nQ 1616 4238 1336 4038 \r\nQ 1056 3838 1056 3469 \r\nQ 1056 3159 1242 3001 \r\nQ 1428 2
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAi8AAAHNCAYAAADWsJtQAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8rg+JYAAAACXBIWXMAAA9hAAAPYQGoP6dpAAA06ElEQVR4nO3de3RU5b3/8c/kwmQCSSRASICQREEuBrCABaySoCaKBxYh4g214JVCwHJAacFag6uSHoqprlJRsQZs5SIYKUaJSZWEIOQY0lKBFqwaEISIRiHkQszl+f3hL3MYEyCT22Sb92utWek8+9nPfGc22/l072fPthljjAAAACzCy9MFAAAAuIPwAgAALIXwAgAALIXwAgAALIXwAgAALIXwAgAALIXwAgAALIXwAgAALIXwAgAALIXwAkhas2aNbDaby6NXr16KjY1VRkaGp8tzioyM1MyZM91er6KiQsnJycrJyWn1mn6oYmNjFRsbe9F+NptNc+fObfN6jh49qjlz5ujyyy+Xw+FQcHCwhg0bpgcffFBHjx519ktOTm7wb/ncx+HDhyVJubm58vLy0pIlSxq81ieffKJu3bpp2rRpbf6+gObw8XQBQEeSlpamwYMHyxij4uJirVy5UpMnT9bWrVs1efJkT5fXbBUVFVq6dKkkNekLGR3LsWPHNHLkSF1yySVauHChBg0apNOnT+tf//qXXnvtNX366acKDw93WSczM1NBQUENxgoLC5MkxcTE6OGHH9by5cuVkJCgH//4x5Kkuro6zZgxQ/7+/lq1alXbvzmgGQgvwDmio6M1evRo5/ObbrpJ3bt31/r16y0dXtpbRUWF/P39PV3GD8bq1av11Vdf6YMPPlBUVJSzPSEhQUuWLFFdXV2DdUaNGqWePXtecNyUlBRt27ZNM2bM0D/+8Q/5+flpxYoVev/99/X666+rV69erf5egNbAaSPgAvz8/NSlSxf5+vq6tH/99deaM2eO+vbtqy5duujSSy/VY489pqqqKknS2bNn9aMf/UgDBgzQ6dOnnesVFxcrNDRUsbGxqq2tlSTNnDlT3bp104EDB3T99dera9eu6tWrl+bOnauKioqL1vjZZ5/p7rvvVkhIiOx2u4YMGaKnn37a+YV2+PBh55fQ0qVLnacPLnb66cCBA4qPj5e/v7969eqlpKQkvfXWW7LZbC6nn2JjYxUdHa0dO3bo6quvlr+/v+67774m1SZJOTk5Dcasr9tms2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q1vjNG9994rh8Oh559/Xo899phGjBihBx54QGfOnGl2XUBbI7wAF7F3715Jcl6xc/3116usrKzBIfhXXnnFubzez372M3322WdKT0/Xn/70J23dulW///3vG32dV1991eX5unXrJF34d1muv/56/etf/9Lf//73BrXYbDZNmDBBkmS32yVJlZWVF3in/ycmJkb79+/Xv/71L5f2c6+guZim1lZ/dObDDz906bd169bzjn2xz2rSpEkyxujzzz/X6NGjGzyGDRsmSRo7dqz8/PwajLdr1y4dOXKkye/13XffdQl7tbW12rhxoy677DLnURfpu6D20EMPae3atUpNTdWVV16pn/zkJxcdv7EQKEllZWU6evSo82iWu5599lnt2LFDq1atUkhIiHx9fbVmzRodP35cjz76aLPGBNqFJyfcAB1F/YTdtLQ059U4GRkZ5r777jOSXCZ01l9tFBAQYFJTU012drZ54oknjK+vr8vVRqtXr24w4XTu3LnG19fXZRLrha6gmThxokud57vaKDQ01Lz44ovmnXfeMQ8//LCx2Wxmzpw5DdYdNGiQeeedd0xBQUGDiZ7n+vzzz12
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
],
"image/svg+xml": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\r\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\r\n \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\r\n<svg height=\"331.60425pt\" version=\"1.1\" viewBox=\"0 0 409.1275 331.60425\" width=\"409.1275pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n <metadata>\r\n <rdf:RDF xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\r\n <cc:Work>\r\n <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\r\n <dc:date>2021-08-23T15:11:06.900540</dc:date>\r\n <dc:format>image/svg+xml</dc:format>\r\n <dc:creator>\r\n <cc:Agent>\r\n <dc:title>Matplotlib v3.4.2, https://matplotlib.org/</dc:title>\r\n </cc:Agent>\r\n </dc:creator>\r\n </cc:Work>\r\n </rdf:RDF>\r\n </metadata>\r\n <defs>\r\n <style type=\"text/css\">*{stroke-linecap:butt;stroke-linejoin:round;}</style>\r\n </defs>\r\n <g id=\"figure_1\">\r\n <g id=\"patch_1\">\r\n <path d=\"M 0 331.60425 \r\nL 409.1275 331.60425 \r\nL 409.1275 -0 \r\nL 0 -0 \r\nz\r\n\" style=\"fill:#ffffff;\"/>\r\n </g>\r\n <g id=\"axes_1\">\r\n <g id=\"patch_2\">\r\n <path d=\"M 33.2875 294.048 \r\nL 401.9275 294.048 \r\nL 401.9275 34.848 \r\nL 33.2875 34.848 \r\nz\r\n\" style=\"fill:#ffffff;\"/>\r\n </g>\r\n <g id=\"matplotlib.axis_1\">\r\n <g id=\"xtick_1\">\r\n <g id=\"line2d_1\">\r\n <path clip-path=\"url(#p3cbdd140cf)\" d=\"M 125.4475 294.048 \r\nL 125.4475 34.848 \r\n\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n </g>\r\n <g id=\"line2d_2\">\r\n <defs>\r\n <path d=\"M 0 0 \r\nL 0 3.5 \r\n\" id=\"ma8d9b2a70e\" style=\"stroke:#000000;stroke-width:0.8;\"/>\r\n </defs>\r\n <g>\r\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"125.4475\" xlink:href=\"#ma8d9b2a70e\" y=\"294.048\"/>\r\n </g>\r\n </g>\r\n <g id=\"text_1\">\r\n <!-- 1 -->\r\n <g transform=\"translate(122.26625 308.646437)scale(0.1 -0.1)\">\r\n <defs>\r\n <path d=\"M 794 531 \r\nL 1825 531 \r\nL 1825 4091 \r\nL 703 3866 \r\nL 703 4441 \r\nL 1819 4666 \r\nL 2450 4666 \r\nL 2450 531 \r\nL 3481 531 \r\nL 3481 0 \r\nL 794 0 \r\nL 794 531 \r\nz\r\n\" id=\"DejaVuSans-31\" transform=\"scale(0.015625)\"/>\r\n </defs>\r\n <use xlink:href=\"#DejaVuSans-31\"/>\r\n </g>\r\n </g>\r\n </g>\r\n <g id=\"xtick_2\">\r\n <g id=\"line2d_3\">\r\n <path clip-path=\"url(#p3cbdd140cf)\" d=\"M 309.7675 294.048 \r\nL 309.7675 34.848 \r\n\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n </g>\r\n <g id=\"line2d_4\">\r\n <g>\r\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"309.7675\" xlink:href=\"#ma8d9b2a70e\" y=\"294.048\"/>\r\n </g>\r\n </g>\r\n <g id=\"text_2\">\r\n <!-- 2 -->\r\n <g transform=\"translate(306.58625 308.646437)scale(0.1 -0.1)\">\r\n <defs>\r\n <path d=\"M 1228 531 \r\nL 3431 531 \r\nL 3431 0 \r\nL 469 0 \r\nL 469 531 \r\nQ 828 903 1448 1529 \r\nQ 2069 2156 2228 2338 \r\nQ 2531 2678 2651 2914 \r\nQ 2772 3150 2772 3378 \r\nQ 2772 3750 2511 3984 \r\nQ 2250 4219 1831 4219 \r\nQ 1534 4219 1204 4116 \r\nQ 875 4013 500 3803 \r\nL 500 4441 \r\nQ 881 4594 1212 4672 \r\nQ 1544 4750 1819 4750 \r\nQ 2544 4750 2975 4387 \r\nQ 3406 4025 3406 3419 \r\nQ 3406 3131 3298 2873 \r\nQ 3191 2616 2906 2266 \r\nQ 2828 2175 2409 1742 \r\nQ 1991 1309 1228 531 \r\nz\r\n\" id=\"DejaVuSans-32\" transform=\"scale(0.015625)\"/>\r\n </defs>\r\n <use xlink:href=\"#DejaVuSans-32\"/>\r\n </g>\r\n </g>\r\n </g>\r\n <g id=\"text_3\">\r\n <!-- SEX -->\r\n <g transform=\"translate(207.848906 322.324562)scale(0.1 -0.1)\">\r\n <defs>\r\n <path d=\"M 3425 4513 \r\nL 3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wyxZssSj77Jly4wk8/rrr3u0/+UvfzGSTGpqqrvttddeM5LMwoULzR//+Efj5+fnMd+YCx/aksxf//pXj/ann37aSDI7d+50t/044Dz22GNGkvnoo488ln3wwQeNzWYzhw8fNsYY88033xhJ5sknn6zS+zFz5kxjs9nMoUOHPNqHDh1aacCRZN577z2PvlWtrboBpyrv1e7du40k89xzz3n0O3HihAkKCjKzZs0yxhiTnZ1tAgMDzW233ebR78MPPzSSqhxwgoKCPEJTSUmJ6dKli+nYsaO7rXw9169f7247deqUCQgIMHPnzr3ka5SVlZnJkycbPz8/I8nYbDbTtWtX8/vf/95kZGR49C0POJX9dOjQodLxCwsLTVhYmJFk3nzzzcuuM1DfOEUFVNPf//537d27V3v37nVfmzB16lQtXrzY3ef9999XSEhIhTtMyk/5vPfee+62MWPG6MEHH9TMmTP1pz/9SXPmzNGQIUMqfe0777zTY3rcuHGSpA8++OCi9b7//vvq1q2b+wLRH9ZijNH7779/+ZWuRHp6unr06KFu3bp5tN9xxx2V9m/evLl+8Ytf1Elt0uXfq02bNslms2n8+PEqKSlx/0RFRal3797u02G7d+/W+fPnK4w3YMAAtWvXrsr1DBo0SJGRke5pf39//fa3v9XRo0d18uRJSRdO5fXu3VsvvPCCu9+yZctks9n0wAMPXHJ8m82mZcuW6dixY1qyZInuueceuVwuPf/88+revbvS09MrLLN161b333L5z4YNGyodf8WKFcrJyZGfn5/S0tKqvN5AfeEiY6CaunbtWuEi48zMTM2aNUvjx4/XVVddpbNnzyoqKko2m81j2VatWikgIEBnz571aJ80aZKWLl2qJk2a6OGHH670dQMCAhQREeHRFhUVJUkVxvuhs2fPqn379hXao6OjL7vspZw9e9bjYtZyP/wQ/6HyO3PqoraqvFf//ve/ZYy5aL3XXHONR//y5SsbsyoutfzZs2d19dVXS5Iefvhh3XfffTp8+LCuueYavfjiixo9enSVX6tdu3Z68MEH3dOvv/667rjjDs2cOVMff/yxR9/evXtf9iJjSTp27Jhmzpyp2267Tb169dLcuXM1evRoDR48uEo1AfWBIziAF/Tq1UuFhYU6cuSIJCkiIsL9AfpDWVlZKikp8fhQyc/P11133eV+dsl9991X6WuUlJRU+MB3Op3u17uYiIgInTlzpkL76dOnJalKH3AXG/ff//53hfbymn7sx2GvOrUFBgZKkvsC7XLffvttpa9VlfeqRYsWstls2rlzZ4WjGD88klHev7L1uti6VuZSy/9w+40bN04RERF64YUX9MYbb8jpdGrq1KlVfp0fGzNmjHr16qWDBw9e0fLGGN1zzz0KCgrSsmXL9Pjjj6t379667777dO7cuSuuC6htBBzACw4cOCBJ7juRBg0apLy8vAqH+//+97+755f73e9+p+PHj2vdunV6+eWXtXHjRj3//POVvs6rr77qMb169WpJl35uzaBBg/T555/rk08+qVCLzWbTwIEDJUkOh0OSVFhYeIk1/Y+4uDgdPHhQn3/+uUf7D+8Mupyq1lZ+lOfTTz/16Ldx48aLjn2592r48OEyxujUqVO6/vrrK/z07NlTktS/f38FBgZWGG/Xrl3KzMys8rq+9957HoGwtLRUr732mjp06OA+eiNdCHMPPPCAVq5cqQULFqhPnz666aabLjt+ZUFRkvLy8nTixAn3UbHq+utf/6rt27dr6dKlatWqlex2u1JSUnT69GnNnDnzisYE6kR9XgAENCTlFxmvWLHCfZfRpk2bzKRJk4wkj4tQy++iCg0NNQsWLDBpaWnmySefNHa73eMuqhdffLHCRbLTpk0zdrvd48LbS90ZNGzYMI86L3YXVVRUlFm+fLl59913zcMPP2xsNpuZMmVKhWU7d+5s3n33XbN3794KF6f+0KlTpzzuotq8ebO
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
],
"image/svg+xml": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\r\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\r\n \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\r\n<svg height=\"331.60425pt\" version=\"1.1\" viewBox=\"0 0 409.1275 331.60425\" width=\"409.1275pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n <metadata>\r\n <rdf:RDF xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\r\n <cc:Work>\r\n <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\r\n <dc:date>2021-08-23T15:11:07.087651</dc:date>\r\n <dc:format>image/svg+xml</dc:format>\r\n <dc:creator>\r\n <cc:Agent>\r\n <dc:title>Matplotlib v3.4.2, https://matplotlib.org/</dc:title>\r\n </cc:Agent>\r\n </dc:creator>\r\n </cc:Work>\r\n </rdf:RDF>\r\n </metadata>\r\n <defs>\r\n <style type=\"text/css\">*{stroke-linecap:butt;stroke-linejoin:round;}</style>\r\n </defs>\r\n <g id=\"figure_1\">\r\n <g id=\"patch_1\">\r\n <path d=\"M 0 331.60425 \r\nL 409.1275 331.60425 \r\nL 409.1275 -0 \r\nL 0 -0 \r\nz\r\n\" style=\"fill:#ffffff;\"/>\r\n </g>\r\n <g id=\"axes_1\">\r\n <g id=\"patch_2\">\r\n <path d=\"M 33.2875 294.048 \r\nL 401.9275 294.048 \r\nL 401.9275 34.848 \r\nL 33.2875 34.848 \r\nz\r\n\" style=\"fill:#ffffff;\"/>\r\n </g>\r\n <g id=\"matplotlib.axis_1\">\r\n <g id=\"xtick_1\">\r\n <g id=\"line2d_1\">\r\n <path clip-path=\"url(#p18a3bdb35d)\" d=\"M 125.4475 294.048 \r\nL 125.4475 34.848 \r\n\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n </g>\r\n <g id=\"line2d_2\">\r\n <defs>\r\n <path d=\"M 0 0 \r\nL 0 3.5 \r\n\" id=\"m192730e3c0\" style=\"stroke:#000000;stroke-width:0.8;\"/>\r\n </defs>\r\n <g>\r\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"125.4475\" xlink:href=\"#m192730e3c0\" y=\"294.048\"/>\r\n </g>\r\n </g>\r\n <g id=\"text_1\">\r\n <!-- 1 -->\r\n <g transform=\"translate(122.26625 308.646437)scale(0.1 -0.1)\">\r\n <defs>\r\n <path d=\"M 794 531 \r\nL 1825 531 \r\nL 1825 4091 \r\nL 703 3866 \r\nL 703 4441 \r\nL 1819 4666 \r\nL 2450 4666 \r\nL 2450 531 \r\nL 3481 531 \r\nL 3481 0 \r\nL 794 0 \r\nL 794 531 \r\nz\r\n\" id=\"DejaVuSans-31\" transform=\"scale(0.015625)\"/>\r\n </defs>\r\n <use xlink:href=\"#DejaVuSans-31\"/>\r\n </g>\r\n </g>\r\n </g>\r\n <g id=\"xtick_2\">\r\n <g id=\"line2d_3\">\r\n <path clip-path=\"url(#p18a3bdb35d)\" d=\"M 309.7675 294.048 \r\nL 309.7675 34.848 \r\n\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n </g>\r\n <g id=\"line2d_4\">\r\n <g>\r\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"309.7675\" xlink:href=\"#m192730e3c0\" y=\"294.048\"/>\r\n </g>\r\n </g>\r\n <g id=\"text_2\">\r\n <!-- 2 -->\r\n <g transform=\"translate(306.58625 308.646437)scale(0.1 -0.1)\">\r\n <defs>\r\n <path d=\"M 1228 531 \r\nL 3431 531 \r\nL 3431 0 \r\nL 469 0 \r\nL 469 531 \r\nQ 828 903 1448 1529 \r\nQ 2069 2156 2228 2338 \r\nQ 2531 2678 2651 2914 \r\nQ 2772 3150 2772 3378 \r\nQ 2772 3750 2511 3984 \r\nQ 2250 4219 1831 4219 \r\nQ 1534 4219 1204 4116 \r\nQ 875 4013 500 3803 \r\nL 500 4441 \r\nQ 881 4594 1212 4672 \r\nQ 1544 4750 1819 4750 \r\nQ 2544 4750 2975 4387 \r\nQ 3406 4025 3406 3419 \r\nQ 3406 3131 3298 2873 \r\nQ 3191 2616 2906 2266 \r\nQ 2828 2175 2409 1742 \r\nQ 1991 1309 1228 531 \r\nz\r\n\" id=\"DejaVuSans-32\" transform=\"scale(0.015625)\"/>\r\n </defs>\r\n <use xlink:href=\"#DejaVuSans-32\"/>\r\n </g>\r\n </g>\r\n </g>\r\n <g id=\"text_3\">\r\n <!-- SEX -->\r\n <g transform=\"translate(207.848906 322.324562)scale(0.1 -0.1)\">\r\n <defs>\r\n <path d=\"M 3425 4513 \r\nL 3425 3897 \r\nQ 3066 4069 2747 4153 \r\nQ 2428 4238 2131 4238 \r\nQ 1616 4238 1336 4038 \r\nQ 1056 3838 1056 3469 \r\nQ 1056 3159 1242 300
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAjgAAAHNCAYAAAATwgHBAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8rg+JYAAAACXBIWXMAAA9hAAAPYQGoP6dpAAA3iklEQVR4nO3de3RU1cH//8+EmQxJCJEQkkkkBEQUMYAVLZf6a8ItiF+wiIpKtVBRqVx8+ALSgrWGLiF9UEEXVGyFEhQRtYqlCjFBJTRFHiF9KJcq3iIGSUyNmDuTSdi/P/xm6pAAGTK5nbxfa80azjn77LP3nJyZD3vOmWMzxhgBAABYSFBrNwAAACDQCDgAAMByCDgAAMByCDgAAMByCDgAAMByCDgAAMByCDgAAMByCDgAAMByCDgAAMByCDhAI6Wnp8tms/k8evTooeTkZL3xxhut3Tyv3r17a/r06X6vV1lZqdTUVO3atSvgbbKq5ORkJScnn7eczWbTnDlzmr09+fn5mjVrli677DKFhIQoMjJSAwcO1L333qv8/HxvudTU1Hp/y99/fP7555Kk7OxsBQUFacmSJfW29emnn6pLly665ZZbmr1fwIWwt3YDgPZmw4YN6t+/v4wxKiws1Jo1azRx4kRt27ZNEydObO3mXbDKykotXbpUkhr1oY225fjx47r66qt10UUXacGCBbr88stVUlKif/3rX3r55Zf12WefKT4+3medjIwMRURE1KsrNjZWkpSUlKQHHnhAK1as0KRJk/TDH/5QknT69GlNmzZNoaGhWrt2bfN3DrgABBzAT4mJibrmmmu809dff726deumF198sV0HnJZWWVmp0NDQ1m6GZTz77LP6+uuv9f7776tPnz7e+ZMmTdKSJUt0+vTpeusMGTJEUVFR56w3LS1NO3bs0LRp0/S///u/6ty5sx5//HH9/e9/16uvvqoePXoEvC9AIPAVFdBEnTt3VnBwsBwOh8/8b775RrNmzdLFF1+s4OBgXXLJJXrooYfkdrslSadOndIPfvADXXrppSopKfGuV1hYKJfLpeTkZNXW1kqSpk+fri5duujIkSMaPXq0wsLC1KNHD82ZM0eVlZXnbeMXX3yhO++8U9HR0XI6nbriiiv0xBNPeD/0Pv/8c+8H1dKlS71fVZzvq64jR44oJSVFoaGh6tGjh2bPnq0333xTNpvN56uu5ORkJSYmavfu3RoxYoRCQ0N19913N6ptkrRr1656dda122azKT093TvPn9fKGKOnn35aV111lUJCQtStWzfdcsst+uyzz+qVW7FihRISEtS5c2ddffXV2rFjx3lf9zP94Q9/0GWXXSan06kBAwZoy5YtPn2x2+1KS0urt97u3btls9n0yiuvnLXu4uJiBQUFKTo6usHlQUEX9nYfEhKi9PR0ffTRR1qyZIkOHz6s3/zmN/rpT3+qyZMnX1CdQIswABplw4YNRpLZu3ev8Xg8prq62uTn55sHHnjABAUFmYyMDG/ZqqoqM2jQIBMWFmYef/xxk5mZaR5++GFjt9vNDTfc4C330UcfmfDwcDN58mRjjDG1tbVm1KhRJjo62pw4ccJbbtq0aSY4ONj06tXLLFu2zGRmZprU1FRjt9vNhAkTfNqZkJBgpk2b5p0uKioyF198senRo4d55plnTEZGhpkzZ46RZO6//35jjDGnTp0yGRkZRpKZMWOGee+998x7771nPvnkk7O+HidOnDDdu3c3vXr1Munp6Wb79u3mrrvuMr179zaSzLvvvustm5SUZCIjI018fLxZvXq1effdd012dnaj2maMMe+++269Oo0xJi8vz0gyGzZsuKDX6t577zUOh8MsWLDAZGRkmM2bN5v+/fubmJ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hwu3a7Xd27d/eZ53K5JKlefd9XXFys3r1715sfFxd33nXPpbi42Odk1jrf/xD/vrorc1qibY15rb766isZY87a3ksuucSnfN36DdXZGOdav7i4WD179pQkPfDAA7rnnnt09OhRXXLJJXr22Wd1yy23NHpbCQkJuv/++73TL7/8su644w49+OCDev/9933KDh48+LwnGUvSZ599pgcffFA33XSTBg0apKVLl+qWW27RmDFjGtUmoDUwggMEwKBBg1RVVaWPPvpIktS9e3fvB+j3FRUVqaamxudDpaKiQnfddZf3t0vuueeeBrdRU1NT7wO/sLDQu72z6d69uwoKCurNP3HihCQ16gPubPV+9dVX9ebXtelMZ4Y9f9rWuXNnSfKeoF3n66+/bnBbjXmtoqKiZLPZlJOTU28U4/sjGXXlG+rX2frakHOt//39N3XqVHXv3l2///3v9corr6iwsFCzZ89u9HbONGXKFA0aNEiHDx++oPWNMfr5z3+ukJAQPfPMM3rooYc0ePBg3XPPPSorK7vgdgHNjYADBMCBAwckyXsl0ujRo1VeXl5vuP+5557zLq/zi1/8Ql988YVee+01rV+/Xtu2bdOqVasa3M4LL7zgM71582ZJ5/7dmtGjR+tf//qX/vGPf9Rri81m08iRIyVJTqdTklRVVXWOnv5HUlKSDh8+rH/9618+879/ZdD5NLZtdaM8Bw8e9Cm3bdu2s9Z9vtdqwoQJMsboyy+/1DXXXFPvMXDgQEnSsGHD1Llz53r17dmzR8eOHWt0X99++22fQFhbW6uXXnpJffv29Y7eSN+Fufvuu08bN27UypUrddVVV+lHP/rReetvKChKUnl5ufLz872jYv566qmntHv3bq1du1bR0dFyOBxKT0/XiRMn9OCDD15QnUCLaM0TgID2pO4k4w0bNnivMnrjjTfM3XffbST5nIRadxVVeHi4WblypcnKyjKPPPKIcTgcPldRPfvss/VOkp0zZ45xOBw+J96e68qg8ePH+7TzbFdRuVwu88c//tG89dZb5oEHHjA2m83MmjWr3rqXX365eeutt8y
},
"metadata": {}
}
],
"metadata": {}
},
{
"cell_type": "markdown",
"source": [
"### Task 3: What is the the distribution of Age, Sex, BMI and Y variables?"
],
"metadata": {}
},
{
"cell_type": "code",
"execution_count": 19,
"source": [
"for col in ['AGE','SEX','BMI','Y']:\r\n",
" df[col].hist()\r\n",
" plt.show()"
],
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
],
"image/svg+xml": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\r\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\r\n \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\r\n<svg height=\"297.190125pt\" version=\"1.1\" viewBox=\"0 0 391.245 297.190125\" width=\"391.245pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n <metadata>\r\n <rdf:RDF xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\r\n <cc:Work>\r\n <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\r\n <dc:date>2021-08-23T15:11:47.204630</dc:date>\r\n <dc:format>image/svg+xml</dc:format>\r\n <dc:creator>\r\n <cc:Agent>\r\n <dc:title>Matplotlib v3.4.2, https://matplotlib.org/</dc:title>\r\n </cc:Agent>\r\n </dc:creator>\r\n </cc:Work>\r\n </rdf:RDF>\r\n </metadata>\r\n <defs>\r\n <style type=\"text/css\">*{stroke-linecap:butt;stroke-linejoin:round;}</style>\r\n </defs>\r\n <g id=\"figure_1\">\r\n <g id=\"patch_1\">\r\n <path d=\"M 0 297.190125 \r\nL 391.245 297.190125 \r\nL 391.245 0 \r\nL 0 0 \r\nz\r\n\" style=\"fill:#ffffff;\"/>\r\n </g>\r\n <g id=\"axes_1\">\r\n <g id=\"patch_2\">\r\n <path d=\"M 26.925 273.312 \r\nL 384.045 273.312 \r\nL 384.045 7.2 \r\nL 26.925 7.2 \r\nz\r\n\" style=\"fill:#ffffff;\"/>\r\n </g>\r\n <g id=\"patch_3\">\r\n <path clip-path=\"url(#p4735d4589b)\" d=\"M 43.157727 273.312 \r\nL 75.623182 273.312 \r\nL 75.623182 216.660706 \r\nL 43.157727 216.660706 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_4\">\r\n <path clip-path=\"url(#p4735d4589b)\" d=\"M 75.623182 273.312 \r\nL 108.088636 273.312 \r\nL 108.088636 189.825882 \r\nL 75.623182 189.825882 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_5\">\r\n <path clip-path=\"url(#p4735d4589b)\" d=\"M 108.088636 273.312 \r\nL 140.554091 273.312 \r\nL 140.554091 133.174588 \r\nL 108.088636 133.174588 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_6\">\r\n <path clip-path=\"url(#p4735d4589b)\" d=\"M 140.554091 273.312 \r\nL 173.019545 273.312 \r\nL 173.019545 115.284706 \r\nL 140.554091 115.284706 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_7\">\r\n <path clip-path=\"url(#p4735d4589b)\" d=\"M 173.019545 273.312 \r\nL 205.485 273.312 \r\nL 205.485 109.321412 \r\nL 173.019545 109.321412 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_8\">\r\n <path clip-path=\"url(#p4735d4589b)\" d=\"M 205.485 273.312 \r\nL 237.950455 273.312 \r\nL 237.950455 19.872 \r\nL 205.485 19.872 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_9\">\r\n <path clip-path=\"url(#p4735d4589b)\" d=\"M 237.950455 273.312 \r\nL 270.415909 273.312 \r\nL 270.415909 67.578353 \r\nL 237.950455 67.578353 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_10\">\r\n <path clip-path=\"url(#p4735d4589b)\" d=\"M 270.415909 273.312 \r\nL 302.881364 273.312 \r\nL 302.881364 133.174588 \r\nL 270.415909 133.174588 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_11\">\r\n <path clip-path=\"url(#p4735d4589b)\" d=\"M 302.881364 273.312 \r\nL 335.346818 273.312 \r\nL 335.346818 174.917647 \r\nL 302.881364 174.917647 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_12\">\r\n <path clip-path=\"url(#p4735d4589b)\" d=\"M 335.346818 273.312 \r\nL 367.812273 273.312 \r\nL 367.812273 255.422118 \r\nL 335.346818 255.422118 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"matplotlib.axis_1\">\r\n <g id=\"xtick_1\">\r\n <g id=\"line2d_1\">\r\n <path clip-path=\"url(#p4735d4589b)\" d=\"M 48.568636 273.312 \r\nL 48.568636 7.2 \r\n\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n </g>\r\n <g id=\"line2d_2\">\r\n <defs>\r\n <path d=\"M 0 0 \r\nL 0 3.5 \r\n\" id=\"m5b339ae113\" style=\"stroke:#000000;stroke-width:0.8;\"/>\r\n </defs>\r
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAh8AAAGdCAYAAACyzRGfAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8rg+JYAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAp1ElEQVR4nO3df3RUdX7/8dckGYdEE1xRMpk1QNCwKgHXYzQS7CZbN/EgerQ5tavxB5buQhvckk27QMhaB5WA6WlOtptTLFsPTQ/Nwe6RtXT9QcbuGtemlkCXFVOL7DEGisQcFTOR4GQkn+8ffDPukATuJJNPmPB8nDMn3M/93Pv5zDs3My/u/LguY4w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pa29vl9XpVUlKivr6+eM8dAAAkoJRYOj/99NPKzs7Wtm3bIm1z5syJ/NsYo4aGBtXU1KisrEyS1NTUpMzMTDU3N2vlypXxmTUAAEhYMYWPXbt26fbbb9e9996r1tZWffWrX1VFRYW++93vSpI6OzvV3d2t0tLSyDYej0dFRUVqa2sbMXyEQiGFQqHIcjAYlCSFw2GFw+Ex3amxGhrP9riJiFo5R62ieZLN6OuSTNRPjM5JrTjmTuNv0Lnx1CqWbVzGGMd/5dOmTZMkVVVV6d5779WePXtUWVmpv//7v9fDDz+strY2LV68WEePHpXP54tst2LFCnV1dWn37t3D9un3+7Vhw4Zh7c3NzUpLS3N8RwAAwOTp7+9XeXm5ent7lZGRcda+MZ35GBwcVH5+vmprayVJN9xwgzo6OrRlyxY9/PDDkX4ulytqO2P
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
],
"image/svg+xml": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\r\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\r\n \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\r\n<svg height=\"297.190125pt\" version=\"1.1\" viewBox=\"0 0 397.6075 297.190125\" width=\"397.6075pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n <metadata>\r\n <rdf:RDF xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\r\n <cc:Work>\r\n <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\r\n <dc:date>2021-08-23T15:11:47.570288</dc:date>\r\n <dc:format>image/svg+xml</dc:format>\r\n <dc:creator>\r\n <cc:Agent>\r\n <dc:title>Matplotlib v3.4.2, https://matplotlib.org/</dc:title>\r\n </cc:Agent>\r\n </dc:creator>\r\n </cc:Work>\r\n </rdf:RDF>\r\n </metadata>\r\n <defs>\r\n <style type=\"text/css\">*{stroke-linecap:butt;stroke-linejoin:round;}</style>\r\n </defs>\r\n <g id=\"figure_1\">\r\n <g id=\"patch_1\">\r\n <path d=\"M 0 297.190125 \r\nL 397.6075 297.190125 \r\nL 397.6075 0 \r\nL 0 0 \r\nz\r\n\" style=\"fill:#ffffff;\"/>\r\n </g>\r\n <g id=\"axes_1\">\r\n <g id=\"patch_2\">\r\n <path d=\"M 33.2875 273.312 \r\nL 390.4075 273.312 \r\nL 390.4075 7.2 \r\nL 33.2875 7.2 \r\nz\r\n\" style=\"fill:#ffffff;\"/>\r\n </g>\r\n <g id=\"patch_3\">\r\n <path clip-path=\"url(#pf1ee00aea1)\" d=\"M 49.520227 273.312 \r\nL 81.985682 273.312 \r\nL 81.985682 19.872 \r\nL 49.520227 19.872 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_4\">\r\n <path clip-path=\"url(#pf1ee00aea1)\" d=\"M 81.985682 273.312 \r\nL 114.451136 273.312 \r\nL 114.451136 273.312 \r\nL 81.985682 273.312 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_5\">\r\n <path clip-path=\"url(#pf1ee00aea1)\" d=\"M 114.451136 273.312 \r\nL 146.916591 273.312 \r\nL 146.916591 273.312 \r\nL 114.451136 273.312 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_6\">\r\n <path clip-path=\"url(#pf1ee00aea1)\" d=\"M 146.916591 273.312 \r\nL 179.382045 273.312 \r\nL 179.382045 273.312 \r\nL 146.916591 273.312 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_7\">\r\n <path clip-path=\"url(#pf1ee00aea1)\" d=\"M 179.382045 273.312 \r\nL 211.8475 273.312 \r\nL 211.8475 273.312 \r\nL 179.382045 273.312 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_8\">\r\n <path clip-path=\"url(#pf1ee00aea1)\" d=\"M 211.8475 273.312 \r\nL 244.312955 273.312 \r\nL 244.312955 273.312 \r\nL 211.8475 273.312 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_9\">\r\n <path clip-path=\"url(#pf1ee00aea1)\" d=\"M 244.312955 273.312 \r\nL 276.778409 273.312 \r\nL 276.778409 273.312 \r\nL 244.312955 273.312 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_10\">\r\n <path clip-path=\"url(#pf1ee00aea1)\" d=\"M 276.778409 273.312 \r\nL 309.243864 273.312 \r\nL 309.243864 273.312 \r\nL 276.778409 273.312 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_11\">\r\n <path clip-path=\"url(#pf1ee00aea1)\" d=\"M 309.243864 273.312 \r\nL 341.709318 273.312 \r\nL 341.709318 273.312 \r\nL 309.243864 273.312 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_12\">\r\n <path clip-path=\"url(#pf1ee00aea1)\" d=\"M 341.709318 273.312 \r\nL 374.174773 273.312 \r\nL 374.174773 50.069106 \r\nL 341.709318 50.069106 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"matplotlib.axis_1\">\r\n <g id=\"xtick_1\">\r\n <g id=\"line2d_1\">\r\n <path clip-path=\"url(#pf1ee00aea1)\" d=\"M 49.520227 273.312 \r\nL 49.520227 7.2 \r\n\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n </g>\r\n <g id=\"line2d_2\">\r\n <defs>\r\n <path d=\"M 0 0 \r\nL 0 3.5 \r\n\" id=\"mcf52fc0eed\" style=\"stroke:#000000;stroke-width:0.8;\"/>\r\n </defs>\r\n <g>\r\n <use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AgEVFhYGt3m9XuXl5ammpiYSywEAAHEm5CsoFzN79mz95Cc/0ZgxY1RXV6dHH31Ut912m2pra+V2u9XQ0KChQ4fqiiuu6PW4zMxMNTQ09HtMv98vv98fvN3c3CxJCgQCCgQCYV1/z/HcCU5Yjxtp4Z5DpPWsN97WHW+Yc3Qw5+iJ11m7h8TXOaXnHBipc+xAhD1QFixYEPzvvLw8TZw4UWPGjNGf//xnzZs377yPcxxHLper3/vKyspUUlLSZ3tFRYVSU1O//qL78fjE7ogcN1K++nM+8aKysjLWS7gsMOfoYM7RE2+zXndTrFdwacI95/b29gHvG/ZA+aqsrCyNGTNGx44dkyR5PB51dnbqzJkzva6iNDY2Kj8/v99jrFmzRsXFxcHbzc3Nys7OVmFhodLT08O63kAgoMrKSj16IEH+7v6DyaLDvvj62Z2eORcUFCgpKSnWyxm0mHN0MOfoiddZ5/n2xnoJIXEnOHp8YnfY59zzCshARDxQTp8+rRMnTigrK0uSNGHCBCUlJamyslLz58+XJJ08eVKHDx/WunXr+j2G2+2W2+3usz0pKSliX6D+bpf8XfETKPH0jXquSP4Z4kvMOTqYc/TE26zj6XxyrnDPOZRjhRwora2t+uijj4K36+rqdOjQIWVkZCgjI0M+n08//vGPlZWVpX/961965JFHNHLkSP3oRz+SJA0fPlxLlizRgw8+qBEjRigjI0OrVq3SuHHjgr/VAwAALm8hB8qBAwc0ffr04O2el14WL16sTZs26f3339fvf/97/ec//1FWVpamT5+uXbt
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
],
"image/svg+xml": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\r\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\r\n \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\r\n<svg height=\"297.190125pt\" version=\"1.1\" viewBox=\"0 0 397.6075 297.190125\" width=\"397.6075pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n <metadata>\r\n <rdf:RDF xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\r\n <cc:Work>\r\n <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\r\n <dc:date>2021-08-23T15:11:47.804884</dc:date>\r\n <dc:format>image/svg+xml</dc:format>\r\n <dc:creator>\r\n <cc:Agent>\r\n <dc:title>Matplotlib v3.4.2, https://matplotlib.org/</dc:title>\r\n </cc:Agent>\r\n </dc:creator>\r\n </cc:Work>\r\n </rdf:RDF>\r\n </metadata>\r\n <defs>\r\n <style type=\"text/css\">*{stroke-linecap:butt;stroke-linejoin:round;}</style>\r\n </defs>\r\n <g id=\"figure_1\">\r\n <g id=\"patch_1\">\r\n <path d=\"M 0 297.190125 \r\nL 397.6075 297.190125 \r\nL 397.6075 0 \r\nL 0 0 \r\nz\r\n\" style=\"fill:#ffffff;\"/>\r\n </g>\r\n <g id=\"axes_1\">\r\n <g id=\"patch_2\">\r\n <path d=\"M 33.2875 273.312 \r\nL 390.4075 273.312 \r\nL 390.4075 7.2 \r\nL 33.2875 7.2 \r\nz\r\n\" style=\"fill:#ffffff;\"/>\r\n </g>\r\n <g id=\"patch_3\">\r\n <path clip-path=\"url(#pe93225cb40)\" d=\"M 49.520227 273.312 \r\nL 81.985682 273.312 \r\nL 81.985682 190.556082 \r\nL 49.520227 190.556082 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_4\">\r\n <path clip-path=\"url(#pe93225cb40)\" d=\"M 81.985682 273.312 \r\nL 114.451136 273.312 \r\nL 114.451136 102.627918 \r\nL 81.985682 102.627918 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_5\">\r\n <path clip-path=\"url(#pe93225cb40)\" d=\"M 114.451136 273.312 \r\nL 146.916591 273.312 \r\nL 146.916591 19.872 \r\nL 114.451136 19.872 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_6\">\r\n <path clip-path=\"url(#pe93225cb40)\" d=\"M 146.916591 273.312 \r\nL 179.382045 273.312 \r\nL 179.382045 40.56098 \r\nL 146.916591 40.56098 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_7\">\r\n <path clip-path=\"url(#pe93225cb40)\" d=\"M 179.382045 273.312 \r\nL 211.8475 273.312 \r\nL 211.8475 115.558531 \r\nL 179.382045 115.558531 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_8\">\r\n <path clip-path=\"url(#pe93225cb40)\" d=\"M 211.8475 273.312 \r\nL 244.312955 273.312 \r\nL 244.312955 136.24751 \r\nL 211.8475 136.24751 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_9\">\r\n <path clip-path=\"url(#pe93225cb40)\" d=\"M 244.312955 273.312 \r\nL 276.778409 273.312 \r\nL 276.778409 213.831184 \r\nL 244.312955 213.831184 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_10\">\r\n <path clip-path=\"url(#pe93225cb40)\" d=\"M 276.778409 273.312 \r\nL 309.243864 273.312 \r\nL 309.243864 242.278531 \r\nL 276.778409 242.278531 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_11\">\r\n <path clip-path=\"url(#pe93225cb40)\" d=\"M 309.243864 273.312 \r\nL 341.709318 273.312 \r\nL 341.709318 260.381388 \r\nL 309.243864 260.381388 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_12\">\r\n <path clip-path=\"url(#pe93225cb40)\" d=\"M 341.709318 273.312 \r\nL 374.174773 273.312 \r\nL 374.174773 268.139755 \r\nL 341.709318 268.139755 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"matplotlib.axis_1\">\r\n <g id=\"xtick_1\">\r\n <g id=\"line2d_1\">\r\n <path clip-path=\"url(#pe93225cb40)\" d=\"M 76.351181 273.312 \r\nL 76.351181 7.2 \r\n\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n </g>\r\n <g id=\"line2d_2\">\r\n <defs>\r\n <path d=\"M 0 0 \r\nL 0 3.5 \r\n\" id=\"mf0d332fd07\" style=\"stroke:#000000;stroke-width:0.8;\"/>\r\n <
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAigAAAGdCAYAAAA44ojeAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8rg+JYAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAftklEQVR4nO3df2xV9f3H8dftDy7UtSgqva1UqLHOH1VjQBnghK/Y6wg6HJk6ayZOp2yAsasbwpjzorHFLuu60Q3HZpDMNPiHP2YCjt5FrZLO2DKZjC24JR0ypWnUrq0Ub6/t5/uH6d2uLdDqvfe8b+/zkRB2zz29vM+H4+W50957fc45JwAAAEOyvB4AAADg0wgUAABgDoECAADMIVAAAIA5BAoAADCHQAEAAOYQKAAAwBwCBQAAmJPj9QCfxdDQkN59913l5+fL5/N5PQ4AABgD55z6+vpUXFysrKwTXyNJy0B59913VVJS4vUYAADgMzh8+LBmzJhxwn3SMlDy8/MlfXKABQUFHk+TfNFoVM3NzQoGg8rNzfV6nIzAmqcea+4N1j31MnnNe3t7VVJSEvt3/ETSMlCGv61TUFCQMYGSl5engoKCjDuZvcKapx5r7g3WPfVYc43pxzP4IVkAAGAOgQIAAMwhUAAAgDnjDpRXXnlF119/vYqLi+Xz+fTcc8/F3e+cUygUUnFxsaZMmaJFixbpwIEDcftEIhHdc889OuOMM3TKKafoq1/9qv79739/rgMBAAATx7gD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n/70pzr11FNj+9TV1am+vl6NjY1qa2tTIBBQRUWF+vr6Ej0OAABIQwm
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
],
"image/svg+xml": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\r\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\r\n \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\r\n<svg height=\"297.190125pt\" version=\"1.1\" viewBox=\"0 0 391.245 297.190125\" width=\"391.245pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n <metadata>\r\n <rdf:RDF xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\r\n <cc:Work>\r\n <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\r\n <dc:date>2021-08-23T15:11:48.075069</dc:date>\r\n <dc:format>image/svg+xml</dc:format>\r\n <dc:creator>\r\n <cc:Agent>\r\n <dc:title>Matplotlib v3.4.2, https://matplotlib.org/</dc:title>\r\n </cc:Agent>\r\n </dc:creator>\r\n </cc:Work>\r\n </rdf:RDF>\r\n </metadata>\r\n <defs>\r\n <style type=\"text/css\">*{stroke-linecap:butt;stroke-linejoin:round;}</style>\r\n </defs>\r\n <g id=\"figure_1\">\r\n <g id=\"patch_1\">\r\n <path d=\"M 0 297.190125 \r\nL 391.245 297.190125 \r\nL 391.245 0 \r\nL 0 0 \r\nz\r\n\" style=\"fill:#ffffff;\"/>\r\n </g>\r\n <g id=\"axes_1\">\r\n <g id=\"patch_2\">\r\n <path d=\"M 26.925 273.312 \r\nL 384.045 273.312 \r\nL 384.045 7.2 \r\nL 26.925 7.2 \r\nz\r\n\" style=\"fill:#ffffff;\"/>\r\n </g>\r\n <g id=\"patch_3\">\r\n <path clip-path=\"url(#pd7b8e3ea78)\" d=\"M 43.157727 273.312 \r\nL 75.623182 273.312 \r\nL 75.623182 152.928 \r\nL 43.157727 152.928 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_4\">\r\n <path clip-path=\"url(#pd7b8e3ea78)\" d=\"M 75.623182 273.312 \r\nL 108.088636 273.312 \r\nL 108.088636 19.872 \r\nL 75.623182 19.872 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_5\">\r\n <path clip-path=\"url(#pd7b8e3ea78)\" d=\"M 108.088636 273.312 \r\nL 140.554091 273.312 \r\nL 140.554091 57.888 \r\nL 108.088636 57.888 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_6\">\r\n <path clip-path=\"url(#pd7b8e3ea78)\" d=\"M 140.554091 273.312 \r\nL 173.019545 273.312 \r\nL 173.019545 76.896 \r\nL 140.554091 76.896 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_7\">\r\n <path clip-path=\"url(#pd7b8e3ea78)\" d=\"M 173.019545 273.312 \r\nL 205.485 273.312 \r\nL 205.485 114.912 \r\nL 173.019545 114.912 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_8\">\r\n <path clip-path=\"url(#pd7b8e3ea78)\" d=\"M 205.485 273.312 \r\nL 237.950455 273.312 \r\nL 237.950455 143.424 \r\nL 205.485 143.424 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_9\">\r\n <path clip-path=\"url(#pd7b8e3ea78)\" d=\"M 237.950455 273.312 \r\nL 270.415909 273.312 \r\nL 270.415909 152.928 \r\nL 237.950455 152.928 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_10\">\r\n <path clip-path=\"url(#pd7b8e3ea78)\" d=\"M 270.415909 273.312 \r\nL 302.881364 273.312 \r\nL 302.881364 140.256 \r\nL 270.415909 140.256 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_11\">\r\n <path clip-path=\"url(#pd7b8e3ea78)\" d=\"M 302.881364 273.312 \r\nL 335.346818 273.312 \r\nL 335.346818 219.456 \r\nL 302.881364 219.456 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"patch_12\">\r\n <path clip-path=\"url(#pd7b8e3ea78)\" d=\"M 335.346818 273.312 \r\nL 367.812273 273.312 \r\nL 367.812273 254.304 \r\nL 335.346818 254.304 \r\nz\r\n\" style=\"fill:#1f77b4;\"/>\r\n </g>\r\n <g id=\"matplotlib.axis_1\">\r\n <g id=\"xtick_1\">\r\n <g id=\"line2d_1\">\r\n <path clip-path=\"url(#pd7b8e3ea78)\" d=\"M 68.442349 273.312 \r\nL 68.442349 7.2 \r\n\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n </g>\r\n <g id=\"line2d_2\">\r\n <defs>\r\n <path d=\"M 0 0 \r\nL 0 3.5 \r\n\" id=\"m8c6935d3e5\" style=\"stroke:#000000;stroke-width:0.8;\"/>\r\n </defs>\r\n <g>\r\n <use style=\"stroke:#000000;stroke
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAh8AAAGdCAYAAACyzRGfAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8rg+JYAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAo1UlEQVR4nO3df3DT92H/8ZcMyid2YtP8AMsqDnFS0zU4YbuQOpiu9tJZGQ2MnG9ZGmete9kCnSFXz91oHJZF5Ieg3s3nXr2RsfUYu56Pbpekyy0JWLkG08zjahgsxMsouziGEhRfUwc5mMgKfn//4Gu1jj8Gy5betqzn405n9Pm8Px+9Py8+ll/3kWx5jDF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z6Z7OrOHkmDFf8Stu2czl75HJSuZ7KZuQiztymdh0s0lmO48xZtLP8ldeeaUkqbGxUffdd59++tOfqqGhQX//93+vr33ta+rq6tKqVat0+vRp+f3+xHbr169XX1+f9u3bN26fwWBQW7duHbe8vb1deXl5kz4QAAAwc4aGhlRbW6uzZ8+qoKDgkmOTuvIxMjKiFStWKBQKSZJ+67d+Sz09PdqxY4e+9rWvJcZ5PJ4x2xljxi0b1dTUpMbGxsT9aDSq4uJiBQKBy04+k8XjcYXDYVVXV8vr9V5ybFlwfGmbq5wco6dWjOjxQzmKjbifM9nKLZs3g3fP8KxmXjLfS9mEXNyRy8Smm83oKxeTkVT5KCoq0i233DJm2ec+9zk999xzkiSfzydJikQ
},
"metadata": {}
}
],
"metadata": {}
},
{
"cell_type": "markdown",
"source": [
"Conclusions:\r\n",
"* Age - normal\r\n",
"* Sex - uniform\r\n",
"* BMI, Y - hard to tell"
],
"metadata": {}
},
{
"cell_type": "markdown",
"source": [
"### Task 4: Test the correlation between different variables and disease progression (Y)\r\n",
"\r\n",
"> **Hint** Correlation matrix would give you the most useful information on which values are dependent."
],
"metadata": {}
},
{
"cell_type": "code",
"execution_count": 20,
"source": [
"df.corr()"
],
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
" AGE SEX BMI BP S1 S2 S3 \\\n",
"AGE 1.000000 0.173737 0.185085 0.335428 0.260061 0.219243 -0.075181 \n",
"SEX 0.173737 1.000000 0.088161 0.241010 0.035277 0.142637 -0.379090 \n",
"BMI 0.185085 0.088161 1.000000 0.395411 0.249777 0.261170 -0.366811 \n",
"BP 0.335428 0.241010 0.395411 1.000000 0.242464 0.185548 -0.178762 \n",
"S1 0.260061 0.035277 0.249777 0.242464 1.000000 0.896663 0.051519 \n",
"S2 0.219243 0.142637 0.261170 0.185548 0.896663 1.000000 -0.196455 \n",
"S3 -0.075181 -0.379090 -0.366811 -0.178762 0.051519 -0.196455 1.000000 \n",
"S4 0.203841 0.332115 0.413807 0.257650 0.542207 0.659817 -0.738493 \n",
"S5 0.270774 0.149916 0.446157 0.393480 0.515503 0.318357 -0.398577 \n",
"S6 0.301731 0.208133 0.388680 0.390430 0.325717 0.290600 -0.273697 \n",
"Y 0.187889 0.043062 0.586450 0.441482 0.212022 0.174054 -0.394789 \n",
"\n",
" S4 S5 S6 Y \n",
"AGE 0.203841 0.270774 0.301731 0.187889 \n",
"SEX 0.332115 0.149916 0.208133 0.043062 \n",
"BMI 0.413807 0.446157 0.388680 0.586450 \n",
"BP 0.257650 0.393480 0.390430 0.441482 \n",
"S1 0.542207 0.515503 0.325717 0.212022 \n",
"S2 0.659817 0.318357 0.290600 0.174054 \n",
"S3 -0.738493 -0.398577 -0.273697 -0.394789 \n",
"S4 1.000000 0.617859 0.417212 0.430453 \n",
"S5 0.617859 1.000000 0.464669 0.565883 \n",
"S6 0.417212 0.464669 1.000000 0.382483 \n",
"Y 0.430453 0.565883 0.382483 1.000000 "
],
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>AGE</th>\n",
" <th>SEX</th>\n",
" <th>BMI</th>\n",
" <th>BP</th>\n",
" <th>S1</th>\n",
" <th>S2</th>\n",
" <th>S3</th>\n",
" <th>S4</th>\n",
" <th>S5</th>\n",
" <th>S6</th>\n",
" <th>Y</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>AGE</th>\n",
" <td>1.000000</td>\n",
" <td>0.173737</td>\n",
" <td>0.185085</td>\n",
" <td>0.335428</td>\n",
" <td>0.260061</td>\n",
" <td>0.219243</td>\n",
" <td>-0.075181</td>\n",
" <td>0.203841</td>\n",
" <td>0.270774</td>\n",
" <td>0.301731</td>\n",
" <td>0.187889</td>\n",
" </tr>\n",
" <tr>\n",
" <th>SEX</th>\n",
" <td>0.173737</td>\n",
" <td>1.000000</td>\n",
" <td>0.088161</td>\n",
" <td>0.241010</td>\n",
" <td>0.035277</td>\n",
" <td>0.142637</td>\n",
" <td>-0.379090</td>\n",
" <td>0.332115</td>\n",
" <td>0.149916</td>\n",
" <td>0.208133</td>\n",
" <td>0.043062</td>\n",
" </tr>\n",
" <tr>\n",
" <th>BMI</th>\n",
" <td>0.185085</td>\n",
" <td>0.088161</td>\n",
" <td>1.000000</td>\n",
" <td>0.395411</td>\n",
" <td>0.249777</td>\n",
" <td>0.261170</td>\n",
" <td>-0.366811</td>\n",
" <td>0.413807</td>\n",
" <td>0.446157</td>\n",
" <td>0.388680</td>\n",
" <td>0.586450</td>\n",
" </tr>\n",
" <tr>\n",
" <th>BP</th>\n",
" <td>0.335428</td>\n",
" <td>0.241010</td>\n",
" <td>0.395411</td>\n",
" <td>1.000000</td>\n",
" <td>0.242464</td>\n",
" <td>0.185548</td>\n",
" <td>-0.178762</td>\n",
" <td>0.257650</td>\n",
" <td>0.393480</td>\n",
" <td>0.390430</td>\n",
" <td>0.441482</td>\n",
" </tr>\n",
" <tr>\n",
" <th>S1</th>\n",
" <td>0.260061</td>\n",
" <td>0.035277</td>\n",
" <td>0.249777</td>\n",
" <td>0.242464</td>\n",
" <td>1.000000</td>\n",
" <td>0.896663</td>\n",
" <td>0.051519</td>\n",
" <td>0.542207</td>\n",
" <td>0.515503</td>\n",
" <td>0.325717</td>\n",
" <td>0.212022</td>\n",
" </tr>\n",
" <tr>\n",
" <th>S2</th>\n",
" <td>0.219243</td>\n",
" <td>0.142637</td>\n",
" <td>0.261170</td>\n",
" <td>0.185548</td>\n",
" <td>0.896663</td>\n",
" <td>1.000000</td>\n",
" <td>-0.196455</td>\n",
" <td>0.659817</td>\n",
" <td>0.318357</td>\n",
" <td>0.290600</td>\n",
" <td>0.174054</td>\n",
" </tr>\n",
" <tr>\n",
" <th>S3</th>\n",
" <td>-0.075181</td>\n",
" <td>-0.379090</td>\n",
" <td>-0.366811</td>\n",
" <td>-0.178762</td>\n",
" <td>0.051519</td>\n",
" <td>-0.196455</td>\n",
" <td>1.000000</td>\n",
" <td>-0.738493</td>\n",
" <td>-0.398577</td>\n",
" <td>-0.273697</td>\n",
" <td>-0.394789</td>\n",
" </tr>\n",
" <tr>\n",
" <th>S4</th>\n",
" <td>0.203841</td>\n",
" <td>0.332115</td>\n",
" <td>0.413807</td>\n",
" <td>0.257650</td>\n",
" <td>0.542207</td>\n",
" <td>0.659817</td>\n",
" <td>-0.738493</td>\n",
" <td>1.000000</td>\n",
" <td>0.617859</td>\n",
" <td>0.417212</td>\n",
" <td>0.430453</td>\n",
" </tr>\n",
" <tr>\n",
" <th>S5</th>\n",
" <td>0.270774</td>\n",
" <td>0.149916</td>\n",
" <td>0.446157</td>\n",
" <td>0.393480</td>\n",
" <td>0.515503</td>\n",
" <td>0.318357</td>\n",
" <td>-0.398577</td>\n",
" <td>0.617859</td>\n",
" <td>1.000000</td>\n",
" <td>0.464669</td>\n",
" <td>0.565883</td>\n",
" </tr>\n",
" <tr>\n",
" <th>S6</th>\n",
" <td>0.301731</td>\n",
" <td>0.208133</td>\n",
" <td>0.388680</td>\n",
" <td>0.390430</td>\n",
" <td>0.325717</td>\n",
" <td>0.290600</td>\n",
" <td>-0.273697</td>\n",
" <td>0.417212</td>\n",
" <td>0.464669</td>\n",
" <td>1.000000</td>\n",
" <td>0.382483</td>\n",
" </tr>\n",
" <tr>\n",
" <th>Y</th>\n",
" <td>0.187889</td>\n",
" <td>0.043062</td>\n",
" <td>0.586450</td>\n",
" <td>0.441482</td>\n",
" <td>0.212022</td>\n",
" <td>0.174054</td>\n",
" <td>-0.394789</td>\n",
" <td>0.430453</td>\n",
" <td>0.565883</td>\n",
" <td>0.382483</td>\n",
" <td>1.000000</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
]
},
"metadata": {},
"execution_count": 20
}
],
"metadata": {}
},
{
"cell_type": "markdown",
"source": [
"Conclusion:\r\n",
"* The strongest correlation of Y is BMI and S5 (blood sugar). This sounds reasonable."
],
"metadata": {}
},
{
"cell_type": "code",
"execution_count": 26,
"source": [
"fig, ax = plt.subplots(1,3,figsize=(10,5))\r\n",
"for i,n in enumerate(['BMI','S5','BP']):\r\n",
" ax[i].scatter(df['Y'],df[n])\r\n",
" ax[i].set_title(n)\r\n",
"plt.show()"
],
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": [
"<Figure size 1000x500 with 3 Axes>"
],
"image/svg+xml": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\r\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\r\n \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\r\n<svg height=\"323.39625pt\" version=\"1.1\" viewBox=\"0 0 592.125 323.39625\" width=\"592.125pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n <metadata>\r\n <rdf:RDF xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\r\n <cc:Work>\r\n <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\r\n <dc:date>2021-08-23T15:17:54.398970</dc:date>\r\n <dc:format>image/svg+xml</dc:format>\r\n <dc:creator>\r\n <cc:Agent>\r\n <dc:title>Matplotlib v3.4.2, https://matplotlib.org/</dc:title>\r\n </cc:Agent>\r\n </dc:creator>\r\n </cc:Work>\r\n </rdf:RDF>\r\n </metadata>\r\n <defs>\r\n <style type=\"text/css\">*{stroke-linecap:butt;stroke-linejoin:round;}</style>\r\n </defs>\r\n <g id=\"figure_1\">\r\n <g id=\"patch_1\">\r\n <path d=\"M 0 323.39625 \r\nL 592.125 323.39625 \r\nL 592.125 0 \r\nL 0 0 \r\nz\r\n\" style=\"fill:#ffffff;\"/>\r\n </g>\r\n <g id=\"axes_1\">\r\n <g id=\"patch_2\">\r\n <path d=\"M 26.925 299.518125 \r\nL 191.042647 299.518125 \r\nL 191.042647 22.318125 \r\nL 26.925 22.318125 \r\nz\r\n\" style=\"fill:#ffffff;\"/>\r\n </g>\r\n <g id=\"PathCollection_1\">\r\n <defs>\r\n <path d=\"M 0 3 \r\nC 0.795609 3 1.55874 2.683901 2.12132 2.12132 \r\nC 2.683901 1.55874 3 0.795609 3 0 \r\nC 3 -0.795609 2.683901 -1.55874 2.12132 -2.12132 \r\nC 1.55874 -2.683901 0.795609 -3 0 -3 \r\nC -0.795609 -3 -1.55874 -2.683901 -2.12132 -2.12132 \r\nC -2.683901 -1.55874 -3 -0.795609 -3 0 \r\nC -3 0.795609 -2.683901 1.55874 -2.12132 2.12132 \r\nC -1.55874 2.683901 -0.795609 3 0 3 \r\nz\r\n\" id=\"mb3c2fda3d6\" style=\"stroke:#1f77b4;\"/>\r\n </defs>\r\n <g clip-path=\"url(#p0c1306c52a)\">\r\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"92.948539\" xlink:href=\"#mb3c2fda3d6\" y=\"140.091679\"/>\r\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"57.624435\" xlink:href=\"#mb3c2fda3d6\" y=\"249.430522\"/>\r\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"88.300631\" xlink:href=\"#mb3c2fda3d6\" y=\"156.752836\"/>\r\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"118.512036\" xlink:href=\"#mb3c2fda3d6\" y=\"210.901596\"/>\r\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"85.511886\" xlink:href=\"#mb3c2fda3d6\" y=\"234.852009\"/>\r\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"67.849834\" xlink:href=\"#mb3c2fda3d6\" y=\"239.017299\"/>\r\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"86.906258\" xlink:href=\"#mb3c2fda3d6\" y=\"245.265232\"/>\r\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"52.046945\" xlink:href=\"#mb3c2fda3d6\" y=\"201.529695\"/>\r\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"73.892115\" xlink:href=\"#mb3c2fda3d6\" y=\"140.091679\"/>\r\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"166.850284\" xlink:href=\"#mb3c2fda3d6\" y=\"161.959447\"/>\r\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"69.708997\" xlink:href=\"#mb3c2fda3d6\" y=\"280.670191\"/>\r\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"54.83569\" xlink:href=\"#mb3c2fda3d6\" y=\"182.785894\"/>\r\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"105.962683\" xlink:href=\"#mb3c2fda3d6\" y=\"227.562753\"/>\r\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"108.751428\" xlink:href=\"#mb3c2fda3d6\" y=\"201.529695\"/>\r\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"77.610442\" xlink:href=\"#mb3c2fda3d6\" y=\"224.438786\"/>\r\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"102.244356\" xlink:href=\"#mb3c2fda3d6\" y=\"217.14953\"/>\r\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"99.920402\" xlink:href=\"#mb3c2fda3d6\" y=\"158.83548\"/>\r\n <use style=\"fill:#1f77b4;stroke:#1f77b4;\" x=\"89.695003\" xlink:href=\"#mb3c2fda3d6\" y=\"187.992505\"/>\r\n <use style
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAzYAAAHBCAYAAAC7Ry7JAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNp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giJlLkunKDkAUTY0iY5XtfjCCKY8ecCHClji7f9rMdTIDJBhAaRMteFE2SxIcKWAdnpsKbGQyoXlAnNm4kB2en+bBZBGII/F+BIGVtK9+lOlAmorGlQPI4CkQkidIiUuS6cIMGGCFuio0z42y05AOAzKQl//+2WHMpDT4QF/lyAI2Vsud+nEg4n8NgyecGEApEJIrSIlLkunCDBhghrRuRa8c69fWFJ9dRSW1Lj8c69fcntgwgb/L0AR8rYEu7Tmspm6ZITTCgQmSBCj0iZ68IFirEhwp4RuVYMy7FQxWAi7BEWYO/4DYtB8RuRMraE+1yyvQSz1hyQPM5dMBnUsZXP9xSITBChSbDNdf4qwhyKkGBDRATRUSbRjQZBhBv+XoAjZWxFR5mQkWxmOlZKMKFAZIIIXYJlrqPkI/KQYEMQBBFmBMsCHG5oFUyEOCh7VZ1onI0JzdY1CkQmCEIMIfmI9/whJB8h1ziKsSGIiMPf9TNOnDiBe++9F61atUJiYiJ69+6N3bt3y/5my5Yt6NevH+Lj49GhQwe8++67hraRIFjQmqCBApEJglALJR9hgyw2BBFB+NuEXVlZiby8PAwZMgRffvkl2rRpg8OHD6Nly5aSvykpKcGoUaMwceJELF26FNu3b8ejjz6K1q1b44477tC9jQTBiiCY/HnpHpgAjw0Gq2Di7zgogiD
},
"metadata": {}
}
],
"metadata": {}
},
{
"cell_type": "markdown",
"source": [
"### Task 5: Test the hypothesis that the degree of diabetes progression is different between men and women"
],
"metadata": {}
},
{
"cell_type": "code",
"execution_count": 27,
"source": [
"from scipy.stats import ttest_ind\r\n",
"\r\n",
"tval, pval = ttest_ind(df.loc[df['SEX']==1,['Y']], df.loc[df['SEX']==2,['Y']],equal_var=False)\r\n",
"print(f\"T-value = {tval[0]:.2f}\\nP-value: {pval[0]}\")"
],
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"T-value = -0.90\n",
"P-value: 0.3674449793083975\n"
]
}
],
"metadata": {}
},
{
"cell_type": "markdown",
"source": [
"Conclusion: p-value close to 0 (typically, below 0.05) would indicate high confidence in our hypothesis. In our case, there is no strong evidence that sex affects progression of diabetes."
],
"metadata": {}
},
{
"cell_type": "markdown",
"source": [],
"metadata": {}
}
],
"metadata": {
"orig_nbformat": 4,
"language_info": {
"name": "python",
"version": "3.8.8",
"mimetype": "text/x-python",
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"pygments_lexer": "ipython3",
"nbconvert_exporter": "python",
"file_extension": ".py"
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3.8.8 64-bit (conda)"
},
"interpreter": {
"hash": "86193a1ab0ba47eac1c69c1756090baa3b420b3eea7d4aafab8b85f8b312f0c5"
}
},
"nbformat": 4,
"nbformat_minor": 2
}