Created
June 6, 2020 03:36
-
-
Save AllieUbisse/4676dd20f33196de61f7e0750ab80c44 to your computer and use it in GitHub Desktop.
Outlier-Detection-3WAYS-Methods.ipynb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"nbformat": 4, | |
"nbformat_minor": 0, | |
"metadata": { | |
"colab": { | |
"name": "Outlier-Detection-3WAYS-Methods.ipynb", | |
"provenance": [], | |
"collapsed_sections": [ | |
"Y41mCGlZAk-s", | |
"lqLrIC7RBVVc", | |
"NQmEUGBABmwb", | |
"jwZuNSz0VG09", | |
"VvY2jmV4ZM6r", | |
"QTCBRuExaiqM", | |
"X8C_qMutc1V5" | |
], | |
"authorship_tag": "ABX9TyMhPr928L/rLGxIl7e68RkB", | |
"include_colab_link": true | |
}, | |
"kernelspec": { | |
"name": "python3", | |
"display_name": "Python 3" | |
} | |
}, | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"id": "view-in-github", | |
"colab_type": "text" | |
}, | |
"source": [ | |
"<a href=\"https://colab.research.google.com/gist/AllieUbisse/4676dd20f33196de61f7e0750ab80c44/outlier-detection-3ways-methods.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"id": "Y41mCGlZAk-s", | |
"colab_type": "text" | |
}, | |
"source": [ | |
"# **1. Library Imports**" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "ODlzYMLK_6kL", | |
"colab_type": "code", | |
"colab": {} | |
}, | |
"source": [ | |
"import pandas as pd\n", | |
"import numpy as np\n", | |
"from scipy.stats import norm\n", | |
"\n", | |
"import matplotlib.pyplot as plt\n", | |
"%matplotlib inline\n", | |
"import seaborn as sns\n" | |
], | |
"execution_count": 0, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"id": "lqLrIC7RBVVc", | |
"colab_type": "text" | |
}, | |
"source": [ | |
"# **2. Import Dataset**\n", | |
"---\n", | |
"\n", | |
"source: [New York City Airbnb Open Data](https://www.kaggle.com/dgomonov/new-york-city-airbnb-open-data)" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "npW-YRWCA9AW", | |
"colab_type": "code", | |
"colab": {} | |
}, | |
"source": [ | |
"bnb = pd.read_csv('/content/AB_NYC_2019.csv')\n" | |
], | |
"execution_count": 0, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"id": "NQmEUGBABmwb", | |
"colab_type": "text" | |
}, | |
"source": [ | |
"# **3. Outlier Detection using percentile BnB**\n", | |
"---\n", | |
"Suppose price is defined as price per night" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "ck-e-iC6BxsT", | |
"colab_type": "code", | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 401 | |
}, | |
"outputId": "7be52dfb-d49f-40ba-9101-996d84a70834" | |
}, | |
"source": [ | |
"bnb.head()" | |
], | |
"execution_count": 4, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"data": { | |
"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>id</th>\n", | |
" <th>name</th>\n", | |
" <th>host_id</th>\n", | |
" <th>host_name</th>\n", | |
" <th>neighbourhood_group</th>\n", | |
" <th>neighbourhood</th>\n", | |
" <th>latitude</th>\n", | |
" <th>longitude</th>\n", | |
" <th>room_type</th>\n", | |
" <th>price</th>\n", | |
" <th>minimum_nights</th>\n", | |
" <th>number_of_reviews</th>\n", | |
" <th>last_review</th>\n", | |
" <th>reviews_per_month</th>\n", | |
" <th>calculated_host_listings_count</th>\n", | |
" <th>availability_365</th>\n", | |
" </tr>\n", | |
" </thead>\n", | |
" <tbody>\n", | |
" <tr>\n", | |
" <th>0</th>\n", | |
" <td>2539</td>\n", | |
" <td>Clean & quiet apt home by the park</td>\n", | |
" <td>2787</td>\n", | |
" <td>John</td>\n", | |
" <td>Brooklyn</td>\n", | |
" <td>Kensington</td>\n", | |
" <td>40.64749</td>\n", | |
" <td>-73.97237</td>\n", | |
" <td>Private room</td>\n", | |
" <td>149</td>\n", | |
" <td>1</td>\n", | |
" <td>9</td>\n", | |
" <td>2018-10-19</td>\n", | |
" <td>0.21</td>\n", | |
" <td>6</td>\n", | |
" <td>365</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>1</th>\n", | |
" <td>2595</td>\n", | |
" <td>Skylit Midtown Castle</td>\n", | |
" <td>2845</td>\n", | |
" <td>Jennifer</td>\n", | |
" <td>Manhattan</td>\n", | |
" <td>Midtown</td>\n", | |
" <td>40.75362</td>\n", | |
" <td>-73.98377</td>\n", | |
" <td>Entire home/apt</td>\n", | |
" <td>225</td>\n", | |
" <td>1</td>\n", | |
" <td>45</td>\n", | |
" <td>2019-05-21</td>\n", | |
" <td>0.38</td>\n", | |
" <td>2</td>\n", | |
" <td>355</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>2</th>\n", | |
" <td>3647</td>\n", | |
" <td>THE VILLAGE OF HARLEM....NEW YORK !</td>\n", | |
" <td>4632</td>\n", | |
" <td>Elisabeth</td>\n", | |
" <td>Manhattan</td>\n", | |
" <td>Harlem</td>\n", | |
" <td>40.80902</td>\n", | |
" <td>-73.94190</td>\n", | |
" <td>Private room</td>\n", | |
" <td>150</td>\n", | |
" <td>3</td>\n", | |
" <td>0</td>\n", | |
" <td>NaN</td>\n", | |
" <td>NaN</td>\n", | |
" <td>1</td>\n", | |
" <td>365</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>3</th>\n", | |
" <td>3831</td>\n", | |
" <td>Cozy Entire Floor of Brownstone</td>\n", | |
" <td>4869</td>\n", | |
" <td>LisaRoxanne</td>\n", | |
" <td>Brooklyn</td>\n", | |
" <td>Clinton Hill</td>\n", | |
" <td>40.68514</td>\n", | |
" <td>-73.95976</td>\n", | |
" <td>Entire home/apt</td>\n", | |
" <td>89</td>\n", | |
" <td>1</td>\n", | |
" <td>270</td>\n", | |
" <td>2019-07-05</td>\n", | |
" <td>4.64</td>\n", | |
" <td>1</td>\n", | |
" <td>194</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>4</th>\n", | |
" <td>5022</td>\n", | |
" <td>Entire Apt: Spacious Studio/Loft by central park</td>\n", | |
" <td>7192</td>\n", | |
" <td>Laura</td>\n", | |
" <td>Manhattan</td>\n", | |
" <td>East Harlem</td>\n", | |
" <td>40.79851</td>\n", | |
" <td>-73.94399</td>\n", | |
" <td>Entire home/apt</td>\n", | |
" <td>80</td>\n", | |
" <td>10</td>\n", | |
" <td>9</td>\n", | |
" <td>2018-11-19</td>\n", | |
" <td>0.10</td>\n", | |
" <td>1</td>\n", | |
" <td>0</td>\n", | |
" </tr>\n", | |
" </tbody>\n", | |
"</table>\n", | |
"</div>" | |
], | |
"text/plain": [ | |
" id ... availability_365\n", | |
"0 2539 ... 365\n", | |
"1 2595 ... 355\n", | |
"2 3647 ... 365\n", | |
"3 3831 ... 194\n", | |
"4 5022 ... 0\n", | |
"\n", | |
"[5 rows x 16 columns]" | |
] | |
}, | |
"metadata": { | |
"tags": [] | |
}, | |
"execution_count": 4 | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "ShT93U79HgPK", | |
"colab_type": "code", | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 287 | |
}, | |
"outputId": "d1402857-e666-4975-a9dd-d59817420d2b" | |
}, | |
"source": [ | |
"bnb[['price', 'minimum_nights','number_of_reviews', 'reviews_per_month']].describe()" | |
], | |
"execution_count": 56, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"data": { | |
"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>price</th>\n", | |
" <th>minimum_nights</th>\n", | |
" <th>number_of_reviews</th>\n", | |
" <th>reviews_per_month</th>\n", | |
" </tr>\n", | |
" </thead>\n", | |
" <tbody>\n", | |
" <tr>\n", | |
" <th>count</th>\n", | |
" <td>48895.000000</td>\n", | |
" <td>48895.000000</td>\n", | |
" <td>48895.000000</td>\n", | |
" <td>38843.000000</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>mean</th>\n", | |
" <td>152.720687</td>\n", | |
" <td>7.029962</td>\n", | |
" <td>23.274466</td>\n", | |
" <td>1.373221</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>std</th>\n", | |
" <td>240.154170</td>\n", | |
" <td>20.510550</td>\n", | |
" <td>44.550582</td>\n", | |
" <td>1.680442</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>min</th>\n", | |
" <td>0.000000</td>\n", | |
" <td>1.000000</td>\n", | |
" <td>0.000000</td>\n", | |
" <td>0.010000</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>25%</th>\n", | |
" <td>69.000000</td>\n", | |
" <td>1.000000</td>\n", | |
" <td>1.000000</td>\n", | |
" <td>0.190000</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>50%</th>\n", | |
" <td>106.000000</td>\n", | |
" <td>3.000000</td>\n", | |
" <td>5.000000</td>\n", | |
" <td>0.720000</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>75%</th>\n", | |
" <td>175.000000</td>\n", | |
" <td>5.000000</td>\n", | |
" <td>24.000000</td>\n", | |
" <td>2.020000</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>max</th>\n", | |
" <td>10000.000000</td>\n", | |
" <td>1250.000000</td>\n", | |
" <td>629.000000</td>\n", | |
" <td>58.500000</td>\n", | |
" </tr>\n", | |
" </tbody>\n", | |
"</table>\n", | |
"</div>" | |
], | |
"text/plain": [ | |
" price minimum_nights number_of_reviews reviews_per_month\n", | |
"count 48895.000000 48895.000000 48895.000000 38843.000000\n", | |
"mean 152.720687 7.029962 23.274466 1.373221\n", | |
"std 240.154170 20.510550 44.550582 1.680442\n", | |
"min 0.000000 1.000000 0.000000 0.010000\n", | |
"25% 69.000000 1.000000 1.000000 0.190000\n", | |
"50% 106.000000 3.000000 5.000000 0.720000\n", | |
"75% 175.000000 5.000000 24.000000 2.020000\n", | |
"max 10000.000000 1250.000000 629.000000 58.500000" | |
] | |
}, | |
"metadata": { | |
"tags": [] | |
}, | |
"execution_count": 56 | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "9m2kReN0DNzB", | |
"colab_type": "code", | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 296 | |
}, | |
"outputId": "232ed44d-f219-4703-dfbf-081fc9f6c2dd" | |
}, | |
"source": [ | |
"sns.boxplot(x='price', data=bnb)" | |
], | |
"execution_count": 6, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"data": { | |
"text/plain": [ | |
"<matplotlib.axes._subplots.AxesSubplot at 0x7ff28eb262b0>" | |
] | |
}, | |
"metadata": { | |
"tags": [] | |
}, | |
"execution_count": 6 | |
}, | |
{ | |
"output_type": "display_data", | |
"data":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ynp2vgO6wXK3sB/vsZj1kx8p/MJSe+GEP4yset5Sbl3SLuUvVeca++M77IukPRZ/LbnJUm3mNmMeAVyS2yrOyGEB0MIV4YQmpVdv38LIdwl6WVJt8duxXPOnYvbY/8Q25fHd9WvlnStsm9i1J0QwjFJH5nZdbHptyW9o3G8zsrehlhgZlPj6zw353G7zglVWde474SZLYjnsDNxrPLG4CZ4u7I/RfCBpG9735Qf5Vx+U9lvVfol7Y9f7creC/uxpEOS9ki6NPY3SX8T5/6WpJbEsX5fUjp+/Z733EY4/1b98qcjrlH2L1da0j9LmhzbL4yP03H/NYnnfzuei4MawbvGznP9dUm9ca3/Vdl3wcf1OkvaKOk9SW9L+ntlf8JhXK2zpB8qe897SNnveP6gmusqqSWevw8k/bWK3twt9cWvLQOAI96YAwBHhDAAOCKEAcARIQwAjghhAHBECOO8Z2Z/amaLvOsAzgU/oobzmpk1hBCGvesAzhVXwqhbZtYcP893e/xM32fjb3QdNrPvmNlPJd1hZk+Z2e3xOTea2V4zO2BmPzGzr1n2s5D/3MzejJ8L+4fOUwPyCGHUu+sk/W0IYa6kE8p+jq0kZUIIN4QQns51jL8a/4yk9SGEX1P28xD+T9nfivoshHCjpBslrYi/Ugu4I4RR7z4KIfx73P4HZX91XMqGbbHrJH0SQnhTkkIIJ0L2YxZvUfYzAPYr+9GjM5X9TAPAXePZuwCuit+0yD3+RQXHMElrQwj1+uE5mMC4Eka9u8rMFsbtOyW9foa+ByXNMrMbJSneD25U9lOvVsePIZWZzYkf0g64I4RR7w5K+iMze1fZTzL7XrmOIYQvJf2upM1mdkDSbmU/7esHyn4s40/jf/D4ffFdIOoEP6KGuhX/C6kXQgi/6lwKUDNcCQOAI66EAcARV8IA4IgQBgBHhDAAOCKEAcARIQwAjv4f/hBNri7JG6gAAAAASUVORK5CYII=\n", | |
"text/plain": [ | |
"<Figure size 432x288 with 1 Axes>" | |
] | |
}, | |
"metadata": { | |
"tags": [], | |
"needs_background": "light" | |
} | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "74O8VjkXJf8T", | |
"colab_type": "code", | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 296 | |
}, | |
"outputId": "871b0ff0-a8a3-451f-e045-e73d06db1eed" | |
}, | |
"source": [ | |
"sns.distplot(bnb.price, bins=10, )" | |
], | |
"execution_count": 97, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"data": { | |
"text/plain": [ | |
"<matplotlib.axes._subplots.AxesSubplot at 0x7ff28dc05588>" | |
] | |
}, | |
"metadata": { | |
"tags": [] | |
}, | |
"execution_count": 97 | |
}, | |
{ | |
"output_type": "display_data", | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAY0AAAEGCAYAAACZ0MnKAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+j8jraAAAgAElEQVR4nO3df5Rd5X3f+/fnnDMz+gEI/TIW4oeEkR0LtwEqU2hqLzckQWZ5Rb65EIt02SQlJcmFe9P69jbQ3IVbVrVq2qY0tsEOLcSE2ggCxJ7ryqE2pLGdxoLhp5Gw7AFsGFnAIAn91sycc773j/2c0dHROXP2SCONmP15rXXW7P3sZz9n73NG89Wzv89+tiICMzOzPErTfQBmZvbO4aBhZma5OWiYmVluDhpmZpabg4aZmeVWme4DOJ4WLVoUy5Ytm+7DMDN7R3nqqafeiojF7bbN6KCxbNkyBgYGpvswzMzeUST9tNM2X54yM7PcHDTMzCw3Bw0zM8vNQcPMzHJz0DAzs9wcNMzMLDcHDTMzy81Bw8zMcnPQmKRqrc7lf/Q/+f+e+9l0H4qZ2QnnoDFJ23Yd5KXhfbw0vHe6D8XM7IRz0JikrW8fAKBW9xMPzax4HDQmaWhnFjTGag4aZlY8uYKGpNWStkgalHRTm+19kh5I2zdKWta07eZUvkXS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ASUVORK5CYII=\n", | |
"text/plain": [ | |
"<Figure size 432x288 with 1 Axes>" | |
] | |
}, | |
"metadata": { | |
"tags": [], | |
"needs_background": "light" | |
} | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "6YWWbaXfDrYx", | |
"colab_type": "code", | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 34 | |
}, | |
"outputId": "11bedaf4-d910-4e35-bf99-b7f993a897cb" | |
}, | |
"source": [ | |
"# set threshold values\n", | |
"min_price_threshold, max_price_treshold = bnb.price.quantile([0.01, 0.90])\n", | |
"min_price_threshold, max_price_treshold" | |
], | |
"execution_count": 90, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"data": { | |
"text/plain": [ | |
"(30.0, 269.0)" | |
] | |
}, | |
"metadata": { | |
"tags": [] | |
}, | |
"execution_count": 90 | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "Vsbg4MN9ERnS", | |
"colab_type": "code", | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 34 | |
}, | |
"outputId": "84c31a19-936b-4ca0-b117-72684d42ef2d" | |
}, | |
"source": [ | |
"# count the price occurance\n", | |
"bnb[bnb.price<min_price_threshold].price.value_counts().sum()" | |
], | |
"execution_count": 91, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"data": { | |
"text/plain": [ | |
"404" | |
] | |
}, | |
"metadata": { | |
"tags": [] | |
}, | |
"execution_count": 91 | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "8uMQU4srFSHf", | |
"colab_type": "code", | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 34 | |
}, | |
"outputId": "53647172-8f60-46f8-c1cb-0fb53a5b966f" | |
}, | |
"source": [ | |
"# count the price occurance\n", | |
"bnb[bnb.price>max_price_treshold].price.value_counts().sum()" | |
], | |
"execution_count": 92, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"data": { | |
"text/plain": [ | |
"4878" | |
] | |
}, | |
"metadata": { | |
"tags": [] | |
}, | |
"execution_count": 92 | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "-PLMXlcBGFgO", | |
"colab_type": "code", | |
"colab": {} | |
}, | |
"source": [ | |
"bnb_no_outliers = bnb[(bnb.price>min_price_threshold) & (bnb.price<max_price_treshold) ]" | |
], | |
"execution_count": 0, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "gMKUAoMYGrr-", | |
"colab_type": "code", | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 34 | |
}, | |
"outputId": "1fd82e55-3b9a-4041-f2f4-2ce558818a5c" | |
}, | |
"source": [ | |
"bnb.shape, bnb_no_outliers.shape" | |
], | |
"execution_count": 94, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"data": { | |
"text/plain": [ | |
"((48895, 16), (43325, 16))" | |
] | |
}, | |
"metadata": { | |
"tags": [] | |
}, | |
"execution_count": 94 | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "nPgHbSDUG3kI", | |
"colab_type": "code", | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 296 | |
}, | |
"outputId": "d51e32ba-ebeb-496d-d0e6-b3ab0a9c0039" | |
}, | |
"source": [ | |
"sns.boxplot(x='price', data=bnb_no_outliers)" | |
], | |
"execution_count": 95, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"data": { | |
"text/plain": [ | |
"<matplotlib.axes._subplots.AxesSubplot at 0x7ff28d8a1a90>" | |
] | |
}, | |
"metadata": { | |
"tags": [] | |
}, | |
"execution_count": 95 | |
}, | |
{ | |
"output_type": "display_data", | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAWAAAAEGCAYAAABbzE8LAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0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qrqa+UsYvjLz1waAVqe7B4AXsPdJipt//u9DfI5KsjXG+OBiRoLFcA+Y4+6bq+oHpss/meSfb3Hdx5PcU1X3Jsl0/vd0kg8m+dnp5QxTVd8+vYoetBJgjrvHM3/B/WtJXpH5C3Dva4zx5SQ/nmS7qh5O8qEkL0/y+0k+meSh6Zd6/m48+uMY8G1oHFvTr575mzHGdzePAkfCPWCAJu4BAzRxDxigiQADNBFggCYCDNBEgAGa/B8quxjd1RvOEQAAAABJRU5ErkJggg==\n", | |
"text/plain": [ | |
"<Figure size 432x288 with 1 Axes>" | |
] | |
}, | |
"metadata": { | |
"tags": [], | |
"needs_background": "light" | |
} | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "Km5wR5QtJrsj", | |
"colab_type": "code", | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 296 | |
}, | |
"outputId": "39966afb-6ad3-45a0-9d6e-322acaf66197" | |
}, | |
"source": [ | |
"sns.distplot(bnb_no_outliers.price, bins=10)" | |
], | |
"execution_count": 96, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"data": { | |
"text/plain": [ | |
"<matplotlib.axes._subplots.AxesSubplot at 0x7ff28d7cedd8>" | |
] | |
}, | |
"metadata": { | |
"tags": [] | |
}, | |
"execution_count": 96 | |
}, | |
{ | |
"output_type": "display_data", | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAYUAAAEGCAYAAACKB4k+AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+j8jraAAAgAElEQVR4nO3deXhc9Xno8e+rGe37ZtmWJUu25R0bL5h9i1lMSnAWEwxZSEJL2kCTNO3thduWpPRyG2iaNG2AhAYSSAHjuCRxiQNhJxiwLS/g3ZYtWYttWda+j5b3/jHHihBaRtJIZ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Q+0DFG/wjUpTKhlMkQkXkQSz70GrgP28eHlQ24HfuNOhKM2UD02A190RrRcBNT3arIIeX3a0j+F/zuDgZd3CTlO2/LjwEFV/X6vU2H9nQ1UrwnynWWKSIrzOhb/vjQH8SeHdU6xvt9Zf8sQ9c/tnvRR9MB/HP+IgmPA37kdzyjrMgv/yIf3gf3n6oO/3e9V4CjwCpDmdqwB1OVZ/I/lHfjbNe8YqB74R1E87HyHe4GVbsc/zHr9won7A+c/3rRe5f/Oqddh4Aa34x+kXpfhbxr6ANjj/Pl4uH9ng9RrInxnS4DdTh32Afc5x2fhT2RFwC+BaOd4jPO+yDk/a7D72zIXxhhjeoRr85ExxpgxYEnBGGNMD0sKxhhjelhSMMYY08OSgjHGmB6WFIwZBRG5X0SucTsOY4LFhqQaM0Ii4lFne1ljJgp7UjCmHyKSJyKHRORpETkoIptEJE78+148KCK7gJtF5Ociss655gIRecdZ5367iCQ6C5f9i4jscBZh+6rLVTNmUJYUjBnYPOARVV0ANOBflx6gWlWXq+qGcwWd5VaeA76hqkuBa4BW/DOf61X1AuAC4M+cZRSMCUmWFIwZWJmqbnVe/xf+pRPA/8O/r3nAKVXdAaCqDepfpvg6/GsF7cG/dHM6/nV1jAlJ3qGLGDNp9e1wO/e+eRj3EOAvVfWl4IRkzNiyJwVjBpYrIhc7r28D3h6k7GFgmohcAOD0J3iBl4C/cJZxRkTmOivhGhOSLCkYM7DD+Dc8Ogik4t+gpV/q3xb2FuA/ROR9/LthxQA/BQ4Au0RkH/AT7AndhDAbkmpMP5wtHF9Q1cUuh2LMuLInBWOMMT3sScEYY0wPe1IwxhjTw5KCMcaYHpYUjDHG9LCkYIwxpoclBWOMMT3+P4FzG8YFC1zHAAAAAElFTkSuQmCC\n", | |
"text/plain": [ | |
"<Figure size 432x288 with 1 Axes>" | |
] | |
}, | |
"metadata": { | |
"tags": [], | |
"needs_background": "light" | |
} | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "YtNwvtBsTZSG", | |
"colab_type": "code", | |
"colab": {} | |
}, | |
"source": [ | |
"" | |
], | |
"execution_count": 0, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"id": "Nm-NTqEFTa9-", | |
"colab_type": "text" | |
}, | |
"source": [ | |
"# **Exercise 2**\n", | |
"---\n", | |
"source: [house prices](https://raw.githubusercontent.com/codebasics/py/master/ML/FeatureEngineering/2_outliers_z_score/Exercise/bhp.csv)" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"id": "jwZuNSz0VG09", | |
"colab_type": "text" | |
}, | |
"source": [ | |
"### Import dataset" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "CXc1NgdXTzsW", | |
"colab_type": "code", | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 197 | |
}, | |
"outputId": "a9b0f9f5-6532-4e86-9cf0-4efe1cb2d6a3" | |
}, | |
"source": [ | |
"house = pd.read_csv('https://raw.githubusercontent.com/codebasics/py/master/ML/FeatureEngineering/2_outliers_z_score/Exercise/bhp.csv')\n", | |
"house.head()" | |
], | |
"execution_count": 99, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"data": { | |
"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>location</th>\n", | |
" <th>size</th>\n", | |
" <th>total_sqft</th>\n", | |
" <th>bath</th>\n", | |
" <th>price</th>\n", | |
" <th>bhk</th>\n", | |
" <th>price_per_sqft</th>\n", | |
" </tr>\n", | |
" </thead>\n", | |
" <tbody>\n", | |
" <tr>\n", | |
" <th>0</th>\n", | |
" <td>Electronic City Phase II</td>\n", | |
" <td>2 BHK</td>\n", | |
" <td>1056.0</td>\n", | |
" <td>2.0</td>\n", | |
" <td>39.07</td>\n", | |
" <td>2</td>\n", | |
" <td>3699</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>1</th>\n", | |
" <td>Chikka Tirupathi</td>\n", | |
" <td>4 Bedroom</td>\n", | |
" <td>2600.0</td>\n", | |
" <td>5.0</td>\n", | |
" <td>120.00</td>\n", | |
" <td>4</td>\n", | |
" <td>4615</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>2</th>\n", | |
" <td>Uttarahalli</td>\n", | |
" <td>3 BHK</td>\n", | |
" <td>1440.0</td>\n", | |
" <td>2.0</td>\n", | |
" <td>62.00</td>\n", | |
" <td>3</td>\n", | |
" <td>4305</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>3</th>\n", | |
" <td>Lingadheeranahalli</td>\n", | |
" <td>3 BHK</td>\n", | |
" <td>1521.0</td>\n", | |
" <td>3.0</td>\n", | |
" <td>95.00</td>\n", | |
" <td>3</td>\n", | |
" <td>6245</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>4</th>\n", | |
" <td>Kothanur</td>\n", | |
" <td>2 BHK</td>\n", | |
" <td>1200.0</td>\n", | |
" <td>2.0</td>\n", | |
" <td>51.00</td>\n", | |
" <td>2</td>\n", | |
" <td>4250</td>\n", | |
" </tr>\n", | |
" </tbody>\n", | |
"</table>\n", | |
"</div>" | |
], | |
"text/plain": [ | |
" location size total_sqft ... price bhk price_per_sqft\n", | |
"0 Electronic City Phase II 2 BHK 1056.0 ... 39.07 2 3699\n", | |
"1 Chikka Tirupathi 4 Bedroom 2600.0 ... 120.00 4 4615\n", | |
"2 Uttarahalli 3 BHK 1440.0 ... 62.00 3 4305\n", | |
"3 Lingadheeranahalli 3 BHK 1521.0 ... 95.00 3 6245\n", | |
"4 Kothanur 2 BHK 1200.0 ... 51.00 2 4250\n", | |
"\n", | |
"[5 rows x 7 columns]" | |
] | |
}, | |
"metadata": { | |
"tags": [] | |
}, | |
"execution_count": 99 | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "wkFbg0N7VXUV", | |
"colab_type": "code", | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 264 | |
}, | |
"outputId": "67e45da5-7a8d-416c-a80b-a83a37648b3c" | |
}, | |
"source": [ | |
"plt.hist(house.price, bins=20, rwidth=0.8, density=True)\n", | |
"\n", | |
"rng = np.arange(house.price.min(), house.price.max(), 0.1)\n", | |
"plt.plot(rng, norm.pdf(rng,house.price.mean(), house.price.std()))\n", | |
"plt.show()" | |
], | |
"execution_count": 126, | |
"outputs": [ | |
{ | |
"output_type": "display_data", | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAYAAAAD4CAYAAADlwTGnAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+j8jraAAAZKUlEQVR4nO3df3Bd5X3n8fdHkmXAEAO2go3tYiU2CTZ2+aE6DjB0w0+btHE6NY3JbOu2zDLNwi5Ms9s1kxmGMONpvGlLp1PSDLtQHJKNcRxo1YSEkpi0JQm2ZcDgHzjI2AQZg4UNhB/BtqTv/nGO4CKupCvp3nvu1fm8ZjT33Oc85+h7jiV9fM9z7nMVEZiZWf40ZF2AmZllwwFgZpZTDgAzs5xyAJiZ5ZQDwMwsp5qyLmAkpk6dGrNnz866DDOzurF169ZXIqKl2Lq6CoDZs2fT0dGRdRlmZnVD0vODrSvpEpCkJZJ2S+qUtKrI+omS7kvXb5I0u2DdzWn7bklXFrTvk/S0pCcl+a+6mVmVDfsKQFIjcAdwOdAFbJHUHhE7C7pdC7waEXMkrQDWAJ+TNA9YAc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C5wU0T8qnBdLZ3XInXW5DmNiN6IOIdkBoFFwMczLqmogXVKOhu4maTe3yK5rPO/Mixx3AdAzU05ERH708eDwAMkP8Av91/aSR8Ppt2zrn+kdWVWb0S8nP7C9QH/h/dezmdaq6QJJH9UvxUR96fNNXdei9VZq+e0X0S8BjwCfJLkkkn/G1sLv+9Ip6mpZJ1L0sttEckMyf9Ixud0vAdATU05IWmSpJP6l4ErgO28fyqNlcA/p8vtwB+ldwgsBl4vuHRQDSOt6yHgCkmnpJcLrkjbKm7A2MjvkZzX/lozmY4kvdZ8F7ArIv6mYFVNndfB6qzRc9oi6eR0+XiSzxTZRfIHdnnabeA5Hck0NZWs85mC4BfJOEXhOa3+71S5RpNr9YtkdP0XJNcJv5RxLR8hufNgG7Cjvx6Sa5I/Bp4FfgScGu/dSXBHWvvTQFsFa/s2ycv8YyTXGa8dTV3An5IMqHUCf1LFWu9Na3mK5JdpekH/L6W17gaWVutnA7iI5PLOU8CT6ddVtXZeh6izFs/pQuCJtKbtwC0Fv1ub0/PzHWBi2n5c+rwzXf+R4Y6hwnVuTM/pduCbvHenUCb/9p4Kwswsp8b7JSAzMxuEA8DMLKccAGZmOeUAMDPLKQeAmVlOOQDMzHLKAWBmllP/HzTOl5yBSH06AAAAAElFTkSuQmCC\n", | |
"text/plain": [ | |
"<Figure size 432x288 with 1 Axes>" | |
] | |
}, | |
"metadata": { | |
"tags": [], | |
"needs_background": "light" | |
} | |
} | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"id": "VvY2jmV4ZM6r", | |
"colab_type": "text" | |
}, | |
"source": [ | |
"## **Percentile**" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "3vGoC_a1ZKGk", | |
"colab_type": "code", | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 34 | |
}, | |
"outputId": "ae5b9621-7977-469a-d519-fb7ee5c73977" | |
}, | |
"source": [ | |
"min_house_price_threshold, max_house_price_threshold = house.price.quantile([0.001, 0.999])\n", | |
"min_house_price_threshold, max_house_price_threshold" | |
], | |
"execution_count": 128, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"data": { | |
"text/plain": [ | |
"(11.5, 2000.0)" | |
] | |
}, | |
"metadata": { | |
"tags": [] | |
}, | |
"execution_count": 128 | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "Plo0n0XcZ0hN", | |
"colab_type": "code", | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 34 | |
}, | |
"outputId": "f310fb5b-df0b-4acf-e180-feaeced8901b" | |
}, | |
"source": [ | |
"house_no_outliers = house[(house.price>min_house_price_threshold) & (house.price<max_house_price_threshold)]\n", | |
"house.shape, house_no_outliers.shape" | |
], | |
"execution_count": 129, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"data": { | |
"text/plain": [ | |
"((13200, 7), (13169, 7))" | |
] | |
}, | |
"metadata": { | |
"tags": [] | |
}, | |
"execution_count": 129 | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "R-bgC2OhaTmV", | |
"colab_type": "code", | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 34 | |
}, | |
"outputId": "8fb79e04-452a-4676-9c8e-d753fc19c92b" | |
}, | |
"source": [ | |
"# outliers removed\n", | |
"house.shape[0] - house_no_outliers.shape[0]" | |
], | |
"execution_count": 131, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"data": { | |
"text/plain": [ | |
"31" | |
] | |
}, | |
"metadata": { | |
"tags": [] | |
}, | |
"execution_count": 131 | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "LsY-wHmWbNEW", | |
"colab_type": "code", | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 264 | |
}, | |
"outputId": "e14874e0-b38f-4ce7-8bab-21a54e3b4290" | |
}, | |
"source": [ | |
"plt.hist(house_no_outliers.price, bins=20, rwidth=0.8, density=True)\n", | |
"\n", | |
"rng = np.arange(house_no_outliers.price.min(), house_no_outliers.price.max(), 0.1)\n", | |
"plt.plot(rng, norm.pdf(rng,house_no_outliers.price.mean(), house_no_outliers.price.std()))\n", | |
"plt.show()" | |
], | |
"execution_count": 132, | |
"outputs": [ | |
{ | |
"output_type": "display_data", | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAYUAAAD4CAYAAAAD6PrjAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+j8jraAAAdZElEQVR4nO3de3hddZ3v8fcnSVukxQIlItBqggQkFSi1VmZEVCrQqtBxBAkgVC1Tj6eojB495XhktDOdQ/XxNgzoYSyKiLa1yJgZKggWL4zaNoUCvRAJpUAr0lhKkUtbknznj7262IRcdpK998rl83qePFn7t35rre9aSfYn67oVEZiZmQFUZF2AmZkNHg4FMzNLORTMzCzlUDAzs5RDwczMUlVZF9AXhx12WNTU1GRdhpnZkLFu3bo/R0R1of2HVCjU1NTQ1NSUdRlmZkOGpEf70t+Hj8zMLOVQMDOzlEPBzMxSDgUzM0s5FMzMLOVQMDOzlEPBzMxSDgUzM0s5FMzMLDWk7mgeqJoFt/ap/9ar3luiSszMBifvKZiZWcqhYGZmKYeCmZmlHApmZpZyKJiZWaqgUJA0U1KzpBZJC7oYP0bSsmT8akk1eeOuSNqbJZ2VtB0naX3e1zOSLi/WSpmZWf/0ekmqpErgGuAMYBuwVlJjRGzK6zYX2BURx0hqABYD50uqBxqAycCRwJ2Sjo2IZmBK3vy3A7cUcb3MzKwfCtlTmA60RMSWiNgHLAVmd+ozG7ghGV4BzJCkpH1pROyNiEeAlmR++WYAD0dEnz4dyMzMiq+QUDgKeDzv9bakrcs+EdEG7AYmFDhtA/Cjwks2M7NSyfREs6TRwDnAj3voM09Sk6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W8AZgCvAEuV3UrJwaEVOBWcB8Saflj0z+88nsmmXlbmw8B/hx0jSYtt3LZL2tuiPp8+TuEbopaXoCeF1EnAx8GvihpFeXuaxB+3PMcwEv/2ckk+3WxftHqlS/c8M1FAbFYzQkjSL3A70pIn4CEBFPRkR7RHQA/8ZLhznKXnNEbE++7wBuSWp5cv9hoeT7jqzqIxdW90TEk0mdg2bbJfq6rcpap6QPA+8DLkreQEgOzexMhteRO1Z/bFJH/iGmktXWj59jubdbFfC3wLK8msu+3bp6/6AMv3PDNRQyf4xGckxyCbA5Ir6W155/HP79wP4rH7p7JEip6hsr6aD9w+ROTG7g5Y8smQP8NK++S5KrHE4BduftxpbKy/5bGyzbLk9ft9XtwJmSDkkOmZyZtBWdch9i9TngnIh4Pq+9WrnPSEHS0eS21ZakvmcknZL87l6Stz7Frq2vP8dy/z2/G3gwItLDQuXebt29f1CO37mBniUfrF/kzsb/gVyifz6D5Z9KbtfufmB98vUe4EbggaS9ETgib5rPJ/U2U4QrGHqp72hyV3HcB2zcv43IPfL8F8BDwJ3AoUm7yH0w0sNJ/dNKXN9Ycg9VHJ/Xltm2IxdOTwAvkjsuO7c/24rc8f2W5OsjJaythdyx5P2/e99O+n4g+XmvB+4Bzs6bzzRyb9APA/9K8sSDEtTW559jKf6eu6otaf8e8D869S33duvu/aPkv3N+zIWZmaWG6+EjMzPrB4eCmZmlHApmZpZyKJiZWcqhYGZmKYeCmZmlHApmZpb6bxDQWLkWejY8AAAAAElFTkSuQmCC\n", | |
"text/plain": [ | |
"<Figure size 432x288 with 1 Axes>" | |
] | |
}, | |
"metadata": { | |
"tags": [], | |
"needs_background": "light" | |
} | |
} | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"id": "QTCBRuExaiqM", | |
"colab_type": "text" | |
}, | |
"source": [ | |
"## **IQR 4 std**" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "7eVhLOkSbHO1", | |
"colab_type": "code", | |
"colab": {} | |
}, | |
"source": [ | |
"# Set house price bounds\n", | |
"upper_bound = house.price.mean() + 4*house.price.std()\n", | |
"lower_bound = house.price.mean() - 4*house.price.std()" | |
], | |
"execution_count": 0, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "FP7O-13aahRv", | |
"colab_type": "code", | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 34 | |
}, | |
"outputId": "e6e534d1-1e0c-4a5a-88c5-9ec52bb421dd" | |
}, | |
"source": [ | |
"house_no_outliers_iqr = house[(house.price>lower_bound) & (house.price<upper_bound)]\n", | |
"house.shape, house_no_outliers_iqr.shape" | |
], | |
"execution_count": 137, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"data": { | |
"text/plain": [ | |
"((13200, 7), (13093, 7))" | |
] | |
}, | |
"metadata": { | |
"tags": [] | |
}, | |
"execution_count": 137 | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "7eqGL0R9cVQk", | |
"colab_type": "code", | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 34 | |
}, | |
"outputId": "b0e7cb60-2b28-4ec7-e99e-4c82e39769c8" | |
}, | |
"source": [ | |
"house.shape[0] - house_no_outliers_iqr.shape[0]" | |
], | |
"execution_count": 138, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"data": { | |
"text/plain": [ | |
"107" | |
] | |
}, | |
"metadata": { | |
"tags": [] | |
}, | |
"execution_count": 138 | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "aiUXHS4zclLt", | |
"colab_type": "code", | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 267 | |
}, | |
"outputId": "ec5fe407-b3d1-476f-c5ee-05ebcfc90f4c" | |
}, | |
"source": [ | |
"plt.hist(house_no_outliers_iqr.price, bins=20, rwidth=0.8, density=True)\n", | |
"\n", | |
"rng = np.arange(house_no_outliers_iqr.price.min(), house_no_outliers_iqr.price.max(), 0.1)\n", | |
"plt.plot(rng, norm.pdf(rng,house_no_outliers_iqr.price.mean(), house_no_outliers_iqr.price.std()))\n", | |
"plt.show()" | |
], | |
"execution_count": 139, | |
"outputs": [ | |
{ | |
"output_type": "display_data", | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAYAAAAD7CAYAAABjVUMJAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+j8jraAAAfEUlEQVR4nO3dfZwWdb3/8dd7b1FUQFjvgGRN1LDSdMPM7k1FTdHCI95XmGZyuj0V5snK8hzt0TlZaZo/UVFJMMzch2J470krZEVLAakVUECTFQGDBPbm8/tjBr3adtkL2N252Hk/H4997Mx3vjPXZ/Zxcb2Z+c7MpYjAzMzypyzrAszMLBsOADOznHIAmJnllAPAzCynHABmZjnlADAzy6miAkDSGEkLJTVKmtTB8mpJ09PlsyWNSNsHS3pY0lpJVxX031HSPZKekzRP0uXdtUNmZlacLgNAUjlwNXAsMAo4TdKodt0mAKsiYl/gx8AVaft64NvAf3Sw6R9FxAHAe4AjJB27dbtgZmZbo6KIPqOBxohYBCBpGjAWmF/QZyzw3XR6BnCVJEXEOuAxSfsWbjAi/gE8nE5vlDQXGNZVIUOGDIkRI0YUUbKZmQEMGTKEWbNmzYqIMe2XFRMAQ4GlBfPLgMM66xMRLZLWAIOBV7vauKSBwAnAT7rqO2LECBoaGooo2czMNpE0pKP2TAeBJVUAtwE/3XSE0UGf8yQ1SGpoamrq3QLNzPqwYgJgOTC8YH5Y2tZhn/RDfQCwsohtXwf8NSKu7KxDRFwXEXURUVdTU1PEJs3MrBjFBMAcYKSkWklVwHigvl2feuCcdHoc8FB08ZQ5ST8gCYovb1nJZmbWHbocA0jP6U8EZgHlwA0RMU/SpUBDRNQDk4FbJDUCr5GEB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Dzz8DT6c9xpVoz8G7gqbTeZ4FL0vZ9SJ4/1UhyWF2dtvdL5xvT5ftk9L74CG9dBVSytaa1/Sn9mbfp31Wpvh/SGg4GGtL3xG+AQSVeb3+SI7sBBW09Wq/vBDYzy6m+eArIzMyK4AAwM8spB4CZWU45AMzMcsoBYGaWUw4AM7OccgCYmeWUA8DMLKf+P7jwNDJwWbT9AAAAAElFTkSuQmCC\n", | |
"text/plain": [ | |
"<Figure size 432x288 with 1 Axes>" | |
] | |
}, | |
"metadata": { | |
"tags": [], | |
"needs_background": "light" | |
} | |
} | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"id": "X8C_qMutc1V5", | |
"colab_type": "text" | |
}, | |
"source": [ | |
"## **Z-Score**" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "MDl9sRuuc6t3", | |
"colab_type": "code", | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 197 | |
}, | |
"outputId": "776cb13f-5e1c-48e7-e435-6010288c7c50" | |
}, | |
"source": [ | |
"# calculate the z-score for each house price\n", | |
"house['price_Zscore'] = (house.price - house.price.mean()) / house.price.std()\n", | |
"house[['price','price_Zscore']].head()" | |
], | |
"execution_count": 143, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"data": { | |
"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>price</th>\n", | |
" <th>price_Zscore</th>\n", | |
" </tr>\n", | |
" </thead>\n", | |
" <tbody>\n", | |
" <tr>\n", | |
" <th>0</th>\n", | |
" <td>39.07</td>\n", | |
" <td>-0.490737</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>1</th>\n", | |
" <td>120.00</td>\n", | |
" <td>0.051777</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>2</th>\n", | |
" <td>62.00</td>\n", | |
" <td>-0.337026</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>3</th>\n", | |
" <td>95.00</td>\n", | |
" <td>-0.115811</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>4</th>\n", | |
" <td>51.00</td>\n", | |
" <td>-0.410764</td>\n", | |
" </tr>\n", | |
" </tbody>\n", | |
"</table>\n", | |
"</div>" | |
], | |
"text/plain": [ | |
" price price_Zscore\n", | |
"0 39.07 -0.490737\n", | |
"1 120.00 0.051777\n", | |
"2 62.00 -0.337026\n", | |
"3 95.00 -0.115811\n", | |
"4 51.00 -0.410764" | |
] | |
}, | |
"metadata": { | |
"tags": [] | |
}, | |
"execution_count": 143 | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "G6sNLgW6eBc1", | |
"colab_type": "code", | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 34 | |
}, | |
"outputId": "0834b913-5e29-4c92-f014-ae57783a81a8" | |
}, | |
"source": [ | |
"house_no_outliers_zscore = house[(house.price_Zscore>-4) & (house.price_Zscore<4)]\n", | |
"house.shape, house_no_outliers_zscore.shape" | |
], | |
"execution_count": 144, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"data": { | |
"text/plain": [ | |
"((13200, 8), (13093, 8))" | |
] | |
}, | |
"metadata": { | |
"tags": [] | |
}, | |
"execution_count": 144 | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "FV0D65e6eqFl", | |
"colab_type": "code", | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 34 | |
}, | |
"outputId": "51744695-d42b-4303-85a5-963bcb3297da" | |
}, | |
"source": [ | |
"house.shape[0] - house_no_outliers_zscore.shape[0]" | |
], | |
"execution_count": 145, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"data": { | |
"text/plain": [ | |
"107" | |
] | |
}, | |
"metadata": { | |
"tags": [] | |
}, | |
"execution_count": 145 | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "Gr7ituEye3Z-", | |
"colab_type": "code", | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 267 | |
}, | |
"outputId": "86109545-edec-4f59-82b0-63ee001858ec" | |
}, | |
"source": [ | |
"plt.hist(house_no_outliers_zscore.price, bins=20, rwidth=0.8, density=True)\n", | |
"\n", | |
"rng = np.arange(house_no_outliers_zscore.price.min(), house_no_outliers_zscore.price.max(), 0.1)\n", | |
"plt.plot(rng, norm.pdf(rng,house_no_outliers_zscore.price.mean(), house_no_outliers_zscore.price.std()))\n", | |
"plt.show()" | |
], | |
"execution_count": 146, | |
"outputs": [ | |
{ | |
"output_type": "display_data", | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAYAAAAD7CAYAAABjVUMJAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+j8jraAAAfEUlEQVR4nO3dfZwWdb3/8dd7b1FUQFjvgGRN1LDSdMPM7k1FTdHCI95XmGZyuj0V5snK8hzt0TlZaZo/UVFJMMzch2J470krZEVLAakVUECTFQGDBPbm8/tjBr3adtkL2N252Hk/H4997Mx3vjPXZ/Zxcb2Z+c7MpYjAzMzypyzrAszMLBsOADOznHIAmJnllAPAzCynHABmZjnlADAzy6miAkDSGEkLJTVKmtTB8mpJ09PlsyWNSNsHS3pY0lpJVxX031HSPZKekzRP0uXdtUNmZlacLgNAUjlwNXAsMAo4TdKodt0mAKsiYl/gx8AVaft64NvA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rCM5hfKmEqsXgHTc50TgV+2X9US9fTEAinl0Ral4RdKeAOnvFWl7SeyDpEqSD/+pEfHrtLmkawaIiNXAwySnUQYqeTxJ+5rerFf//PiS3nAEcKKkJcA0ktNAPynRWt8UEcvT3yuAO0lCtlTfD8uAZRExO52fQRIIpVrvJscCcyPilXS+R+vtiwGwPT1movARGueQnGff1H52OtL/PmBNwWFgr5Akkju8F0TE/xYsKsmaJdVIGphO70AyXrGAJAjGdVJvR48v6XERcVFEDIuIESTvz4ci4oxSrHUTSf0l7bxpmuQ89bOU6PshIv4GLJW0f9p0JMkTCUqy3gKn8dbpn0119Vy9WQxy9MIgynEkV608D1ycdT1pTbcBLwPNJP87mUByHvdB4K/AA8CuaV+RfGHO88AzQF0G9X6A5HDzz8DT6c9xpVoz8G7gqbTeZ4FL0vZ9SJ4/1UhyWF2dtvdL5xvT5ftk9L74CG9dBVSytaa1/Sn9mbfp31Wpvh/SGg4GGtL3xG+AQSVeb3+SI7sBBW09Wq/vBDYzy6m+eArIzMyK4AAwM8spB4CZWU45AMzMcsoBYGaWUw4AM7OccgCYmeWUA8DMLKf+P7jwNDJwWbT9AAAAAElFTkSuQmCC\n", | |
"text/plain": [ | |
"<Figure size 432x288 with 1 Axes>" | |
] | |
}, | |
"metadata": { | |
"tags": [], | |
"needs_background": "light" | |
} | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Good job.