From 9030e611d6dea7470c18dd5c5ae18db6b8a96ab7 Mon Sep 17 00:00:00 2001 From: Priya Aggarwal <33100551+priyaggarwal@users.noreply.github.com> Date: Mon, 12 Mar 2018 15:42:26 -0700 Subject: [PATCH] Add files via upload --- Data-X HW0 Sp18.ipynb | 593 +++ Data-X HW1 Sp18.ipynb | 3950 ++++++++++++++ Energy.csv | 1 + Eye_Color.csv | 2069 ++++++++ Lab 2 - Clustering - Sp18.ipynb | 1335 +++++ Lab3_Decision_Trees.ipynb | 511 ++ Pre-Lab 2 Tutorial.ipynb | 469 ++ diabetesdata.csv | 1 + ...egression_classification_webscraping.ipynb | 2744 ++++++++++ web_scraping.ipynb | 4522 +++++++++++++++++ 10 files changed, 16195 insertions(+) create mode 100644 Data-X HW0 Sp18.ipynb create mode 100644 Data-X HW1 Sp18.ipynb create mode 100644 Energy.csv create mode 100644 Eye_Color.csv create mode 100644 Lab 2 - Clustering - Sp18.ipynb create mode 100644 Lab3_Decision_Trees.ipynb create mode 100644 Pre-Lab 2 Tutorial.ipynb create mode 100644 diabetesdata.csv create mode 100644 hw2_regression_classification_webscraping.ipynb create mode 100644 web_scraping.ipynb diff --git a/Data-X HW0 Sp18.ipynb b/Data-X HW0 Sp18.ipynb new file mode 100644 index 0000000..cceab11 --- /dev/null +++ b/Data-X HW0 Sp18.ipynb @@ -0,0 +1,593 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Homework 0\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "In this homework you will complete a couple of simple exercises in order to show your understanding with Python. If these exercises are challenging or new to you, you may want to reconsider taking the class and/or brush up on your Python skills. For the following exercises you are not allowed to use any Python packages (i.e. Numpy, Pandas, etc.)." + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Lists" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Create an empty Python list called 'a' in the cell below." + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "[]" + ] + }, + "execution_count": 6, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "a = []\n", + "a" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Store all values between 1-100 (inclusive) with increments of 3 (i.e. 1, 4, 7...) in 'a'." + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[1, 4, 7, 10, 13, 16, 19, 22, 25, 28, 31, 34, 37, 40, 43, 46, 49, 52, 55, 58, 61, 64, 67, 70, 73, 76, 79, 82, 85, 88, 91, 94, 97, 100]\n" + ] + } + ], + "source": [ + "a = list(range(1,101,3))\n", + "print(a)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Create another list called 'a2' with numbers from 2-46 (inclusive) with increments of 0.5 (i.e. 2, 2.5, 3...)." + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[2.0, 2.5, 3.0, 3.5, 4.0, 4.5, 5.0, 5.5, 6.0, 6.5, 7.0, 7.5, 8.0, 8.5, 9.0, 9.5, 10.0, 10.5, 11.0, 11.5, 12.0, 12.5, 13.0, 13.5, 14.0, 14.5, 15.0, 15.5, 16.0, 16.5, 17.0, 17.5, 18.0, 18.5, 19.0, 19.5, 20.0, 20.5, 21.0, 21.5, 22.0, 22.5, 23.0, 23.5, 24.0, 24.5, 25.0, 25.5, 26.0, 26.5, 27.0, 27.5, 28.0, 28.5, 29.0, 29.5, 30.0, 30.5, 31.0, 31.5, 32.0, 32.5, 33.0, 33.5, 34.0, 34.5, 35.0, 35.5, 36.0, 36.5, 37.0, 37.5, 38.0, 38.5, 39.0, 39.5, 40.0, 40.5, 41.0, 41.5, 42.0, 42.5, 43.0, 43.5, 44.0, 44.5, 45.0, 45.5, 46.0]\n" + ] + } + ], + "source": [ + "a2 = list(range(4,93,1))\n", + "a2 = [x/2 for x in a2]\n", + "print(a2) " + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Double every even integer element from list 'a'. Store the results back in 'a'." + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[1, 8, 7, 20, 13, 32, 19, 44, 25, 56, 31, 68, 37, 80, 43, 92, 49, 104, 55, 116, 61, 128, 67, 140, 73, 152, 79, 164, 85, 176, 91, 188, 97, 200]\n" + ] + } + ], + "source": [ + "for i,x in enumerate(a):\n", + " if x%2 == 0:\n", + " a[i] = a[i] * 2\n", + "print(a)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Add all numbers in 'a' except for the 2nd and 21st elements (the 2nd element here means the element at list index 1)." + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "2532\n" + ] + } + ], + "source": [ + "asum=0\n", + "for i,x in enumerate(a):\n", + " if i!=1 and i!=20:\n", + " asum = asum + a[i]\n", + "print(asum) " + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Calculate the mean of 'a'." + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "2601\n" + ] + }, + { + "data": { + "text/plain": [ + "76.5" + ] + }, + "execution_count": 18, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "total = 0\n", + "for i,x in enumerate(a):\n", + " total = total + x\n", + "print(total)\n", + "mean = total/len(a)\n", + "mean" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Strings" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Create an empty list called 'b'." + ] + }, + { + "cell_type": "code", + "execution_count": 55, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[]\n" + ] + } + ], + "source": [ + "b = list()\n", + "print(b)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Store the words in the sentence below as elements into the list 'b'. \n", + "\n", + "'I am so excited about Data-X. It is important to be able to work with data.'" + ] + }, + { + "cell_type": "code", + "execution_count": 57, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "['I', 'am', 'so', 'excited', 'about', 'Data-X.', 'It', 'is', 'important', 'to', 'be', 'able', 'to', 'work', 'with', 'data.']\n" + ] + } + ], + "source": [ + "complete_sentence = 'I am so excited about Data-X. It is important to be able to work with data.'\n", + "b = complete_sentence.split()\n", + "print(b)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Return the count of the occurences of the lower-case letter 'e' in the list 'b'." + ] + }, + { + "cell_type": "code", + "execution_count": 58, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "I*am*so*excited*about*Data-X.*It*is*important*to*be*able*to*work*with*data.\n", + "4\n" + ] + } + ], + "source": [ + "b_full = ('*'.join(b))\n", + "print(b_full)\n", + "b_e = b_full.count('e')\n", + "print(b_e)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Replace every lower- or upper-case letter 'i' in the list b with a '1'." + ] + }, + { + "cell_type": "code", + "execution_count": 60, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "['I', '*', 'a', 'm', '*', 's', 'o', '*', 'e', 'x', 'c', 'i', 't', 'e', 'd', '*', 'a', 'b', 'o', 'u', 't', '*', 'D', 'a', 't', 'a', '-', 'X', '.', '*', 'I', 't', '*', 'i', 's', '*', 'i', 'm', 'p', 'o', 'r', 't', 'a', 'n', 't', '*', 't', 'o', '*', 'b', 'e', '*', 'a', 'b', 'l', 'e', '*', 't', 'o', '*', 'w', 'o', 'r', 'k', '*', 'w', 'i', 't', 'h', '*', 'd', 'a', 't', 'a', '.']\n", + "['I', 'am', 'so', 'excited', 'about', 'Data-X.', 'It', 'is', 'important', 'to', 'be', 'able', 'to', 'work', 'with', 'data.']\n", + "['1', 'am', 'so', 'exc1ted', 'about', 'Data-X.', '1t', '1s', '1mportant', 'to', 'be', 'able', 'to', 'work', 'w1th', 'data.']\n" + ] + } + ], + "source": [ + "b2 = list(b_full)\n", + "print(b2)\n", + "for i,x in enumerate(b2):\n", + " if x == 'i' or x== 'I':\n", + " b2[i] = '1'\n", + "\n", + " if x == '*':\n", + " b2[i] = ' '\n", + "print(b)\n", + "b_full = (''.join(b2))\n", + "b = b_full.split(' ')\n", + "print(b)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Append the string \"This is the end of the first HW.\" to the list 'b'." + ] + }, + { + "cell_type": "code", + "execution_count": 61, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "['This', 'is', 'the', 'end', 'of', 'the', 'first', 'HW']\n", + "['1', 'am', 'so', 'exc1ted', 'about', 'Data-X.', '1t', '1s', '1mportant', 'to', 'be', 'able', 'to', 'work', 'w1th', 'data.', 'This', 'is', 'the', 'end', 'of', 'the', 'first', 'HW']\n" + ] + } + ], + "source": [ + "ns = \"This is the end of the first HW\"\n", + "ns1 = ns.split(' ')\n", + "print(ns1)\n", + "for x in ns1:\n", + " b.append(x)\n", + "print(b)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Print 'b' as ONE string backwards (starting with \"WH tsrif...\")." + ] + }, + { + "cell_type": "code", + "execution_count": 62, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "1 am so exc1ted about Data-X. 1t 1s 1mportant to be able to work w1th data. This is the end of the first HW\n", + "\n", + "WH tsrif eht fo dne eht si sihT .atad ht1w krow ot elba eb ot tnatropm1 s1 t1 .X-ataD tuoba det1cxe os ma 1\n" + ] + } + ], + "source": [ + "b_3 = (' '.join(b))\n", + "print(b_3)\n", + "b = b_3[::-1]\n", + "print (type(b))\n", + "print(b)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Dictionaries" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "Put the following in a dictionary called 'codes':\n", + "\n", + "Keys: 1001, 1002, 1003, 1004, 1005 \n", + "Values: 'Alpha', Beta, 'Gamma, 'Delta', 'Tau'\n", + "\n", + "then traverse the dictionary by its keys and change every value to be all lower case." + ] + }, + { + "cell_type": "code", + "execution_count": 78, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "{1001: 'alpha', 1002: 'beta', 1003: 'gamma', 1004: 'delta', 1005: 'tau'}" + ] + }, + "execution_count": 78, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "codes=dict([(1001,'Alpha'),(1002,'Beta'),(1003,'Gamma'),(1004,'Delta'),(1005,'Tau')])\n", + "list(codes.keys())\n", + "codes1= {k:v.lower() for k, v in codes.items()}\n", + "codes1" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Delete 'alpha' from the dictionary." + ] + }, + { + "cell_type": "code", + "execution_count": 82, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "{1002: 'beta', 1003: 'gamma', 1004: 'delta', 1005: 'tau'}\n" + ] + } + ], + "source": [ + "for k,v in codes1.items():\n", + " if v =='alpha':\n", + " del codes1[k]\n", + "print(codes1)\n", + "#del codes[1001]\n", + "#codes" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Sets" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Create a set called 'c' with the all the odd numbers less than 10." + ] + }, + { + "cell_type": "code", + "execution_count": 50, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "{1, 3, 5, 7, 9}\n" + ] + } + ], + "source": [ + "c = {1,3,5,7,9}\n", + "print(c)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Create another set called 'd' with elements 2, 5, 10, 30." + ] + }, + { + "cell_type": "code", + "execution_count": 51, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "{2, 10, 5, 30}\n" + ] + } + ], + "source": [ + "d = {2,5,10,30}\n", + "print(d)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Find the union between sets 'c' and 'd' and store this in a new set called 'e'." + ] + }, + { + "cell_type": "code", + "execution_count": 52, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "{1, 2, 3, 5, 7, 9, 10, 30}\n" + ] + } + ], + "source": [ + "e = c|d\n", + "print(e)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Find the intersection between sets 'c' and 'd'." + ] + }, + { + "cell_type": "code", + "execution_count": 54, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "{5}\n" + ] + } + ], + "source": [ + "print(c&d)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.6.3" + } + }, + "nbformat": 4, + "nbformat_minor": 1 +} diff --git a/Data-X HW1 Sp18.ipynb b/Data-X HW1 Sp18.ipynb new file mode 100644 index 0000000..ba23cb0 --- /dev/null +++ b/Data-X HW1 Sp18.ipynb @@ -0,0 +1,3950 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Homework 1" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "In this homework, you will get a chance to do some exercises with Numpy, Pandas, and Matplotlib to show us your understanding with this libraries. \n", + "\n", + "If you have questions, Google! Additionally you can ask your peers questions on Piazza and/or go to Office Hours.\n", + "\n", + "This homework is due **Thursday Feb. 8th, 2018 at 11:59 PM**. Please upload your .ipynb to your private repo on Github. Additionally, submit a pdf on bCourses and in the comment section include a link to your private repo.\n", + "\n", + "This homework is long, please start early!" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "import numpy as np\n", + "import pandas as pd\n", + "import matplotlib.pyplot as plt\n", + "%matplotlib inline" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## NumPy Basics" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Create two numpy arrays (`a` and `b`). `a` should be all integers between 10-19 (inclusive), and `b` should be ten evenly spaced numbers between 1-7. Print the results below." + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "a: [10 11 12 13 14 15 16 17 18 19]\n", + "b: [ 1. 1.66666667 2.33333333 3. 3.66666667 4.33333333\n", + " 5. 5.66666667 6.33333333 7. ]\n" + ] + } + ], + "source": [ + "a = np.arange(10,20)\n", + "b = np.linspace(1,7,10)\n", + "\n", + "print(\"a: \", a)\n", + "print(\"b: \", b)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "For `a` and `b` above do the follow and print out the results.\n", + "\n", + "1. Square all the elements in both arrays (element-wise). \n", + "2. Add both the squared arrays (e.g. [1,2] + [3,4] = [4,6]). \n", + "3. Sum the elements with even indices of the added array. \n", + "4. Take the square root of the added array (element-wise square root)." + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "1. [100 121 144 169 196 225 256 289 324 361] [ 1. 2.77777778 5.44444444 9. 13.44444444\n", + " 18.77777778 25. 32.11111111 40.11111111 49. ]\n", + "2. [ 101. 123.77777778 149.44444444 178. 209.44444444\n", + " 243.77777778 281. 321.11111111 364.11111111 410. ]\n", + "3. 1105.0\n", + "4. [ 10.04987562 11.12554618 12.22474721 13.34166406 14.47219556\n", + " 15.61338457 16.76305461 17.91957341 19.08169571 20.24845673]\n" + ] + } + ], + "source": [ + "asq= a**2\n", + "bsq=b**2\n", + "#############################\n", + "#c=len(b)\n", + "#d=len(a)\n", + "#diff=c-d\n", + "#zero=np.zeros(diff)\n", + "#newa=np.append(a**2,zero)\n", + "#print(newa)\n", + "two = asq+bsq\n", + "#############################\n", + "evensum=0\n", + "for i in range(len(two)):\n", + " if i%2==0:\n", + " evensum=evensum+two[i]\n", + " three=evensum\n", + "############################\n", + "four = np.sqrt(two)\n", + "############################\n", + "print(\"1. \",asq,bsq)\n", + "print(\"2. \",two)\n", + "print(\"3. \",three)\n", + "print(\"4. \",four)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Append `b` to `a`. Reshape the appended array so that it is a 5x4, 2D-array and store the results in a variable called `m`. Print `m`." + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "m: [[ 10. 11. 12. 13. ]\n", + " [ 14. 15. 16. 17. ]\n", + " [ 18. 19. 1. 1.66666667]\n", + " [ 2.33333333 3. 3.66666667 4.33333333]\n", + " [ 5. 5.66666667 6.33333333 7. ]]\n" + ] + } + ], + "source": [ + "m = np.append(a,b).reshape(5,4)\n", + "\n", + "print(\"m: \", m)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Extract the second and the third column of the matrix `m`. Store the resulting 5x2 matrix in a new variable called `m2`. Print `m2`." + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "m2: [[ 11. 12. ]\n", + " [ 15. 16. ]\n", + " [ 19. 1. ]\n", + " [ 3. 3.66666667]\n", + " [ 5.66666667 6.33333333]]\n" + ] + } + ], + "source": [ + "m2 = m[:,1:3].reshape(5,2)\n", + "\n", + "print(\"m2: \", m2)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Take the dot product of `m2` and `m` store the results in a matrix called `m3`. Print `m3`.\n", + "Note that dot product of two matrices $A\\cdot B = A^T B$" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "m3: [[ 697.33333333 748.11111111 437.88888889 482.33333333]\n", + " [ 402.22222222 437.88888889 454.55555556 489.88888889]]\n" + ] + } + ], + "source": [ + "m3 = np.dot(m2.T,m)\n", + "\n", + "print(\"m3: \", m3)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Round the `m3` matrix to two decimal points. Store the result in place and print the new `m3`." + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "m3: [[ 697.33 748.11 437.89 482.33]\n", + " [ 402.22 437.89 454.56 489.89]]\n" + ] + } + ], + "source": [ + "m3 = m3.round(decimals=2)\n", + "\n", + "print(\"m3: \", m3)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Sort the `m3` array so that the highest value is at the top left, the next highest value to the right of the highest, and the lowest value is at the bottom right. Print the sorted `m3` array." + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "sorted m3: [[ 748.11 697.33 489.89 482.33]\n", + " [ 454.56 437.89 437.89 402.22]]\n" + ] + } + ], + "source": [ + "sorted_m3 = np.sort(m3,axis=None)[::-1].reshape(m3.shape)\n", + "print(\"sorted m3: \", sorted_m3)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## NumPy and Masks" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Create an array called `f` where there are 100 equally-spaced values from 0 to pi, inclusive.\n", + "Take the sin of the array `f` (element-wise) and store that in place. Print `f`." + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "f: [ 0.00000000e+00 3.17279335e-02 6.34239197e-02 9.50560433e-02\n", + " 1.26592454e-01 1.58001396e-01 1.89251244e-01 2.20310533e-01\n", + " 2.51147987e-01 2.81732557e-01 3.12033446e-01 3.42020143e-01\n", + " 3.71662456e-01 4.00930535e-01 4.29794912e-01 4.58226522e-01\n", + " 4.86196736e-01 5.13677392e-01 5.40640817e-01 5.67059864e-01\n", + " 5.92907929e-01 6.18158986e-01 6.42787610e-01 6.66769001e-01\n", + " 6.90079011e-01 7.12694171e-01 7.34591709e-01 7.55749574e-01\n", + " 7.76146464e-01 7.95761841e-01 8.14575952e-01 8.32569855e-01\n", + " 8.49725430e-01 8.66025404e-01 8.81453363e-01 8.95993774e-01\n", + " 9.09631995e-01 9.22354294e-01 9.34147860e-01 9.45000819e-01\n", + " 9.54902241e-01 9.63842159e-01 9.71811568e-01 9.78802446e-01\n", + " 9.84807753e-01 9.89821442e-01 9.93838464e-01 9.96854776e-01\n", + " 9.98867339e-01 9.99874128e-01 9.99874128e-01 9.98867339e-01\n", + " 9.96854776e-01 9.93838464e-01 9.89821442e-01 9.84807753e-01\n", + " 9.78802446e-01 9.71811568e-01 9.63842159e-01 9.54902241e-01\n", + " 9.45000819e-01 9.34147860e-01 9.22354294e-01 9.09631995e-01\n", + " 8.95993774e-01 8.81453363e-01 8.66025404e-01 8.49725430e-01\n", + " 8.32569855e-01 8.14575952e-01 7.95761841e-01 7.76146464e-01\n", + " 7.55749574e-01 7.34591709e-01 7.12694171e-01 6.90079011e-01\n", + " 6.66769001e-01 6.42787610e-01 6.18158986e-01 5.92907929e-01\n", + " 5.67059864e-01 5.40640817e-01 5.13677392e-01 4.86196736e-01\n", + " 4.58226522e-01 4.29794912e-01 4.00930535e-01 3.71662456e-01\n", + " 3.42020143e-01 3.12033446e-01 2.81732557e-01 2.51147987e-01\n", + " 2.20310533e-01 1.89251244e-01 1.58001396e-01 1.26592454e-01\n", + " 9.50560433e-02 6.34239197e-02 3.17279335e-02 1.22464680e-16]\n" + ] + } + ], + "source": [ + "f = np.sin(np.linspace(0,np.pi,100))\n", + "\n", + "print(\"f: \", f)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Use a 'mask' and print an array that is True when `f` >= 1/2 and False when `f` < 1/2.\n", + "Print an array sequence that has only those values where `f` >= 1/2." + ] + }, + { + "cell_type": "code", + "execution_count": 24, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[ 0.51367739 0.54064082 0.56705986 0.59290793 0.61815899 0.64278761\n", + " 0.666769 0.69007901 0.71269417 0.73459171 0.75574957 0.77614646\n", + " 0.79576184 0.81457595 0.83256985 0.84972543 0.8660254 0.88145336\n", + " 0.89599377 0.909632 0.92235429 0.93414786 0.94500082 0.95490224\n", + " 0.96384216 0.97181157 0.97880245 0.98480775 0.98982144 0.99383846\n", + " 0.99685478 0.99886734 0.99987413 0.99987413 0.99886734 0.99685478\n", + " 0.99383846 0.98982144 0.98480775 0.97880245 0.97181157 0.96384216\n", + " 0.95490224 0.94500082 0.93414786 0.92235429 0.909632 0.89599377\n", + " 0.88145336 0.8660254 0.84972543 0.83256985 0.81457595 0.79576184\n", + " 0.77614646 0.75574957 0.73459171 0.71269417 0.69007901 0.666769\n", + " 0.64278761 0.61815899 0.59290793 0.56705986 0.54064082 0.51367739]\n" + ] + } + ], + "source": [ + "mask = f>=0.5\n", + "print(f[mask])" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## NumPy and 2 Variable Prediction" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Let `x` be the number of miles a person drives per day and `y` be the dollars spent on buying car fuel per day.\n", + " \n", + "We have created 2 numpy arrays each of size 100 that represent `x` and `y`. \n", + "`x` (number of miles) ranges from 1 to 10 with a uniform noise of (0, 1/2). \n", + "`y` (money spent in dollars) will be from 1 to 20 with a uniform noise (0, 1). \n", + "\n", + "Run the cell below." + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "x = [ 1.34683976 1.12176759 1.51512398 1.55233174 1.40619168\n", + " 1.65075498 1.79399331 1.80243817 1.89844195 2.00100023\n", + " 2.3344038 2.22424872 2.24914511 2.36268477 2.49808849\n", + " 2.8212704 2.68452475 2.68229427 3.09511169 2.95703884\n", + " 3.09047742 3.2544361 3.41541904 3.40886375 3.50672677\n", + " 3.74960644 3.64861355 3.7721462 3.56368566 4.01092701\n", + " 4.15630694 4.06088549 4.02517179 4.25169402 4.15897504\n", + " 4.26835333 4.32520644 4.48563164 4.78490721 4.84614839\n", + " 4.96698768 5.18754259 5.29582013 5.32097781 5.0674106\n", + " 5.47601124 5.46852704 5.64537452 5.49642807 5.89755027\n", + " 5.68548923 5.76276141 5.94613234 6.18135713 5.96522091\n", + " 6.0275473 6.54290191 6.4991329 6.74003765 6.81809807\n", + " 6.50611821 6.91538752 7.01250925 6.89905417 7.31314433\n", + " 7.20472297 7.1043621 7.48199528 7.58957227 7.61744354\n", + " 7.6991707 7.85436822 8.03510784 7.80787781 8.22410224\n", + " 7.99366248 8.40581097 8.28913792 8.45971515 8.54227144\n", + " 8.6906456 8.61856507 8.83489887 8.66309658 8.94837987\n", + " 9.20890222 8.9614749 8.92608294 9.13231416 9.55889896\n", + " 9.61488451 9.54252979 9.42015491 9.90952569 10.00659591\n", + " 10.02504265 10.07330937 9.93489915 10.0892334 10.36509991]\n", + "y= [ 1.6635012 2.0214592 2.10816052 2.26016496 1.96287558\n", + " 2.9554635 3.02881887 3.33565296 2.75465779 3.4250107\n", + " 3.39670148 3.39377767 3.78503343 4.38293049 4.32963586\n", + " 4.03925039 4.73691868 4.30098399 4.8416329 4.78175957\n", + " 4.99765787 5.31746817 5.76844671 5.93723749 5.72811642\n", + " 6.70973615 6.68143367 6.57482731 7.17737603 7.54863252\n", + " 7.30221419 7.3202573 7.78023884 7.91133365 8.2765417\n", + " 8.69203281 8.78219865 8.45897546 8.89094715 8.81719921\n", + " 8.87106971 9.66192562 9.4020625 9.85990783 9.60359778\n", + " 10.07386266 10.6957995 10.66721916 11.18256285 10.57431836\n", + " 11.46744716 10.94398916 11.26445259 12.09754828 12.11988037\n", + " 12.121557 12.17613693 12.43750193 13.00912372 12.86407194\n", + " 13.24640866 12.76120085 13.11723062 14.07841099 14.19821707\n", + " 14.27289001 14.30624942 14.63060835 14.2770918 15.0744923\n", + " 14.45261619 15.11897313 15.2378667 15.27203124 15.32491892\n", + " 16.01095271 15.71250558 16.29488506 16.70618934 16.56555394\n", + " 16.42379457 17.18144744 17.13813976 17.69613625 17.37763019\n", + " 17.90942839 17.90343733 18.01951169 18.35727914 18.16841269\n", + " 18.61813748 18.66062754 18.81217983 19.44995194 19.7213867\n", + " 19.71966726 19.78961904 19.64385088 20.69719809 20.07974319]\n" + ] + } + ], + "source": [ + "# seed the random number generator with a fixed value\n", + "np.random.seed(500)\n", + "\n", + "x=np.linspace(1,10,100)+ np.random.uniform(low=0,high=.5,size=100) #purpose of this command????\n", + "y=np.linspace(1,20,100)+ np.random.uniform(low=0,high=1,size=100)\n", + "print ('x = ',x)\n", + "print ('y= ',y)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Find the expected value of `x` and the expected value of `y`." + ] + }, + { + "cell_type": "code", + "execution_count": 26, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "(5.7825325415879227, 11.012981683344968)" + ] + }, + "execution_count": 26, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "##### ignore\n", + "expx=np.mean(x)\n", + "expy=np.mean(y)\n", + "expx, expy" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Find the variance for `x` and `y`." + ] + }, + { + "cell_type": "code", + "execution_count": 27, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "7.03332752948\n", + "30.1139035755\n" + ] + } + ], + "source": [ + "##### ignore\n", + "varx=np.var(x)\n", + "vary=np.var(y)\n", + "print(varx)\n", + "print(vary)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Find the co-variance of `x` and `y`." + ] + }, + { + "cell_type": "code", + "execution_count": 28, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "array([[ 7.10437124, 14.65774383],\n", + " [ 14.65774383, 30.41808442]])" + ] + }, + "execution_count": 28, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "##### ignore\n", + "covar=np.cov(x,y)\n", + "covar" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Assume that the number of dollars spent on car fuel is only linearly dependent on the miles driven.\n", + "Write code that uses a linear predictor to calculate a predicted value of `y` for each `x`. \n", + "\n", + "i.e. $y_{predicted} = f(x) = mx + b.$" + ] + }, + { + "cell_type": "code", + "execution_count": 29, + "metadata": {}, + "outputs": [ + { + "ename": "SyntaxError", + "evalue": "invalid syntax (, line 1)", + "output_type": "error", + "traceback": [ + "\u001b[1;36m File \u001b[1;32m\"\"\u001b[1;36m, line \u001b[1;32m1\u001b[0m\n\u001b[1;33m y_predicted =\u001b[0m\n\u001b[1;37m ^\u001b[0m\n\u001b[1;31mSyntaxError\u001b[0m\u001b[1;31m:\u001b[0m invalid syntax\n" + ] + } + ], + "source": [ + "y_predicted =" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Predict `y` for each value in `x`, put the error into an array called $y_{error}$." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "y_error = np.array(y-y_predicted)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Write code that calculates the root mean square error (RMSE)." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "rmse = " + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Pandas" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Reading a File" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Read in a CSV file called 'data3.csv' into a dataframe called df.\n", + "\n", + "Data description\n", + "* Data source: http://www.fao.org/nr/water/aquastat/data/query/index.html\n", + "* Data, units\n", + " * GDP, current USD (CPI adjusted)\n", + " * NRI, mm/yr\n", + " * Population density, inhab/km^2\n", + " * Total area of the country, 1000 ha = 10km^2\n", + " * Total Population, unit 1000 inhabitants\n", + "\n", + "Display the first 10 lines of the dataframe." + ] + }, + { + "cell_type": "code", + "execution_count": 30, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
AreaArea IdVariable NameVariable IdYearValueSymbolMd
0Argentina9.0Total area of the country4100.01962.0278040.0ENaN
1Argentina9.0Total area of the country4100.01967.0278040.0ENaN
2Argentina9.0Total area of the country4100.01972.0278040.0ENaN
3Argentina9.0Total area of the country4100.01977.0278040.0ENaN
4Argentina9.0Total area of the country4100.01982.0278040.0ENaN
5Argentina9.0Total area of the country4100.01987.0278040.0ENaN
6Argentina9.0Total area of the country4100.01992.0278040.0ENaN
7Argentina9.0Total area of the country4100.01997.0278040.0ENaN
8Argentina9.0Total area of the country4100.02002.0278040.0ENaN
9Argentina9.0Total area of the country4100.02007.0278040.0ENaN
\n", + "
" + ], + "text/plain": [ + " Area Area Id Variable Name Variable Id Year \\\n", + "0 Argentina 9.0 Total area of the country 4100.0 1962.0 \n", + "1 Argentina 9.0 Total area of the country 4100.0 1967.0 \n", + "2 Argentina 9.0 Total area of the country 4100.0 1972.0 \n", + "3 Argentina 9.0 Total area of the country 4100.0 1977.0 \n", + "4 Argentina 9.0 Total area of the country 4100.0 1982.0 \n", + "5 Argentina 9.0 Total area of the country 4100.0 1987.0 \n", + "6 Argentina 9.0 Total area of the country 4100.0 1992.0 \n", + "7 Argentina 9.0 Total area of the country 4100.0 1997.0 \n", + "8 Argentina 9.0 Total area of the country 4100.0 2002.0 \n", + "9 Argentina 9.0 Total area of the country 4100.0 2007.0 \n", + "\n", + " Value Symbol Md \n", + "0 278040.0 E NaN \n", + "1 278040.0 E NaN \n", + "2 278040.0 E NaN \n", + "3 278040.0 E NaN \n", + "4 278040.0 E NaN \n", + "5 278040.0 E NaN \n", + "6 278040.0 E NaN \n", + "7 278040.0 E NaN \n", + "8 278040.0 E NaN \n", + "9 278040.0 E NaN " + ] + }, + "execution_count": 30, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "df = pd.read_csv(\"data3.csv\")\n", + "df.head(n=10)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Display the column names." + ] + }, + { + "cell_type": "code", + "execution_count": 31, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "Index(['Area', 'Area Id', 'Variable Name', 'Variable Id', 'Year', 'Value',\n", + " 'Symbol', 'Md'],\n", + " dtype='object')" + ] + }, + "execution_count": 31, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "df.columns" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Data Preprocessing" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Create a mask of NAN values (i.e. apply `.isnull` on the dataframe). Inspect the mask for 'True' values, they denote NANs. \n", + "*Hint: You will notice that the last 8 rows and the last column ('Other') have NAN values. You can also use df.tail() to see the last row.*\n", + "\n", + "Remove the bottom 8 rows from the dataframe because they contain NAN values. Also remove the column 'Other'." + ] + }, + { + "cell_type": "code", + "execution_count": 32, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
AreaArea IdVariable NameVariable IdYearValueSymbol
385United States of America231.0National Rainfall Index (NRI)4472.01981.0949.2E
386United States of America231.0National Rainfall Index (NRI)4472.01984.0974.6E
387United States of America231.0National Rainfall Index (NRI)4472.01992.01020.0E
388United States of America231.0National Rainfall Index (NRI)4472.01996.01005.0E
389United States of America231.0National Rainfall Index (NRI)4472.02002.0938.7E
\n", + "
" + ], + "text/plain": [ + " Area Area Id Variable Name \\\n", + "385 United States of America 231.0 National Rainfall Index (NRI) \n", + "386 United States of America 231.0 National Rainfall Index (NRI) \n", + "387 United States of America 231.0 National Rainfall Index (NRI) \n", + "388 United States of America 231.0 National Rainfall Index (NRI) \n", + "389 United States of America 231.0 National Rainfall Index (NRI) \n", + "\n", + " Variable Id Year Value Symbol \n", + "385 4472.0 1981.0 949.2 E \n", + "386 4472.0 1984.0 974.6 E \n", + "387 4472.0 1992.0 1020.0 E \n", + "388 4472.0 1996.0 1005.0 E \n", + "389 4472.0 2002.0 938.7 E " + ] + }, + "execution_count": 32, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "mask = df.isnull()\n", + "newdf=df.head(-8)\n", + "del newdf['Md']\n", + "newdf.tail()" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "All the columns in our dataframe are not required for analysis. Drop these columns: `Area Id`, `Variable Id`, and `Symbol` and save the new dataframe as `df1`. " + ] + }, + { + "cell_type": "code", + "execution_count": 33, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
AreaVariable NameYearValue
0ArgentinaTotal area of the country1962.02.780400e+05
1ArgentinaTotal area of the country1967.02.780400e+05
2ArgentinaTotal area of the country1972.02.780400e+05
3ArgentinaTotal area of the country1977.02.780400e+05
4ArgentinaTotal area of the country1982.02.780400e+05
5ArgentinaTotal area of the country1987.02.780400e+05
6ArgentinaTotal area of the country1992.02.780400e+05
7ArgentinaTotal area of the country1997.02.780400e+05
8ArgentinaTotal area of the country2002.02.780400e+05
9ArgentinaTotal area of the country2007.02.780400e+05
10ArgentinaTotal area of the country2012.02.780400e+05
11ArgentinaTotal area of the country2014.02.780400e+05
12ArgentinaTotal population1962.02.128800e+04
13ArgentinaTotal population1967.02.293200e+04
14ArgentinaTotal population1972.02.478300e+04
15ArgentinaTotal population1977.02.687900e+04
16ArgentinaTotal population1982.02.899400e+04
17ArgentinaTotal population1987.03.132600e+04
18ArgentinaTotal population1992.03.365500e+04
19ArgentinaTotal population1997.03.583400e+04
20ArgentinaTotal population2002.03.788900e+04
21ArgentinaTotal population2007.03.997000e+04
22ArgentinaTotal population2012.04.209500e+04
23ArgentinaTotal population2015.04.341700e+04
24ArgentinaPopulation density1962.07.656000e+00
25ArgentinaPopulation density1967.08.248000e+00
26ArgentinaPopulation density1972.08.913000e+00
27ArgentinaPopulation density1977.09.667000e+00
28ArgentinaPopulation density1982.01.043000e+01
29ArgentinaPopulation density1987.01.127000e+01
...............
360United States of AmericaPopulation density1972.02.214000e+01
361United States of AmericaPopulation density1977.02.317000e+01
362United States of AmericaPopulation density1982.02.430000e+01
363United States of AmericaPopulation density1987.02.549000e+01
364United States of AmericaPopulation density1992.02.678000e+01
365United States of AmericaPopulation density1997.02.834000e+01
366United States of AmericaPopulation density2002.02.995000e+01
367United States of AmericaPopulation density2007.03.132000e+01
368United States of AmericaPopulation density2012.03.202000e+01
369United States of AmericaPopulation density2015.03.273000e+01
370United States of AmericaGross Domestic Product (GDP)1962.06.050000e+11
371United States of AmericaGross Domestic Product (GDP)1967.08.620000e+11
372United States of AmericaGross Domestic Product (GDP)1972.01.280000e+12
373United States of AmericaGross Domestic Product (GDP)1977.02.090000e+12
374United States of AmericaGross Domestic Product (GDP)1982.03.340000e+12
375United States of AmericaGross Domestic Product (GDP)1987.04.870000e+12
376United States of AmericaGross Domestic Product (GDP)1992.06.540000e+12
377United States of AmericaGross Domestic Product (GDP)1997.08.610000e+12
378United States of AmericaGross Domestic Product (GDP)2002.01.100000e+13
379United States of AmericaGross Domestic Product (GDP)2007.01.450000e+13
380United States of AmericaGross Domestic Product (GDP)2012.01.620000e+13
381United States of AmericaGross Domestic Product (GDP)2015.01.790000e+13
382United States of AmericaNational Rainfall Index (NRI)1965.09.285000e+02
383United States of AmericaNational Rainfall Index (NRI)1969.09.522000e+02
384United States of AmericaNational Rainfall Index (NRI)1974.01.008000e+03
385United States of AmericaNational Rainfall Index (NRI)1981.09.492000e+02
386United States of AmericaNational Rainfall Index (NRI)1984.09.746000e+02
387United States of AmericaNational Rainfall Index (NRI)1992.01.020000e+03
388United States of AmericaNational Rainfall Index (NRI)1996.01.005000e+03
389United States of AmericaNational Rainfall Index (NRI)2002.09.387000e+02
\n", + "

390 rows × 4 columns

\n", + "
" + ], + "text/plain": [ + " Area Variable Name Year \\\n", + "0 Argentina Total area of the country 1962.0 \n", + "1 Argentina Total area of the country 1967.0 \n", + "2 Argentina Total area of the country 1972.0 \n", + "3 Argentina Total area of the country 1977.0 \n", + "4 Argentina Total area of the country 1982.0 \n", + "5 Argentina Total area of the country 1987.0 \n", + "6 Argentina Total area of the country 1992.0 \n", + "7 Argentina Total area of the country 1997.0 \n", + "8 Argentina Total area of the country 2002.0 \n", + "9 Argentina Total area of the country 2007.0 \n", + "10 Argentina Total area of the country 2012.0 \n", + "11 Argentina Total area of the country 2014.0 \n", + "12 Argentina Total population 1962.0 \n", + "13 Argentina Total population 1967.0 \n", + "14 Argentina Total population 1972.0 \n", + "15 Argentina Total population 1977.0 \n", + "16 Argentina Total population 1982.0 \n", + "17 Argentina Total population 1987.0 \n", + "18 Argentina Total population 1992.0 \n", + "19 Argentina Total population 1997.0 \n", + "20 Argentina Total population 2002.0 \n", + "21 Argentina Total population 2007.0 \n", + "22 Argentina Total population 2012.0 \n", + "23 Argentina Total population 2015.0 \n", + "24 Argentina Population density 1962.0 \n", + "25 Argentina Population density 1967.0 \n", + "26 Argentina Population density 1972.0 \n", + "27 Argentina Population density 1977.0 \n", + "28 Argentina Population density 1982.0 \n", + "29 Argentina Population density 1987.0 \n", + ".. ... ... ... \n", + "360 United States of America Population density 1972.0 \n", + "361 United States of America Population density 1977.0 \n", + "362 United States of America Population density 1982.0 \n", + "363 United States of America Population density 1987.0 \n", + "364 United States of America Population density 1992.0 \n", + "365 United States of America Population density 1997.0 \n", + "366 United States of America Population density 2002.0 \n", + "367 United States of America Population density 2007.0 \n", + "368 United States of America Population density 2012.0 \n", + "369 United States of America Population density 2015.0 \n", + "370 United States of America Gross Domestic Product (GDP) 1962.0 \n", + "371 United States of America Gross Domestic Product (GDP) 1967.0 \n", + "372 United States of America Gross Domestic Product (GDP) 1972.0 \n", + "373 United States of America Gross Domestic Product (GDP) 1977.0 \n", + "374 United States of America Gross Domestic Product (GDP) 1982.0 \n", + "375 United States of America Gross Domestic Product (GDP) 1987.0 \n", + "376 United States of America Gross Domestic Product (GDP) 1992.0 \n", + "377 United States of America Gross Domestic Product (GDP) 1997.0 \n", + "378 United States of America Gross Domestic Product (GDP) 2002.0 \n", + "379 United States of America Gross Domestic Product (GDP) 2007.0 \n", + "380 United States of America Gross Domestic Product (GDP) 2012.0 \n", + "381 United States of America Gross Domestic Product (GDP) 2015.0 \n", + "382 United States of America National Rainfall Index (NRI) 1965.0 \n", + "383 United States of America National Rainfall Index (NRI) 1969.0 \n", + "384 United States of America National Rainfall Index (NRI) 1974.0 \n", + "385 United States of America National Rainfall Index (NRI) 1981.0 \n", + "386 United States of America National Rainfall Index (NRI) 1984.0 \n", + "387 United States of America National Rainfall Index (NRI) 1992.0 \n", + "388 United States of America National Rainfall Index (NRI) 1996.0 \n", + "389 United States of America National Rainfall Index (NRI) 2002.0 \n", + "\n", + " Value \n", + "0 2.780400e+05 \n", + "1 2.780400e+05 \n", + "2 2.780400e+05 \n", + "3 2.780400e+05 \n", + "4 2.780400e+05 \n", + "5 2.780400e+05 \n", + "6 2.780400e+05 \n", + "7 2.780400e+05 \n", + "8 2.780400e+05 \n", + "9 2.780400e+05 \n", + "10 2.780400e+05 \n", + "11 2.780400e+05 \n", + "12 2.128800e+04 \n", + "13 2.293200e+04 \n", + "14 2.478300e+04 \n", + "15 2.687900e+04 \n", + "16 2.899400e+04 \n", + "17 3.132600e+04 \n", + "18 3.365500e+04 \n", + "19 3.583400e+04 \n", + "20 3.788900e+04 \n", + "21 3.997000e+04 \n", + "22 4.209500e+04 \n", + "23 4.341700e+04 \n", + "24 7.656000e+00 \n", + "25 8.248000e+00 \n", + "26 8.913000e+00 \n", + "27 9.667000e+00 \n", + "28 1.043000e+01 \n", + "29 1.127000e+01 \n", + ".. ... \n", + "360 2.214000e+01 \n", + "361 2.317000e+01 \n", + "362 2.430000e+01 \n", + "363 2.549000e+01 \n", + "364 2.678000e+01 \n", + "365 2.834000e+01 \n", + "366 2.995000e+01 \n", + "367 3.132000e+01 \n", + "368 3.202000e+01 \n", + "369 3.273000e+01 \n", + "370 6.050000e+11 \n", + "371 8.620000e+11 \n", + "372 1.280000e+12 \n", + "373 2.090000e+12 \n", + "374 3.340000e+12 \n", + "375 4.870000e+12 \n", + "376 6.540000e+12 \n", + "377 8.610000e+12 \n", + "378 1.100000e+13 \n", + "379 1.450000e+13 \n", + "380 1.620000e+13 \n", + "381 1.790000e+13 \n", + "382 9.285000e+02 \n", + "383 9.522000e+02 \n", + "384 1.008000e+03 \n", + "385 9.492000e+02 \n", + "386 9.746000e+02 \n", + "387 1.020000e+03 \n", + "388 1.005000e+03 \n", + "389 9.387000e+02 \n", + "\n", + "[390 rows x 4 columns]" + ] + }, + "execution_count": 33, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "df1 = newdf.drop(['Area Id','Variable Id','Symbol'],axis=1)\n", + "\n", + "df1" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Display all the unique values in your new dataframe for these columns: `Area`, `Variable Name`, and `Year`. \n", + "\n", + "Note the Countries and the Metrics (ie.recorded variables) represented in your dataset.\n", + "*Hint: Use .unique( ) method.*" + ] + }, + { + "cell_type": "code", + "execution_count": 34, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "['Argentina' 'Australia' 'Germany' 'Iceland' 'Ireland' 'Sweden'\n", + " 'United States of America']\n", + "[ 1962. 1967. 1972. 1977. 1982. 1987. 1992. 1997. 2002. 2007.\n", + " 2012. 2014. 2015. 1963. 1970. 1974. 1978. 1984. 1990. 1964.\n", + " 1981. 1985. 1996. 2001. 1969. 1973. 1979. 1993. 1971. 1975.\n", + " 1986. 1991. 1998. 2000. 1965. 1983. 1988. 1995.]\n", + "['Total area of the country' 'Total population' 'Population density'\n", + " 'Gross Domestic Product (GDP)' 'National Rainfall Index (NRI)']\n" + ] + } + ], + "source": [ + "print(newdf['Area'].unique())\n", + "print(newdf['Year'].unique())\n", + "print(newdf['Variable Name'].unique())" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Convert the `Year` column string values to pandas datetime objects, where only the year is specified. \n", + "*Hint: df1['Year'] = pd.to_datetime(pd.Series(df1['Year']).astype(int),format='%Y').dt.year*\n", + "\n", + "Run df1.tail() to see part of the result." + ] + }, + { + "cell_type": "code", + "execution_count": 35, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
AreaVariable NameYearValue
385United States of AmericaNational Rainfall Index (NRI)1981949.2
386United States of AmericaNational Rainfall Index (NRI)1984974.6
387United States of AmericaNational Rainfall Index (NRI)19921020.0
388United States of AmericaNational Rainfall Index (NRI)19961005.0
389United States of AmericaNational Rainfall Index (NRI)2002938.7
\n", + "
" + ], + "text/plain": [ + " Area Variable Name Year Value\n", + "385 United States of America National Rainfall Index (NRI) 1981 949.2\n", + "386 United States of America National Rainfall Index (NRI) 1984 974.6\n", + "387 United States of America National Rainfall Index (NRI) 1992 1020.0\n", + "388 United States of America National Rainfall Index (NRI) 1996 1005.0\n", + "389 United States of America National Rainfall Index (NRI) 2002 938.7" + ] + }, + "execution_count": 35, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "df1['Year'] = pd.to_datetime(pd.Series(df1['Year']).astype(int),format='%Y').dt.year\n", + "df1.tail()" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Extracting Statistics" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Create a dataframe 'dftemp' to store rows where the `Area` is `Iceland`." + ] + }, + { + "cell_type": "code", + "execution_count": 36, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
AreaVariable NameYearValue
166IcelandTotal area of the country196210300.0
167IcelandTotal area of the country196710300.0
168IcelandTotal area of the country197210300.0
169IcelandTotal area of the country197710300.0
170IcelandTotal area of the country198210300.0
171IcelandTotal area of the country198710300.0
172IcelandTotal area of the country199210300.0
173IcelandTotal area of the country199710300.0
174IcelandTotal area of the country200210300.0
175IcelandTotal area of the country200710300.0
\n", + "
" + ], + "text/plain": [ + " Area Variable Name Year Value\n", + "166 Iceland Total area of the country 1962 10300.0\n", + "167 Iceland Total area of the country 1967 10300.0\n", + "168 Iceland Total area of the country 1972 10300.0\n", + "169 Iceland Total area of the country 1977 10300.0\n", + "170 Iceland Total area of the country 1982 10300.0\n", + "171 Iceland Total area of the country 1987 10300.0\n", + "172 Iceland Total area of the country 1992 10300.0\n", + "173 Iceland Total area of the country 1997 10300.0\n", + "174 Iceland Total area of the country 2002 10300.0\n", + "175 Iceland Total area of the country 2007 10300.0" + ] + }, + "execution_count": 36, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "dftemp = df1[(df1['Area'] == \"Iceland\")]\n", + "#dftemp = df1.where(df1['Area'] == 'Iceland') ...... where command keeps array size same so not used here\n", + "dftemp.head(10)\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Print the years when the National Rainfall Index (NRI) was `> 950` or `< 900` in Iceland using the dataframe you created in the previous question." + ] + }, + { + "cell_type": "code", + "execution_count": 37, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
AreaVariable NameYearValue
214IcelandNational Rainfall Index (NRI)1967816.0
215IcelandNational Rainfall Index (NRI)1971963.2
216IcelandNational Rainfall Index (NRI)19751010.0
218IcelandNational Rainfall Index (NRI)1986968.5
219IcelandNational Rainfall Index (NRI)19911095.0
220IcelandNational Rainfall Index (NRI)1997993.2
\n", + "
" + ], + "text/plain": [ + " Area Variable Name Year Value\n", + "214 Iceland National Rainfall Index (NRI) 1967 816.0\n", + "215 Iceland National Rainfall Index (NRI) 1971 963.2\n", + "216 Iceland National Rainfall Index (NRI) 1975 1010.0\n", + "218 Iceland National Rainfall Index (NRI) 1986 968.5\n", + "219 Iceland National Rainfall Index (NRI) 1991 1095.0\n", + "220 Iceland National Rainfall Index (NRI) 1997 993.2" + ] + }, + "execution_count": 37, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "nri = dftemp[(dftemp['Variable Name'] == \"National Rainfall Index (NRI)\")]\n", + "nri = nri[(nri.Value>950) |(nri.Value<900) ]\n", + "nri.head(10)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Get all the rows of df1 (from the preprocessed data section of this notebook) where the `Area` is `United States of America` and store that into a new dataframe called `df_usa`. Set the indices of the this dataframe to be the `Year` column. \n", + "*Hint: Use .set_index()*" + ] + }, + { + "cell_type": "code", + "execution_count": 38, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
AreaVariable NameValue
Year
1962United States of AmericaTotal area of the country962909.0
1967United States of AmericaTotal area of the country962909.0
1972United States of AmericaTotal area of the country962909.0
1977United States of AmericaTotal area of the country962909.0
1982United States of AmericaTotal area of the country962909.0
\n", + "
" + ], + "text/plain": [ + " Area Variable Name Value\n", + "Year \n", + "1962 United States of America Total area of the country 962909.0\n", + "1967 United States of America Total area of the country 962909.0\n", + "1972 United States of America Total area of the country 962909.0\n", + "1977 United States of America Total area of the country 962909.0\n", + "1982 United States of America Total area of the country 962909.0" + ] + }, + "execution_count": 38, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "df_usa = df1[(df1['Area'] == \"United States of America\")].set_index('Year')\n", + "df_usa.head(5)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Pivot the dataframe so that the unique `Variable Name` entries become the column entries. The dataframe values should be the ones in the `Value` column. Do this by running the lines of code below." + ] + }, + { + "cell_type": "code", + "execution_count": 39, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
Variable NameGross Domestic Product (GDP)National Rainfall Index (NRI)Population densityTotal area of the countryTotal population
Year
19626.050000e+11NaN19.93962909.0191861.0
1965NaN928.5NaNNaNNaN
19678.620000e+11NaN21.16962909.0203713.0
1969NaN952.2NaNNaNNaN
19721.280000e+12NaN22.14962909.0213220.0
\n", + "
" + ], + "text/plain": [ + "Variable Name Gross Domestic Product (GDP) National Rainfall Index (NRI) \\\n", + "Year \n", + "1962 6.050000e+11 NaN \n", + "1965 NaN 928.5 \n", + "1967 8.620000e+11 NaN \n", + "1969 NaN 952.2 \n", + "1972 1.280000e+12 NaN \n", + "\n", + "Variable Name Population density Total area of the country Total population \n", + "Year \n", + "1962 19.93 962909.0 191861.0 \n", + "1965 NaN NaN NaN \n", + "1967 21.16 962909.0 203713.0 \n", + "1969 NaN NaN NaN \n", + "1972 22.14 962909.0 213220.0 " + ] + }, + "execution_count": 39, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "df_usa=df_usa.pivot(columns='Variable Name',values='Value')\n", + "df_usa.head()" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Rename the corresponding columns to ['GDP','NRI','PD','Area','Population']." + ] + }, + { + "cell_type": "code", + "execution_count": 40, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
Variable NameGDPNRIPDAreaPopulation
Year
19626.050000e+11NaN19.93962909.0191861.0
1965NaN928.5NaNNaNNaN
19678.620000e+11NaN21.16962909.0203713.0
1969NaN952.2NaNNaNNaN
19721.280000e+12NaN22.14962909.0213220.0
1974NaN1008.0NaNNaNNaN
19772.090000e+12NaN23.17962909.0223091.0
1981NaN949.2NaNNaNNaN
19823.340000e+12NaN24.30962909.0233954.0
1984NaN974.6NaNNaNNaN
19874.870000e+12NaN25.49962909.0245425.0
19926.540000e+121020.026.78962909.0257908.0
1996NaN1005.0NaNNaNNaN
19978.610000e+12NaN28.34962909.0272883.0
20021.100000e+13938.729.95963203.0288471.0
20071.450000e+13NaN31.32963203.0301656.0
20121.620000e+13NaN32.02983151.0314799.0
2014NaNNaNNaN983151.0NaN
20151.790000e+13NaN32.73NaN321774.0
\n", + "
" + ], + "text/plain": [ + "Variable Name GDP NRI PD Area Population\n", + "Year \n", + "1962 6.050000e+11 NaN 19.93 962909.0 191861.0\n", + "1965 NaN 928.5 NaN NaN NaN\n", + "1967 8.620000e+11 NaN 21.16 962909.0 203713.0\n", + "1969 NaN 952.2 NaN NaN NaN\n", + "1972 1.280000e+12 NaN 22.14 962909.0 213220.0\n", + "1974 NaN 1008.0 NaN NaN NaN\n", + "1977 2.090000e+12 NaN 23.17 962909.0 223091.0\n", + "1981 NaN 949.2 NaN NaN NaN\n", + "1982 3.340000e+12 NaN 24.30 962909.0 233954.0\n", + "1984 NaN 974.6 NaN NaN NaN\n", + "1987 4.870000e+12 NaN 25.49 962909.0 245425.0\n", + "1992 6.540000e+12 1020.0 26.78 962909.0 257908.0\n", + "1996 NaN 1005.0 NaN NaN NaN\n", + "1997 8.610000e+12 NaN 28.34 962909.0 272883.0\n", + "2002 1.100000e+13 938.7 29.95 963203.0 288471.0\n", + "2007 1.450000e+13 NaN 31.32 963203.0 301656.0\n", + "2012 1.620000e+13 NaN 32.02 983151.0 314799.0\n", + "2014 NaN NaN NaN 983151.0 NaN\n", + "2015 1.790000e+13 NaN 32.73 NaN 321774.0" + ] + }, + "execution_count": 40, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "df_usa=df_usa.rename(columns={'Gross Domestic Product (GDP)':'GDP'})\n", + "df_usa=df_usa.rename(columns={'National Rainfall Index (NRI)':'NRI'})\n", + "df_usa=df_usa.rename(columns={'Population density':'PD'})\n", + "df_usa=df_usa.rename(columns={'Total area of the country':'Area'})\n", + "df_usa=df_usa.rename(columns={'Total population':'Population'})\n", + "df_usa" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Print the output of `df_usa.isnull().sum()`. This gives us the number of NAN values in each column. Replace the NAN values by 0, using `df_usa=df_usa.fillna(0)`. Print the output of `df_usa.isnull().sum()` again." + ] + }, + { + "cell_type": "code", + "execution_count": 41, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Number of NAN values before: Variable Name\n", + "GDP 7\n", + "NRI 11\n", + "PD 7\n", + "Area 7\n", + "Population 7\n", + "dtype: int64\n", + "Number of NAN values after: Variable Name\n", + "GDP 0\n", + "NRI 0\n", + "PD 0\n", + "Area 0\n", + "Population 0\n", + "dtype: int64\n" + ] + } + ], + "source": [ + "print(\"Number of NAN values before: \", df_usa.isnull().sum())\n", + "df_usa=df_usa.fillna(0)\n", + "print(\"Number of NAN values after: \", df_usa.isnull().sum())" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Calculate and print all the column averages and the column standard deviations." + ] + }, + { + "cell_type": "code", + "execution_count": 42, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "---averages---\n", + "Variable Name\n", + "GDP 4.620895e+12\n", + "NRI 4.092737e+02\n", + "PD 1.670158e+01\n", + "Area 6.103147e+05\n", + "Population 1.615134e+05\n", + "dtype: float64\n", + "---SD---\n", + "Variable Name\n", + "GDP 6.088656e+12\n", + "NRI 4.935515e+02\n", + "PD 1.355462e+01\n", + "Area 4.789482e+05\n", + "Population 1.313805e+05\n", + "dtype: float64\n" + ] + } + ], + "source": [ + "print('---averages---')\n", + "print(df_usa.mean())\n", + "print('---SD---')\n", + "print(df_usa.std())" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Using the `df_usa` dataframe, multiply the `Area` by 10 (so instead of 1000 ha, the unit becomes 100 ha = 1km^2). Store the result in place." + ] + }, + { + "cell_type": "code", + "execution_count": 43, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
Variable NameGDPNRIPDAreaPopulation
Year
19626.050000e+110.019.939629090.0191861.0
19650.000000e+00928.50.000.00.0
19678.620000e+110.021.169629090.0203713.0
19690.000000e+00952.20.000.00.0
19721.280000e+120.022.149629090.0213220.0
19740.000000e+001008.00.000.00.0
19772.090000e+120.023.179629090.0223091.0
19810.000000e+00949.20.000.00.0
19823.340000e+120.024.309629090.0233954.0
19840.000000e+00974.60.000.00.0
19874.870000e+120.025.499629090.0245425.0
19926.540000e+121020.026.789629090.0257908.0
19960.000000e+001005.00.000.00.0
19978.610000e+120.028.349629090.0272883.0
20021.100000e+13938.729.959632030.0288471.0
20071.450000e+130.031.329632030.0301656.0
20121.620000e+130.032.029831510.0314799.0
20140.000000e+000.00.009831510.00.0
20151.790000e+130.032.730.0321774.0
\n", + "
" + ], + "text/plain": [ + "Variable Name GDP NRI PD Area Population\n", + "Year \n", + "1962 6.050000e+11 0.0 19.93 9629090.0 191861.0\n", + "1965 0.000000e+00 928.5 0.00 0.0 0.0\n", + "1967 8.620000e+11 0.0 21.16 9629090.0 203713.0\n", + "1969 0.000000e+00 952.2 0.00 0.0 0.0\n", + "1972 1.280000e+12 0.0 22.14 9629090.0 213220.0\n", + "1974 0.000000e+00 1008.0 0.00 0.0 0.0\n", + "1977 2.090000e+12 0.0 23.17 9629090.0 223091.0\n", + "1981 0.000000e+00 949.2 0.00 0.0 0.0\n", + "1982 3.340000e+12 0.0 24.30 9629090.0 233954.0\n", + "1984 0.000000e+00 974.6 0.00 0.0 0.0\n", + "1987 4.870000e+12 0.0 25.49 9629090.0 245425.0\n", + "1992 6.540000e+12 1020.0 26.78 9629090.0 257908.0\n", + "1996 0.000000e+00 1005.0 0.00 0.0 0.0\n", + "1997 8.610000e+12 0.0 28.34 9629090.0 272883.0\n", + "2002 1.100000e+13 938.7 29.95 9632030.0 288471.0\n", + "2007 1.450000e+13 0.0 31.32 9632030.0 301656.0\n", + "2012 1.620000e+13 0.0 32.02 9831510.0 314799.0\n", + "2014 0.000000e+00 0.0 0.00 9831510.0 0.0\n", + "2015 1.790000e+13 0.0 32.73 0.0 321774.0" + ] + }, + "execution_count": 43, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "df_usa['Area'] = df_usa['Area']*10\n", + "df_usa" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Create a new column in `df_usa` called `GDP/capita` and populate it with the calculated GDP per capita. Round the results to two decimal points. Store the result in place." + ] + }, + { + "cell_type": "code", + "execution_count": 44, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "C:\\Users\\lenovo\\Anaconda3\\lib\\site-packages\\ipykernel_launcher.py:16: RuntimeWarning: invalid value encountered in true_divide\n", + " app.launch_new_instance()\n" + ] + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
Variable NameGDPNRIPDAreaPopulationGDP/capita
Year
19626.050000e+110.019.939629090.0191861.03153.32
19650.000000e+00928.50.000.00.0NaN
19678.620000e+110.021.169629090.0203713.04231.44
19690.000000e+00952.20.000.00.0NaN
19721.280000e+120.022.149629090.0213220.06003.19
19740.000000e+001008.00.000.00.0NaN
19772.090000e+120.023.179629090.0223091.09368.37
19810.000000e+00949.20.000.00.0NaN
19823.340000e+120.024.309629090.0233954.014276.31
19840.000000e+00974.60.000.00.0NaN
19874.870000e+120.025.499629090.0245425.019843.13
19926.540000e+121020.026.789629090.0257908.025357.88
19960.000000e+001005.00.000.00.0NaN
19978.610000e+120.028.349629090.0272883.031551.98
20021.100000e+13938.729.959632030.0288471.038132.08
20071.450000e+130.031.329632030.0301656.048068.00
20121.620000e+130.032.029831510.0314799.051461.41
20140.000000e+000.00.009831510.00.0NaN
20151.790000e+130.032.730.0321774.055629.11
\n", + "
" + ], + "text/plain": [ + "Variable Name GDP NRI PD Area Population GDP/capita\n", + "Year \n", + "1962 6.050000e+11 0.0 19.93 9629090.0 191861.0 3153.32\n", + "1965 0.000000e+00 928.5 0.00 0.0 0.0 NaN\n", + "1967 8.620000e+11 0.0 21.16 9629090.0 203713.0 4231.44\n", + "1969 0.000000e+00 952.2 0.00 0.0 0.0 NaN\n", + "1972 1.280000e+12 0.0 22.14 9629090.0 213220.0 6003.19\n", + "1974 0.000000e+00 1008.0 0.00 0.0 0.0 NaN\n", + "1977 2.090000e+12 0.0 23.17 9629090.0 223091.0 9368.37\n", + "1981 0.000000e+00 949.2 0.00 0.0 0.0 NaN\n", + "1982 3.340000e+12 0.0 24.30 9629090.0 233954.0 14276.31\n", + "1984 0.000000e+00 974.6 0.00 0.0 0.0 NaN\n", + "1987 4.870000e+12 0.0 25.49 9629090.0 245425.0 19843.13\n", + "1992 6.540000e+12 1020.0 26.78 9629090.0 257908.0 25357.88\n", + "1996 0.000000e+00 1005.0 0.00 0.0 0.0 NaN\n", + "1997 8.610000e+12 0.0 28.34 9629090.0 272883.0 31551.98\n", + "2002 1.100000e+13 938.7 29.95 9632030.0 288471.0 38132.08\n", + "2007 1.450000e+13 0.0 31.32 9632030.0 301656.0 48068.00\n", + "2012 1.620000e+13 0.0 32.02 9831510.0 314799.0 51461.41\n", + "2014 0.000000e+00 0.0 0.00 9831510.0 0.0 NaN\n", + "2015 1.790000e+13 0.0 32.73 0.0 321774.0 55629.11" + ] + }, + "execution_count": 44, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "'''g = df_usa['GDP'].values\n", + "print(g)\n", + "p= df_usa['Population'].values\n", + "print(p)\n", + "for i,value in enumerate(p):\n", + " print(i,value,g[i])\n", + " if value!=0:\n", + " df_usa['GDP/capita']= (g[i]/value)\n", + " else:\n", + " df_usa['GDP/capita']=0\n", + "df_usa''' #want to know why this is not working\n", + "\n", + "\n", + "g = df_usa['GDP'].values\n", + "p= df_usa['Population'].values\n", + "df_usa['GDP/capita']= g/(p*1000)\n", + "df_usa.round(decimals=2)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Create a new column in `df_usa` called `PD2` (i.e. population density 2). Calculate the population density. **Note: the units should be inhab/km^2**. Round the reults to two decimal point. Store the result in place." + ] + }, + { + "cell_type": "code", + "execution_count": 45, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "C:\\Users\\lenovo\\Anaconda3\\lib\\site-packages\\ipykernel_launcher.py:3: RuntimeWarning: divide by zero encountered in true_divide\n", + " This is separate from the ipykernel package so we can avoid doing imports until\n", + "C:\\Users\\lenovo\\Anaconda3\\lib\\site-packages\\ipykernel_launcher.py:3: RuntimeWarning: invalid value encountered in true_divide\n", + " This is separate from the ipykernel package so we can avoid doing imports until\n" + ] + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
Variable NameGDPNRIPDAreaPopulationGDP/capitaPD2
Year
19626.050000e+110.019.939629090.0191861.03153.3219.930000
19650.000000e+00928.50.000.00.0NaNNaN
19678.620000e+110.021.169629090.0203713.04231.4421.160000
19690.000000e+00952.20.000.00.0NaNNaN
19721.280000e+120.022.149629090.0213220.06003.1922.140000
19740.000000e+001008.00.000.00.0NaNNaN
19772.090000e+120.023.179629090.0223091.09368.3723.170000
19810.000000e+00949.20.000.00.0NaNNaN
19823.340000e+120.024.309629090.0233954.014276.3124.300000
19840.000000e+00974.60.000.00.0NaNNaN
19874.870000e+120.025.499629090.0245425.019843.1325.490000
19926.540000e+121020.026.789629090.0257908.025357.8826.780000
19960.000000e+001005.00.000.00.0NaNNaN
19978.610000e+120.028.349629090.0272883.031551.9828.340000
20021.100000e+13938.729.959632030.0288471.038132.0829.950000
20071.450000e+130.031.329632030.0301656.048068.0031.320000
20121.620000e+130.032.029831510.0314799.051461.4132.020000
20140.000000e+000.00.009831510.00.0NaN0.000000
20151.790000e+130.032.730.0321774.055629.11inf
\n", + "
" + ], + "text/plain": [ + "Variable Name GDP NRI PD Area Population GDP/capita \\\n", + "Year \n", + "1962 6.050000e+11 0.0 19.93 9629090.0 191861.0 3153.32 \n", + "1965 0.000000e+00 928.5 0.00 0.0 0.0 NaN \n", + "1967 8.620000e+11 0.0 21.16 9629090.0 203713.0 4231.44 \n", + "1969 0.000000e+00 952.2 0.00 0.0 0.0 NaN \n", + "1972 1.280000e+12 0.0 22.14 9629090.0 213220.0 6003.19 \n", + "1974 0.000000e+00 1008.0 0.00 0.0 0.0 NaN \n", + "1977 2.090000e+12 0.0 23.17 9629090.0 223091.0 9368.37 \n", + "1981 0.000000e+00 949.2 0.00 0.0 0.0 NaN \n", + "1982 3.340000e+12 0.0 24.30 9629090.0 233954.0 14276.31 \n", + "1984 0.000000e+00 974.6 0.00 0.0 0.0 NaN \n", + "1987 4.870000e+12 0.0 25.49 9629090.0 245425.0 19843.13 \n", + "1992 6.540000e+12 1020.0 26.78 9629090.0 257908.0 25357.88 \n", + "1996 0.000000e+00 1005.0 0.00 0.0 0.0 NaN \n", + "1997 8.610000e+12 0.0 28.34 9629090.0 272883.0 31551.98 \n", + "2002 1.100000e+13 938.7 29.95 9632030.0 288471.0 38132.08 \n", + "2007 1.450000e+13 0.0 31.32 9632030.0 301656.0 48068.00 \n", + "2012 1.620000e+13 0.0 32.02 9831510.0 314799.0 51461.41 \n", + "2014 0.000000e+00 0.0 0.00 9831510.0 0.0 NaN \n", + "2015 1.790000e+13 0.0 32.73 0.0 321774.0 55629.11 \n", + "\n", + "Variable Name PD2 \n", + "Year \n", + "1962 19.930000 \n", + "1965 NaN \n", + "1967 21.160000 \n", + "1969 NaN \n", + "1972 22.140000 \n", + "1974 NaN \n", + "1977 23.170000 \n", + "1981 NaN \n", + "1982 24.300000 \n", + "1984 NaN \n", + "1987 25.490000 \n", + "1992 26.780000 \n", + "1996 NaN \n", + "1997 28.340000 \n", + "2002 29.950000 \n", + "2007 31.320000 \n", + "2012 32.020000 \n", + "2014 0.000000 \n", + "2015 inf " + ] + }, + "execution_count": 45, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "p=df_usa['Population'].values\n", + "a = df_usa['Area'].values\n", + "df_usa['PD2']=(p*1000)/a\n", + "df_usa.round(decimals=2)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Find the maximum value and minimum value of the 'NRI' column in the USA (using pandas methods). What years do the min and max values occur in?" + ] + }, + { + "cell_type": "code", + "execution_count": 46, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "max NRI: 1020.0 in year: [1992]\n", + "min NRI: 0.0 in year: [1962 1967 1972 1977 1982 1987 1997 2007 2012 2014 2015]\n" + ] + } + ], + "source": [ + "a=df_usa['NRI'].max()\n", + "b=df_usa.index[df_usa['NRI']==a].values\n", + "c=df_usa['NRI'].min()\n", + "d=df_usa.index[df_usa['NRI']==c].values\n", + "print('max NRI:',a,'in year:',b)\n", + "print('min NRI:',c,'in year:',d)\n", + "\n", + "#for value in df_usa['NRI'].values:\n", + "# if value !=0:\n", + "# c=value.min()\n", + "#print(c) ### for finding min value excluding zeros" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Matplotlib" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Create a dataframe called `icecream` that has column `Flavor` with entries `Strawberry`, `Vanilla`, and `Chocolate` and another column with `Price` with entries `3.50`, `3.00`, and `4.25`. " + ] + }, + { + "cell_type": "code", + "execution_count": 47, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
FlavorPrice
0Strawberry3.50
1Vanilla3.00
2Chocolate4.25
\n", + "
" + ], + "text/plain": [ + " Flavor Price\n", + "0 Strawberry 3.50\n", + "1 Vanilla 3.00\n", + "2 Chocolate 4.25" + ] + }, + "execution_count": 47, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "d={'Flavor':['Strawberry', 'Vanilla', 'Chocolate'],'Price':[3.50,3.00,4.25]}\n", + "icecream = pd.DataFrame(data=d)\n", + "icecream" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Create a bar chart representing the three flavors and their associated prices." + ] + }, + { + "cell_type": "code", + "execution_count": 48, + "metadata": {}, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYUAAAEKCAYAAAD9xUlFAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMS4wLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvpW3flQAAFhNJREFUeJzt3X20XXV95/H3xxCBAYVC7owIxGsL\nThdaRLlSHa2C0haQwnLEiq2OOLapjpQyy1kOODOIdE1Hp2tkOkVLoyDBqkCx2ohYq0JG1IIkGJ6R\nRsWSyiwCCBhFNPidP/a+m8PJubknJPvePLxfa52V/fA7+3zvObn3c3774bdTVUiSBPCU+S5AkrTt\nMBQkSR1DQZLUMRQkSR1DQZLUMRQkSR1DQZLUMRQkSR1DQZLU2WW+C9hcixYtqsnJyfkuQ5K2K6tW\nrbqvqiZma7fdhcLk5CQrV66c7zIkabuS5HvjtHP3kSSpYyhIkjqGgiSpYyhIkjqGgiSpYyhIkjqG\ngiSpYyhIkjqGgiSps91d0bwlJs/43HyXsMO6632vnu8SJG0F9hQkSR1DQZLUMRQkSR1DQZLUMRQk\nSR1DQZLUMRQkSZ3eQyHJgiTfTHLFiHW7Jrk0yZok1yWZ7LseSdLM5qKn8EfA7TOseyvwg6o6CDgX\neP8c1CNJmkGvoZDkAODVw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cZbwXOZuOB/6bb/wR4C/DX7bfVnwPnV3O/idcDf57kRuCLNH+U\nPgQsaNteCpxS7cHSAf8T+B9JvkYznMi0q4FDpg800/QoFgI3Jbmlnd9Z7Emzi+22JDfR3PTpbJpB\nFj8/faB5UFU9CHwYuJnm2+j1A+vuaie/0v77VeDBqvrBwCa+RRP4nwfe1n72HwFuA25oP4O/ZPN6\n65cBXxt6HTVh8Hyae7YAfByYSrKS5kvVHVvhNf4O2KX9//PHwLVbYZvbJK9olrYTaa5NObeqvjzf\ntWjHZU9B2sYl2TvJncAjBoL6Zk9BktSxpyBJ6hgKkqSOoSBJ6hgK0pAkj7Wn8k4/JjPGyLTSjsAr\nmqWNPVJVhw0uaK8W702SXapqQ5+vIY3DnoK0mTJiZNp2+XVJnjvQbkWSw5Ps046weVOSa5Mc2q4/\nO83oq39PMziiNO8MBWljuw/sOvr0iPV3AC+vqhcAZ9EMigfNFbW/DZBkP+CZVbUKeC/wzWru5fBu\nnhgAh9OM8vk7Pf0s0mZx95G0sY12Hw2ZaWTay2iGKHkPTTj8dbv8ZcBrAarqqiT7JtmrXbe8qh7Z\n2j+A9GTZU5A23/TItM8Dfot28Lyq+mfg/nb30Ot5fCyeUaPdTl81OjwaqjSvDAVp8800Mi00QfAu\nYK+Bex4MjnZ7JM1d4B7uv0xp8xkK0uabaWRaaG4ReTLNrqRpZ9OM2nkT8D5G38tB2iY49pEkqWNP\nQZLUMRQkSR1DQZLUMRQkSR1DQZLUMRQkSR1DQZLUMRQkSZ3/D4A7Q1uKL6ZhAAAAAElFTkSuQmCC\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "plt.bar(icecream.Flavor, icecream.Price)\n", + "plt.ylabel('Price')\n", + "plt.xlabel('Flavor')\n", + "plt.show()" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Create 9 random plots. The top three should be scatter plots (one with green dots, one with purple crosses, and one with blue triangles. The middle three graphs should be a line graph, a horizontal bar chart, and a histogram. The bottom three graphs should be trignometric functions (one sin, one cosine, one tangent)." + ] + }, + { + "cell_type": "code", + "execution_count": 49, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "[]" + ] + }, + "execution_count": 49, + "metadata": {}, + "output_type": "execute_result" + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAABI0AAAJCCAYAAABNpjdvAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMS4wLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvpW3flQAAIABJREFUeJzs3Xt8lOWd///3JyciAgISREJoFBBF\nRajRGKw2iC222oJdu639fYtaW1rb7lLbfnfb7cLSprv6293q4pbW2irU3a72oAKrbrMWmeIhpnJW\ngVDUKMFAgpzFMGFyff9IJiZMEkBm7mtm7tfz8eCRTDKZ+33Hw0XeuQ7mnBMAAAAAAADQVY7vAAAA\nAAAAAEg/lEYAAAAAAABIQGkEAAAAAACABJRGAAAAAAAASEBpBAAAAAAAgASURgAAAAAAAEhAaQQA\nAAAAAIAElEYAAAAAAABIQGkEAAAAAACABHm+A/Rm2LBhrrS01HcMAEhLq1ev3uWcK/KdwyfGCQDo\nHeME4wQA9OZExoi0LY1KS0u1atUq3zEAIC2Z2Ru+M/jGOAEAvWOcYJwAgN6cyBjB8jQAAAAAAAAk\noDQCAAAAAABAAkojAABCxDnX52MAAAAgjtIIAICQiMyPqPr26s6iyDmn6turFZkf8RsMAJA2Ghul\nMWOkHTt8JwGQDiiNslDNthrd8cwdqtlW4zsKACBNOOfUsrdFtQtqO4uj6turVbugVi17W5hxBACQ\nJFVVSfX17W8BIG1PT8P7U7OtRtMenKZoLKqC3AItn7VcFSUVvmMBADwzM02/e7okqXZBrWoX1EqS\nyueUa/rd02VmPuMBANJAY6O0aJHU1tb+du5cacQI36kA+MRMoywTqY8oGosq5mKKxqK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iIi\nIiIidee29jQREREREREREakHKhqJiIiIiIiIiMgeVDQSEREREREREZE9qGgkIiIiIiIiIiJ7UNFI\nRERERERERET2oKKRiIiIiIiIiIjsQUUjERERERERERHZg4pGIiIiIiIiIiKyh/8HLzOQhRZyAHgA\nAAAASUVORK5CYII=\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "f, ax = plt.subplots(nrows=3,ncols=3,figsize=(20,10))\n", + "\n", + "a=np.random.randn(10)\n", + "b=np.random.randn(10)\n", + "\n", + "ax[0,0].scatter(a,b,color='green',marker='.')\n", + "ax[0,1].scatter(a,b,color='purple',marker='x')\n", + "ax[0,2].scatter(a,b,color='blue',marker='^')\n", + "#---------------------------\n", + "ax[1,0].plot(a)\n", + "ax[1,1].barh(a,b)\n", + "ax[1,2].hist(a)\n", + "#---------------------------\n", + "x=np.linspace(0,2*np.pi,100)\n", + "ax[2,0].plot(np.sin(x))\n", + "ax[2,1].plot(np.cos(x))\n", + "ax[2,2].plot(np.tan(x))" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Extra Credit" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Run the cell below to read in the data. See: https://www.quantshare.com/sa-43-10-ways-to-download-historical-stock-quotes-data-for-free" + ] + }, + { + "cell_type": "code", + "execution_count": 50, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
DateOpenHighLowCloseVolume
08-Feb-18160.29161.00155.03155.1554390516
17-Feb-18163.08163.40159.07159.5451608580
26-Feb-18154.83163.72154.00163.0368243838
35-Feb-18159.10163.88156.00156.4972738522
42-Feb-18166.00166.80160.10160.5086593825
\n", + "
" + ], + "text/plain": [ + " Date Open High Low Close Volume\n", + "0 8-Feb-18 160.29 161.00 155.03 155.15 54390516\n", + "1 7-Feb-18 163.08 163.40 159.07 159.54 51608580\n", + "2 6-Feb-18 154.83 163.72 154.00 163.03 68243838\n", + "3 5-Feb-18 159.10 163.88 156.00 156.49 72738522\n", + "4 2-Feb-18 166.00 166.80 160.10 160.50 86593825" + ] + }, + "execution_count": 50, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "df_google = pd.read_csv('https://finance.google.com/finance/historical?output=csv&q=goog')\n", + "df_apple = pd.read_csv('https://finance.google.com/finance/historical?output=csv&q=aapl')\n", + "\n", + "df_disney = pd.read_csv('https://finance.google.com/finance/historical?output=csv&q=dis')\n", + "df_nike= pd.read_csv('https://finance.google.com/finance/historical?output=csv&q=nke')\n", + "\n", + "df_apple.head()" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Show a 3 x 3 correlation matrix for Nike, Apple, and Disney stock prices for the month of July, 2017. \n", + "\n", + "Hint: Convert `Date` to a pandas datetime object. \n", + "Change the indices of all the dataframes to `Date`. Use `Date` indices to filter rows.\n", + "Create a new dataframe that stores values of the `Close` column from each dataframe.\n", + "Use the `Close` column of each company's stock data to find the correlation using df.corr()." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + }, + { + "cell_type": "code", + "execution_count": 226, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n" + ] + } + ], + "source": [ + "################# ignore\n", + "'''# google\n", + "df_google.set_index(df_google.Date,inplace=True)\n", + "df_google.loc['31-Jul-17':'3-Jul-17', ['Close']]\n", + "#close_google.columns = [\"Google closing price\"]\n", + "#print(\"Google stock close: \\n\",close_google)\n", + "#year = df_google.loc['31-Jul-17':'3-Jul-17'].index\n", + "#g=pd.DataFrame({'Google':[close_google]})\n", + "\n", + "\n", + "# apple\n", + "df_apple.set_index(df_apple.Date,inplace=True)\n", + "df_apple.loc['31-Jul-17':'3-Jul-17', ['Close']]\n", + "#close_apple.columns = [\"Apple closing price\"]\n", + "#print(\"\\n Apple stock close: \\n\", close_apple)\n", + "#a=pd.DataFrame({'Apple':[close_apple]})\n", + "\n", + "\n", + "# disney\n", + "df_disney.set_index(df_disney.Date,inplace=True)\n", + "df_disney.loc['31-Jul-17':'3-Jul-17', ['Close']]\n", + "#close_disney.columns = [\"Disney closing price\"]\n", + "#print(\"\\n Disney stock close: \\n\", close_disney)\n", + "#ds=pd.DataFrame({'Disney':[close_disney]})\n", + "\n", + "\n", + "# nike\n", + "df_nike.set_index(df_nike.Date,inplace=True)\n", + "df_nike.loc['31-Jul-17':'3-Jul-17', ['Close']]\n", + "#close_nike.columns = [\"Nike closing price\"]\n", + "#print(\"\\n Nike stock close: \\n\", close_nike)\n", + "#n=pd.DataFrame({'Nike':[close_google]})\n", + "\n", + "stock_table=pd.concat[df_apple,df_nike,df_disney]\n", + "print(stock_table)\n", + "\n", + "\n", + "# correlation matrix of three 2017 dateframes'''\n" + ] + }, + { + "cell_type": "code", + "execution_count": 51, + "metadata": {}, + "outputs": [], + "source": [ + "df_nike=df_nike.set_index(pd.to_datetime(df_nike.Date))\n", + "df_nike.drop('Date',axis=1,inplace=True)\n", + "del df_nike.index.name\n", + "\n", + "df_apple=df_apple.set_index(pd.to_datetime(df_apple.Date))\n", + "df_apple.drop('Date',axis=1,inplace=True)\n", + "del df_apple.index.name\n", + "\n", + "df_disney=df_disney.set_index(pd.to_datetime(df_disney.Date))\n", + "df_disney.drop('Date',axis=1,inplace=True)\n", + "del df_disney.index.name" + ] + }, + { + "cell_type": "code", + "execution_count": 54, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
NikeAppleDisney
2018-02-0862.49155.15101.35
2018-02-0765.63159.54104.76
2018-02-0665.22163.03106.17
2018-02-0564.39156.49104.70
2018-02-0267.22160.50108.70
\n", + "
" + ], + "text/plain": [ + " Nike Apple Disney\n", + "2018-02-08 62.49 155.15 101.35\n", + "2018-02-07 65.63 159.54 104.76\n", + "2018-02-06 65.22 163.03 106.17\n", + "2018-02-05 64.39 156.49 104.70\n", + "2018-02-02 67.22 160.50 108.70" + ] + }, + "execution_count": 54, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "closing_values=pd.concat([df_nike.Close,df_apple.Close,df_disney.Close],axis=1)\n", + "closing_values.columns=['Nike','Apple','Disney']\n", + "closing_values.head()" + ] + }, + { + "cell_type": "code", + "execution_count": 58, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n" + ] + } + ], + "source": [ + "closing_values[\"2017-17\"].corr()" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Show the same correlation matrix but over different time periods.\n", + "1. the last 20 days \n", + "2. the last 80 days" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Change the code so that it accepts a list of any stock symbols (i.e. ['NKE', 'APPL', 'DIS', ... ]) and creates a correlation matrix for the past 100 days." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.6.3" + } + }, + "nbformat": 4, + "nbformat_minor": 1 +} diff --git a/Energy.csv b/Energy.csv new file mode 100644 index 0000000..a295089 --- /dev/null +++ b/Energy.csv @@ -0,0 +1 @@ +X1,X2,X3,X4,X5,X6,X7,X8,Y1 0.98,514.5,294,110.25,7,2,0,0,15.55 0.98,514.5,294,110.25,7,3,0,0,15.55 0.98,514.5,294,110.25,7,4,0,0,15.55 0.98,514.5,294,110.25,7,5,0,0,15.55 0.9,563.5,318.5,122.5,7,2,0,0,20.84 0.9,563.5,318.5,122.5,7,3,0,0,21.46 0.9,563.5,318.5,122.5,7,4,0,0,20.71 0.9,563.5,318.5,122.5,7,5,0,0,19.68 0.86,588,294,147,7,2,0,0,19.5 0.86,588,294,147,7,3,0,0,19.95 0.86,588,294,147,7,4,0,0,19.34 0.86,588,294,147,7,5,0,0,18.31 0.82,612.5,318.5,147,7,2,0,0,17.05 0.82,612.5,318.5,147,7,3,0,0,17.41 0.82,612.5,318.5,147,7,4,0,0,16.95 0.82,612.5,318.5,147,7,5,0,0,15.98 0.79,637,343,147,7,2,0,0,28.52 0.79,637,343,147,7,3,0,0,29.9 0.79,637,343,147,7,4,0,0,29.63 0.79,637,343,147,7,5,0,0,28.75 0.76,661.5,416.5,122.5,7,2,0,0,24.77 0.76,661.5,416.5,122.5,7,3,0,0,23.93 0.76,661.5,416.5,122.5,7,4,0,0,24.77 0.76,661.5,416.5,122.5,7,5,0,0,23.93 0.74,686,245,220.5,3.5,2,0,0,6.07 0.74,686,245,220.5,3.5,3,0,0,6.05 0.74,686,245,220.5,3.5,4,0,0,6.01 0.74,686,245,220.5,3.5,5,0,0,6.04 0.71,710.5,269.5,220.5,3.5,2,0,0,6.37 0.71,710.5,269.5,220.5,3.5,3,0,0,6.4 0.71,710.5,269.5,220.5,3.5,4,0,0,6.37 0.71,710.5,269.5,220.5,3.5,5,0,0,6.4 0.69,735,294,220.5,3.5,2,0,0,6.85 0.69,735,294,220.5,3.5,3,0,0,6.79 0.69,735,294,220.5,3.5,4,0,0,6.77 0.69,735,294,220.5,3.5,5,0,0,6.81 0.66,759.5,318.5,220.5,3.5,2,0,0,7.18 0.66,759.5,318.5,220.5,3.5,3,0,0,7.1 0.66,759.5,318.5,220.5,3.5,4,0,0,7.1 0.66,759.5,318.5,220.5,3.5,5,0,0,7.1 0.64,784,343,220.5,3.5,2,0,0,10.85 0.64,784,343,220.5,3.5,3,0,0,10.54 0.64,784,343,220.5,3.5,4,0,0,10.77 0.64,784,343,220.5,3.5,5,0,0,10.56 0.62,808.5,367.5,220.5,3.5,2,0,0,8.6 0.62,808.5,367.5,220.5,3.5,3,0,0,8.49 0.62,808.5,367.5,220.5,3.5,4,0,0,8.45 0.62,808.5,367.5,220.5,3.5,5,0,0,8.5 0.98,514.5,294,110.25,7,2,0.1,1,24.58 0.98,514.5,294,110.25,7,3,0.1,1,24.63 0.98,514.5,294,110.25,7,4,0.1,1,24.63 0.98,514.5,294,110.25,7,5,0.1,1,24.59 0.9,563.5,318.5,122.5,7,2,0.1,1,29.03 0.9,563.5,318.5,122.5,7,3,0.1,1,29.87 0.9,563.5,318.5,122.5,7,4,0.1,1,29.14 0.9,563.5,318.5,122.5,7,5,0.1,1,28.09 0.86,588,294,147,7,2,0.1,1,26.28 0.86,588,294,147,7,3,0.1,1,26.91 0.86,588,294,147,7,4,0.1,1,26.37 0.86,588,294,147,7,5,0.1,1,25.27 0.82,612.5,318.5,147,7,2,0.1,1,23.53 0.82,612.5,318.5,147,7,3,0.1,1,24.03 0.82,612.5,318.5,147,7,4,0.1,1,23.54 0.82,612.5,318.5,147,7,5,0.1,1,22.58 0.79,637,343,147,7,2,0.1,1,35.56 0.79,637,343,147,7,3,0.1,1,37.12 0.79,637,343,147,7,4,0.1,1,36.9 0.79,637,343,147,7,5,0.1,1,35.94 0.76,661.5,416.5,122.5,7,2,0.1,1,32.96 0.76,661.5,416.5,122.5,7,3,0.1,1,32.12 0.76,661.5,416.5,122.5,7,4,0.1,1,32.94 0.76,661.5,416.5,122.5,7,5,0.1,1,32.21 0.74,686,245,220.5,3.5,2,0.1,1,10.36 0.74,686,245,220.5,3.5,3,0.1,1,10.43 0.74,686,245,220.5,3.5,4,0.1,1,10.36 0.74,686,245,220.5,3.5,5,0.1,1,10.39 0.71,710.5,269.5,220.5,3.5,2,0.1,1,10.71 0.71,710.5,269.5,220.5,3.5,3,0.1,1,10.8 0.71,710.5,269.5,220.5,3.5,4,0.1,1,10.7 0.71,710.5,269.5,220.5,3.5,5,0.1,1,10.75 0.69,735,294,220.5,3.5,2,0.1,1,11.11 0.69,735,294,220.5,3.5,3,0.1,1,11.13 0.69,735,294,220.5,3.5,4,0.1,1,11.09 0.69,735,294,220.5,3.5,5,0.1,1,11.16 0.66,759.5,318.5,220.5,3.5,2,0.1,1,11.68 0.66,759.5,318.5,220.5,3.5,3,0.1,1,11.69 0.66,759.5,318.5,220.5,3.5,4,0.1,1,11.7 0.66,759.5,318.5,220.5,3.5,5,0.1,1,11.69 0.64,784,343,220.5,3.5,2,0.1,1,15.41 0.64,784,343,220.5,3.5,3,0.1,1,15.2 0.64,784,343,220.5,3.5,4,0.1,1,15.42 0.64,784,343,220.5,3.5,5,0.1,1,15.21 0.62,808.5,367.5,220.5,3.5,2,0.1,1,12.96 0.62,808.5,367.5,220.5,3.5,3,0.1,1,12.97 0.62,808.5,367.5,220.5,3.5,4,0.1,1,12.93 0.62,808.5,367.5,220.5,3.5,5,0.1,1,13.02 0.98,514.5,294,110.25,7,2,0.1,2,24.29 0.98,514.5,294,110.25,7,3,0.1,2,24.31 0.98,514.5,294,110.25,7,4,0.1,2,24.13 0.98,514.5,294,110.25,7,5,0.1,2,24.25 0.9,563.5,318.5,122.5,7,2,0.1,2,28.88 0.9,563.5,318.5,122.5,7,3,0.1,2,29.68 0.9,563.5,318.5,122.5,7,4,0.1,2,28.83 0.9,563.5,318.5,122.5,7,5,0.1,2,27.9 0.86,588,294,147,7,2,0.1,2,26.48 0.86,588,294,147,7,3,0.1,2,27.02 0.86,588,294,147,7,4,0.1,2,26.33 0.86,588,294,147,7,5,0.1,2,25.36 0.82,612.5,318.5,147,7,2,0.1,2,23.75 0.82,612.5,318.5,147,7,3,0.1,2,24.23 0.82,612.5,318.5,147,7,4,0.1,2,23.67 0.82,612.5,318.5,147,7,5,0.1,2,22.79 0.79,637,343,147,7,2,0.1,2,35.65 0.79,637,343,147,7,3,0.1,2,37.26 0.79,637,343,147,7,4,0.1,2,36.97 0.79,637,343,147,7,5,0.1,2,36.03 0.76,661.5,416.5,122.5,7,2,0.1,2,33.16 0.76,661.5,416.5,122.5,7,3,0.1,2,32.4 0.76,661.5,416.5,122.5,7,4,0.1,2,33.12 0.76,661.5,416.5,122.5,7,5,0.1,2,32.41 0.74,686,245,220.5,3.5,2,0.1,2,10.42 0.74,686,245,220.5,3.5,3,0.1,2,10.46 0.74,686,245,220.5,3.5,4,0.1,2,10.32 0.74,686,245,220.5,3.5,5,0.1,2,10.45 0.71,710.5,269.5,220.5,3.5,2,0.1,2,10.64 0.71,710.5,269.5,220.5,3.5,3,0.1,2,10.72 0.71,710.5,269.5,220.5,3.5,4,0.1,2,10.55 0.71,710.5,269.5,220.5,3.5,5,0.1,2,10.68 0.69,735,294,220.5,3.5,2,0.1,2,11.45 0.69,735,294,220.5,3.5,3,0.1,2,11.46 0.69,735,294,220.5,3.5,4,0.1,2,11.32 0.69,735,294,220.5,3.5,5,0.1,2,11.49 0.66,759.5,318.5,220.5,3.5,2,0.1,2,11.45 0.66,759.5,318.5,220.5,3.5,3,0.1,2,11.42 0.66,759.5,318.5,220.5,3.5,4,0.1,2,11.33 0.66,759.5,318.5,220.5,3.5,5,0.1,2,11.43 0.64,784,343,220.5,3.5,2,0.1,2,15.41 0.64,784,343,220.5,3.5,3,0.1,2,15.18 0.64,784,343,220.5,3.5,4,0.1,2,15.34 0.64,784,343,220.5,3.5,5,0.1,2,15.19 0.62,808.5,367.5,220.5,3.5,2,0.1,2,12.88 0.62,808.5,367.5,220.5,3.5,3,0.1,2,13 0.62,808.5,367.5,220.5,3.5,4,0.1,2,12.97 0.62,808.5,367.5,220.5,3.5,5,0.1,2,13.04 0.98,514.5,294,110.25,7,2,0.1,3,24.28 0.98,514.5,294,110.25,7,3,0.1,3,24.4 0.98,514.5,294,110.25,7,4,0.1,3,24.11 0.98,514.5,294,110.25,7,5,0.1,3,24.35 0.9,563.5,318.5,122.5,7,2,0.1,3,28.07 0.9,563.5,318.5,122.5,7,3,0.1,3,29.01 0.9,563.5,318.5,122.5,7,4,0.1,3,29.62 0.9,563.5,318.5,122.5,7,5,0.1,3,29.05 0.86,588,294,147,7,2,0.1,3,25.41 0.86,588,294,147,7,3,0.1,3,26.47 0.86,588,294,147,7,4,0.1,3,26.89 0.86,588,294,147,7,5,0.1,3,26.46 0.82,612.5,318.5,147,7,2,0.1,3,22.93 0.82,612.5,318.5,147,7,3,0.1,3,23.84 0.82,612.5,318.5,147,7,4,0.1,3,24.17 0.82,612.5,318.5,147,7,5,0.1,3,23.87 0.79,637,343,147,7,2,0.1,3,35.78 0.79,637,343,147,7,3,0.1,3,35.48 0.79,637,343,147,7,4,0.1,3,36.97 0.79,637,343,147,7,5,0.1,3,36.7 0.76,661.5,416.5,122.5,7,2,0.1,3,32.52 0.76,661.5,416.5,122.5,7,3,0.1,3,33.28 0.76,661.5,416.5,122.5,7,4,0.1,3,32.33 0.76,661.5,416.5,122.5,7,5,0.1,3,33.24 0.74,686,245,220.5,3.5,2,0.1,3,10.39 0.74,686,245,220.5,3.5,3,0.1,3,10.34 0.74,686,245,220.5,3.5,4,0.1,3,10.35 0.74,686,245,220.5,3.5,5,0.1,3,10.38 0.71,710.5,269.5,220.5,3.5,2,0.1,3,10.77 0.71,710.5,269.5,220.5,3.5,3,0.1,3,10.68 0.71,710.5,269.5,220.5,3.5,4,0.1,3,10.68 0.71,710.5,269.5,220.5,3.5,5,0.1,3,10.7 0.69,735,294,220.5,3.5,2,0.1,3,11.22 0.69,735,294,220.5,3.5,3,0.1,3,11.16 0.69,735,294,220.5,3.5,4,0.1,3,11.1 0.69,735,294,220.5,3.5,5,0.1,3,11.14 0.66,759.5,318.5,220.5,3.5,2,0.1,3,11.59 0.66,759.5,318.5,220.5,3.5,3,0.1,3,11.6 0.66,759.5,318.5,220.5,3.5,4,0.1,3,11.53 0.66,759.5,318.5,220.5,3.5,5,0.1,3,11.61 0.64,784,343,220.5,3.5,2,0.1,3,15.16 0.64,784,343,220.5,3.5,3,0.1,3,15.36 0.64,784,343,220.5,3.5,4,0.1,3,15.12 0.64,784,343,220.5,3.5,5,0.1,3,15.36 0.62,808.5,367.5,220.5,3.5,2,0.1,3,12.68 0.62,808.5,367.5,220.5,3.5,3,0.1,3,12.63 0.62,808.5,367.5,220.5,3.5,4,0.1,3,12.71 0.62,808.5,367.5,220.5,3.5,5,0.1,3,12.73 0.98,514.5,294,110.25,7,2,0.1,4,24.38 0.98,514.5,294,110.25,7,3,0.1,4,24.23 0.98,514.5,294,110.25,7,4,0.1,4,24.04 0.98,514.5,294,110.25,7,5,0.1,4,24.32 0.9,563.5,318.5,122.5,7,2,0.1,4,29.06 0.9,563.5,318.5,122.5,7,3,0.1,4,28.05 0.9,563.5,318.5,122.5,7,4,0.1,4,28.86 0.9,563.5,318.5,122.5,7,5,0.1,4,29.79 0.86,588,294,147,7,2,0.1,4,26.44 0.86,588,294,147,7,3,0.1,4,25.37 0.86,588,294,147,7,4,0.1,4,26.33 0.86,588,294,147,7,5,0.1,4,27.03 0.82,612.5,318.5,147,7,2,0.1,4,23.8 0.82,612.5,318.5,147,7,3,0.1,4,22.8 0.82,612.5,318.5,147,7,4,0.1,4,23.59 0.82,612.5,318.5,147,7,5,0.1,4,24.24 0.79,637,343,147,7,2,0.1,4,36.86 0.79,637,343,147,7,3,0.1,4,35.89 0.79,637,343,147,7,4,0.1,4,35.45 0.79,637,343,147,7,5,0.1,4,37.1 0.76,661.5,416.5,122.5,7,2,0.1,4,33.08 0.76,661.5,416.5,122.5,7,3,0.1,4,32.38 0.76,661.5,416.5,122.5,7,4,0.1,4,33.09 0.76,661.5,416.5,122.5,7,5,0.1,4,32.31 0.74,686,245,220.5,3.5,2,0.1,4,10.08 0.74,686,245,220.5,3.5,3,0.1,4,10.15 0.74,686,245,220.5,3.5,4,0.1,4,10.07 0.74,686,245,220.5,3.5,5,0.1,4,10.14 0.71,710.5,269.5,220.5,3.5,2,0.1,4,10.66 0.71,710.5,269.5,220.5,3.5,3,0.1,4,10.68 0.71,710.5,269.5,220.5,3.5,4,0.1,4,10.53 0.71,710.5,269.5,220.5,3.5,5,0.1,4,10.72 0.69,735,294,220.5,3.5,2,0.1,4,11.18 0.69,735,294,220.5,3.5,3,0.1,4,11.22 0.69,735,294,220.5,3.5,4,0.1,4,11.07 0.69,735,294,220.5,3.5,5,0.1,4,11.2 0.66,759.5,318.5,220.5,3.5,2,0.1,4,11.44 0.66,759.5,318.5,220.5,3.5,3,0.1,4,11.42 0.66,759.5,318.5,220.5,3.5,4,0.1,4,11.33 0.66,759.5,318.5,220.5,3.5,5,0.1,4,11.43 0.64,784,343,220.5,3.5,2,0.1,4,15.4 0.64,784,343,220.5,3.5,3,0.1,4,15.19 0.64,784,343,220.5,3.5,4,0.1,4,15.32 0.64,784,343,220.5,3.5,5,0.1,4,15.16 0.62,808.5,367.5,220.5,3.5,2,0.1,4,12.85 0.62,808.5,367.5,220.5,3.5,3,0.1,4,13.04 0.62,808.5,367.5,220.5,3.5,4,0.1,4,13 0.62,808.5,367.5,220.5,3.5,5,0.1,4,13 0.98,514.5,294,110.25,7,2,0.1,5,24.35 0.98,514.5,294,110.25,7,3,0.1,5,24.33 0.98,514.5,294,110.25,7,4,0.1,5,24.03 0.98,514.5,294,110.25,7,5,0.1,5,24.26 0.9,563.5,318.5,122.5,7,2,0.1,5,29.83 0.9,563.5,318.5,122.5,7,3,0.1,5,29.08 0.9,563.5,318.5,122.5,7,4,0.1,5,28.03 0.9,563.5,318.5,122.5,7,5,0.1,5,29.02 0.86,588,294,147,7,2,0.1,5,27.03 0.86,588,294,147,7,3,0.1,5,26.45 0.86,588,294,147,7,4,0.1,5,25.36 0.86,588,294,147,7,5,0.1,5,26.45 0.82,612.5,318.5,147,7,2,0.1,5,24.37 0.82,612.5,318.5,147,7,3,0.1,5,23.89 0.82,612.5,318.5,147,7,4,0.1,5,22.89 0.82,612.5,318.5,147,7,5,0.1,5,23.86 0.79,637,343,147,7,2,0.1,5,37.03 0.79,637,343,147,7,3,0.1,5,36.71 0.79,637,343,147,7,4,0.1,5,36.77 0.79,637,343,147,7,5,0.1,5,35.48 0.76,661.5,416.5,122.5,7,2,0.1,5,32.31 0.76,661.5,416.5,122.5,7,3,0.1,5,33.21 0.76,661.5,416.5,122.5,7,4,0.1,5,32.46 0.76,661.5,416.5,122.5,7,5,0.1,5,33.27 0.74,686,245,220.5,3.5,2,0.1,5,10.47 0.74,686,245,220.5,3.5,3,0.1,5,10.37 0.74,686,245,220.5,3.5,4,0.1,5,10.34 0.74,686,245,220.5,3.5,5,0.1,5,10.39 0.71,710.5,269.5,220.5,3.5,2,0.1,5,10.78 0.71,710.5,269.5,220.5,3.5,3,0.1,5,10.7 0.71,710.5,269.5,220.5,3.5,4,0.1,5,10.67 0.71,710.5,269.5,220.5,3.5,5,0.1,5,13.69 0.69,735,294,220.5,3.5,2,0.1,5,11.21 0.69,735,294,220.5,3.5,3,0.1,5,11.14 0.69,735,294,220.5,3.5,4,0.1,5,11.11 0.69,735,294,220.5,3.5,5,0.1,5,11.16 0.66,759.5,318.5,220.5,3.5,2,0.1,5,11.38 0.66,759.5,318.5,220.5,3.5,3,0.1,5,11.34 0.66,759.5,318.5,220.5,3.5,4,0.1,5,11.22 0.66,759.5,318.5,220.5,3.5,5,0.1,5,11.34 0.64,784,343,220.5,3.5,2,0.1,5,15.16 0.64,784,343,220.5,3.5,3,0.1,5,15.37 0.64,784,343,220.5,3.5,4,0.1,5,15.12 0.64,784,343,220.5,3.5,5,0.1,5,15.36 0.62,808.5,367.5,220.5,3.5,2,0.1,5,12.59 0.62,808.5,367.5,220.5,3.5,3,0.1,5,12.74 0.62,808.5,367.5,220.5,3.5,4,0.1,5,12.8 0.62,808.5,367.5,220.5,3.5,5,0.1,5,12.62 0.98,514.5,294,110.25,7,2,0.25,1,28.15 0.98,514.5,294,110.25,7,3,0.25,1,28.15 0.98,514.5,294,110.25,7,4,0.25,1,28.37 0.98,514.5,294,110.25,7,5,0.25,1,28.41 0.9,563.5,318.5,122.5,7,2,0.25,1,32.68 0.9,563.5,318.5,122.5,7,3,0.25,1,33.48 0.9,563.5,318.5,122.5,7,4,0.25,1,32.84 0.9,563.5,318.5,122.5,7,5,0.25,1,32 0.86,588,294,147,7,2,0.25,1,29.54 0.86,588,294,147,7,3,0.25,1,30.05 0.86,588,294,147,7,4,0.25,1,29.6 0.86,588,294,147,7,5,0.25,1,28.66 0.82,612.5,318.5,147,7,2,0.25,1,26.84 0.82,612.5,318.5,147,7,3,0.25,1,27.27 0.82,612.5,318.5,147,7,4,0.25,1,26.97 0.82,612.5,318.5,147,7,5,0.25,1,26.19 0.79,637,343,147,7,2,0.25,1,38.67 0.79,637,343,147,7,3,0.25,1,40.03 0.79,637,343,147,7,4,0.25,1,39.86 0.79,637,343,147,7,5,0.25,1,39.04 0.76,661.5,416.5,122.5,7,2,0.25,1,36.96 0.76,661.5,416.5,122.5,7,3,0.25,1,36.13 0.76,661.5,416.5,122.5,7,4,0.25,1,36.91 0.76,661.5,416.5,122.5,7,5,0.25,1,36.43 0.74,686,245,220.5,3.5,2,0.25,1,12.43 0.74,686,245,220.5,3.5,3,0.25,1,12.5 0.74,686,245,220.5,3.5,4,0.25,1,12.41 0.74,686,245,220.5,3.5,5,0.25,1,12.45 0.71,710.5,269.5,220.5,3.5,2,0.25,1,12.57 0.71,710.5,269.5,220.5,3.5,3,0.25,1,12.65 0.71,710.5,269.5,220.5,3.5,4,0.25,1,12.57 0.71,710.5,269.5,220.5,3.5,5,0.25,1,12.63 0.69,735,294,220.5,3.5,2,0.25,1,12.78 0.69,735,294,220.5,3.5,3,0.25,1,12.93 0.69,735,294,220.5,3.5,4,0.25,1,12.73 0.69,735,294,220.5,3.5,5,0.25,1,12.72 0.66,759.5,318.5,220.5,3.5,2,0.25,1,13.17 0.66,759.5,318.5,220.5,3.5,3,0.25,1,13.18 0.66,759.5,318.5,220.5,3.5,4,0.25,1,13.17 0.66,759.5,318.5,220.5,3.5,5,0.25,1,13.18 0.64,784,343,220.5,3.5,2,0.25,1,17.5 0.64,784,343,220.5,3.5,3,0.25,1,17.35 0.64,784,343,220.5,3.5,4,0.25,1,17.52 0.64,784,343,220.5,3.5,5,0.25,1,17.37 0.62,808.5,367.5,220.5,3.5,2,0.25,1,15.09 0.62,808.5,367.5,220.5,3.5,3,0.25,1,15.12 0.62,808.5,367.5,220.5,3.5,4,0.25,1,15.08 0.62,808.5,367.5,220.5,3.5,5,0.25,1,15.16 0.98,514.5,294,110.25,7,2,0.25,2,28.67 0.98,514.5,294,110.25,7,3,0.25,2,28.57 0.98,514.5,294,110.25,7,4,0.25,2,28.18 0.98,514.5,294,110.25,7,5,0.25,2,28.6 0.9,563.5,318.5,122.5,7,2,0.25,2,32.46 0.9,563.5,318.5,122.5,7,3,0.25,2,33.27 0.9,563.5,318.5,122.5,7,4,0.25,2,32.33 0.9,563.5,318.5,122.5,7,5,0.25,2,31.66 0.86,588,294,147,7,2,0.25,2,29.34 0.86,588,294,147,7,3,0.25,2,29.87 0.86,588,294,147,7,4,0.25,2,29.27 0.86,588,294,147,7,5,0.25,2,28.4 0.82,612.5,318.5,147,7,2,0.25,2,25.74 0.82,612.5,318.5,147,7,3,0.25,2,25.98 0.82,612.5,318.5,147,7,4,0.25,2,25.38 0.82,612.5,318.5,147,7,5,0.25,2,24.94 0.79,637,343,147,7,2,0.25,2,38.57 0.79,637,343,147,7,3,0.25,2,40.19 0.79,637,343,147,7,4,0.25,2,39.97 0.79,637,343,147,7,5,0.25,2,38.98 0.76,661.5,416.5,122.5,7,2,0.25,2,36.95 0.76,661.5,416.5,122.5,7,3,0.25,2,36.28 0.76,661.5,416.5,122.5,7,4,0.25,2,36.86 0.76,661.5,416.5,122.5,7,5,0.25,2,36.45 0.74,686,245,220.5,3.5,2,0.25,2,12.35 0.74,686,245,220.5,3.5,3,0.25,2,12.45 0.74,686,245,220.5,3.5,4,0.25,2,12.16 0.74,686,245,220.5,3.5,5,0.25,2,12.3 0.71,710.5,269.5,220.5,3.5,2,0.25,2,12.33 0.71,710.5,269.5,220.5,3.5,3,0.25,2,12.29 0.71,710.5,269.5,220.5,3.5,4,0.25,2,12.2 0.71,710.5,269.5,220.5,3.5,5,0.25,2,12.49 0.69,735,294,220.5,3.5,2,0.25,2,12.85 0.69,735,294,220.5,3.5,3,0.25,2,12.87 0.69,735,294,220.5,3.5,4,0.25,2,12.73 0.69,735,294,220.5,3.5,5,0.25,2,12.95 0.66,759.5,318.5,220.5,3.5,2,0.25,2,13.05 0.66,759.5,318.5,220.5,3.5,3,0.25,2,12.93 0.66,759.5,318.5,220.5,3.5,4,0.25,2,12.77 0.66,759.5,318.5,220.5,3.5,5,0.25,2,13 0.64,784,343,220.5,3.5,2,0.25,2,17.14 0.64,784,343,220.5,3.5,3,0.25,2,16.84 0.64,784,343,220.5,3.5,4,0.25,2,17.02 0.64,784,343,220.5,3.5,5,0.25,2,17.11 0.62,808.5,367.5,220.5,3.5,2,0.25,2,14.34 0.62,808.5,367.5,220.5,3.5,3,0.25,2,14.66 0.62,808.5,367.5,220.5,3.5,4,0.25,2,14.6 0.62,808.5,367.5,220.5,3.5,5,0.25,2,14.6 0.98,514.5,294,110.25,7,2,0.25,3,28.67 0.98,514.5,294,110.25,7,3,0.25,3,28.56 0.98,514.5,294,110.25,7,4,0.25,3,28.17 0.98,514.5,294,110.25,7,5,0.25,3,28.63 0.9,563.5,318.5,122.5,7,2,0.25,3,31.63 0.9,563.5,318.5,122.5,7,3,0.25,3,32.4 0.9,563.5,318.5,122.5,7,4,0.25,3,32.68 0.9,563.5,318.5,122.5,7,5,0.25,3,32.29 0.86,588,294,147,7,2,0.25,3,28.4 0.86,588,294,147,7,3,0.25,3,29.4 0.86,588,294,147,7,4,0.25,3,29.43 0.86,588,294,147,7,5,0.25,3,29.07 0.82,612.5,318.5,147,7,2,0.25,3,24.7 0.82,612.5,318.5,147,7,3,0.25,3,25.48 0.82,612.5,318.5,147,7,4,0.25,3,25.37 0.82,612.5,318.5,147,7,5,0.25,3,25.17 0.79,637,343,147,7,2,0.25,3,39.04 0.79,637,343,147,7,3,0.25,3,38.35 0.79,637,343,147,7,4,0.25,3,39.81 0.79,637,343,147,7,5,0.25,3,39.83 0.76,661.5,416.5,122.5,7,2,0.25,3,35.99 0.76,661.5,416.5,122.5,7,3,0.25,3,36.59 0.76,661.5,416.5,122.5,7,4,0.25,3,35.64 0.76,661.5,416.5,122.5,7,5,0.25,3,36.52 0.74,686,245,220.5,3.5,2,0.25,3,11.8 0.74,686,245,220.5,3.5,3,0.25,3,12.03 0.74,686,245,220.5,3.5,4,0.25,3,11.98 0.74,686,245,220.5,3.5,5,0.25,3,11.69 0.71,710.5,269.5,220.5,3.5,2,0.25,3,12.41 0.71,710.5,269.5,220.5,3.5,3,0.25,3,12.28 0.71,710.5,269.5,220.5,3.5,4,0.25,3,12.1 0.71,710.5,269.5,220.5,3.5,5,0.25,3,12.19 0.69,735,294,220.5,3.5,2,0.25,3,12.34 0.69,735,294,220.5,3.5,3,0.25,3,12.46 0.69,735,294,220.5,3.5,4,0.25,3,12.31 0.69,735,294,220.5,3.5,5,0.25,3,12.12 0.66,759.5,318.5,220.5,3.5,2,0.25,3,12.97 0.66,759.5,318.5,220.5,3.5,3,0.25,3,13.01 0.66,759.5,318.5,220.5,3.5,4,0.25,3,12.74 0.66,759.5,318.5,220.5,3.5,5,0.25,3,12.84 0.64,784,343,220.5,3.5,2,0.25,3,16.83 0.64,784,343,220.5,3.5,3,0.25,3,16.93 0.64,784,343,220.5,3.5,4,0.25,3,16.66 0.64,784,343,220.5,3.5,5,0.25,3,16.86 0.62,808.5,367.5,220.5,3.5,2,0.25,3,13.91 0.62,808.5,367.5,220.5,3.5,3,0.25,3,14.34 0.62,808.5,367.5,220.5,3.5,4,0.25,3,13.95 0.62,808.5,367.5,220.5,3.5,5,0.25,3,13.99 0.98,514.5,294,110.25,7,2,0.25,4,28.7 0.98,514.5,294,110.25,7,3,0.25,4,28.55 0.98,514.5,294,110.25,7,4,0.25,4,28.15 0.98,514.5,294,110.25,7,5,0.25,4,28.62 0.9,563.5,318.5,122.5,7,2,0.25,4,32.67 0.9,563.5,318.5,122.5,7,3,0.25,4,31.69 0.9,563.5,318.5,122.5,7,4,0.25,4,32.07 0.9,563.5,318.5,122.5,7,5,0.25,4,33.28 0.86,588,294,147,7,2,0.25,4,29.47 0.86,588,294,147,7,3,0.25,4,28.42 0.86,588,294,147,7,4,0.25,4,29.08 0.86,588,294,147,7,5,0.25,4,29.88 0.82,612.5,318.5,147,7,2,0.25,4,25.66 0.82,612.5,318.5,147,7,3,0.25,4,24.96 0.82,612.5,318.5,147,7,4,0.25,4,25.43 0.82,612.5,318.5,147,7,5,0.25,4,26 0.79,637,343,147,7,2,0.25,4,40 0.79,637,343,147,7,3,0.25,4,38.84 0.79,637,343,147,7,4,0.25,4,38.33 0.79,637,343,147,7,5,0.25,4,40.12 0.76,661.5,416.5,122.5,7,2,0.25,4,36.95 0.76,661.5,416.5,122.5,7,3,0.25,4,36.45 0.76,661.5,416.5,122.5,7,4,0.25,4,36.81 0.76,661.5,416.5,122.5,7,5,0.25,4,36.26 0.74,686,245,220.5,3.5,2,0.25,4,12.32 0.74,686,245,220.5,3.5,3,0.25,4,12.3 0.74,686,245,220.5,3.5,4,0.25,4,12.18 0.74,686,245,220.5,3.5,5,0.25,4,12.43 0.71,710.5,269.5,220.5,3.5,2,0.25,4,12.36 0.71,710.5,269.5,220.5,3.5,3,0.25,4,12.49 0.71,710.5,269.5,220.5,3.5,4,0.25,4,12.17 0.71,710.5,269.5,220.5,3.5,5,0.25,4,12.28 0.69,735,294,220.5,3.5,2,0.25,4,12.91 0.69,735,294,220.5,3.5,3,0.25,4,12.95 0.69,735,294,220.5,3.5,4,0.25,4,12.67 0.69,735,294,220.5,3.5,5,0.25,4,12.86 0.66,759.5,318.5,220.5,3.5,2,0.25,4,12.95 0.66,759.5,318.5,220.5,3.5,3,0.25,4,13 0.66,759.5,318.5,220.5,3.5,4,0.25,4,12.86 0.66,759.5,318.5,220.5,3.5,5,0.25,4,12.92 0.64,784,343,220.5,3.5,2,0.25,4,16.99 0.64,784,343,220.5,3.5,3,0.25,4,16.69 0.64,784,343,220.5,3.5,4,0.25,4,16.56 0.64,784,343,220.5,3.5,5,0.25,4,16.62 0.62,808.5,367.5,220.5,3.5,2,0.25,4,14.33 0.62,808.5,367.5,220.5,3.5,3,0.25,4,14.61 0.62,808.5,367.5,220.5,3.5,4,0.25,4,14.61 0.62,808.5,367.5,220.5,3.5,5,0.25,4,14.65 0.98,514.5,294,110.25,7,2,0.25,5,28.69 0.98,514.5,294,110.25,7,3,0.25,5,28.58 0.98,514.5,294,110.25,7,4,0.25,5,28.15 0.98,514.5,294,110.25,7,5,0.25,5,28.61 0.9,563.5,318.5,122.5,7,2,0.25,5,33.13 0.9,563.5,318.5,122.5,7,3,0.25,5,32.31 0.9,563.5,318.5,122.5,7,4,0.25,5,31.53 0.9,563.5,318.5,122.5,7,5,0.25,5,32.46 0.86,588,294,147,7,2,0.25,5,29.71 0.86,588,294,147,7,3,0.25,5,29.09 0.86,588,294,147,7,4,0.25,5,28.31 0.86,588,294,147,7,5,0.25,5,29.39 0.82,612.5,318.5,147,7,2,0.25,5,25.7 0.82,612.5,318.5,147,7,3,0.25,5,25.17 0.82,612.5,318.5,147,7,4,0.25,5,24.6 0.82,612.5,318.5,147,7,5,0.25,5,25.49 0.79,637,343,147,7,2,0.25,5,39.89 0.79,637,343,147,7,3,0.25,5,39.83 0.79,637,343,147,7,4,0.25,5,39.01 0.79,637,343,147,7,5,0.25,5,38.65 0.76,661.5,416.5,122.5,7,2,0.25,5,35.69 0.76,661.5,416.5,122.5,7,3,0.25,5,36.64 0.76,661.5,416.5,122.5,7,4,0.25,5,36.06 0.76,661.5,416.5,122.5,7,5,0.25,5,36.7 0.74,686,245,220.5,3.5,2,0.25,5,12.12 0.74,686,245,220.5,3.5,3,0.25,5,11.67 0.74,686,245,220.5,3.5,4,0.25,5,11.64 0.74,686,245,220.5,3.5,5,0.25,5,12.02 0.71,710.5,269.5,220.5,3.5,2,0.25,5,12.27 0.71,710.5,269.5,220.5,3.5,3,0.25,5,12.19 0.71,710.5,269.5,220.5,3.5,4,0.25,5,12.25 0.71,710.5,269.5,220.5,3.5,5,0.25,5,12.27 0.69,735,294,220.5,3.5,2,0.25,5,12.47 0.69,735,294,220.5,3.5,3,0.25,5,12.12 0.69,735,294,220.5,3.5,4,0.25,5,12.18 0.69,735,294,220.5,3.5,5,0.25,5,12.47 0.66,759.5,318.5,220.5,3.5,2,0.25,5,12.93 0.66,759.5,318.5,220.5,3.5,3,0.25,5,12.82 0.66,759.5,318.5,220.5,3.5,4,0.25,5,12.78 0.66,759.5,318.5,220.5,3.5,5,0.25,5,13.02 0.64,784,343,220.5,3.5,2,0.25,5,16.73 0.64,784,343,220.5,3.5,3,0.25,5,16.86 0.64,784,343,220.5,3.5,4,0.25,5,16.76 0.64,784,343,220.5,3.5,5,0.25,5,16.92 0.62,808.5,367.5,220.5,3.5,2,0.25,5,13.68 0.62,808.5,367.5,220.5,3.5,3,0.25,5,13.99 0.62,808.5,367.5,220.5,3.5,4,0.25,5,14.16 0.62,808.5,367.5,220.5,3.5,5,0.25,5,13.86 0.98,514.5,294,110.25,7,2,0.4,1,32.26 0.98,514.5,294,110.25,7,3,0.4,1,32.26 0.98,514.5,294,110.25,7,4,0.4,1,32.49 0.98,514.5,294,110.25,7,5,0.4,1,32.53 0.9,563.5,318.5,122.5,7,2,0.4,1,36.47 0.9,563.5,318.5,122.5,7,3,0.4,1,37.24 0.9,563.5,318.5,122.5,7,4,0.4,1,36.66 0.9,563.5,318.5,122.5,7,5,0.4,1,35.96 0.86,588,294,147,7,2,0.4,1,31.89 0.86,588,294,147,7,3,0.4,1,32.39 0.86,588,294,147,7,4,0.4,1,32.09 0.86,588,294,147,7,5,0.4,1,31.29 0.82,612.5,318.5,147,7,2,0.4,1,29.22 0.82,612.5,318.5,147,7,3,0.4,1,29.91 0.82,612.5,318.5,147,7,4,0.4,1,29.53 0.82,612.5,318.5,147,7,5,0.4,1,28.65 0.79,637,343,147,7,2,0.4,1,41.4 0.79,637,343,147,7,3,0.4,1,42.62 0.79,637,343,147,7,4,0.4,1,42.5 0.79,637,343,147,7,5,0.4,1,41.67 0.76,661.5,416.5,122.5,7,2,0.4,1,40.78 0.76,661.5,416.5,122.5,7,3,0.4,1,39.97 0.76,661.5,416.5,122.5,7,4,0.4,1,40.71 0.76,661.5,416.5,122.5,7,5,0.4,1,40.43 0.74,686,245,220.5,3.5,2,0.4,1,14.52 0.74,686,245,220.5,3.5,3,0.4,1,14.61 0.74,686,245,220.5,3.5,4,0.4,1,14.5 0.74,686,245,220.5,3.5,5,0.4,1,14.55 0.71,710.5,269.5,220.5,3.5,2,0.4,1,14.51 0.71,710.5,269.5,220.5,3.5,3,0.4,1,14.6 0.71,710.5,269.5,220.5,3.5,4,0.4,1,14.5 0.71,710.5,269.5,220.5,3.5,5,0.4,1,14.58 0.69,735,294,220.5,3.5,2,0.4,1,14.51 0.69,735,294,220.5,3.5,3,0.4,1,14.7 0.69,735,294,220.5,3.5,4,0.4,1,14.42 0.69,735,294,220.5,3.5,5,0.4,1,14.42 0.66,759.5,318.5,220.5,3.5,2,0.4,1,15.23 0.66,759.5,318.5,220.5,3.5,3,0.4,1,15.23 0.66,759.5,318.5,220.5,3.5,4,0.4,1,15.23 0.66,759.5,318.5,220.5,3.5,5,0.4,1,15.23 0.64,784,343,220.5,3.5,2,0.4,1,19.52 0.64,784,343,220.5,3.5,3,0.4,1,19.36 0.64,784,343,220.5,3.5,4,0.4,1,19.48 0.64,784,343,220.5,3.5,5,0.4,1,19.42 0.62,808.5,367.5,220.5,3.5,2,0.4,1,15.09 0.62,808.5,367.5,220.5,3.5,3,0.4,1,17.17 0.62,808.5,367.5,220.5,3.5,4,0.4,1,17.14 0.62,808.5,367.5,220.5,3.5,5,0.4,1,17.14 0.98,514.5,294,110.25,7,2,0.4,2,32.82 0.98,514.5,294,110.25,7,3,0.4,2,32.71 0.98,514.5,294,110.25,7,4,0.4,2,32.24 0.98,514.5,294,110.25,7,5,0.4,2,32.72 0.9,563.5,318.5,122.5,7,2,0.4,2,35.84 0.9,563.5,318.5,122.5,7,3,0.4,2,36.57 0.9,563.5,318.5,122.5,7,4,0.4,2,36.06 0.9,563.5,318.5,122.5,7,5,0.4,2,35.69 0.86,588,294,147,7,2,0.4,2,32.48 0.86,588,294,147,7,3,0.4,2,32.74 0.86,588,294,147,7,4,0.4,2,32.13 0.86,588,294,147,7,5,0.4,2,31.64 0.82,612.5,318.5,147,7,2,0.4,2,28.95 0.82,612.5,318.5,147,7,3,0.4,2,29.49 0.82,612.5,318.5,147,7,4,0.4,2,28.64 0.82,612.5,318.5,147,7,5,0.4,2,28.01 0.79,637,343,147,7,2,0.4,2,41.64 0.79,637,343,147,7,3,0.4,2,43.1 0.79,637,343,147,7,4,0.4,2,42.74 0.79,637,343,147,7,5,0.4,2,41.92 0.76,661.5,416.5,122.5,7,2,0.4,2,40.78 0.76,661.5,416.5,122.5,7,3,0.4,2,40.15 0.76,661.5,416.5,122.5,7,4,0.4,2,40.57 0.76,661.5,416.5,122.5,7,5,0.4,2,40.42 0.74,686,245,220.5,3.5,2,0.4,2,14.54 0.74,686,245,220.5,3.5,3,0.4,2,14.45 0.74,686,245,220.5,3.5,4,0.4,2,14.18 0.74,686,245,220.5,3.5,5,0.4,2,14.5 0.71,710.5,269.5,220.5,3.5,2,0.4,2,14.7 0.71,710.5,269.5,220.5,3.5,3,0.4,2,14.66 0.71,710.5,269.5,220.5,3.5,4,0.4,2,14.4 0.71,710.5,269.5,220.5,3.5,5,0.4,2,14.71 0.69,735,294,220.5,3.5,2,0.4,2,14.75 0.69,735,294,220.5,3.5,3,0.4,2,14.71 0.69,735,294,220.5,3.5,4,0.4,2,14.33 0.69,735,294,220.5,3.5,5,0.4,2,14.62 0.66,759.5,318.5,220.5,3.5,2,0.4,2,15.34 0.66,759.5,318.5,220.5,3.5,3,0.4,2,15.29 0.66,759.5,318.5,220.5,3.5,4,0.4,2,15.09 0.66,759.5,318.5,220.5,3.5,5,0.4,2,15.3 0.64,784,343,220.5,3.5,2,0.4,2,19.2 0.64,784,343,220.5,3.5,3,0.4,2,18.88 0.64,784,343,220.5,3.5,4,0.4,2,18.9 0.64,784,343,220.5,3.5,5,0.4,2,19.12 0.62,808.5,367.5,220.5,3.5,2,0.4,2,16.76 0.62,808.5,367.5,220.5,3.5,3,0.4,2,17.23 0.62,808.5,367.5,220.5,3.5,4,0.4,2,17.26 0.62,808.5,367.5,220.5,3.5,5,0.4,2,17.15 0.98,514.5,294,110.25,7,2,0.4,3,32.82 0.98,514.5,294,110.25,7,3,0.4,3,32.69 0.98,514.5,294,110.25,7,4,0.4,3,32.23 0.98,514.5,294,110.25,7,5,0.4,3,32.75 0.9,563.5,318.5,122.5,7,2,0.4,3,34.24 0.9,563.5,318.5,122.5,7,3,0.4,3,34.95 0.9,563.5,318.5,122.5,7,4,0.4,3,35.05 0.9,563.5,318.5,122.5,7,5,0.4,3,34.29 0.86,588,294,147,7,2,0.4,3,31.28 0.86,588,294,147,7,3,0.4,3,32.12 0.86,588,294,147,7,4,0.4,3,32.05 0.86,588,294,147,7,5,0.4,3,31.84 0.82,612.5,318.5,147,7,2,0.4,3,28.67 0.82,612.5,318.5,147,7,3,0.4,3,29.67 0.82,612.5,318.5,147,7,4,0.4,3,29.47 0.82,612.5,318.5,147,7,5,0.4,3,28.91 0.79,637,343,147,7,2,0.4,3,41.26 0.79,637,343,147,7,3,0.4,3,41.3 0.79,637,343,147,7,4,0.4,3,42.49 0.79,637,343,147,7,5,0.4,3,42.08 0.76,661.5,416.5,122.5,7,2,0.4,3,39.32 0.76,661.5,416.5,122.5,7,3,0.4,3,39.84 0.76,661.5,416.5,122.5,7,4,0.4,3,38.89 0.76,661.5,416.5,122.5,7,5,0.4,3,39.68 0.74,686,245,220.5,3.5,2,0.4,3,13.97 0.74,686,245,220.5,3.5,3,0.4,3,14.22 0.74,686,245,220.5,3.5,4,0.4,3,14.1 0.74,686,245,220.5,3.5,5,0.4,3,13.78 0.71,710.5,269.5,220.5,3.5,2,0.4,3,14.07 0.71,710.5,269.5,220.5,3.5,3,0.4,3,14.03 0.71,710.5,269.5,220.5,3.5,4,0.4,3,13.94 0.71,710.5,269.5,220.5,3.5,5,0.4,3,13.86 0.69,735,294,220.5,3.5,2,0.4,3,14.32 0.69,735,294,220.5,3.5,3,0.4,3,14.56 0.69,735,294,220.5,3.5,4,0.4,3,14.33 0.69,735,294,220.5,3.5,5,0.4,3,14.08 0.66,759.5,318.5,220.5,3.5,2,0.4,3,15.16 0.66,759.5,318.5,220.5,3.5,3,0.4,3,15.18 0.66,759.5,318.5,220.5,3.5,4,0.4,3,14.72 0.66,759.5,318.5,220.5,3.5,5,0.4,3,14.9 0.64,784,343,220.5,3.5,2,0.4,3,18.48 0.64,784,343,220.5,3.5,3,0.4,3,18.71 0.64,784,343,220.5,3.5,4,0.4,3,18.48 0.64,784,343,220.5,3.5,5,0.4,3,18.46 0.62,808.5,367.5,220.5,3.5,2,0.4,3,16.47 0.62,808.5,367.5,220.5,3.5,3,0.4,3,16.35 0.62,808.5,367.5,220.5,3.5,4,0.4,3,16.55 0.62,808.5,367.5,220.5,3.5,5,0.4,3,16.74 0.98,514.5,294,110.25,7,2,0.4,4,32.85 0.98,514.5,294,110.25,7,3,0.4,4,32.67 0.98,514.5,294,110.25,7,4,0.4,4,32.21 0.98,514.5,294,110.25,7,5,0.4,4,32.74 0.9,563.5,318.5,122.5,7,2,0.4,4,36.45 0.9,563.5,318.5,122.5,7,3,0.4,4,35.73 0.9,563.5,318.5,122.5,7,4,0.4,4,35.4 0.9,563.5,318.5,122.5,7,5,0.4,4,36.57 0.86,588,294,147,7,2,0.4,4,32.38 0.86,588,294,147,7,3,0.4,4,31.66 0.86,588,294,147,7,4,0.4,4,32.15 0.86,588,294,147,7,5,0.4,4,32.75 0.82,612.5,318.5,147,7,2,0.4,4,28.93 0.82,612.5,318.5,147,7,3,0.4,4,28.05 0.82,612.5,318.5,147,7,4,0.4,4,28.64 0.82,612.5,318.5,147,7,5,0.4,4,29.52 0.79,637,343,147,7,2,0.4,4,42.77 0.79,637,343,147,7,3,0.4,4,41.73 0.79,637,343,147,7,4,0.4,4,41.32 0.79,637,343,147,7,5,0.4,4,42.96 0.76,661.5,416.5,122.5,7,2,0.4,4,40.68 0.76,661.5,416.5,122.5,7,3,0.4,4,40.4 0.76,661.5,416.5,122.5,7,4,0.4,4,40.6 0.76,661.5,416.5,122.5,7,5,0.4,4,40.11 0.74,686,245,220.5,3.5,2,0.4,4,14.37 0.74,686,245,220.5,3.5,3,0.4,4,14.48 0.74,686,245,220.5,3.5,4,0.4,4,14.32 0.74,686,245,220.5,3.5,5,0.4,4,14.44 0.71,710.5,269.5,220.5,3.5,2,0.4,4,14.6 0.71,710.5,269.5,220.5,3.5,3,0.4,4,14.7 0.71,710.5,269.5,220.5,3.5,4,0.4,4,14.47 0.71,710.5,269.5,220.5,3.5,5,0.4,4,14.66 0.69,735,294,220.5,3.5,2,0.4,4,14.54 0.69,735,294,220.5,3.5,3,0.4,4,14.62 0.69,735,294,220.5,3.5,4,0.4,4,14.53 0.69,735,294,220.5,3.5,5,0.4,4,14.71 0.66,759.5,318.5,220.5,3.5,2,0.4,4,15.34 0.66,759.5,318.5,220.5,3.5,3,0.4,4,15.29 0.66,759.5,318.5,220.5,3.5,4,0.4,4,15.09 0.66,759.5,318.5,220.5,3.5,5,0.4,4,15.3 0.64,784,343,220.5,3.5,2,0.4,4,19.06 0.64,784,343,220.5,3.5,3,0.4,4,19.13 0.64,784,343,220.5,3.5,4,0.4,4,19 0.64,784,343,220.5,3.5,5,0.4,4,18.84 0.62,808.5,367.5,220.5,3.5,2,0.4,4,16.44 0.62,808.5,367.5,220.5,3.5,3,0.4,4,16.9 0.62,808.5,367.5,220.5,3.5,4,0.4,4,16.94 0.62,808.5,367.5,220.5,3.5,5,0.4,4,16.77 0.98,514.5,294,110.25,7,2,0.4,5,32.84 0.98,514.5,294,110.25,7,3,0.4,5,32.72 0.98,514.5,294,110.25,7,4,0.4,5,32.21 0.98,514.5,294,110.25,7,5,0.4,5,32.73 0.9,563.5,318.5,122.5,7,2,0.4,5,35.67 0.9,563.5,318.5,122.5,7,3,0.4,5,35.01 0.9,563.5,318.5,122.5,7,4,0.4,5,34.72 0.9,563.5,318.5,122.5,7,5,0.4,5,35.24 0.86,588,294,147,7,2,0.4,5,32.31 0.86,588,294,147,7,3,0.4,5,31.81 0.86,588,294,147,7,4,0.4,5,31.12 0.86,588,294,147,7,5,0.4,5,32.06 0.82,612.5,318.5,147,7,2,0.4,5,30 0.82,612.5,318.5,147,7,3,0.4,5,29.5 0.82,612.5,318.5,147,7,4,0.4,5,29.06 0.82,612.5,318.5,147,7,5,0.4,5,29.92 0.79,637,343,147,7,2,0.4,5,42.11 0.79,637,343,147,7,3,0.4,5,41.96 0.79,637,343,147,7,4,0.4,5,41.09 0.79,637,343,147,7,5,0.4,5,40.79 0.76,661.5,416.5,122.5,7,2,0.4,5,38.82 0.76,661.5,416.5,122.5,7,3,0.4,5,39.72 0.76,661.5,416.5,122.5,7,4,0.4,5,39.31 0.76,661.5,416.5,122.5,7,5,0.4,5,39.86 0.74,686,245,220.5,3.5,2,0.4,5,14.41 0.74,686,245,220.5,3.5,3,0.4,5,14.19 0.74,686,245,220.5,3.5,4,0.4,5,14.17 0.74,686,245,220.5,3.5,5,0.4,5,14.39 0.71,710.5,269.5,220.5,3.5,2,0.4,5,12.43 0.71,710.5,269.5,220.5,3.5,3,0.4,5,12.63 0.71,710.5,269.5,220.5,3.5,4,0.4,5,12.76 0.71,710.5,269.5,220.5,3.5,5,0.4,5,12.42 0.69,735,294,220.5,3.5,2,0.4,5,14.12 0.69,735,294,220.5,3.5,3,0.4,5,14.28 0.69,735,294,220.5,3.5,4,0.4,5,14.37 0.69,735,294,220.5,3.5,5,0.4,5,14.21 0.66,759.5,318.5,220.5,3.5,2,0.4,5,14.96 0.66,759.5,318.5,220.5,3.5,3,0.4,5,14.92 0.66,759.5,318.5,220.5,3.5,4,0.4,5,14.92 0.66,759.5,318.5,220.5,3.5,5,0.4,5,15.16 0.64,784,343,220.5,3.5,2,0.4,5,17.69 0.64,784,343,220.5,3.5,3,0.4,5,18.19 0.64,784,343,220.5,3.5,4,0.4,5,18.16 0.64,784,343,220.5,3.5,5,0.4,5,17.88 0.62,808.5,367.5,220.5,3.5,2,0.4,5,16.54 0.62,808.5,367.5,220.5,3.5,3,0.4,5,16.44 0.62,808.5,367.5,220.5,3.5,4,0.4,5,16.48 0.62,808.5,367.5,220.5,3.5,5,0.4,5,16.64 \ No newline at end of file diff --git a/Eye_Color.csv b/Eye_Color.csv new file mode 100644 index 0000000..50c00f0 --- /dev/null +++ b/Eye_Color.csv @@ -0,0 +1,2069 @@ +gender,age,year,eyecolor,height,miles,brothers,sisters,computertime,exercise,exercisehours,musiccds,playgames,watchtv +female,18,first,hazel,68,195,0,1,20,Yes,3,75,6,18 +male,20,third,brown,70,120,3,0,24,No,0,50,0,3 +female,18,first,green,67,200,0,1,35,Yes,3,53,8,1 +male,23,fourth,hazel,74,140,1,1,5,Yes,25,50,0,7 +female,19,second,blue,62,60,0,1,5,Yes,4,30,2,5 +male,19,second,green,67,0,0,1,5,Yes,8,100,0,10 +male,37,third,brown,74,511,1,1,3,No,0,50,3,8 +male,22,third,brown,73,210,3,2,2,Yes,10,100,6,10 +female,26,fourth,brown,70,120,2,1,5,No,0,130,0,20 +male,21,third,blue,68,90,1,1,5,Yes,3,34,0.5,5 +male,25,fourth,blue,69,90,0,3,3,Yes,6,55,0,21 +female,20,second,blue,70,93,0,1,15,Yes,7,60,1,1 +male,29,other,brown,69,244,1,1,5,No,0,100,20,20 +female,19,second,green,65,40,1,0,6,Yes,4,175,0,12 +male,19,first,blue,70,40,0,0,5,No,0,150,3,2 +male,22,other,blue,73,90,0,1,15,Yes,10,35,20,4 +female,20,second,brown,64,100,2,1,9,No,0,30,10,8 +male,21,third,brown,70,124,1,2,4,Yes,6,5,1,5 +male,20,third,blue,70,400,0,0,30,Yes,4,50,5,1 +female,19,second,hazel,63,206,1,1,10,No,0,20,20,15 +male,20,third,hazel,70,184,2,0,20,No,0,40,10,20 +female,19,second,blue,69,240,1,1,14,No,0,15,1,10 +female,19,first,hazel,65,230,1,0,12.5,Yes,9,30,0,4.5 +female,19,second,blue,64,0,1,0,6,Yes,5,52,0,0 +male,18,first,green,58,175,1,0,10,No,0,40,5,5 +male,19,second,blue,67,60,4,1,5,Yes,2,50,10,12 +male,23,fourth,brown,74,160,2,1,20,No,0,60,15,40 +male,24,other,blue,72,180,2,2,2,Yes,7,100,7,21 +female,20,second,brown,64,0,0,2,3,Yes,3,50,0,10 +male,21,third,green,70,100,1,1,6,Yes,5,20,0,10 +female,22,fourth,brown,66,300,1,0,1,Yes,1,50,1,1 +male,22,fourth,blue,72,0,0,2,10,Yes,6,250,0,25 +female,19,second,brown,67,180,0,2,40,Yes,5,70,1,7 +female,21,third,blue,63,0,2,3,10,No,0,50,0.5,8 +male,21,third,green,70,80,0,2,10,No,0,50,10,30 +male,22,fourth,green,74,120,2,1,10,No,0,35,1,5 +male,20,third,other,71,90,1,0,15,Yes,4,10,0,1 +male,21,third,green,71,220,1,0,18,Yes,30,20,0,21 +male,21,third,brown,71,190,1,0,10,Yes,5,25,1,10 +female,19,second,blue,64,200,0,1,5,Yes,3,130,0,8 +male,18,first,green,71,130,2,1,2,No,0,15,2,25 +male,20,second,blue,72,120,0,1,4,Yes,10,56,12,8 +male,21,third,brown,70,157,0,1,15,No,0,50,5,28 +female,21,fourth,green,69,230,1,0,10,Yes,8,215,2,10 +male,19,first,brown,67,75,2,0,10,No,0,0,12,12 +male,22,fourth,hazel,70,200,0,2,5,No,0,5,5,20 +male,20,second,green,67,109,1,1,5,No,0,80,0,1 +female,20,second,blue,62,200,1,0,12,Yes,1,300,0,10 +male,21,third,brown,66,0,1,2,5,Yes,5,0,10,30 +male,20,third,hazel,69,50,2,0,8,Yes,2.5,250,0,5 +female,20,second,hazel,67,600,1,0,15,Yes,4,140,0,15 +female,19,second,brown,62,40,1,0,15,Yes,8,25,0,13 +female,22,fourth,brown,65,5,1,0,1,Yes,6,50,0,3 +male,20,third,hazel,72,80,1,1,2.5,Yes,5.5,10,5.5,14 +male,21,third,hazel,70,150,1,0,2,Yes,10,100,15,7 +female,19,second,brown,62,30,4,2,10,No,0,10,0,20 +male,21,fourth,blue,69,140,1,0,5,No,0,100,0,2 +female,21,fourth,blue,66,10,2,1,3,Yes,3,20,5,10 +female,21,fourth,green,65,305,2,3,14,Yes,2,110,2,12 +male,20,third,blue,79,79,0,2,28,Yes,6,40,2,15 +female,20,second,brown,62,220,0,0,24,Yes,5,25,0,7 +male,20,third,hazel,71,55,0,1,12,Yes,6,150,12,12 +male,19,first,brown,68,20,2,0,10,No,0,40,10,14 +male,18,first,blue,71,180,2,0,3,Yes,5,30,2,2 +male,18,first,blue,72,75,0,2,3,Yes,2,15,0,4 +female,20,second,blue,64,150,0,3,7,No,0,150,0,28 +male,21,third,hazel,75,210,0,0,7,No,0,26,10,10 +male,20,second,brown,70,11,3,1,7,Yes,10,5,14,40 +male,23,other,brown,80,1500,1,0,10,No,0,20,10,1 +female,22,fourth,green,64,154,1,0,5,No,0,100,0,10 +female,18,second,green,67,80,1,0,70,No,0,56,0,5 +female,19,second,hazel,67,360,1,2,10,Yes,4,30,3,6 +male,21,third,blue,75,170,1,1,5,Yes,2,6,1,5 +female,38,third,hazel,67,40,1,1,4,Yes,7,30,14,14 +female,20,third,brown,67,35,0,0,3,Yes,5,60,0,10 +male,23,fourth,blue,74,0,1,1,8,Yes,5,500,11,16 +female,19,second,hazel,65,35,0,2,5,Yes,4,30,0,5 +male,21,third,blue,71,95,1,0,10,Yes,8,30,5,10 +male,20,second,blue,75,190,2,0,10,No,0,55,10,1 +female,21,third,blue,68,101,1,3,2,No,0,0,1,10 +female,19,second,green,67,150,1,5,4,Yes,3,200,0,3 +male,21,third,blue,75,15,2,1,7,Yes,4,100,10,10 +male,20,third,blue,76,210,1,1,5,Yes,3.5,100,10,10 +male,18,first,green,71,215,0,2,4,Yes,5,60,0,1 +female,20,third,brown,62,45,1,1,60,No,0,100,0,2 +male,22,fourth,blue,73,13,1,1,4,Yes,6,50,4,8 +male,22,other,blue,68,0,2,0,10,No,0,150,2,15 +female,18,first,green,67,215,0,2,30,No,0,20,1,3 +male,24,first,brown,70,28,3,3,20,Yes,6,0,8,20 +male,19,first,blue,72,260,0,1,20,No,0,100,10,20 +female,23,other,other,65,30,1,1,20,No,0,20,5,15 +male,21,second,brown,69,8587.2,1,0,20,Yes,6,0,6,2 +female,20,third,brown,60,30,0,1,7,No,0,50,0,25 +female,20,second,blue,62,60,1,0,18,Yes,5,350,0,18 +female,21,third,brown,63,7000,0,1,10,No,0,300,0,4 +female,19,first,hazel,68,230,0,1,30,No,0,350,2,2 +female,20,third,other,70,22,3,0,10,No,0,15,1,3 +female,20,second,blue,62,130,2,1,25,No,0,10,0,8 +male,23,other,blue,71,180,0,1,16,Yes,4,58,10,15 +female,17,other,brown,67,18,2,1,10,No,0,50,0,5 +female,19,second,blue,61,50,0,1,14,No,0,150,0,20 +female,21,fourth,brown,63,120,1,0,5,No,0,500,30,15 +male,20,second,blue,71,30,0,1,15,Yes,4,200,2,8 +female,27,fourth,blue,63,2000,1,1,8,Yes,6,27,0,7 +female,21,third,brown,67,220,2,1,6,Yes,5,100,0,10 +male,19,second,hazel,78,300,0,1,24,Yes,16,100,2,18 +male,21,third,brown,69,180,3,0,15,No,0,25,1,10 +male,20,second,brown,73,82,2,2,10,No,0,500,1,3 +female,20,second,green,65,160,5,6,3,Yes,0,30,0.5,12 +female,24,other,blue,64,100,1,0,4,No,0,133,0,10 +male,18,first,green,72,360,1,0,5,Yes,5,100,5,10 +male,21,third,green,73,0,1,1,2,No,0,200,0.5,2 +male,20,third,brown,71,58,0,2,52.5,No,0,12,12.5,22.5 +male,21,third,brown,72,0,0,1,2,Yes,9,100,14,7 +female,18,first,green,67,65,0,2,8,Yes,10,50,0,8 +male,20,second,blue,71,150,0,1,4,Yes,10,100,10,20 +female,20,second,hazel,68,190,6,2,3,Yes,6,15,0,5 +female,20,second,green,65,288.5,0,2,25,No,0,47,1,5 +female,19,second,blue,65,300,0,3,5,No,0,75,0.5,7 +male,20,second,green,68,132,2,0,25,Yes,7,50,10,10 +male,19,second,brown,71,4000,2,0,45,Yes,6,60,5,35 +female,19,second,brown,69,70,1,0,15,Yes,2,40,5,10 +female,20,third,blue,70,150,1,1,14,Yes,6,25,1,3 +male,20,third,brown,75,300,0,2,3,Yes,20,45,18,5 +female,20,second,green,64,215,0,0,5,Yes,25,200,0.5,2 +female,20,third,green,67,30,1,1,10,Yes,5,50,0,2 +male,22,fourth,brown,75,40,1,0,7,Yes,8,200,13,35 +female,20,third,blue,68,150,0,1,3,Yes,3.5,50,0,5 +male,20,second,blue,73,190,0,1,4,Yes,2,40,3,6 +male,19,first,brown,70,375,0,1,15,No,0,300,5,5 +female,19,second,green,64,193,0,1,40,No,0,1000,0,20 +female,21,fourth,green,66,180,1,0,14,Yes,5,100,2,30 +male,23,other,brown,68,293,3,1,2,Yes,15,150,21,14 +female,19,first,blue,69,250,0,1,12,Yes,8,55,0,6 +male,20,second,hazel,68,45,0,2,1.5,No,0,80,2,9 +female,21,fourth,green,66,45,1,0,5,No,0,20,1,8 +female,21,third,brown,66,300,1,2,15,Yes,6,200,0,15 +female,22,third,blue,70,240,3,2,1,Yes,1,12,0.5,0.5 +male,19,second,green,72,1500,1,0,2,Yes,3,31,6,16 +female,19,second,blue,67,40,1,2,2,Yes,3,60,0,10 +female,20,second,other,63,13000,2,1,20,No,0,10,0,2 +female,20,third,blue,66,260,1,1,7,No,0,34,1,15 +male,19,second,brown,72,800,0,2,4,Yes,4,450,2,8 +female,19,second,other,68,369,1,4,3,Yes,3,12,0,5 +female,20,second,blue,67,168,0,2,5,Yes,3,80,0,10 +male,21,third,hazel,73,50,1,1,5,Yes,8,100,5,4 +female,20,second,green,75,440,0,1,3,Yes,10,40,0,3 +male,20,second,green,68,60,0,1,7,Yes,3,120,7,25 +female,20,third,blue,68,75,1,2,15,Yes,3,20,0,0 +female,23,fourth,blue,70,40,1,1,6,No,0,75,0,3 +male,21,third,brown,69,200,1,2,4,No,0,100,7,20 +male,21,fourth,brown,74,85,2,0,10,Yes,6,100,5,5 +female,19,second,hazel,63,190,0,2,1,No,0,30,2,5 +male,21,third,green,69,175,1,1,8.5,Yes,7,300,5,17.5 +male,20,third,blue,66,200,1,1,3,No,0,20,0,2 +female,20,third,green,68,0,1,1,10,Yes,6,100,0,10 +female,23,fourth,hazel,64,33,2,1,5,No,0,20,0,10 +male,22,third,brown,71,150,3,0,2,Yes,5,80,4,6 +female,21,third,hazel,64,160,1,1,2,No,0,5,0,6 +male,24,third,brown,64,360,2,1,3,Yes,4,12,0,6 +male,22,other,green,72,50,2,0,15,Yes,5,45,3,6 +male,24,fourth,green,74,189,2,1,6,Yes,5,25,1,25 +female,19,second,green,77,105,2,0,10,Yes,8,120,1,3 +female,20,third,blue,62,65,1,1,15,Yes,4,10,0,10 +female,19,first,green,63,950,1,0,8,No,0,50,2,5 +female,19,first,hazel,66,350,1,0,4,Yes,4,45,0,8 +female,22,other,brown,68,210,2,1,8.5,No,0,75,0,22 +female,20,third,blue,67,138,0,2,6,No,0,79,0,15 +female,20,second,hazel,67,100,2,1,2.5,Yes,0,20,3.5,15 +female,20,second,brown,63,390,2,1,50,No,0,85,2,12 +female,19,third,brown,65,6000,0,1,15,No,0,27,0,20 +male,21,third,brown,69,130,1,2,1,No,0,60,5,20 +male,19,first,blue,73,110,2,1,11,No,0,400,1,3 +female,20,third,green,64,200,1,1,25,Yes,6,40,0.5,14 +male,25,fourth,brown,70,15,3,1,5,No,0,100,2,5 +female,22,fourth,brown,65,25,0,2,4,Yes,6,50,0,2 +male,21,third,blue,68,100,0,2,20,No,0,700,5,10 +female,20,second,brown,66,35,1,2,2,No,0,15,0,5 +male,19,first,brown,61,120,0,3,3,Yes,5,4,5,30 +female,19,first,brown,67,300,1,1,12,Yes,3,20,1,1 +male,21,other,blue,71,220,0,1,5,No,0,102,10,20 +female,18,first,brown,65,80,1,1,10,Yes,2,95,1,3 +male,28,other,hazel,72,110,3,1,6,No,0,100,2,21 +female,18,first,blue,67,30,1,1,20,No,0,100,0,3 +female,20,second,brown,72,500,1,1,8,No,0,200,4,7 +male,19,second,hazel,73,1697,1,0,5,Yes,5,35,10,5 +male,24,second,brown,73,57,1,1,5.5,Yes,12,300,1,3 +female,21,fourth,blue,65,150,0,1,10,No,0,60,1,15 +female,20,third,green,65,45,0,2,30,No,0,30,2,20 +female,41,first,hazel,69,10,2,1,6,Yes,6,200,2,6 +female,21,fourth,green,64,120,2,2,3,No,0,50,3,5 +female,20,second,brown,67,175,2,1,15,Yes,6,45,1,8 +female,19,first,blue,65,350,0,2,3,No,0,50,0,1 +male,19,first,blue,67,14,1,2,20,No,0,15,1,0 +female,20,second,hazel,68,75,1,0,5,No,0,100,7,5 +female,20,third,green,65,180,0,1,5,Yes,3,40,0,8 +male,23,third,blue,67,90,1,1,7,Yes,4.5,110,1,2 +male,21,third,blue,70,250,0,2,10,Yes,10,50,0,2 +male,20,third,blue,74,90,1,2,8,Yes,10,70,8,2 +female,20,third,blue,64,100,2,1,40,Yes,5,40,0,3 +female,19,second,green,67,350,1,1,6,No,0,50,1,6 +male,26,fourth,brown,69,770,3,0,15,Yes,4,150,10,7 +male,21,third,blue,73,200,1,1,2,Yes,6,5,2,20 +female,19,second,blue,71,180,1,3,15,Yes,3,100,0.5,10 +female,22,first,other,67,110,3,0,10,Yes,3,15,0,0 +male,20,third,other,77,130,2,2,4,Yes,6,150,6,15 +male,18,first,blue,73,90,1,1,15,No,0,30,0,10 +female,18,first,green,64,24,0,1,3,Yes,4,30,5,6 +male,19,third,hazel,72,150,1,0,5,Yes,7,58,4,18 +female,21,third,brown,63,60,1,2,25,No,0,75,10,2 +female,20,second,brown,69,150,2,1,3,No,0,75,0,4 +male,18,first,brown,71,50,2,2,8,Yes,12,75,1,0.5 +female,20,second,green,65,142,1,2,21,No,0,15,1,7 +male,20,third,blue,69,190,0,1,15,Yes,8.5,112,1,15 +female,19,second,hazel,60,40,0,1,4,Yes,5,20,0,14 +female,22,fourth,brown,63,1000,4,1,10,No,0,150,0,20 +female,22,fourth,blue,62,400,1,1,10,No,0,100,0.5,5 +female,19,second,blue,69,140,2,0,6,No,0,80,0,15 +female,20,third,blue,63,385,0,1,15,No,0,75,1,3 +male,20,third,hazel,68,212,0,1,3,Yes,4,50,1,10 +female,20,second,brown,63,150,3,3,3,Yes,7.5,25,4,5 +female,21,fourth,hazel,65,90,3,1,4,Yes,10,100,0,15 +male,20,second,green,74,396,1,0,10,Yes,2,90,24,10 +female,20,third,blue,65,300,1,1,4,Yes,4,30,10,5 +male,21,third,blue,70,200,1,1,1,Yes,6,50,2,30 +male,23,third,green,67,140,0,1,5,Yes,7.5,45,0,45 +female,18,first,blue,67,90,2,1,4,Yes,3,3,0,8 +female,19,second,brown,66,52,1,1,4,Yes,8,20,2,8 +male,21,third,blue,71,35,1,1,8,No,0,25,6,12 +male,20,third,brown,74,321,0,1,1.5,No,0,35,1,3 +male,26,second,hazel,73,120,0,0,5,No,0,76,10,25 +male,21,third,hazel,71,180,0,1,12,Yes,5,20,1,12 +male,21,third,blue,70,135,2,0,15,Yes,10,5,4,15 +female,19,second,brown,68,155,0,0,3,Yes,12,25,0,15 +female,19,first,green,64,70,1,0,7,No,0,15,0,7 +female,19,second,brown,65,75,1,2,15,No,0,94,7,3 +female,21,fourth,brown,72,45,1,0,30,Yes,3,70,0,2 +female,20,third,hazel,67,100,3,4,3,Yes,6,12,0,2.5 +male,22,fourth,green,67,35,0,2,0,No,0,200,10,10 +female,18,first,brown,66,210,1,0,7,No,0,100,2,10 +female,20,third,blue,63,130,0,1,6,Yes,9,60,0,15 +female,19,second,hazel,62,111,1,0,3,Yes,3,25,0,10 +male,19,first,hazel,68,150,3,0,4,No,0,10,3,3 +female,19,second,blue,72,0,1,1,2,Yes,7,8,2,20 +male,20,second,blue,70,210,2,0,5,Yes,13,75,5,20 +female,21,fourth,brown,62,200,5,0,4,No,0,80,1,6 +male,18,first,blue,77,375,1,1,8,Yes,12,24,0,7 +female,20,second,brown,73,173,1,1,8,Yes,20,100,0,3 +male,22,fourth,other,72,180,3,0,2,Yes,3,120,3,28 +male,19,second,brown,71,120,2,1,5,Yes,10,1,0,2 +male,20,third,brown,77,80,0,1,15,No,0,20,30,40 +male,21,third,blue,72,110,3,0,6,Yes,5,100,10,15 +female,22,fourth,other,65,75,0,2,5,Yes,5,30,0,7 +male,20,third,blue,73,180,0,1,6,No,0,120,10,30 +male,19,first,blue,72,40,2,1,7,Yes,4,20,3,1 +male,20,third,blue,70,240,1,1,15,Yes,10,50,5,5 +female,21,fourth,brown,68,250,1,0,2,No,0,75,2,5 +male,22,fourth,blue,73,290,1,1,7,Yes,5,100,10,10 +female,20,third,brown,62,180,1,4,10,Yes,5,40,1,6 +male,20,third,blue,67,0,2,0,15,Yes,4,0,1,15 +female,21,fourth,blue,67,80,2,0,10,Yes,5,100,1,15 +female,22,third,brown,68,95,0,2,10,Yes,6.5,55,2,12 +male,22,other,blue,70,117,2,1,5,No,0,50,5,21 +male,20,third,hazel,71,101.1,0,3,10,Yes,2,100,0,5 +female,21,third,blue,69,85,1,0,4,Yes,8,60,0,3 +female,19,second,blue,66,200,1,0,10,No,0,150,0,10 +female,20,third,blue,65,250,1,0,10,Yes,6,200,0,5 +female,20,second,hazel,68,162.5,0,0,15,Yes,12,150,0,10 +female,19,second,blue,68,125,2,1,7,Yes,5,35,0,1 +male,21,third,green,71,62,1,1,30,Yes,10,300,10,20 +female,21,third,brown,67,120,1,1,2,Yes,8,50,1,3 +male,25,fourth,brown,75,30,0,1,5,Yes,5,150,1,10 +female,19,second,hazel,64,125,2,0,12,No,0,4,0,3 +female,20,third,blue,66,70,1,4,20,Yes,3,25,0,4 +male,19,second,other,70,0,0,1,20,No,0,500,12,5 +female,22,fourth,brown,68,110,1,1,1,No,0,55,2,5 +male,21,fourth,other,70,40,1,1,4,Yes,16,30,1,5 +female,21,fourth,brown,70,60,1,3,10,No,0,30,1,3 +male,21,fourth,green,72,120,0,2,20,No,0,6,1,20 +male,18,first,brown,70,5000,1,0,15,Yes,4,50,20,15 +female,18,first,brown,65,1200,2,2,20,No,0,50,3,3 +female,19,second,green,70,90,0,1,10,Yes,5,300,2,10 +male,21,fourth,brown,67,300,3,1,10,Yes,1,50,0.5,4 +male,21,third,blue,68,0,1,2,4,Yes,6,50,1,8 +male,20,third,blue,71,280,1,1,5,Yes,2,3,10,10 +female,19,second,hazel,65,100,1,1,10,Yes,2,30,0.25,4 +male,20,second,brown,72,85,4,3,20,Yes,3,100,1,10 +male,18,first,blue,66,320,1,4,10,Yes,10,60,0,20 +male,21,third,brown,72,180,0,2,10,Yes,5,130,20,20 +female,21,third,blue,68,75,1,0,4,Yes,5,30,0,7 +female,20,second,blue,66,85,2,1,10,Yes,3,200,10,10 +female,19,second,blue,64,90,1,0,8,No,0,150,2,15 +female,18,first,brown,67,181,1,0,15,No,0,82,0,15 +male,20,third,blue,73,165,2,0,2,Yes,5,100,3.5,14 +male,20,second,blue,78,40,0,1,7,Yes,5.5,50,0,15 +male,24,fourth,blue,69,85,2,1,2,Yes,0,100,8,2 +female,20,third,brown,67,130,1,1,5,Yes,5,200,0,15 +female,18,first,green,67,0,0,0,30,Yes,14,60,0,2 +male,21,third,blue,70,225,3,0,4,Yes,5,50,2,15 +male,21,third,blue,74,100,1,1,1,Yes,3,50,1,5 +male,20,third,green,71,180,0,1,5,Yes,3,40,1,4 +female,22,fourth,brown,70,100,0,1,15,Yes,3,95,0,10 +male,19,second,blue,68,280,1,0,30,No,0,400,1,20 +female,19,second,blue,64,40,1,0,15,No,0,32,0,0 +female,20,third,blue,65,35,1,4,37.5,No,0,40,1,2 +male,21,third,hazel,77,180,1,1,3,Yes,6,20,2,15 +female,19,second,brown,69,175,1,1,5,Yes,3,50,3,2 +male,21,second,blue,68,55,1,1,3,Yes,18,40,0,12 +male,19,second,brown,70,230,0,2,10,No,0,60,6,2 +female,19,second,hazel,70,180,2,0,8,Yes,15,80,0,4 +male,23,third,blue,75,90,1,1,5,Yes,5,0,10,25 +female,20,second,green,69,140,1,2,5,Yes,5,200,0,0 +male,21,third,blue,71,45,1,0,10,Yes,20,80,4,5 +male,21,third,blue,68,70,1,0,8,Yes,12,100,2,10 +female,22,fourth,blue,60,0,2,2,10,Yes,5,20,0,0 +female,22,fourth,brown,64,40,1,1,5,No,0,50,0,0 +female,18,first,hazel,64,200,0,1,10,Yes,4,75,0,6 +female,23,other,blue,70,122,2,1,2.5,Yes,3.5,100,1.5,3.5 +female,22,fourth,hazel,65,5,0,3,15,Yes,4.5,40,0,15 +male,21,third,hazel,72,115,1,1,15,Yes,8,100,15,10 +male,21,third,green,74,120,0,1,15,Yes,6.5,60,2,15 +male,20,second,hazel,74,100,1,1,8,Yes,8,148,2,10 +female,19,second,blue,63,175,1,0,10,Yes,3.5,200,1,4 +female,22,fourth,blue,67,30,1,2,10,Yes,6,140,0,20 +female,20,third,blue,68,300,1,1,7,Yes,3,60,2,10 +male,19,second,hazel,72,45,0,0,70,Yes,0,30,0,2 +male,20,third,blue,68,250,0,1,1,Yes,5,100,12,12 +male,21,third,green,77,330,2,0,3,No,0,50,2,5 +female,22,other,blue,70,70,3,1,5,No,0,30,5,25 +female,21,third,blue,65,160,0,1,2,No,0,40,0,7 +male,20,second,blue,71,115,3,2,10,No,0,25,10,5 +male,19,first,brown,62,220,3,0,10,No,0,10,5,16 +male,20,second,blue,71,230,3,0,15,No,0,100,3,10 +male,19,first,blue,71,0,1,0,3,Yes,1,100,0,20 +male,21,third,other,73,79,0,1,2,Yes,10,96,12,3 +female,20,second,brown,68,30,0,3,10,No,0,20,2,4 +female,19,second,blue,61,368,2,0,10,No,0,60,2,5 +female,19,second,blue,65,2000,0,1,3,Yes,2,30,1,4 +female,18,first,green,69,0,1,0,10,Yes,3,20,0,5 +male,20,second,blue,74,30,0,1,35,No,0,1000,10,10 +male,24,fourth,blue,74,105,0,2,14,No,0,127,1,8 +female,21,third,green,63,43,1,0,10,Yes,5,20,2,1 +female,20,third,brown,67,300,2,0,15,No,0,150,1,5 +male,21,third,blue,72,120,0,2,10,Yes,10,100,0,5 +female,43,other,brown,65,60,0,0,0,No,0,0,0,25 +female,18,first,brown,67,0,0,2,5,Yes,5,15,0,15 +female,18,first,blue,74,237,0,0,35,Yes,6,46,12,28 +female,21,third,green,66,95,2,1,4,Yes,3,50,0,3 +male,20,second,blue,69,60,0,1,8,Yes,3,100,2,8 +male,20,third,blue,77,65,1,0,28,Yes,3,40,1,15 +male,19,second,blue,69,710,0,1,10,No,0,200,2,2 +female,21,fourth,green,67,400,0,2,20,No,0,4,0,8 +female,22,other,brown,60,30,3,0,8,Yes,5,150,0,4 +male,19,second,green,73,1100,0,1,0.5,Yes,5,20,3,2 +male,20,second,green,71,120,1,1,10,Yes,12,67,15,15 +female,19,second,hazel,64,370,2,1,20,No,0,100,0,2 +female,21,third,hazel,68,130,5,5,20,Yes,4.5,50,0,17.5 +male,21,third,brown,72,110,0,1,3,Yes,3,30,1,0.5 +female,22,fourth,blue,65,12,1,0,5,Yes,4,35,0,4 +female,19,second,hazel,62,0,1,0,7,Yes,4,300,0,21 +female,20,second,brown,69,100,1,0,10,Yes,21,100,0,5 +male,21,third,brown,70,200.2,0,1,5,No,0,50,0.5,5 +female,19,second,brown,68,87,1,2,5,No,0,35,0,10 +male,21,third,blue,74,90,0,1,10,No,0,10,10,10 +female,18,first,hazel,69,50,0,1,5,Yes,1,55,1,25 +female,19,second,green,67,35,1,0,1,No,0,57,2,10 +male,22,fourth,hazel,74,250,2,1,2,Yes,5,200,0,2 +male,21,third,blue,71,100,2,0,15,Yes,5,20,20,10 +male,20,third,brown,72,328,1,0,21,Yes,8,350,0,15 +female,21,third,hazel,64,64,1,1,3,No,0,50,1,5 +male,19,second,blue,76,220,1,0,10,Yes,5,70,2,7 +male,24,other,brown,66,180,2,0,10,No,0,150,15,20 +female,23,other,green,66,200,2,0,3,Yes,10,600,0,25 +female,20,third,brown,63,30,3,1,10,Yes,3.5,8,0,10 +female,20,third,hazel,67,90,0,1,10,Yes,5,35,1,8 +female,21,third,hazel,63,150,0,2,7,No,0,50,1,21 +male,22,fourth,hazel,72,60,3,0,3.5,Yes,6,50,,6.5 +male,20,second,hazel,68,0,1,1,8,No,0,90,2,9 +female,18,first,blue,63,102,1,1,5,No,0,50,0,3 +female,20,second,green,69,40,4,0,5,Yes,12,400,0,10 +female,18,first,hazel,62,72,0,2,25,Yes,15,52,1,2 +male,20,second,blue,72,120,2,1,10,Yes,8,5,0,15 +female,22,fourth,blue,72,75,1,0,12,Yes,3,110,0,2 +male,19,first,brown,70,510,1,1,10,Yes,5,30,1,10 +male,21,fourth,brown,72,400,1,1,5,No,0,65,2,12 +male,18,first,blue,69,120,5,0,6,Yes,15,30,25,10 +female,19,second,green,65,20,1,1,20,Yes,4,40,8,2 +male,24,first,brown,72,7000,0,1,40,No,0,100,20,15 +female,19,second,hazel,64,350,1,1,15,Yes,3,250,0,10 +female,20,third,hazel,72,0,0,2,15,Yes,3,5,5,5 +female,20,third,hazel,65,0,1,0,5,Yes,1.5,27,0,5 +female,20,third,brown,63,69,1,4,5,Yes,5,100,3,5 +female,22,fourth,green,64,180,2,0,3,No,0,50,0,12 +female,20,third,blue,65,65,2,0,3,Yes,3,30,0,6 +female,20,third,blue,60,0,1,1,8,No,0,50,5,10 +female,21,fourth,brown,62,460,1,2,10,Yes,4,25,0,1 +male,22,third,blue,72,40,0,1,10,No,0,75,5,5 +male,20,third,blue,74,240,1,1,2,Yes,4,50,4,4 +female,22,other,hazel,63,365,0,1,20,Yes,5,180,3,8 +female,19,second,brown,61,2300,1,1,5,No,0,35,0,7 +female,20,second,blue,69,63,3,2,5,Yes,3,200,1,2 +female,22,fourth,green,66,40,0,2,10,Yes,5,35,1,15 +male,22,other,blue,72,366,2,0,15,Yes,10,1500,5,15 +female,21,third,brown,69,33,1,0,4,Yes,3.5,20,0,6 +male,22,fourth,blue,72,35,2,1,15,Yes,3,75,4,1 +female,20,second,blue,65,8,0,0,14,No,0,50,0,25 +female,21,fourth,green,64,250,1,1,8,Yes,4,70,0,4 +female,21,fourth,hazel,63,350,1,0,10,No,0,250,0,3 +female,19,second,brown,62,160,1,0,2,Yes,4,35,2,5 +female,20,third,brown,67,286,0,2,2,No,0,18,0,8 +male,21,fourth,hazel,70,90,3,2,10,Yes,2,4,15,3 +female,22,other,brown,70,150,1,1,8,No,0,150,0,2 +female,21,fourth,green,66,50,4,1,5,Yes,3,25,1,1 +female,20,third,brown,62,205,0,1,6,Yes,4,60,0,2 +male,19,second,hazel,72,37,2,2,4,Yes,20,100,2,2 +female,19,second,green,64,75,1,1,14,Yes,3,25,0,4 +female,24,other,blue,66,45,0,0,8,No,0,30,0,14 +female,21,fourth,blue,64,75,1,0,15,No,0,30,2,20 +male,20,third,green,69,350,0,1,1,Yes,7,100,4,4 +female,20,second,brown,60,1700,0,1,4,No,0,30,0,5 +male,23,other,blue,73,150,3,2,3,No,0,575,1,6 +female,20,third,brown,65,200,0,1,16,Yes,3,60,1,8 +male,22,third,brown,70,140,2,1,5,No,0,30,10,10 +female,22,other,blue,65,400,0,1,10,No,0,600,0,0 +male,20,third,hazel,76,4500,1,0,10,Yes,7,30,10,10 +female,22,fourth,green,68,200,0,1,8.5,Yes,9,50,0,2 +male,40,other,blue,76,500,1,0,0,No,0,100,21,15 +female,19,second,hazel,62,175,1,2,12,Yes,3,10,1,19 +male,22,other,brown,69,15,0,1,10,No,0,100,10,10 +male,20,third,hazel,71,0,0,2,20,No,0,5,0,5 +male,20,third,green,75,176,1,2,21,Yes,5,0,1,14 +female,19,third,brown,67,42,0,3,4,Yes,6,20,1,6 +female,19,second,blue,72,198,2,2,45,Yes,5,167,1,1 +male,21,fourth,blue,68,100,0,2,15,No,0,1500,2,10 +male,20,second,hazel,76,100,1,1,4,Yes,5,6,8,16 +female,21,fourth,brown,62,185,4,4,2,No,0,40,0,2 +female,39,fourth,hazel,67,36,1,1,8,No,0,30,0,14 +female,20,third,blue,63,250,1,2,10,No,0,100,2,8 +male,24,third,hazel,71,120,4,0,12,Yes,10,200,3,12 +male,41,other,blue,74,0,1,1,2,No,0,25,2,20 +male,26,third,brown,68,20,0,1,20,Yes,10,75,4,6 +female,21,fourth,brown,69,210,1,0,5,Yes,2,12,1,3 +female,20,third,blue,60,90,0,4,20,Yes,7,150,0,2 +male,21,fourth,brown,70,96,1,1,8,Yes,2,50,2,6 +male,20,third,green,67,48,0,1,3,Yes,2,150,0,3 +male,21,fourth,blue,69,220,0,1,4,No,0,10,10,2 +female,20,third,green,63,430,1,2,2,No,0,10,0,2 +female,21,fourth,brown,66,60,0,2,1,No,0,30,0,2 +female,20,third,blue,65,200,1,1,5,No,0,50,0,5 +female,20,second,green,68,0,0,1,20,Yes,3,84,0,4 +female,27,second,hazel,62,244,2,0,5,Yes,4,55,0,10 +male,20,third,blue,71,450,1,1,7,No,0,30,0,9 +male,21,other,brown,69,170,2,0,15,Yes,2,20,0,10 +female,19,second,blue,67,120,0,1,15,No,0,100,15,30 +male,19,second,brown,68,3000,1,1,7,No,0,0,12,0 +male,21,fourth,brown,58,1000,3,0,10,Yes,10,80,10,25 +female,20,third,blue,62,330,2,0,5,No,0,120,0.5,2 +female,19,second,brown,62,200,2,0,10,Yes,3,20,0,1 +female,20,third,blue,66,1200,0,0,10,Yes,5,100,5,10 +male,20,third,blue,77,22,2,0,13,Yes,4.5,200,1,9 +male,21,third,hazel,73,138,1,0,8,Yes,5,100,10,2 +female,19,second,green,58,40,0,2,4,No,0,36,0,5 +male,20,third,hazel,72,100,0,1,40,Yes,4,200,10,4 +female,20,second,blue,64,120,2,1,5,No,0,50,0,2 +male,21,third,other,75,45,0,2,8,Yes,8,200,0,5 +female,20,third,hazel,65,90,1,1,18,Yes,0,40,0,2 +male,19,second,blue,73,120,3,1,15,Yes,10,1000,2,8 +female,18,first,brown,64,35,1,0,7.5,No,0,100,0,15 +male,20,second,hazel,73,80,2,1,5,No,0,30,5,10 +female,20,third,brown,69,110,0,3,15,Yes,5,50,2,8 +male,20,third,hazel,72,316,0,1,4,Yes,10,300,3,15 +female,19,second,blue,64,45,0,1,4,Yes,4,75,0,2 +male,24,fourth,blue,68,453,2,1,7,Yes,6,300,8,4 +female,23,other,blue,64,25,1,1,20,Yes,5,30,4,3 +female,20,third,hazel,68,90,1,1,4,Yes,5,50,0,10 +male,21,fourth,brown,67,30,1,0,24,No,0,100,3,20 +female,20,third,hazel,66,300,0,2,10,No,0,100,2,10 +male,20,third,brown,70,10,2,0,5,No,0,0,5,5 +female,22,fourth,brown,63,130,1,0,3,No,0,300,10,10 +male,20,third,blue,70,181,0,2,25,Yes,5,10,3,10 +male,19,second,hazel,66,30,1,2,20,No,0,300,2,20 +female,20,third,blue,70,73,2,0,5,No,0,30,2,10 +female,22,other,brown,71,0,2,0,2,Yes,5,50,0,5 +female,19,second,hazel,68,180,1,1,7,No,0,30,1,4 +male,20,third,blue,70,250,0,1,7,Yes,5,35,3,3 +male,20,third,blue,71,168,0,1,5,No,0,20,1,16 +male,19,second,blue,76,134,0,0,15,No,0,300,4,14 +male,24,third,blue,69,45,3,2,20,Yes,20,45,0,2 +male,27,fourth,blue,69,150,0,3,15,No,0,30,5,10 +male,22,fourth,hazel,75,200,0,1,1,Yes,2,150,1,10 +male,22,fourth,brown,77,50,1,1,3,No,0,124,0,3 +female,22,other,green,70,45,2,2,10,Yes,4,100,2,12 +male,20,third,brown,70,55,1,0,6,No,0,25,9,12 +female,19,second,green,80,107,3,0,10,No,0,50,0,9 +female,20,third,blue,64,27.5,1,0,7.5,No,0,100,0,2.5 +male,19,second,brown,69,240,1,1,10,No,0,215,2,2 +female,19,second,blue,65,160,1,1,10,Yes,4.5,30,0,5 +male,20,third,brown,70,118,2,0,20,No,0,100,2,3 +female,20,third,green,65,185,4,1,7.5,Yes,4,75,3,2.5 +female,21,third,blue,63,0,1,1,3,Yes,8,48,1,10 +female,20,third,hazel,68,99.6,1,0,30,No,0,120,10,21 +male,20,third,blue,79,30,0,1,5,Yes,15,50,15,35 +male,39,third,brown,68,525,1,1,12,Yes,2,30,1,5 +female,19,second,blue,63,90,3,1,8,No,0,25,0,7 +female,19,second,hazel,65,72,1,1,3,Yes,4,81,3,15 +male,21,fourth,blue,70,185,1,0,5,Yes,3,17,1,4 +male,21,fourth,blue,73,200,0,1,10,Yes,6,150,3,5 +female,19,second,green,67,150,2,1,18,No,0,30,0,16 +female,19,second,brown,67,135,1,1,6,Yes,2,43,0,1 +female,21,third,brown,70,90,0,1,2,No,0,15,0,2 +male,20,third,other,66,0,0,1,8,No,0,100,8,6 +male,23,other,green,69,20,2,2,4,Yes,6,43,3,2.5 +male,20,third,brown,69,370,0,2,10,No,0,120,1,5 +male,22,first,brown,72,1000,0,1,10,No,0,50,20,10 +male,21,third,brown,71,160,1,0,6.5,Yes,6,150,0.5,3 +female,20,second,green,64,150,0,1,4,Yes,6,100,10,12 +female,24,other,brown,60,700,1,2,10,No,0,25,2,4 +female,19,second,blue,62,45,1,1,2,No,0,73,4,3 +female,19,second,green,66,350,0,1,10,Yes,3,50,0,8 +male,20,third,blue,71,300,0,1,4,Yes,12,0,1,4.5 +female,20,third,brown,67,132,0,0,9,Yes,5,37,0,3.5 +female,19,second,blue,66,90,2,0,15,Yes,6.5,50,0,2 +female,20,third,green,72,320,2,0,7,No,0,60,0,14 +female,20,third,blue,63,220,2,2,1,Yes,4,0,0,3 +female,21,fourth,brown,65,60,3,1,1,No,0,200,0,16 +female,22,fourth,blue,67,175,4,2,6,No,0,175,3,28 +male,21,third,blue,72,140,1,0,3,No,0,25,0,10 +female,21,fourth,brown,66,10,0,1,15,No,0,35,0,10 +male,23,other,blue,72,30,0,1,7,Yes,8,60,8,21 +female,19,second,hazel,65,190,1,0,10,Yes,7,123,2,2 +male,22,fourth,hazel,69,10,1,2,8,Yes,6,150,0,1 +female,18,second,blue,66,889,2,0,4,No,0,35,2,4 +female,20,third,green,67,120,2,0,5,No,0,200,0,5 +male,21,fourth,brown,70,1400,1,0,12,Yes,8,4,5,8 +male,20,other,brown,69,65,1,2,6,No,0,130,4,8 +female,20,third,hazel,65,120,2,0,3,Yes,10,30,0,6 +female,22,other,green,64,150,1,2,2,Yes,4,10,0,20 +female,19,second,green,65,25,1,0,25,Yes,7,20,2,5 +female,20,third,hazel,68,400,0,3,14,Yes,7,100,0,6 +female,19,third,blue,67,40,2,1,12,Yes,3,30,1,3 +male,20,third,brown,70,209,1,1,3,Yes,4,450,1,4 +female,19,second,blue,69,40,0,2,10,Yes,5,50,1,4.5 +female,19,second,blue,66,180,0,2,6,Yes,3,20,1,15 +male,21,third,blue,69,100,1,1,1,Yes,5,50,0,2 +female,19,second,other,62,45,0,3,3,No,0,25,1,15 +male,24,third,green,73,350,2,1,5,Yes,10,45,2,1 +male,23,fourth,blue,64,40,1,1,30,No,0,50,1,3 +female,21,fourth,hazel,67,45,2,0,7,Yes,4,40,0,5 +female,20,third,blue,68,154,2,0,20,Yes,3,35,2,4 +female,19,second,green,64,45,1,1,4,No,0,200,0,6 +female,20,third,brown,65,0,1,1,3,No,0,50,0,3 +female,20,third,hazel,66,50,1,0,14,Yes,4.5,100,0,4 +female,19,second,blue,67,130,0,2,3,Yes,3,90,0,3 +male,20,second,blue,70,120,1,3,15,Yes,10,100,7,9 +female,22,third,brown,64,6000,0,3,15,No,0,100,15,10 +female,20,third,blue,65,43,0,2,4,Yes,3,70,0,10 +female,19,second,blue,72,20,1,1,35,No,0,75,7,28 +male,19,second,other,71,40,3,1,3,Yes,8,10,2,10 +male,20,second,brown,70,0,1,1,10,Yes,10,50,0,40 +female,26,third,hazel,68,150,0,1,12,Yes,4,250,2,12 +female,20,third,green,69,90,2,1,1,Yes,1,10,0,10 +male,20,third,blue,71,120,0,0,5,No,0,125,2,20 +female,19,second,brown,68,200,1,1,7,Yes,5,200,0.5,3 +male,18,first,blue,68,25,1,1,12,No,0,20,21,15 +female,20,third,blue,65,1000,1,0,20,No,0,175,2,5 +female,21,fourth,brown,63,65,2,3,10,No,0,50,5,5 +male,22,other,brown,69,60,1,1,28,Yes,2,43,2,20 +male,20,third,hazel,75,180,2,1,5,Yes,5,60,15,15 +female,22,fourth,green,66,0,2,0,3,Yes,5,20,5,10 +female,20,third,green,72,250,1,1,1,No,0,20,1,12 +male,22,other,brown,66,120,1,1,2,Yes,5,50,3,3 +female,22,fourth,blue,66,180,1,1,6,No,0,25,0,3 +male,19,second,blue,73,40,0,1,20,No,0,100,3,1 +female,20,third,brown,61,230,1,0,5,No,0,10,20,15 +female,20,third,brown,61,200,3,6,6,Yes,9,78,5,10 +female,31,fourth,brown,62,34,1,0,15,Yes,3,50,0,3 +male,21,third,blue,71,35,1,1,8,No,0,10,10,10 +male,20,third,hazel,72,180,0,0,5,No,0,100,10,10 +female,19,second,blue,67,60,2,1,21,Yes,5,200,4,14 +female,19,second,brown,66,60,2,1,20,No,0,100,1,21 +male,20,third,brown,74,235,1,1,10,Yes,10,189,0,3 +male,26,first,brown,70,5000,0,1,20,No,0,10,10,10 +male,20,third,brown,70,2500,0,0,10,Yes,5,50,10,20 +female,20,third,brown,64,300,0,3,10,No,0,50,0,10 +female,18,first,brown,67,35,0,1,8,No,0,30,3,5 +female,21,third,brown,64,50,1,3,2,No,0,100,0,5 +male,22,fourth,hazel,76,45,1,1,4,Yes,5,150,2,2 +male,20,third,blue,72,180,1,0,6,No,0,100,2,6 +female,19,second,green,64,100,1,1,2,No,0,50,1,2 +male,21,third,blue,70,100,2,0,2,Yes,7,10,0,10 +male,19,second,brown,71,388,0,1,10,No,0,350,0,4 +male,24,third,brown,77,90,2,0,2,Yes,4,50,0,3 +female,22,fourth,hazel,65,120,2,1,10,Yes,6,30,0,0 +male,21,fourth,blue,66,10,1,2,25,Yes,5,60,10,10 +male,22,other,blue,73,85,2,1,12,Yes,3,35,1,8 +male,21,fourth,blue,67,110,3,0,10,Yes,8,200,0,6 +female,21,third,brown,67,30,0,2,8,Yes,4,128,0,2 +female,20,second,green,68,105,0,1,6,Yes,5,56,0,5 +male,19,second,blue,74,130,2,0,15,Yes,4,20,10,10 +female,21,fourth,hazel,67,0,0,1,10,Yes,5,40,2,21 +male,20,third,blue,68,135,2,0,5,No,0,40,12,4 +female,19,second,blue,67,120,1,2,6,Yes,0,125,0,4 +female,19,third,blue,69,35,1,1,10,Yes,4,20,0,0 +male,20,third,brown,65,0,1,0,10,No,0,35,2,8 +male,19,second,brown,76,1381,0,1,5,Yes,3.5,36,10,15 +male,19,second,blue,69,140,1,1,10,Yes,10,20,15,5 +female,19,second,hazel,64,120,0,1,5,Yes,4.5,50,10,13 +female,20,third,blue,67,170,0,1,3,Yes,6,100,3,7 +female,20,third,blue,64,180,1,0,10,Yes,7,20,1,5 +female,20,third,hazel,70,210,0,1,7,No,0,50,0.5,5 +male,20,third,brown,72,113,0,1,5,Yes,5,50,0,4 +female,22,other,brown,61,326,1,1,65,No,0,55,20,21 +female,20,third,green,69,192,1,2,10,Yes,8,50,0,6 +male,22,first,brown,72,40,0,2,21,No,0,400,24,21 +male,20,third,blue,70,65,2,1,6,No,0,25,0,2 +female,19,second,brown,61,4000,0,1,10,No,0,60,0,0 +male,22,fourth,hazel,71,15,2,1,10,Yes,7,10,0,5 +male,20,third,brown,76,375,1,1,20,Yes,8,35,1,5 +male,20,third,brown,72,20,2,1,12,Yes,8,300,0,10 +female,19,second,blue,68,350,1,0,50,No,0,50,0.5,10 +female,20,third,brown,66,200,1,0,10,Yes,5,60,0,10 +male,19,second,blue,72,75,1,2,4,No,0,5,2,5 +male,19,second,brown,72,440,0,3,10,No,0,400,1,8 +male,21,third,hazel,75,200,1,3,5,No,0,20,15,20 +female,20,third,blue,66,400,0,1,6,Yes,4,150,1,0 +female,21,first,brown,66,7000,2,0,4,No,0,87,20,56 +female,20,third,brown,63,800,0,0,10,Yes,9,10,0,20 +female,19,second,blue,71,361.5,0,1,25,Yes,7,200,0,10 +male,21,fourth,brown,69,130,0,0,20,No,0,400,20,35 +female,20,third,brown,67,60,1,0,10,Yes,4,40,1,2 +female,21,third,brown,67,130,1,1,10,Yes,3,300,0,14 +male,22,fourth,blue,72,150,1,2,1,No,0,50,2,10 +female,19,second,blue,70,50,1,2,15,Yes,4,75,0,4 +male,21,second,brown,70,3000,1,0,5,No,0,0,10,2 +female,21,third,green,65,40,0,0,12,Yes,4,25,0,4 +female,20,third,brown,66,30,2,1,12,Yes,9,100,2,2 +male,22,fourth,blue,74,805.84,2,0,7,No,0,30,0,0 +female,20,third,blue,68,175,2,3,6,Yes,5,15,2,10 +male,18,first,blue,73,40,1,0,8,No,0,200,12,8 +female,20,third,hazel,60,250,0,0,6,Yes,3,100,1,5 +male,20,third,green,72,160,0,1,10,Yes,7,100,1,2 +female,20,third,brown,56,165,1,3,16,No,0,80,0,14 +female,21,fourth,green,66,120,1,1,15,Yes,8,100,4,8 +female,20,third,hazel,70,333,1,0,7,No,0,50,0.5,5 +female,18,first,hazel,62,120,2,2,8,Yes,2,120,0,2 +female,22,fourth,brown,67,30,1,4,8,No,0,35,2,20 +female,20,third,brown,67,134,1,1,4,Yes,3,27,2,2 +female,19,second,green,69,90,1,1,4,Yes,5,20,0,15 +female,20,third,blue,67,225,3,0,4,Yes,5,65,2,7 +female,21,third,blue,66,150,1,0,20,Yes,2,100,1,7 +female,22,other,blue,67,927,3,2,15,Yes,5,250,0,0 +female,21,other,brown,60,210,0,1,1,No,0,150,0,15 +female,20,third,green,66,60,3,1,1,Yes,3,10,0,10 +female,19,second,brown,66,350,0,1,20,No,0,45,1,10 +male,22,other,blue,72,110,1,2,15,Yes,4,150,1,14 +male,21,third,green,71,135,1,1,8,Yes,3,156,10,6 +female,20,third,hazel,61,30,1,1,15,Yes,7,60,1,9 +male,25,other,blue,71,37,1,3,5,No,0,25,0,0 +female,21,fourth,brown,66,8,1,1,1,Yes,0,30,0,2 +female,20,third,green,66,250,1,0,3,Yes,5,100,0,10 +female,20,third,brown,63,750,1,0,21,Yes,6,64,0,3 +male,21,third,blue,69,200,0,2,5,Yes,3,100,8,15 +female,23,other,hazel,62,180,1,0,5,No,0,40,0,10 +female,19,second,brown,66,200,0,1,20,No,0,170,0,2 +female,20,third,brown,68,330,0,2,25,Yes,4,35,4,20 +female,20,third,blue,71,150,1,2,21,No,0,2,2,14 +female,21,fourth,brown,60,250,1,0,5,No,0,120,0,5 +female,20,second,brown,63,250,2,1,18,Yes,6,90,0,0 +male,23,other,green,74,40,4,1,40,Yes,2,100,5,20 +female,19,second,blue,70,225,1,1,10,Yes,3,45,0,2 +female,20,third,brown,69,100,1,1,4,Yes,2,10,1,3 +male,21,third,blue,70,198,2,0,85,Yes,4,50,1,15 +male,20,third,blue,72,230,0,1,3,Yes,4.5,30,10,5 +male,38,first,other,67,6000,2,0,3,No,0,0,0,7 +female,21,fourth,hazel,62,2000,1,1,1,Yes,22,150,0,4 +female,22,fourth,blue,65,200,0,1,3,Yes,3,30,0,6 +male,21,fourth,brown,70,375,0,2,4,Yes,8,150,2,10 +male,19,second,hazel,72,120,1,1,16,Yes,9,70,3,5 +male,21,third,brown,75,110,0,1,15,No,0,25,3,15 +female,20,third,hazel,68,150,2,2,10,No,0,200,2,10 +female,17,first,brown,66,550,1,1,3,No,0,100,0,10 +female,20,third,green,63,210,2,2,23,Yes,5,600,0,0 +male,21,fourth,brown,72,300,1,0,10,Yes,10,200,3,15 +male,21,fourth,green,76,40,0,2,4,Yes,6,330,10,6 +male,20,third,blue,74,208,1,1,10,Yes,9,120,1,4 +female,20,fourth,brown,65,0,4,4,10,Yes,3,35,1,1 +female,19,second,green,68,40,2,0,15,Yes,10,50,0,4 +female,20,third,brown,62,2300,1,0,20,No,0,10,5,70 +female,19,second,hazel,63,250,1,0,10,Yes,4,100,0.5,4 +male,25,third,hazel,71,40,0,1,3,No,0,300,0,15 +male,20,third,blue,77,360,0,1,10,Yes,7,0,5,10 +female,20,third,brown,67,62,2,1,10,No,0,50,3,30 +male,25,fourth,blue,74,125,1,2,8,Yes,8,0,1,12 +female,21,fourth,brown,62,35,1,0,6,Yes,3,400,4,6 +male,21,other,hazel,72,93,1,0,20,Yes,4.5,10,4,10 +male,20,second,brown,72,212,3,3,2,Yes,3,20,1,2 +male,21,fourth,brown,70,200,0,1,5,No,0,40,5,5 +male,19,second,brown,68,180,4,0,8,Yes,8,100,1,30 +male,20,third,green,74,65,1,1,2,No,0,30,5,15 +male,21,third,hazel,67,45,2,1,3.5,Yes,6,250,2,3 +female,19,third,brown,71,620,1,0,21,Yes,8,100,0,2 +female,20,third,green,63,120,1,1,15,Yes,6,40,0,10 +male,19,second,blue,71,180,0,1,14,Yes,9,60,10,21 +female,21,fourth,green,64,60,0,2,3,Yes,6,2,0,9 +male,24,second,blue,72,90,1,1,4,Yes,6,100,4,10 +female,19,second,brown,61,45,2,0,2,Yes,5,20,0,14 +male,22,other,green,73,0,0,0,15,No,0,40,2,1 +female,20,third,hazel,63,0,0,3,3,Yes,9,15,2,7 +female,19,second,other,67,110,2,1,4,Yes,9,25,0,5 +female,19,second,brown,64,25,0,1,9,Yes,9,100,0,9 +male,20,second,other,72,5900,1,0,8,Yes,1,15,2,12 +male,20,third,hazel,70,212,0,2,20,No,0,200,1,12 +male,21,fourth,hazel,72,320,0,0,20,Yes,6,50,10,10 +female,36,fourth,blue,71,30,0,3,10,No,0,50,2,5 +female,23,fourth,green,69,120,0,1,3,Yes,3,100,3,3 +female,20,third,green,66,215,1,0,2,Yes,3.5,50,2,3 +female,19,second,brown,64,100,1,1,14,Yes,6,40,0,5 +male,19,second,hazel,72,100,0,1,2,Yes,8,30,10,10 +female,21,fourth,green,66,40,1,0,10,Yes,4,150,0.5,4 +female,20,third,green,63,210,0,1,30,Yes,3,50,5,21 +male,22,fourth,blue,70,100,0,1,15,Yes,7.5,300,0,10 +male,23,other,hazel,70,220,2,1,2,Yes,15,50,15,7 +male,20,third,blue,68,200,0,1,1,No,0,60,3,10 +female,21,fourth,hazel,67,240,1,1,20,Yes,3,30,2,5 +male,24,other,green,70,456,1,1,15,No,0,50,15,5 +female,23,other,brown,65,20,2,0,7,No,0,75,3,7 +female,20,third,hazel,65,30,0,1,7,Yes,3,100,0,10 +male,20,second,hazel,74,185,3,1,5,No,0,5,0.5,3 +male,19,second,green,78,140,0,1,8,No,0,20,0,7 +female,20,second,blue,63,60,0,2,10,Yes,1,35,1,7 +female,21,third,brown,67,85,1,0,5,Yes,5,10,0,1 +male,18,first,blue,72,100,1,1,10,Yes,4,100,35,35 +female,19,second,brown,68,35,1,1,7,Yes,6,30,2,13 +male,21,third,green,70,150,0,1,4,Yes,3,75,4,4 +male,21,third,blue,72,120,2,2,5,No,0,40,2,15 +female,21,fourth,blue,63,215,3,0,4,Yes,4,40,2,3 +male,20,third,brown,71,243,1,0,20,Yes,8,120,0,3 +female,23,other,blue,63,90,2,1,10,Yes,4,75,1,20 +female,21,third,blue,62,40,0,1,20,Yes,12,30,0,5 +male,21,second,brown,67,100,0,2,15,Yes,4,85,3,8 +male,19,first,green,74,40,1,0,10,No,0,9,25,10 +male,21,third,brown,70,0,0,0,19,No,0,100,6,18 +female,18,first,brown,68,170,4,2,10,No,0,100,3,35 +female,20,second,blue,69,113,1,0,20,No,0,50,4,8 +male,23,fourth,brown,75,100,1,1,5,Yes,5,25,0,5 +female,19,first,green,64,46,1,2,30,No,0,50,2,0 +male,21,third,blue,79,40,0,1,5,Yes,5,50,20,20 +male,22,fourth,green,76,45,3,3,4,Yes,4,300,6,5 +male,21,third,hazel,72,82,3,1,8,Yes,4,25,1,5 +female,21,third,blue,65,0,4,2,35,Yes,3,100,0,2 +female,19,second,brown,69,100,0,1,6,Yes,2,100,1,3 +female,20,second,hazel,68,200,1,0,15,Yes,4.5,30,0,0.5 +female,28,third,blue,63,35,2,0,4,Yes,3,75,1,7 +female,22,fourth,blue,68,95,1,0,10,Yes,4,100,3,15 +female,20,third,hazel,65,40,2,0,15,Yes,3,40,1,18 +female,21,third,blue,68,15,1,1,3,Yes,10,100,0,15 +female,21,third,blue,69,98,0,3,13,Yes,6,44,0,2.5 +male,20,second,hazel,70,99,0,2,20,No,0,2,10,20 +male,19,first,blue,61,60,3,1,20,Yes,6,30,1,5 +male,20,third,blue,72,300,0,1,10,No,0,0,20,20 +female,22,fourth,blue,64,87,0,1,2,No,0,1400,0,2 +female,20,third,blue,69,345,1,0,5,Yes,5,20,5,15 +female,20,second,blue,63,200,2,0,10,Yes,10,100,1,2 +male,20,second,brown,73,100,3,0,20,Yes,8,10,20,7 +male,21,third,hazel,76,150,1,2,6,Yes,4.5,20,6,1 +male,19,second,blue,74,150,1,1,3,No,0,30,8,15 +female,18,first,blue,65,359,2,1,2,No,0,30,0,10 +female,27,other,blue,62,175,2,0,20,Yes,5,35,2,10 +male,18,first,blue,71,30,3,0,30,Yes,8,7,0,5 +male,19,second,brown,71,160,0,0,14,No,0,12,0,1 +female,22,other,brown,66,100,0,1,7.5,No,0,30,7.5,1 +female,18,first,blue,65,146,4,0,5,Yes,8,20,2,20 +male,20,second,brown,73,200,0,0,28,Yes,7,150,0,7 +female,23,other,blue,67,300,1,1,10,Yes,4,40,0,3 +male,18,first,blue,70,50,1,0,4,No,0,5,10,5 +male,22,fourth,blue,72,250,1,1,5,No,0,20,0,15 +female,19,second,green,67,170,1,0,4,Yes,5,30,0,2 +male,20,second,blue,77,75,2,0,14,No,0,45,2,15 +female,20,third,blue,68,175,1,2,7,No,0,75,7,6 +female,19,second,brown,69,130,0,2,5,No,0,150,2,10 +female,20,third,blue,68,10,2,1,5,No,0,75,1,5 +male,22,second,other,70,6000,1,2,80,No,0,17,15,20 +female,20,third,blue,71,60,0,1,2,No,0,50,0,15 +female,21,third,hazel,68,60,2,3,5,Yes,4,50,0,5 +male,20,second,blue,74,323,1,0,8,Yes,12,75,0,8 +female,20,second,hazel,64,150,0,1,30,Yes,5,35,0,1 +female,19,second,hazel,65,220,3,0,30,Yes,5,94,0,6 +female,20,second,blue,68,500,1,0,3,No,0,40,0,5 +female,21,fourth,blue,67,45,0,2,20,No,0,40,1,4 +male,18,first,blue,72,153,1,1,15,No,0,50,30,7 +female,18,first,blue,66,140,1,3,5,Yes,2,20,10,0 +male,20,second,brown,76,184,1,2,15,Yes,4,20,5,25 +female,20,third,brown,66,3000,3,0,10,No,0,100,5,20 +female,23,other,blue,67,4,0,0,24,Yes,5,30,0,14 +male,25,fourth,brown,66,10000,0,1,10,Yes,3,20,3,10 +female,19,second,hazel,66,50,3,3,4,Yes,2,50,1,14 +female,21,third,green,67,189,1,0,15,Yes,6,35,1,10 +female,18,first,blue,63,175,1,1,10,No,0,30,0,0 +female,20,second,brown,65,60,1,2,10,No,0,20,0,14 +female,18,first,hazel,64,140,2,0,14,Yes,0.5,25,0,0.5 +female,19,second,blue,67,300,1,1,15,Yes,10,25,0,3 +female,22,fourth,green,69,40,1,1,40,No,0,175,1,5 +female,19,second,blue,67,80,1,2,15,Yes,5,25,1,15 +female,18,second,blue,65,590,1,1,15,Yes,4,60,0,3 +female,20,third,brown,66,45,4,2,40,Yes,5,10,3,8 +female,19,second,green,65,211,0,4,6,No,0,60,7,7 +female,19,"first""",blue,68,250,2,0,12,Yes,5,24,0,7 +female,19,second,blue,68,370,0,3,25,No,0,25,0,14 +female,20,second,green,63,101,1,2,2,Yes,0,20,0,3 +female,20,second,brown,62,220,1,0,10,No,0,10,0,3 +female,20,third,hazel,62,330,0,0,8,Yes,5,20,4,6 +female,21,third,brown,61,0,0,2,2.5,Yes,5,50,1,5 +female,18,first,brown,64,5,1,0,12,Yes,5,26,1,4 +female,21,third,brown,64,31,1,0,2,No,0,25,0,12 +female,39,fourth,hazel,67,40,1,1,4,Yes,5,30,0,10 +male,19,second,hazel,75,0,1,2,10,Yes,6,20,24,24 +female,19,second,blue,68,155,1,1,3.5,No,0,55,0.5,20 +female,20,second,blue,65,40,0,1,6,Yes,3.5,20,0,6 +female,24,other,green,70,140,5,1,8,Yes,8,45,0,8 +male,19,third,hazel,69,200,1,0,1,Yes,2,40,5,12 +female,20,second,hazel,62,48,1,0,3,Yes,2,45,2,8 +male,20,second,hazel,78,120,2,0,15,Yes,8,200,0,2 +female,21,third,green,67,100,1,4,5,Yes,4,25,0,30 +male,21,second,blue,70,60,0,1,10,No,0,30,0,5 +female,22,fourth,brown,65,222,2,1,5,Yes,3,10,0,10 +male,21,third,hazel,72,200,1,1,4,No,0,10,4,12 +female,21,third,brown,62,96,0,1,1,Yes,3,52,0,3 +female,20,second,green,62,0,1,0,10,Yes,2,25,0,5 +male,20,second,blue,68,225,0,2,5,Yes,4,15,2,12 +female,21,third,green,62,126,0,0,2,Yes,5,20,0,4 +male,21,fourth,blue,71,145,0,3,2,Yes,5,15,0,12 +female,22,fourth,brown,63,0,1,0,3,Yes,1,60,0,20 +male,21,third,blue,74,200,1,0,2,Yes,5,93,1,3 +male,21,third,brown,65,200,1,1,24,Yes,4,200,1,8 +female,22,fourth,hazel,68,60,1,0,12,Yes,3,15,1,12 +male,19,first,blue,77,350,2,1,2,Yes,8,30,1,2 +male,21,third,blue,70,150,2,1,15,No,0,120,5,3 +male,20,second,hazel,70,60,0,1,5,No,0,40,1,8 +male,20,second,hazel,71,193,1,1,4,No,0,100,8,4 +male,20,second,green,76,180,0,2,6,Yes,13,40,1,5 +female,20,second,hazel,69,25,1,1,10,Yes,6,300,0,8 +male,20,third,brown,70,0,0,1,10,No,0,25,20,4 +male,20,second,hazel,72,200,2,1,17.5,Yes,9,40,2,14 +female,20,third,blue,61,35,1,0,3,No,0,30,0,8 +male,19,second,blue,71,201,0,1,20,No,0,10,9,14 +female,21,third,brown,68,20,1,0,5,No,0,30,0,4 +male,21,third,blue,73,117,1,2,10,Yes,3,10,0,5 +male,24,third,brown,74,9,1,1,4,Yes,5,400,0,8 +female,26,fourth,green,63,7,1,0,4,No,0,250,0,1 +female,47,fourth,brown,63,0,5,2,4,Yes,2,50,0,4 +male,20,second,blue,73,189,1,0,5,Yes,6,200,0,4 +male,20,second,brown,70,50,1,0,1,No,0,25,5,10 +female,25,other,brown,62,1035.6,0,2,10,No,0,100,0,20 +male,21,third,hazel,71,84,1,2,10,Yes,5,12,4,2 +male,18,first,brown,73,1528,0,1,60,No,0,25,3,22 +female,20,second,brown,63,150,2,2,10,Yes,3,10,1,1 +male,21,fourth,green,73,30,2,0,15,No,0,70,2,12 +male,21,fourth,other,73,80,2,2,10,Yes,4,100,0,2 +male,20,third,blue,70,220,1,1,3,Yes,4,50,5,10 +male,20,second,hazel,72,115,0,2,2,Yes,30,25,0.25,0.5 +female,20,third,hazel,68,33,1,4,5,Yes,4,50,0,7 +male,20,second,green,73,300,4,1,4,Yes,9,1,2,4 +female,20,second,blue,69,190,1,0,7,Yes,3,250,2,10 +male,21,fourth,blue,71,326,1,0,10,Yes,4,60,2,15 +female,21,fourth,hazel,67,30,1,1,20,No,0,10,0,10 +male,28,second,brown,67,17,1,1,2,No,0,35,1,4 +male,21,third,brown,75,90,2,0,1,Yes,6,50,4,15 +female,20,second,blue,64,220,1,0,20,Yes,6,25,2,10 +male,22,fourth,brown,72,15,2,0,10,No,0,100,10,10 +female,21,third,blue,63,120,0,0,5,No,0,10,10,30 +female,20,third,hazel,67,100,5,1,3.5,Yes,8.5,12,0,11 +female,19,second,green,67,195,1,0,6,Yes,8,25,0,4 +female,22,fourth,hazel,66,60,1,1,2,No,0,100,0,10 +female,19,second,brown,68,210,1,0,5,Yes,10,30,1,6 +female,21,fourth,green,65,185,1,2,5,Yes,6,3,0,10 +male,20,second,hazel,72,50,2,0,1,No,0,100,6,10 +male,27,fourth,brown,72,800,3,0,10,No,0,125,5,10 +male,21,fourth,blue,75,40,0,0,5,Yes,7,18,2,15 +female,27,third,hazel,67,0,2,1,2,No,0,108,1,4 +female,18,first,blue,68,250,1,0,20,No,0,20,7,30 +female,20,second,brown,61,3500,1,0,5,No,0,250,2,2 +male,22,fourth,hazel,72,158,1,0,12,Yes,0,300,0,2 +female,19,second,blue,72,150,2,0,7,Yes,12,20,2,10 +female,18,first,blue,61,25,0,2,6,No,0,65,0,10 +male,20,third,hazel,69,120,0,2,3,No,0,50,15,15 +female,21,fourth,brown,70,25,0,0,10,Yes,10,100,0,8 +female,19,second,green,66,215,0,1,10,Yes,6,250,0,0 +female,20,third,blue,61,30,1,1,10,No,0,70,3,10 +male,21,third,blue,69,185,1,0,20,Yes,26,50,2,10 +male,20,second,blue,70,100,0,2,5,No,0,30,15,2 +male,19,second,green,68,180,1,2,2,Yes,10,50,2,5 +female,19,second,green,67,280,2,0,4,Yes,2,164,0,2 +female,22,fourth,green,72,60,1,2,6,No,0,30,0,4 +female,21,third,blue,68,25,2,0,4,Yes,3,50,2,7 +female,22,third,blue,64,250,1,4,5,Yes,0,30,0,10 +female,20,third,green,70,350,0,1,15,Yes,3,100,1,5 +female,21,fourth,blue,66,110,1,0,4,No,0,20,0,10 +female,20,second,brown,62,140,1,3,5,No,0,50,1,5 +female,21,third,blue,64,80,3,0,5,Yes,4,100,0,6 +female,33,fourth,brown,60,45,1,0,12,No,0,5,1,12 +male,20,third,green,72,150,0,1,10,Yes,10,11,3,7 +female,27,other,brown,69,300,3,0,3,Yes,1,100,0,4 +female,23,fourth,brown,62,385,1,1,4,Yes,7,85,0,6 +male,23,third,brown,68,25,1,2,2,Yes,5,100,3,5.5 +female,20,third,blue,65,424,0,1,2,No,0,40,10,25 +male,20,second,blue,72,35,2,1,4,Yes,6,150,2,4 +female,20,third,brown,67,1050,2,0,20,Yes,7,30,0,1 +male,20,third,brown,72,70,1,0,21,Yes,3,550,4,5 +female,18,first,blue,68,130,0,1,5,Yes,7,7,0,2 +female,23,third,brown,60,6750,0,1,35,No,0,3,0,0 +male,20,second,green,68,125,0,0,10,No,0,25,20,4 +female,22,fourth,hazel,63,20,4,2,5,Yes,2,75,0,10 +female,19,second,hazel,67,30,1,1,30,Yes,5,30,0,15 +male,23,other,brown,75,165,1,1,8,Yes,14,75,7.5,45 +male,20,second,blue,69,136,5,0,12,Yes,14,25,5,21 +male,19,first,hazel,75,0,0,1,1,Yes,5,100,5,5 +male,20,second,brown,71,30,2,0,10,Yes,9,200,5,5 +male,20,third,blue,72,92,2,1,5,No,0,40,5,15 +female,19,second,blue,72,170,0,1,14,No,0,25,0,2 +male,19,first,brown,72,315,0,2,6,No,0,10,5,10 +female,19,first,blue,66,800,1,1,9,Yes,14,50,0,4 +female,20,third,green,63,8,0,2,15,Yes,0,50,1,4 +male,20,second,blue,73,190,1,0,7,No,0,120,5,25 +male,18,first,blue,73,78,1,0,30,No,0,73,5,5 +male,18,first,blue,75,150,0,2,3,Yes,6,100,3,5 +female,20,third,blue,66,844,0,1,7,Yes,7,100,7,9 +female,19,second,brown,67,1800,1,0,8,Yes,9,101,0,3 +male,20,second,brown,72,35,1,0,15,No,0,115,45,35 +male,20,second,hazel,75,120,2,0,12,Yes,15,100,0,5 +male,50,other,hazel,75,1800,1,2,40,Yes,5,25,0,2 +male,20,second,other,72,200,1,1,10,No,0,32,5,5 +male,18,first,brown,76,20,1,1,5,Yes,5,250,1,10 +female,20,third,blue,66,100,2,1,80,No,0,85,3,2 +male,19,second,brown,69,300,2,1,3,Yes,2,200,10,10 +male,21,third,blue,68,250,0,1,7,Yes,7,100,14,14 +female,20,second,brown,64,120,0,2,24,Yes,4,112,2,3 +male,20,third,blue,69,1275.25,2,1,8,Yes,15,78,0.5,7 +female,19,first,blue,65,770,2,1,20,No,0,40,0,5 +male,21,fourth,blue,72,120,2,0,20,Yes,5,15,2,2 +female,20,second,brown,71,70,2,0,14,No,0,30,0,7.5 +male,19,second,blue,69,200,1,0,12,Yes,5,19,7,4 +male,19,second,brown,72,320,3,1,15,Yes,5,0,0,2 +male,22,fourth,blue,69,75,1,2,3,Yes,5,3,0,5 +male,20,second,hazel,74,360,1,0,10,Yes,5,0,2,15 +male,20,second,blue,70,50,3,0,7,Yes,7,100,1,20 +female,20,third,blue,65,220,1,0,8,Yes,5,5,0,9 +female,19,first,blue,66,270,1,0,6,No,0,100,0,0 +male,21,third,blue,73,230,0,1,3,Yes,5,200,1,8 +male,23,third,blue,70,192,0,1,6,Yes,6,275,0,5 +male,19,first,blue,69,190,0,1,5,Yes,6,50,4,3 +male,19,second,green,68,45,1,1,2,Yes,3.5,20,2,10 +female,18,first,hazel,66,220,0,1,4,No,0,50,4,15 +male,19,first,green,73,30,0,1,3,No,0,20,16,4 +female,20,second,green,69,50,3,3,12,Yes,6,25,0,8 +male,20,second,blue,74,100,0,2,5,No,0,20,0,5 +female,21,fourth,brown,64,23,1,2,20,Yes,6,40,5,5 +male,22,other,brown,70,100,0,2,20,No,0,23,1,15 +female,20,second,blue,72,230,2,0,6,No,0,90,1,1 +male,22,fourth,green,72,125,3,0,20,Yes,2,100,0.5,5 +female,20,third,brown,67,150,1,0,15,Yes,6,150,0,14 +female,20,second,brown,64,250,1,0,15,Yes,5,100,0,5 +female,20,third,green,65,270,1,0,20,Yes,7,60,0,10 +female,19,second,blue,70,250,1,0,10,Yes,5,100,0,7 +female,20,third,hazel,65,200,1,0,3,Yes,10,5,1,7 +female,19,second,brown,69,20,3,0,2,No,0,35,0,6 +male,20,second,green,72,160,0,1,2,Yes,3,50,3,10 +male,21,fourth,hazel,72,1,2,0,3,No,0,65,2,4 +female,20,second,green,65,50,0,4,14,Yes,7,40,1,3 +female,21,fourth,blue,67,35,0,2,12,Yes,6,50,0,12 +male,22,fourth,blue,72,60,1,1,6,Yes,5,12,5,15 +female,19,second,blue,62,1800,6,2,8,No,0,12,0,7 +female,20,third,blue,67,20,0,1,7,No,0,65,0,14 +female,19,second,green,67,50,1,0,3,Yes,2,100,1,3 +male,23,other,hazel,70,20,2,2,8,No,0,20,5,5 +female,23,other,brown,69,30,2,1,3,Yes,4,30,0,6 +female,19,first,green,72,200,2,1,10,Yes,7,100,0,5 +male,19,second,blue,66,75,0,1,4.5,No,0,97,1.5,2.5 +male,20,second,brown,72,120,0,0,10,Yes,7,53,10,15 +female,21,third,brown,66,176,2,2,7,Yes,3,50,2,5 +female,21,second,brown,64,1000,1,2,25,No,0,10,1,5 +male,20,second,hazel,73,140,1,1,10,No,0,50,15,30 +female,18,first,green,60,20,0,3,15,Yes,2.5,75,5,2 +male,20,second,blue,74,90,2,1,10,Yes,0,100,5,20 +male,18,first,blue,67,110,1,3,2,No,0,8,5,6 +female,23,third,brown,66,215,1,0,5,Yes,4,200,5,2 +female,20,second,green,64,720,1,0,12,Yes,2.5,124,1,20 +male,20,second,brown,69,20,0,0,6,Yes,2,100,5,6 +female,19,first,brown,64,182,0,2,5,Yes,5,20,5,10 +female,19,second,brown,63,0,1,2,5,Yes,4,50,1,12 +male,19,first,brown,70,1412.47,0,2,5,Yes,9,42,0,2 +male,23,other,blue,72,90,3,1,6,No,0,10,2,20 +male,20,second,blue,70,245,0,2,9,Yes,2,20,1,3 +female,19,third,blue,64,215,0,1,5,Yes,5,30,0,8 +female,20,second,hazel,64,1400,0,1,4,Yes,5,50,1,6 +female,21,fourth,brown,63,385,0,1,6,Yes,4,75,0,3 +male,25,other,blue,72,220,0,1,15,No,0,50,2,35 +male,26,other,green,72,90,1,3,15,Yes,5,100,2,5 +male,23,fourth,hazel,70,120,0,3,10,Yes,6,50,0,10 +male,21,third,blue,72,100,2,1,25,No,0,500,1,5 +male,21,third,hazel,72,40,0,1,6,Yes,10,25,10,14 +female,20,second,blue,70,94,1,0,20,Yes,2,30,5,10 +male,20,second,hazel,69,260,1,2,10,Yes,8,75,10,20 +female,20,second,hazel,67,23,1,1,5,Yes,5,100,1,10 +male,25,other,brown,76,99,2,1,10,Yes,7,200,5,15 +female,20,third,brown,65,211,1,0,21,Yes,3,200,0,15 +female,19,first,green,61,0,1,0,6,No,0,150,1,5 +male,22,other,brown,77,200,3,0,25,No,0,90,2,10 +male,20,second,green,72,300,1,1,15,Yes,8,20,2,50 +male,21,third,hazel,70,196,2,0,40,No,0,120,12,7 +male,19,first,brown,72,300,0,1,5,No,0,70,1,3 +female,18,first,brown,68,35,0,1,5,No,0,20,10,4 +male,20,third,blue,73,200,1,3,10,Yes,8,75,0,14 +male,20,second,brown,73,170,1,1,6,Yes,4,71,2,6 +female,21,third,blue,66,120,0,2,10,No,0,50,0,4 +male,20,second,brown,78,0,1,1,2,Yes,10,20,4,20 +male,21,fourth,blue,69,250,2,0,8,No,0,52,12,15 +male,20,second,blue,70,100,1,1,4,Yes,6,105,2,10 +female,20,third,green,68,150,1,0,3,No,0,10,3,1 +female,20,first,blue,61,347.47,0,2,10,No,0,80,5,10 +female,20,second,blue,68,90,1,1,2,No,0,20,5,5 +male,20,third,green,77,350,1,0,2,Yes,5,60,0,6 +male,23,second,hazel,70,60,2,1,2,No,0,25,0,6 +female,24,other,green,65,30,0,2,18,No,0,50,0,8 +male,20,third,blue,75,150,2,1,5,Yes,8,30,0,2 +male,19,second,brown,66,109,2,3,10,Yes,4,12,20,20 +male,22,fourth,blue,72,1042.92,0,2,10,Yes,2,0,0,10 +female,21,third,brown,66,40,2,2,15,Yes,6,25,1,10 +male,23,fourth,hazel,72,340,1,1,20,No,0,124,2,1 +female,21,third,brown,65,60,1,0,5,No,0,20,0,3 +male,21,third,other,72,35,0,0,10,Yes,5,40,15,20 +female,20,third,hazel,67,35,0,1,3,No,0,100,0,20 +male,20,first,blue,70,75,0,1,10,Yes,5,80,5,20 +female,18,first,green,65,1700,0,0,12,Yes,8,45,0,4 +female,20,second,brown,64,0,1,0,5,Yes,4,50,0,10 +male,21,third,brown,75,215,2,1,12,No,0,20,2,12 +female,20,third,green,61,75,4,2,12,No,0,200,2,10 +female,19,second,hazel,69,240,0,2,4,Yes,14,24,2,2 +female,20,third,green,69,20,0,1,5,Yes,6,20,2,10 +male,20,second,blue,74,65,1,2,40,Yes,3,20,3,2 +male,20,second,hazel,72,35,0,1,4,Yes,7,120,12,25 +male,23,fourth,blue,69,30,1,2,14,Yes,6,250,2,21 +female,20,third,blue,63,0,1,1,3,Yes,3,100,0,10 +female,20,third,green,68,200,2,1,10,Yes,6,46,1,10 +female,21,third,blue,69,232,1,0,7,No,0,200,1,6 +female,21,third,blue,59,350,0,1,15,Yes,5,55,0,1 +female,22,fourth,brown,74,144,1,1,3,Yes,3,14,0,4 +male,18,first,hazel,68,180,0,0,5,Yes,3,85,2,1 +female,19,second,brown,63,182.5,1,0,10,Yes,0,42,6,5 +male,19,first,green,72,12,0,1,17.5,No,0,70,2,4 +female,20,third,brown,67,160,1,0,11,Yes,4.5,100,1,5 +female,18,first,blue,60,90,0,1,15,Yes,6,75,0,14 +male,25,other,blue,71,68,2,1,5,Yes,4.5,12,8,8 +female,20,third,green,62,250,1,1,4,Yes,6,40,0,7 +male,21,third,brown,72,180,3,2,4,No,0,100,0,10 +female,20,third,brown,68,0,1,0,6,No,0,53,3,5 +male,24,other,brown,68,180,0,1,7,Yes,10,200,12,8 +female,21,third,brown,67,52,1,1,15,Yes,9,150,0,8 +female,19,second,brown,70,75,0,1,50,No,0,30,1,4 +female,20,third,hazel,67,45,1,0,10,Yes,10,40,0,20 +female,23,first,blue,65,46,0,2,10,Yes,5,6,0,12 +female,20,third,green,69,35,3,2,10,Yes,3,200,0,6 +female,20,third,hazel,67,333,1,1,12,Yes,3,126,0,5 +male,21,third,brown,68,600,1,0,5,Yes,0,200,5,20 +female,19,first,blue,63,500,0,0,20,No,0,70,2,20 +female,19,second,hazel,67,25,0,1,30,Yes,4,20,0.5,14 +female,19,first,blue,64,150,1,1,10,Yes,4,50,5,10 +male,18,first,brown,67,0,1,0,14,No,0,100,3,3 +female,20,third,green,65,45,1,0,40,No,0,75,1,12 +male,22,other,hazel,72,400,0,1,4,Yes,4,200,6,17 +female,19,second,brown,67,100,1,3,2,Yes,3,20,0,2 +female,19,second,blue,66,15,2,2,25,Yes,4,100,0,15 +female,19,second,brown,66,40,1,1,12,No,0,150,3,5 +female,19,first,green,64,12,2,0,8,Yes,3,15,0,6 +male,20,third,blue,71,119,2,0,25,No,0,,6,6 +male,22,fourth,blue,71,40,0,1,10,No,0,150,0,2 +male,20,second,hazel,70,250,2,2,3,No,0,80,10,3 +female,19,first,green,65,75,0,3,20,Yes,10,54,2,5 +female,21,fourth,brown,64,60,1,0,4,Yes,0,40,0,30 +male,24,other,brown,70,150,0,1,10,No,0,15,0,10 +male,20,second,hazel,74,90,0,1,20,Yes,3,200,1,10 +female,21,third,green,68,120,0,1,4,No,0,500,0,7 +female,19,second,hazel,65,150,4,4,10,Yes,7,50,0,15 +female,21,third,blue,73,60,0,4,7.5,Yes,5,56,0,18 +male,18,first,blue,69,180,1,1,3,Yes,5,50,5,15 +female,19,second,blue,67,200,0,3,20,No,0,50,1,7 +female,20,second,green,68,150,0,1,49,No,0,25,0,2 +female,20,second,green,63,152,3,2,14,Yes,1.5,80,0.5,7 +male,21,third,blue,74,140,0,0,8,No,0,0,8,5 +female,23,other,blue,64,138,0,2,5,No,0,200,0,12 +female,22,fourth,blue,62,145,1,2,15,Yes,5.5,15,0,6 +female,23,other,brown,63,145,1,0,10,No,0,50,5,10 +female,19,second,hazel,70,250,2,0,37.5,Yes,7.5,75,0,17 +male,21,third,brown,78,100,0,3,15,Yes,0,20,0,12 +male,19,second,blue,73,260,0,1,10,Yes,2,50,0,20 +female,20,third,brown,65,166,1,1,10,No,0,70,0.3,2 +male,21,third,blue,72,80,1,1,10,Yes,10,200,12,6 +male,20,second,hazel,68,200,2,0,26,Yes,16,0,0,1 +female,19,second,green,65,126,1,1,4,No,0,80,0,2 +male,19,first,green,71,40,1,0,10,No,0,30,10,21 +female,19,second,blue,62,120,1,0,15,Yes,4,50,3,2 +male,19,first,brown,67,180,0,1,10,No,0,10,1,9 +female,20,second,green,70,40,1,0,12,Yes,3,45,4,5 +male,19,second,brown,76,34,1,0,10,Yes,3,,2,6 +male,22,third,blue,68,240,0,1,3,Yes,2,10,0,3 +female,18,first,other,68,10000,0,0,25,No,0,50,2,1 +male,31,first,brown,69,0,2,1,5,Yes,6,30,0,5 +male,20,second,blue,73,200,1,0,22,Yes,3.5,5,2,10.5 +female,21,fourth,blue,67,125,1,0,20,Yes,1,10,0,15 +female,19,third,green,66,350,0,2,20,No,0,30,2,10 +female,19,second,hazel,62,200,3,2,30,Yes,7,50,0,30 +female,19,second,brown,67,200,1,1,5,Yes,1,60,0,1 +female,21,third,blue,67,0,0,1,48,No,0,150,1,6 +female,33,other,green,64,90,2,0,10,Yes,4,20,0,4 +male,18,first,hazel,69,15,1,0,7,Yes,3,30,1,2 +male,21,third,blue,77,80,1,0,30,Yes,10,50,0,4 +male,21,third,green,72,60,0,1,5,No,0,30,10,10 +female,19,second,blue,66,65,2,1,3,Yes,2,,1,8 +female,19,first,brown,69,223,3,3,20,Yes,6,30,2,6 +female,22,fourth,brown,63,160,3,3,5,Yes,5,30,0,12 +male,22,fourth,brown,75,375,0,1,15,Yes,5,25,20,25 +male,20,third,brown,67,200,1,0,25,No,0,10,1,10 +female,22,fourth,brown,61,35,0,1,20,Yes,6,50,5,20 +female,19,second,blue,67,0,5,5,4,No,0,0,0,3 +male,23,fourth,green,76,200,1,0,4,No,0,,4,5 +male,20,second,blue,72,150,0,0,7,No,0,380,5,8 +male,20,second,brown,71,173,2,2,4,Yes,6,88,1,1 +female,18,first,brown,61,30,3,4,10,No,0,30,4,4 +male,22,fourth,brown,72,160,0,2,10,Yes,5,10,4,15 +male,18,first,green,71,70,0,1,4,Yes,4,50,5,10 +male,20,second,brown,68,1076,1,0,7,Yes,13,20,4,21 +female,21,fourth,brown,68,30,1,1,4,No,0,30,0,5 +male,21,third,hazel,69,175,0,2,12,Yes,4,150,8,6 +male,21,third,blue,79,193,0,1,10,Yes,6,400,0,60 +male,21,third,green,74,135,2,0,1,Yes,10,50,2,3 +male,19,first,brown,70,102.5,3,3,4,No,0,20,7,3 +female,23,other,brown,65,183,0,3,49,Yes,4,300,0,3 +male,19,first,brown,68,,1,0,10,Yes,3,10,10,5 +male,23,other,brown,71,175,1,3,5,Yes,10,40,4,10 +female,19,second,green,71,0,2,1,12,No,0,100,0,5 +female,19,second,hazel,66,240,0,1,50,No,0,47,0,1 +female,23,other,blue,64,300,0,2,20,No,0,10,0,8 +female,18,first,brown,72,100,0,1,15,Yes,4,100,0,20 +female,20,third,brown,66,0,2,0,2,No,0,50,0,10 +male,18,first,blue,61,,2,0,6,Yes,10,100,45,5 +female,20,second,hazel,66,179,1,0,5,Yes,9,30,3,2 +male,19,second,brown,71,35,0,1,30,No,0,20,18,1 +female,19,second,blue,68,30,3,0,40,Yes,6,50,0,0 +female,20,second,blue,64,380,2,1,5,Yes,10,2,0,5 +male,18,first,hazel,70,195,4,0,15,Yes,7,10,4,3 +male,20,second,blue,73,5,0,4,7,Yes,8,50,1,4 +female,18,first,blue,66,100,2,2,3,Yes,10,50,0,6 +female,25,third,blue,71,260,1,2,15,Yes,6,5,3,15 +female,19,first,hazel,68,0,2,0,6,Yes,7,100,0,2 +female,20,second,brown,65,200,1,2,30,Yes,5,120,0,10 +female,19,first,blue,66,30,2,1,5,Yes,0,,1,3 +female,20,second,green,70,200,1,0,,Yes,9,20,1,14 +male,19,second,blue,73,105,0,2,4,No,0,15,3,3 +female,18,first,hazel,64,170,1,1,3,Yes,2.5,32,4,1 +male,21,third,blue,72,96,1,1,15,Yes,5,25,2,5 +male,19,first,hazel,74,137,0,1,10,No,0,55,0.5,20 +female,22,fourth,blue,,190,1,0,20,No,0,20,0,10 +male,23,other,hazel,72,155,0,1,14,Yes,12,400,1,10 +male,18,first,blue,73,85,1,1,20,Yes,7,78,2,20 +male,20,second,brown,72,150,1,1,25,Yes,4,100,10,25 +female,20,second,hazel,73,125,2,0,20,No,0,60,0,5 +male,20,third,brown,74,50,3,0,3,Yes,3,75,3,16 +female,21,third,brown,65,0,0,0,30,Yes,3,20,5,3 +female,20,second,hazel,63,400,1,1,20,No,0,200,3,2 +female,18,first,brown,65,190,4,0,10,Yes,5,80,2,10 +female,21,third,hazel,62,180,0,2,20,Yes,5,200,0,14 +female,18,first,brown,65,7500,1,0,25,Yes,3,50,0,0 +female,22,fourth,hazel,62,110,0,3,10,No,0,30,0,10 +female,19,first,green,67,150,1,0,,Yes,2.5,25,0,5 +female,19,first,hazel,65,800,1,1,15,Yes,6,105,0,3 +male,29,fourth,hazel,69,175,2,2,2,No,0,500,3,6 +male,20,third,green,67,190,2,0,28,Yes,7,10,1,7 +female,20,second,brown,63,70,2,2,5,No,0,30,0,3 +female,22,fourth,brown,62,175,1,0,2,Yes,3,80,0,8 +female,20,second,hazel,62,52,1,0,12,Yes,7,30,0,10 +female,18,first,green,63,60,1,0,15,Yes,4,3,0,0 +female,19,second,hazel,70,360,1,0,20,Yes,3,100,0,1 +male,22,fourth,blue,72,0,0,0,25,Yes,4,110,10,10 +male,19,first,blue,72,40,1,0,10,Yes,8,5,5,20 +male,20,third,hazel,72,0,3,0,5,Yes,6,50,3,7 +male,21,third,brown,72,90,3,0,2,No,0,30,0.5,10 +female,23,third,brown,62,900,0,0,15,Yes,2,70,1,5 +male,22,third,blue,72,108,3,4,8,No,0,300,2,1 +female,23,other,brown,65,222,2,1,15,Yes,4,10,0,15 +female,19,second,brown,64,120,2,0,20,No,0,40,0,15 +male,21,third,blue,70,230,0,1,15,Yes,4,300,10,10 +male,19,first,green,69,150,1,1,3,Yes,2,30,1,3 +male,21,third,brown,67,50,0,2,10,Yes,4,52,20,12 +male,23,third,hazel,72,80,0,2,20,Yes,5,20,2,25 +female,20,second,hazel,65,90,0,1,15,No,0,200,2,20 +male,19,second,blue,67,90,2,1,5,Yes,6,50,8,5 +female,20,second,brown,63,120,1,0,5,Yes,4,60,0,3 +male,21,third,hazel,72,193,1,1,10,No,0,100,15,15 +female,19,second,blue,63,170,1,1,6,Yes,8,100,0,2 +female,22,other,green,64,48,0,1,15,Yes,8,750,0,7.5 +female,20,third,brown,63,150,1,0,21,Yes,4,50,0,20 +female,22,fourth,blue,65,350,1,2,5,Yes,5,200,1,15 +female,19,second,hazel,63,300,1,0,10,No,0,60,0,4 +female,19,second,blue,68,204,2,1,48,Yes,3,10,0,10 +male,21,third,blue,71,100,1,0,2,Yes,3.5,30,3,1 +male,21,fourth,hazel,69,160,1,1,5,Yes,0,100,20,20 +male,22,third,blue,69,15,0,2,7,No,0,100,0,10 +male,21,fourth,blue,67,180,0,1,12,Yes,5,90,0.5,10 +female,25,third,hazel,64,198,2,0,15,Yes,5,40,5,5 +male,19,first,brown,65,90,0,0,20,No,0,0,0,40 +female,21,fourth,hazel,66,350,2,1,10,Yes,3,25,0,15 +male,20,second,blue,75,321,2,1,9,Yes,4,200,1,4 +male,19,first,blue,75,160,0,1,20,No,0,10,12,20 +female,20,second,blue,68,150,1,1,10,Yes,5,100,0,2 +male,23,fourth,blue,72,25,2,1,6,No,0,30,25,5 +female,20,third,blue,65,200,1,0,1,No,0,300,0,15 +female,20,second,brown,70,140,0,1,,No,0,100,2.5,10 +female,20,second,hazel,66,131,3,0,12,Yes,7,47,4,3 +male,20,third,hazel,70,100,0,2,10,Yes,4,20,0.5,5 +male,27,third,blue,71,180,1,0,7,No,0,50,0,12 +male,24,fourth,green,72,30,0,1,20,Yes,7,200,0,9 +male,21,fourth,blue,69,85,1,2,7,Yes,5,120,3,4 +female,20,second,blue,67,130,1,2,21,Yes,5,18,1,6 +male,18,first,brown,73,140,1,0,9,Yes,2,80,4,14 +male,20,third,blue,74,215,0,2,3,No,0,75,2,17 +female,20,second,hazel,64,90,1,0,20,No,0,50,5,18 +male,20,second,brown,70,10,1,1,7,No,0,15,3,7 +male,20,third,green,68,292,0,1,3,Yes,5,100,1,10 +male,20,third,blue,75,400,4,1,1,Yes,6,250,5,10 +female,20,second,blue,68,100,0,1,8,Yes,5,50,6,14 +female,20,second,hazel,64,0,2,0,35,Yes,2,10,1,35 +female,19,second,hazel,64,250,0,0,12,Yes,7,75,3,7 +female,19,second,brown,63,0,1,0,21,No,0,70,0,1 +male,21,fourth,green,70,9,1,1,25,No,0,65,3,2 +female,19,first,blue,64,411,0,1,12,Yes,3,100,0,12 +male,20,third,brown,70,75,1,1,10,No,0,40,2,15 +male,20,second,brown,75,300,1,3,6,No,0,0,3,3 +male,22,fourth,hazel,70,45,2,3,20,No,0,100,10,10 +female,20,third,blue,65,25,0,2,15,No,0,30,1,10 +female,19,second,brown,60,12089,0,1,60,No,0,20,10,100 +female,20,second,brown,70,247,0,2,4,Yes,3,75,0,4 +female,19,first,brown,67,90,1,1,20,Yes,6,10,3,10 +male,19,second,green,67,400,0,1,2,Yes,3,340,20,10 +female,20,third,brown,64,180,3,1,10,No,0,20,1,35 +female,19,second,blue,65,200,1,2,20,No,0,75,1,5 +female,19,second,blue,66,135.2,1,1,12,Yes,4.5,89,0,13 +female,20,second,brown,61,120,0,1,5,Yes,2,20,0,6 +male,19,first,other,72,120,0,1,20,No,0,30,3,6 +female,19,first,brown,66,300,2,2,35,Yes,4,50,7,30 +male,23,other,hazel,71,150,0,1,20,Yes,7,15,0,20 +female,20,second,blue,62,150,1,0,16.5,Yes,3.5,60,0,1.5 +female,19,first,brown,67,312,1,0,8,Yes,4,70,3,8 +male,18,first,hazel,70,70,0,1,25,Yes,5,5,2,5 +female,21,third,green,66,20,0,2,4,Yes,6,50,0,20 +male,20,second,blue,74,100,2,1,6,Yes,7,13,0,1.5 +female,19,second,blue,66,140,1,2,3,No,0,20,0,5 +female,19,second,brown,68,,0,2,10,No,0,30,10,10 +male,22,other,other,,1700,3,0,6,Yes,20,10,1,3 +male,18,first,blue,76,50,0,1,24,Yes,10,125,2,6 +male,21,third,brown,76,15,2,0,5,No,0,50,1,10 +female,21,third,blue,63,185,2,5,20,Yes,3,20,0,5 +male,23,other,brown,67,15,6,0,12,Yes,12,40,10,21 +male,19,second,hazel,71,400,1,1,30,No,0,,20,20 +female,21,third,blue,67,1838,1,0,15,Yes,4,53,0,5 +female,20,second,hazel,67,40,0,1,3,Yes,3.5,56,0.5,5 +male,19,second,brown,73,500,0,1,20,Yes,8,0,0,2 +female,19,second,hazel,70,90,0,2,15,No,0,15,0,10 +female,19,second,blue,63,156,3,0,15,Yes,2,25,0.5,12 +female,20,second,brown,66,330,0,1,20,Yes,12,150,1,5 +male,21,third,hazel,64,180,1,1,15,No,0,10,0,25 +female,20,third,green,68,600,1,0,3,Yes,5,75,0,7 +female,21,third,blue,64,170,0,1,20,Yes,5,50,0,7 +female,20,second,brown,67,300,3,1,6,Yes,10,100,2,14 +female,20,second,brown,65,50,3,1,3,No,0,50,4,6 +male,20,second,brown,68,45,0,1,10,Yes,4,,1,10 +female,20,second,blue,66,65,0,2,15,Yes,3,25,0,10 +male,20,second,hazel,68,120,2,0,50,No,0,50,0,5 +female,21,fourth,brown,70,20,1,0,3,Yes,12,,0,7 +male,18,first,blue,69,139,1,0,35,No,0,2,3,30 +female,20,third,brown,62,5000,2,1,5,No,0,40,5,5 +female,33,first,brown,65,,3,4,10,Yes,5,10,10,5 +female,22,fourth,green,65,0,1,0,2,Yes,4,300,0,14 +female,18,first,hazel,66,200,1,1,14,Yes,6,75,2,2 +female,18,first,brown,65,40,4,0,4,No,0,9,2,13 +female,19,second,blue,72,0,1,0,5,Yes,3,54,0,10 +male,24,third,other,67,6500,1,0,4,No,0,10,5,3 +female,20,third,blue,67,14,0,0,1,Yes,7,50,0,10 +female,23,other,brown,62,1200,5,0,10,No,0,75,0,3 +female,20,third,blue,63,60,3,2,35,No,0,30,0,14 +male,24,third,green,76,0,0,3,25,Yes,4,100,3,18 +male,21,second,brown,,8000,1,0,35,Yes,3,,28,0 +male,19,second,blue,75,120,1,0,15,Yes,3,212,1,10 +female,18,first,blue,69,200,0,1,30,No,0,20,2,23 +female,21,third,brown,70,180,3,3,10,Yes,5,60,0,3 +male,20,third,hazel,72,176,1,0,35,No,0,80,3,5 +female,20,third,hazel,70,420,1,0,50,No,0,,0,20 +male,20,second,blue,68,288,1,1,15,Yes,6,25,2,10 +male,27,third,green,69,1600,2,4,15,Yes,4,50,5,3 +male,23,third,blue,69,170,0,1,2,Yes,14,53,0,5 +female,21,third,brown,64,60,0,1,5,No,0,30,1,10 +male,19,second,brown,75,,2,0,40,No,0,10,1,8 +female,19,second,brown,66,200,0,1,15,Yes,2,50,0,2 +male,21,fourth,green,72,35,0,1,15,Yes,8,80,8,15 +female,25,fourth,brown,64,7000,1,0,35,No,0,50,1,0 +male,20,second,green,73,210,0,1,10,Yes,5,50,1,15 +female,19,first,blue,61,120,0,1,15,Yes,3,60,0,1 +female,20,second,blue,67,140,1,0,5,No,0,50,0,20 +male,20,second,blue,71,60,0,0,20,Yes,7,100,0,2 +female,20,third,blue,69,155,1,2,5,Yes,3,153,25,6 +female,20,third,brown,67,76,1,0,6,No,0,48,0,6 +female,20,third,hazel,64,90,2,0,1,Yes,6,20,0,7 +female,18,first,hazel,65,45,0,0,7,Yes,3,13,1,2 +female,19,second,hazel,,120,1,1,15,No,0,36,0,10 +female,19,second,blue,70,180,4,2,15,No,0,25,0,4 +male,20,second,blue,78,110,1,0,10,Yes,4,30,0,5 +female,19,second,brown,64,120,1,1,5,No,0,100,0,20 +male,19,second,blue,74,176,0,0,8,No,0,70,10,6 +female,20,second,green,64,100,0,1,4,Yes,6,100,0,2 +female,19,first,blue,70,90,0,1,15,Yes,11,60,0,7 +female,21,fourth,brown,62,10,3,2,10,Yes,3,30,2,5 +male,20,second,green,68,167,1,0,6,Yes,7,70,16,14 +male,27,third,brown,68,6500,0,1,1,Yes,1,,0.5,0.5 +male,22,third,brown,74,175,0,1,8,Yes,6,120,1,7 +male,26,fourth,brown,72,30,0,1,3,No,0,100,0,28 +male,18,first,brown,76,45,0,1,12,Yes,8,15,2,8 +female,20,second,blue,63,30,0,2,4,No,0,60,0,3 +female,21,fourth,hazel,70,45,1,0,20,Yes,3,100,2,12 +female,19,second,brown,64,158,1,0,20,No,0,500,0,10 +female,26,other,green,70,1132,0,1,50,Yes,5,40,0,0 +female,22,other,green,67,30,2,2,75,Yes,10,80,0,20 +female,21,third,other,68,4950,0,1,20,Yes,15,100,0,6 +female,20,second,blue,64,40,1,2,10,Yes,3,40,0,20 +male,22,fourth,green,67,9,1,0,5,Yes,4,20,18,12 +male,19,first,brown,70,175,0,1,40,No,0,10,0,1 +male,19,second,blue,75,15,0,1,1,Yes,3,100,1,10 +male,19,second,brown,70,55,1,1,35,Yes,4,0,1,1 +female,19,first,blue,68,0,0,1,3,Yes,6,11,0,30 +female,20,second,hazel,64,225,1,0,110,Yes,4,30,1,7 +female,21,fourth,green,63,140,1,0,20,Yes,8,100,4,4 +female,18,first,green,66,232,4,1,30,Yes,9,100,0,0 +male,23,other,hazel,78,0,1,1,10,Yes,4,35,0,3 +male,22,third,blue,71,130,2,2,,Yes,6.5,30,1.5,6 +female,21,fourth,other,71,180,1,0,6,No,0,100,1,3 +female,18,first,brown,60,,0,2,70,No,0,30,7.5,30 +male,23,third,hazel,77,330,1,0,20,Yes,6,300,0,10 +female,20,third,blue,67,160,0,1,25,Yes,5,45,1,1 +male,20,third,blue,69,60,1,1,39,No,0,26,0,6 +female,19,first,brown,65,227,0,1,28,No,0,100,0,1 +female,20,second,brown,64,120,1,3,8,Yes,7,100,0,10 +male,20,second,blue,75,180,0,1,20,No,0,3,4,15 +female,20,second,brown,62,160,0,1,7,Yes,4,50,1,5 +female,20,third,hazel,68,180,0,1,3,Yes,3,30,1,8 +female,20,third,blue,,35,6,4,3,No,0,15,0,10 +male,21,third,green,72,70,1,1,12,Yes,3,50,3,24 +male,22,fourth,hazel,78,120,2,0,20,No,0,100,1,6 +male,20,second,hazel,76,100,0,1,2,Yes,4,14,14,28 +male,20,third,green,78,200,0,0,10,Yes,9,20,10,10 +male,20,second,blue,70,15,1,1,15,Yes,3,250,3,15 +female,19,second,brown,62,60,0,1,10,Yes,1,25,5,5 +male,20,second,brown,75,2500,4,0,14,No,0,5,1,10 +male,20,third,blue,73,15,0,1,10,Yes,2,50,1,10 +female,19,first,blue,66,35,0,1,20,No,0,66,2,0 +female,21,third,brown,70,190,0,1,8,Yes,3,5,8,1 +male,19,first,blue,65,458,0,2,50,Yes,4,100,2,20 +female,20,third,green,,45,1,0,8,Yes,4,50,3,15 +female,20,second,blue,69,50,0,1,5,Yes,4,50,0,8 +female,18,first,brown,65,0,0,0,5,Yes,2,5,1,6.5 +male,20,second,hazel,69,0,0,2,18,Yes,5,40,3,15 +male,20,second,brown,72,200,0,0,3,Yes,3,100,0,2 +male,21,third,brown,72,70,0,1,5,Yes,5,50,5,15 +male,21,third,green,71,375,0,2,10,Yes,6,45,8,12 +male,20,second,blue,68,220,3,1,20,Yes,10,100,10,30 +female,21,third,green,70,45,0,2,4,No,0,300,1,6 +male,20,second,green,72,140,1,0,4,Yes,2,40,12,12 +male,20,second,brown,67,100,1,2,9,No,0,50,2,6 +female,21,third,hazel,65,140,1,0,20,No,0,20,0,3 +male,18,first,blue,71,150,0,2,10,Yes,10,20,3,1 +male,21,fourth,other,69,20,1,0,20,Yes,6,20,20,80 +male,21,third,brown,74,35,1,2,8,No,0,30,2,20 +male,20,second,green,69,140,3,0,12,Yes,2,5,0,2 +female,20,third,blue,69,210,1,0,12,No,0,10,0.5,10 +female,20,third,hazel,69,65,1,1,14,Yes,10,46,5,7 +male,24,second,brown,74,167,0,1,28,No,0,50,3,25 +female,19,second,brown,64,125,1,1,15,Yes,4,20,0,5 +female,20,second,green,66,130,0,1,10,Yes,6,50,0,7 +female,18,first,blue,56,570,0,1,12,Yes,14,100,21,14 +female,18,first,brown,70,70,2,0,10,Yes,5,25,0,1 +female,20,third,blue,64,165,0,2,10,Yes,10,100,5,3 +female,19,second,blue,66,0,1,0,20,Yes,3.5,30,1,15 +male,20,third,green,62,20,1,0,10,Yes,6,20,10,5 +male,20,second,green,70,350,0,2,10,No,0,100,0,5 +male,21,third,hazel,77,200,2,1,4,Yes,15,40,0,4 +female,21,third,brown,64,45,2,0,7,No,0,100,1,20 +male,22,third,brown,72,35,0,1,10,Yes,6,50,1,15 +male,19,second,green,72,15,0,2,4,Yes,4,20,1,4 +male,20,second,brown,69,30,2,0,15,No,0,200,3,20 +male,21,fourth,brown,77,375,1,0,5,Yes,10,40,10,15 +male,21,third,green,72,30,1,1,2,Yes,5,100,0,2 +female,19,second,brown,65,220,0,1,15,No,0,130,5,5 +male,29,second,blue,69,6300,0,4,24,No,0,2,7,1 +female,18,first,blue,69,105,1,2,10,Yes,7,21,0,0 +female,28,fourth,other,66,6350,0,1,10,No,0,50,3,10 +male,20,second,blue,70,157,1,4,28,No,0,45,0,2 +male,18,first,brown,73,2070,2,0,15,Yes,6.5,100,15,15 +female,19,second,blue,77,75,0,1,15,Yes,3,200,0,7 +male,20,second,hazel,72,136,0,0,36,No,0,70,2,4 +female,21,fourth,green,64,150,2,2,7,No,0,25,0,5 +male,20,second,brown,76,120,1,1,4,No,0,21,20,20 +female,21,fourth,hazel,69,100,0,1,10,Yes,7,250,6,10 +female,20,third,brown,67,65,2,0,4,No,0,20,0,25 +female,19,second,blue,64,300,1,1,5,Yes,7,10,0,15 +male,22,fourth,blue,73,180,0,1,10,Yes,4,20,2,12 +male,21,third,blue,71,1300,1,1,6,Yes,6,40,0,10 +male,21,third,green,72,110,0,2,15,Yes,6,25,5,15 +female,20,third,brown,61,200,1,0,15,No,0,10,0,6 +female,19,second,brown,65,115,1,2,20,No,0,55,0,5 +male,19,second,brown,72,35,2,2,20,Yes,5,100,0,7 +male,23,third,brown,72,145,1,3,10,Yes,8,100,0,2 +male,20,second,green,65,119,0,1,21,Yes,4,4,1,1 +female,20,second,blue,71,30,0,1,20,No,0,80,1,14 +male,23,other,blue,76,100,0,3,1,Yes,4,,0,0 +female,18,first,brown,66,450,0,1,20,No,0,75,0,10 +male,19,second,brown,71,220,1,1,50,Yes,5,250,4,4 +male,21,third,green,75,30,0,1,8,Yes,9,60,2,15 +male,20,second,brown,70,182,1,3,10,Yes,14,25,6,8 +male,22,fourth,blue,75,70,1,0,2,Yes,6,7,3,7 +female,20,third,brown,67,368,2,1,20,Yes,6,,4,4 +female,19,first,brown,66,,0,0,30,Yes,5,1,0,0 +male,20,third,brown,73,185,1,0,42,No,0,10,8,3 +female,24,fourth,blue,66,750,0,1,10,No,0,300,0,6 +female,22,fourth,hazel,70,250,0,0,15,Yes,0,50,1,5 +female,25,other,blue,65,40,0,1,24,No,0,50,2,10 +female,19,second,blue,69,230,1,0,8,Yes,4,60,2,10 +female,22,fourth,blue,65,25,0,1,20,Yes,8,50,0,10 +male,20,third,blue,71,160,1,0,24,Yes,3,50,1,7 +male,21,second,brown,68,40,0,2,4,Yes,10,15,6,4 +male,21,fourth,blue,75,50,0,1,,Yes,3,10,1,20 +male,20,second,hazel,67,150,0,2,15,Yes,14,150,0,10 +female,23,other,brown,66,352,1,0,30,Yes,10,37,10,6 +male,20,third,hazel,74,350,1,1,8,No,0,150,15,3 +female,20,third,hazel,66,180,0,2,10,No,0,10,0,2 +female,19,second,blue,62,230,2,0,12,No,0,200,0,4 +female,20,third,blue,68,115,2,1,12,No,0,57,3,1 +male,21,fourth,blue,73,20,2,0,10,No,0,76,20,10 +male,19,second,brown,70,200,2,7,14,Yes,4,40,10,10 +female,19,second,green,63,,0,1,15,Yes,4.5,,0,5 +female,21,third,blue,65,200,2,1,14,Yes,14,20,0,2 +male,19,second,blue,73,130,1,0,10,No,0,465,30,12 +female,20,second,blue,67,200,1,1,5,Yes,2,150,1,2 +female,30,third,green,69,100,3,1,15,Yes,7,200,0,20 +male,19,second,brown,67,350,1,1,4,Yes,10,500,0,10 +female,19,second,brown,67,1000,1,1,5,Yes,5,3,3,12 +male,19,second,blue,71,180,2,0,7,Yes,5,50,1,10 +male,27,other,blue,74,100,2,2,2,No,0,60,0,10 +female,20,third,brown,68,120,0,1,30,No,0,,0,20 +female,20,third,blue,64,362,2,1,15,No,0,30,0,4 +male,19,second,blue,73,235,2,2,10,No,0,3,7,10 +male,19,second,brown,70,226,0,1,12.5,Yes,7.5,100,0,2 +female,20,third,brown,67,45,0,1,12,Yes,3,125,0,5 +female,19,second,brown,64,220,2,1,4,No,0,30,1,3 +male,21,fourth,blue,71,70,1,2,,Yes,10,30,0,3 +female,21,third,brown,64,,1,2,7,No,0,,0,6.5 +female,26,third,blue,67,45,1,1,14,No,0,115,0,21 +male,20,fourth,brown,76,250,0,5,3,Yes,9,239,4,3 +male,19,second,green,72,40,1,1,6,Yes,6,150,0,12 +female,19,third,green,66,55,0,5,5,Yes,10,20,0,15 +female,21,fourth,blue,61,200,2,0,12,Yes,3,70,5,5 +female,20,third,hazel,64,25,1,0,6,No,0,56,0,6 +male,12,first,brown,,1,1,1,11,Yes,0,1,11,12 +male,23,fourth,blue,72,1200,1,0,18,Yes,17,40,0,25 +male,19,second,blue,72,130,2,1,30,No,0,35,1,5 +male,20,second,other,75,11,0,2,7,No,0,25,35,4 +female,20,third,blue,69,200,2,1,5,Yes,12,30,15,7 +male,21,third,hazel,68,20,1,2,6,Yes,7,3,6,3 +male,21,fourth,brown,75,65,5,1,10,No,0,100,10,10 +female,19,second,blue,67,350,1,1,6,Yes,8,100,0,1 +male,20,second,hazel,65,130,1,0,5,No,0,0,2,10 +female,21,second,hazel,59,15,0,0,20,No,0,15,0.5,4 +male,19,second,blue,71,333,1,0,30,No,0,150,10,20 +female,19,second,green,65,222,0,1,4,Yes,4,20,0,6 +female,20,second,other,62,57,1,0,14,Yes,0,100,1,7 +male,22,second,blue,75,140,1,0,20,No,0,100,4,4 +female,20,third,hazel,63,30,0,3,8,Yes,4,80,1,7 +male,22,fourth,hazel,69,300,0,1,18,Yes,8,200,5,15 +female,19,third,hazel,66,76,0,1,14,Yes,4,97,0,5 +male,20,third,brown,72,60,1,0,10,Yes,8,150,1,7 +female,19,second,brown,64,30,1,0,4,Yes,1,6,0,12 +female,20,third,brown,66,220,0,1,10,No,0,150,5,15 +female,19,second,green,65,180,1,1,7,Yes,8,60,1,3 +male,20,third,hazel,68,1600,1,0,5,Yes,6,8,40,10 +male,20,third,hazel,74,90,0,0,20,No,0,3,10,15 +female,19,second,blue,59,80,2,0,2,No,0,13,7,15 +female,21,third,hazel,65,45,0,1,9,Yes,2,70,0,3 +female,20,third,blue,69,30,0,1,8,No,0,,1,6 +male,19,second,hazel,68,30,1,1,10,Yes,5,20,40,15 +male,19,second,blue,78,350,1,2,20,No,0,10,14,20 +male,19,second,green,74,230,2,0,10,No,0,70,4,8 +female,20,third,blue,69,0,0,1,7,Yes,7,100,0,1 +male,19,second,blue,75,10,0,2,2,Yes,4,50,6,2 +female,19,second,hazel,66,120,1,0,12,Yes,8,100,2,9 +male,19,second,blue,73,180,2,1,5,Yes,10,20,10,5 +female,21,fourth,brown,65,22,1,2,10,Yes,3,100,0,10 +male,20,second,blue,69,40,1,1,14,Yes,12,50,7,10 +female,20,third,brown,69,9000,0,1,44,No,0,0,0,8 +female,23,third,other,63,6500,1,0,30,No,0,30,0,14 +male,22,other,blue,66,45,2,2,12,Yes,7,300,0,8 +male,22,other,brown,62,352,1,2,10,No,0,50,10,9 +male,20,third,brown,65,30,1,0,10,Yes,4,4,5,20 +male,19,third,brown,71,200,1,1,2,Yes,4.5,128,2,4 +male,19,second,brown,71,330,1,0,25,Yes,7,150,0,21 +female,19,second,green,70,200,0,1,2,No,0,200,1,10 +male,21,third,hazel,72,175,1,2,10,No,0,,30,20 +female,26,second,green,63,15,2,2,12,Yes,3,10,0,2 +male,19,second,hazel,71,371,0,1,15,Yes,12,500,0,6 +female,19,second,green,67,30,0,2,50,No,0,500,0,5 +male,20,third,brown,72,150,0,1,4,Yes,10,3,0,5 +female,19,second,green,66,180,2,1,15,No,0,35,0,14 +female,19,first,other,65,1000,2,1,21,No,0,10,0,0 +female,19,second,green,59,10,0,0,6,Yes,3,83,2,0 +male,18,first,blue,68,150,2,1,7,Yes,2,200,1,3 +male,20,third,blue,73,40,2,1,5,Yes,0,20,10,25 +male,20,third,hazel,69,45,0,0,20,No,0,75,5,10 +male,29,fourth,other,72,0,2,0,50,No,0,300,0,10 +male,22,fourth,blue,71,115,1,2,5,No,0,5,5,5 +female,19,second,brown,62,120,2,1,25,No,0,25,0,0 +female,21,fourth,green,67,45,0,2,30,No,0,17,0,21 +female,22,other,brown,68,500,0,1,30,Yes,8,100,0,10 +female,21,fourth,brown,64,93,1,0,15,Yes,0,150,0,4 +male,20,third,hazel,74,350,1,1,100,Yes,4.5,100,0,20 +male,25,third,green,,5000,4,0,12,Yes,4,50,0,7 +male,19,second,brown,68,160,2,1,3,Yes,4,100,0,1 +female,18,second,hazel,68,699,2,0,6,No,0,30,2,7 +male,18,first,brown,70,30,1,1,5,Yes,4,8,8,16 +male,20,third,brown,73,20,0,2,30,No,0,20,2,4 +female,20,third,other,65,190,1,0,14,Yes,6,100,0,3 +female,19,second,brown,67,90,0,1,15,Yes,5,25,1,4 +male,19,second,brown,70,30,2,0,20,Yes,5,0,0,5 +female,23,other,brown,64,2000,1,0,10,Yes,3,50,0, +female,19,second,blue,64,170,1,0,10,Yes,20,76,2,12 +female,19,second,brown,69,1039,0,1,7,Yes,0,32,5,14 +male,19,second,blue,71,190,1,0,20,Yes,15,125,2,5 +male,19,second,hazel,76,300,0,1,8,No,0,140,5,8 +female,22,other,green,64,190,1,4,2,No,0,10,0,10 +female,30,first,brown,,300,0,1,15,Yes,5,50,4,2 +male,21,fourth,brown,68,350,1,1,5,No,0,0,2,7 +female,22,fourth,blue,66,120,1,0,7,Yes,8,20,0,2 +male,21,third,hazel,67,25,1,1,12,No,0,15,20,20 +male,26,other,brown,68,30,0,2,15,No,0,50,0,1 +male,23,other,blue,66,111,1,1,7,Yes,5,111,2,20 +male,19,second,brown,77,60,1,2,20,Yes,5,30,2,10 +male,19,second,hazel,72,375,1,0,5,Yes,4,30,0,3 +male,20,second,blue,73,200,1,1,6,Yes,6,25,1,4 +male,21,third,blue,71,170,1,0,5,No,0,,0,3 +female,20,fourth,hazel,72,100,1,0,6,Yes,7,300,1.5,5 +female,24,fourth,blue,68,95,1,1,7,No,0,30,0,1 +male,21,third,blue,70,90,0,1,25,Yes,0,25,6,10 +female,21,second,brown,63,25000,0,0,14,No,0,30,4,21 +male,21,third,green,78,200,1,1,15,No,0,10,2,10 +female,19,second,green,67,150,1,1,5,Yes,3,80,7,6 +female,19,second,blue,70,260,1,1,21,Yes,7,10,0,5 +female,20,third,hazel,67,300,0,0,5,Yes,10,50,0,10 +female,19,second,hazel,62,150,1,0,4,Yes,2,32,2,2 +female,20,third,green,56,0,1,0,8,Yes,4,25,0,8 +male,20,second,blue,73,45,1,1,8,No,0,50,3,10 +male,20,third,other,70,48,1,0,10,Yes,4,,0,8 +male,20,second,blue,71,50,1,1,5,Yes,4,30,15,15 +male,20,second,blue,70,200,2,0,15,Yes,0,100,4,10 +female,22,fourth,green,64,45,0,2,2,Yes,8,150,0,6 +male,24,other,blue,72,30,2,1,24,Yes,4,30,5,5 +male,28,fourth,blue,71,200,1,0,10,No,0,50,0,10 +female,19,second,brown,69,,0,0,28,Yes,5,25,0,14 +female,19,second,green,64,72,0,2,8,Yes,10,12,0,0 +female,20,third,blue,64,100,0,7,7,No,0,100,10,7 +male,19,second,brown,67,42,2,1,10,No,0,4,10,10 +male,19,second,brown,76,137,0,2,20,Yes,4,75,8,12 +male,34,fourth,brown,74,90,0,2,4,No,0,25,0,1 +male,22,fourth,blue,72,50,0,1,6,No,0,30,0,3 +female,20,third,green,65,150,0,1,3,Yes,9,50,0,3 +male,20,third,blue,70,195,3,1,7,Yes,5,100,0,6 +female,21,fourth,blue,68,400,1,0,25,Yes,5,30,0,5 +female,21,fourth,blue,70,180,2,1,10,Yes,10,25,0,10 +male,19,second,green,74,130,1,1,10,Yes,4,0,8,2 +female,19,second,green,61,1500,2,1,25,No,0,75,0,10 +female,18,first,brown,66,200,0,2,8,No,0,100,4,10 +female,19,second,brown,62,,1,0,12,No,0,100,2,3 +female,19,second,blue,57,140,1,4,7,Yes,7,60,0,14 +female,21,fourth,blue,64,171,0,1,15,No,0,70,0,10 +male,22,fourth,brown,76,130,1,0,21,Yes,15,120,0,5 +male,19,second,brown,71,175,0,1,22.5,Yes,8,0,0,4 +male,19,second,brown,73,300,0,1,28,Yes,0,150,0,10 +male,21,third,blue,76,28,1,5,5,Yes,2,20,7,10 +female,23,other,hazel,64,80,1,0,8,Yes,6,20,0,5 +male,21,fourth,brown,71,60,0,0,40,No,0,20,0,8 +male,20,third,brown,72,330,0,1,35,No,0,30,13,20 +male,23,other,brown,69,1600,1,1,3,Yes,5,50,0,15 +female,21,other,brown,62,250,5,5,5,No,0,20,0,5 +male,19,second,blue,65,117,1,1,6,Yes,4,100,1,12 +female,21,fourth,blue,65,60,0,1,3,Yes,4,10,0,5 +male,19,second,green,73,137,2,3,14,No,0,0,2,2 +female,19,second,hazel,67,300,0,2,20,Yes,10,25,0,10 +male,20,third,blue,67,700,0,1,30,Yes,7.5,200,2,15 +female,19,second,blue,68,90,0,2,10,Yes,7,12,0,2 +female,20,third,brown,65,16,1,1,7,No,0,250,0,15 +female,20,second,blue,65,170,1,3,14,No,0,50,0,24 +female,20,second,hazel,66,190,2,1,6,Yes,4,50,0,11.5 +male,20,second,hazel,67,30,0,0,10,No,0,40,3,2 +male,20,third,hazel,69,180,2,0,8,Yes,7,150,0,2 +male,19,second,hazel,70,135,2,2,14,Yes,2.5,15,10,17 +male,22,first,brown,70,2000,0,0,20,No,0,50,2,10 +female,22,other,brown,60,1044,2,2,10,No,0,100,0,20 +female,21,fourth,brown,62,30,2,1,15,Yes,6,100,1,4 +male,20,third,brown,72,283,0,1,35,Yes,6,50,6,8 +male,21,fourth,green,74,116,0,1,2,Yes,6,,2,12 +female,21,fourth,brown,63,35,2,1,20,Yes,3,50,0,20 +male,22,fourth,blue,71,1300,1,1,4,Yes,7,50,0,4 +female,22,other,blue,65,180,2,1,1,No,0,20,0,6 +female,21,third,brown,65,150,1,0,4,Yes,5,,0,3 +male,20,third,blue,70,60,2,0,3,Yes,3,5,10,5 +female,20,third,hazel,64,100,2,1,4,No,0,50,0,5 +female,19,second,blue,64,65,3,0,4,Yes,4,40,1,3 +male,19,second,hazel,60,129,2,0,3,Yes,2,15,1,3 +male,19,second,hazel,73,130,2,1,10,Yes,10,50,0,5 +female,19,second,brown,66,250,2,0,12,Yes,7,40,1,6 +female,23,other,blue,68,45,4,1,14,No,0,275,0,7 +female,19,second,blue,65,30,0,2,28,No,0,45,2,15 +female,19,second,blue,64,90,0,1,10,Yes,9,25,0,5 +male,31,third,blue,72,31,5,1,3,No,0,35,0,3 +female,20,third,green,63,250,0,2,5,Yes,5,15,0,5 +female,19,second,brown,65,327,1,1,9,No,0,25,4,5 +male,20,third,blue,70,45,0,1,20,Yes,6,175,10,10 +female,21,third,blue,65,75,1,0,14,Yes,0,100,2,10 +female,21,fourth,blue,65,180,1,1,10,Yes,4,20,0,2 +female,20,third,brown,69,140,1,0,15,No,0,150,1,2 +female,19,first,blue,68,0,1,1,20,No,0,20,0,10 +female,20,third,green,67,217,1,1,12,No,0,120,18,10 +male,20,third,hazel,76,450,0,0,10,Yes,8,10,3,20 +male,21,third,hazel,70,160,3,2,6,Yes,4,2,4,6 +female,19,second,brown,67,35,0,1,10,Yes,0,50,1,10 +male,23,other,brown,72,120,2,4,1,No,0,100,0,0 +female,19,second,blue,62,196,3,0,5,Yes,5,500,0,2 +male,21,third,blue,73,125,2,1,6,Yes,5,,0,8 +female,19,second,blue,64,150,1,1,20,Yes,2,30,10,8 +female,19,second,hazel,67,10,1,1,3,Yes,3,40,0,5 +male,20,third,blue,74,150,0,0,7,Yes,3,20,0,1 +female,23,fourth,brown,65,120,1,1,6,Yes,3,20,0,10 +female,19,second,blue,63,400,1,1,15,Yes,20,150,0,4 +female,19,second,brown,66,177,1,0,20,Yes,7,5,0,1 +male,20,third,blue,82,45,1,3,35,No,0,50,0,4 +female,19,second,brown,64,200,1,1,3,No,0,,0,10 +female,19,second,brown,66,120,1,2,12,Yes,7,50,0,10 +female,23,fourth,brown,75,1000,4,3,5,Yes,25,10,7,14 +female,21,fourth,blue,63,15,0,0,5,Yes,10,10,0,2 +male,25,other,hazel,73,106,0,1,30,Yes,4,30,1,50 +female,20,third,hazel,65,772,1,0,20,No,0,100,5,15 +female,19,second,blue,62,250,1,0,15,Yes,8,100,0,15 +male,19,second,blue,75,15,0,0,4,Yes,5,25,5,3 +male,53,first,brown,70,0,0,1,5,No,0,12,4,3 +female,19,second,hazel,70,200,3,1,2,Yes,3,32,0,5 +female,22,other,brown,62,10,4,2,5,No,0,50,0,15 +female,21,fourth,hazel,64,25,1,2,15,Yes,4,25,0,15 +female,19,second,green,64,100,3,2,30,Yes,2,5,4,2 +female,22,fourth,blue,67,88,2,1,8,Yes,3,40,1,8 +male,20,second,brown,69,180,3,1,14,Yes,4,55,0,5 +male,23,other,other,67,90,1,0,5,Yes,5,0,3,5 +male,21,fourth,brown,72,0,2,1,20,Yes,0,2,45,20 +male,19,second,blue,70,45,1,0,10,No,0,70,0,12 +female,20,third,brown,70,441,0,4,14,No,0,50,0,21 +female,20,second,green,67,120,2,0,10,Yes,5,20,5,10 +female,19,second,blue,64,140,0,0,2,Yes,3,50,0,4 +male,39,fourth,brown,72,110,1,2,25,Yes,0,5,5,2 +female,19,second,brown,65,340,3,1,14,No,0,300,0,7 +male,19,second,brown,,10000,1,0,10,Yes,3,1,20,7 +male,19,second,blue,72,35,0,2,15,Yes,8,100,2,3 +female,19,second,hazel,67,220,2,0,5,Yes,4,200,0,1 +female,20,third,brown,62,230,1,0,3,No,0,100,3,3 +male,20,third,brown,69,20,1,0,11,No,0,30,1,6 +male,22,fourth,brown,73,100,1,1,10,Yes,7,100,7,12 +male,20,third,blue,74,158,2,0,4,Yes,6,34,2,0 +male,20,third,blue,71,350,0,0,15,Yes,9,150,0,2 +male,22,fourth,blue,70,200,0,1,10,Yes,5,100,0,20 +male,20,third,brown,79,180,1,0,35,Yes,3,15,0,8 +female,19,second,hazel,68,110,0,0,30,Yes,8,10,0,15 +female,18,second,blue,67,100,2,0,15,Yes,9,75,0,0 +male,21,third,hazel,74,50,2,3,16,Yes,8,5,25,14 +male,19,second,blue,71,20,1,1,15,Yes,4,100,5,12 +female,20,third,blue,66,115,2,2,64,Yes,3,25,0,3 +male,19,third,green,70,1500,3,0,10,Yes,5,40,4,14 +female,21,third,blue,69,230,1,0,11,Yes,10,75,1,10 +male,19,second,brown,71,35,1,0,10,Yes,3,21,7,3 +male,21,third,brown,74,193,0,1,17.5,Yes,2,100,0,22.5 +female,20,third,blue,64,50,1,0,10,No,0,20,0,15 +female,22,fourth,blue,68,30,1,2,9,Yes,4,25,1,10 +female,20,third,blue,64,175,1,4,0.5,No,0,75,0,21 +male,20,third,brown,69,90,1,1,25,Yes,8,60,1,2 +female,20,third,hazel,66,130,1,0,15,No,0,,10,25 +male,20,third,green,77,51,0,1,4,No,0,150,2,10 +female,19,second,hazel,71,160,0,2,10,Yes,2,60,0,10 +female,20,second,blue,66,200,4,2,35,Yes,12,53,1,6 +female,19,second,blue,65,250,0,2,1,No,0,25,3,6 +female,30,other,other,69,30,1,0,15,Yes,2.5,100,5,0 +male,31,other,green,76,30,1,2,15,Yes,20,100,5,0 +male,19,third,hazel,74,100,2,0,5,Yes,7,25,6,6 +male,21,fourth,brown,72,30,1,0,10,No,0,150,5,3 +male,21,third,blue,70,120,1,1,10,Yes,3,75,20,7 +female,21,fourth,green,63,379,1,1,12,Yes,7,50,0,2 +male,20,second,hazel,68,140,0,1,3,Yes,5,28,1,2 +female,19,second,blue,69,100,1,3,15,Yes,10,50,0,2 +male,19,second,brown,73,642,0,1,18,Yes,10,20,5,16 +male,20,third,brown,70,350,3,0,20,Yes,10,300,2,8 +female,19,second,green,70,200,1,1,25,Yes,8,50,0,5 +female,19,second,blue,65,215,0,1,14,Yes,0,150,0,6 +male,19,second,blue,75,150,0,1,2,Yes,8,10,2,12 +male,25,other,hazel,70,117,0,2,12,Yes,4,0,0,4 +male,22,third,blue,69,160,5,1,4,Yes,4,12,1,5 +female,21,fourth,green,62,40,3,0,7,Yes,10,30,0,14 +female,19,second,blue,64,40,1,2,21,No,0,30,0,4 +male,20,third,brown,66,97,3,1,15,Yes,4,25,3,0 +female,19,second,brown,68,300,2,3,6,No,0,200,0,12 +female,20,third,green,65,30,1,0,10,No,0,50,0,12 +female,19,second,green,65,65,2,0,8,Yes,0,30,1,2 +female,21,fourth,brown,62,200,1,0,35,Yes,5,10,0,8 +female,20,first,brown,,,1,0,21,Yes,5,5,0,14 +female,56,other,brown,66,190,2,0,21,Yes,5,10,0,30 +male,22,fourth,brown,69,150,1,0,10,No,0,100,10,30 +female,20,third,blue,67,160,2,2,42,No,0,0,1,28 +male,20,third,blue,73,180,1,1,50,No,0,5,25,15 +male,19,second,blue,70,40,2,0,10,Yes,6,48,5,10 +male,20,third,blue,74,115,0,1,4,Yes,7,75,0,2 +male,22,other,brown,68,70,1,2,30,Yes,8,200,0,0 +male,21,fourth,blue,76,60,3,1,25,Yes,3,75,0,0 +male,20,third,blue,76,185,1,0,5,Yes,4.5,30,7,5.5 +male,20,third,blue,69,1750,1,1,10,Yes,16,50,10,30 +male,23,other,blue,69,200,2,6,10,Yes,10,50,10,30 +female,20,third,blue,66,15,2,2,7,No,0,200,0,2 +female,19,second,brown,62,20,1,0,10,Yes,7,50,0,6 +male,22,other,blue,75,25,1,1,4,Yes,7,40,5,14 +female,21,third,green,64,0,2,1,7,Yes,7,50,0,3 +female,19,second,hazel,67,50,0,2,40,No,0,40,1,1 +male,19,second,brown,66,50,0,0,15,Yes,6.5,300,0,0 +male,20,second,brown,63,55,1,2,15,Yes,4.5,15,4,13 +female,20,third,hazel,67,45,1,2,14,No,0,50,0,15 +male,20,third,blue,74,15,0,1,10,Yes,10,100,1,9 +male,20,third,blue,72,220,1,0,8,Yes,20,103,2,14 +female,19,second,brown,65,300,0,2,6,No,0,20,0,2 +male,21,fourth,blue,72,169,1,1,5,Yes,12,28,2,15 +female,19,second,blue,64,200,2,1,10,No,0,50,1,8 +male,22,fourth,blue,71,600,3,2,6,Yes,2,25,1,4 +male,22,third,brown,74,200,1,2,10,No,0,30,1,7 +male,20,second,blue,73,112,1,1,2,No,0,15,3,49 +female,19,second,blue,68,90,1,1,10,Yes,3,200,2,15 +female,22,other,brown,71,10,2,3,6,No,0,120,0,15 +female,20,second,blue,63,140,1,0,15,No,0,10,2,1 +male,23,fourth,brown,72,6159,1,1,20,No,0,50,5,20 +male,19,second,brown,73,120,1,0,8,Yes,5,15,8,20 +female,18,first,blue,67,167,1,1,18,Yes,4,30,2,6 +female,19,second,brown,68,110,0,0,35,No,0,100,2,25 +female,20,second,hazel,69,35,0,1,7,No,0,30,0,12 +male,26,third,brown,70,0,0,2,72,Yes,5,100,0,0 +female,19,first,green,65,950,0,1,10,No,0,15,8,2 +female,19,second,blue,64,300,0,1,21,Yes,7,10,0,14 +male,22,fourth,brown,76,500,1,0,15,No,0,25,1,10 +male,20,second,blue,68,200,1,2,5,Yes,4,20,1,3 +female,21,third,blue,70,106,2,0,35,Yes,4,200,2,10 +female,19,second,brown,67,200,0,2,60,Yes,3,20,0,3 +female,21,third,brown,64,0,1,0,10,Yes,9,60,0,10 +female,20,third,blue,44,30,0,1,7,Yes,4,200,0,5 +male,21,third,hazel,70,0,1,1,10,No,0,200,0,8 +male,21,third,brown,68,1000,4,3,5,No,0,0,5,25 +female,19,second,blue,70,65,0,1,20,No,0,50,0,10 +male,20,second,brown,70,90,2,1,10,Yes,8,50,9,9 +female,20,third,brown,63,380,2,0,12,Yes,6,50,0,35 +female,19,second,hazel,64,45,1,1,14,Yes,2,3,0,10 +female,20,third,brown,65,230,2,0,15,Yes,7,25,0,14 +female,18,first,blue,68,99,2,0,60,Yes,5,30,1,5 +male,23,fourth,blue,74,100,1,0,5,Yes,6,50,2,5 +male,23,third,hazel,71,250,0,1,5,Yes,10,20,10,5 +male,21,third,hazel,73,200,0,1,2,Yes,15,100,2,7 +male,21,fourth,blue,72,228,0,1,12,Yes,4,447,6,6 +female,20,third,brown,65,40,2,0,40,No,0,60,2,1 +female,21,third,blue,63,200,0,0,12,Yes,5,250,3,6 +female,19,second,brown,64,100,1,1,8,No,0,5,4,8 +female,20,third,brown,62,15,1,1,25,Yes,7,150,1,15 +female,18,first,brown,68,55,1,1,3,No,0,6,0.5,6 +male,20,third,hazel,70,65,0,0,15,Yes,1,266,12,2 +male,20,second,blue,75,65,0,3,15,No,0,250,3,10 +male,19,first,blue,72,8,0,1,10,Yes,2,25,10,10 +female,19,second,brown,65,160,1,2,6,Yes,5,10,0,4 +female,18,first,brown,67,180,2,0,20,Yes,2.5,15,0,5 +female,20,third,hazel,67,60,1,1,10,No,0,100,0,3 +female,18,first,brown,63,4,1,0,10,No,0,,0,6 +female,31,other,blue,68,234,1,1,21,No,0,1000,2,4.5 +female,19,second,brown,60,200,2,0,7,Yes,5,15,0,5 +female,18,first,blue,68,200,2,0,21,Yes,4,15,1,3 +male,22,fourth,hazel,72,450,0,1,7,Yes,15,600,6,12 +male,20,second,green,72,359,0,1,7,No,0,10,11,19 +female,19,second,hazel,66,375,1,1,10,No,0,45,0,15 +female,19,third,brown,66,75,1,0,8,Yes,3,200,2,8 +male,20,third,brown,68,172,2,0,20,Yes,0,15,3,25 +female,20,third,blue,69,217,5,0,15,Yes,5,20,0,20 +female,20,third,green,64,380,1,1,15,Yes,6,50,0,8 +female,20,third,blue,62,184,1,0,6,Yes,6,100,1,10 +male,21,third,hazel,85,35,4,0,3,Yes,6,74,0,3 +male,19,second,brown,71,176,3,1,10,No,0,125,2,30 +male,18,first,brown,70,186,1,1,10,No,0,20,15,30 +male,34,other,hazel,75,0,0,2,46,No,0,1110,12,14 +female,18,first,blue,70,30,1,0,9,Yes,4,30,1,14 +male,25,third,brown,68,85,1,1,20,Yes,25,0,0,10 +male,20,second,brown,75,330,2,0,72,No,0,0,36,15 +male,20,second,blue,71,70,1,1,20,Yes,3,15,5,10 +male,22,fourth,brown,69,99,0,2,20,Yes,10,0,0,10 +male,22,fourth,brown,75,182,2,1,24,No,0,104,1,3 +male,21,third,blue,77,50,0,1,100,Yes,8,100,8,25 +female,19,second,green,,30,0,1,6,Yes,6,100,0,10 +female,18,first,green,71,200,0,1,10,No,0,30,6,2 +female,20,second,brown,63,150,1,1,35,No,0,10,0,21 +female,22,fourth,blue,68,180,0,0,10,Yes,3,55,0,3 +female,21,fourth,green,67,45,0,2,50,No,0,51,1,35 +female,19,second,blue,61,180,0,1,20,Yes,15,,0,3 +female,22,fourth,brown,68,0,1,1,10,Yes,12,80,0,10 +male,19,first,blue,72,120,1,1,10,No,0,,0,15 +female,22,fourth,blue,64,300,2,1,5,Yes,7,100,4,2 +male,19,second,green,74,130,0,1,3,Yes,6,35,4,4 +female,20,second,brown,64,,0,1,25,No,0,20,2,20 +female,19,second,brown,60,170,1,1,15,Yes,10,5,0,4 +male,22,fourth,blue,69,200,1,0,12,Yes,5,,2,20 +male,20,second,brown,74,143,0,1,25,Yes,0,,10,10 +female,20,second,blue,69,190,0,0,7,No,0,,0,10 +male,24,second,brown,,,0,1,10,Yes,3,30,2,5 +female,20,second,hazel,64,80,1,2,8,No,0,15,0,5 +male,19,first,brown,70,45,0,0,8,Yes,10,50,6,8 +male,27,other,blue,71,150,1,1,3,Yes,4,500,5,8 +female,19,first,hazel,61,180,2,0,10,No,0,25,0,15 +male,19,second,blue,78,120,1,1,35,Yes,5,50,4,4 +male,21,fourth,blue,72,75,1,2,4,Yes,4,,0.5,15 +male,20,third,brown,71,200,2,1,10,Yes,10,15,15,10 +female,20,second,green,71,120,1,2,25,No,0,30,0,4 +female,20,second,blue,68,130,0,2,15,Yes,8,12,0,2 +male,20,second,brown,67,35,0,1,20,Yes,4,30,15,10 +female,20,second,brown,65,100,1,3,12,No,0,35,0,12 +male,21,third,blue,72,25,0,1,15,Yes,8,20,0,7 +male,18,first,blue,71,200,1,1,8,No,0,5,2,6 +female,18,first,brown,62,45,1,1,13,Yes,6.5,300,1.5,1.5 +female,21,third,blue,68,150,1,1,25,Yes,6,60,20,10 +female,19,first,brown,63,500,1,1,20,Yes,8,,1,3 +male,20,second,green,72,90,1,0,5,No,0,45,20,50 +male,21,fourth,hazel,75,55,0,1,20,Yes,6,3,0,20 +male,19,first,hazel,75,60,1,0,3.5,Yes,4,15,9,2 +female,20,third,brown,66,32,0,1,2,Yes,3,100,7,4 +female,19,second,blue,71,0,1,0,6,Yes,6,35,1,2 +female,20,second,blue,63,50,0,1,15,No,0,100,0,10 +female,23,other,brown,69,120,1,0,30,Yes,4,55,1,15 +female,19,first,blue,71,100,1,2,30,Yes,3,1000,10,25 +male,20,second,brown,70,3500,1,0,6,No,0,20,0,4 +female,21,fourth,blue,68,225,2,1,20,Yes,9,250,0,3 +male,18,first,brown,72,370,0,1,30,No,0,70,2,10 +female,20,second,green,65,125,1,1,15,No,0,30,3,10 +female,20,second,blue,67,312,2,1,5,Yes,3,40,0.5,3 +female,22,fourth,blue,65,140,0,1,6,No,0,40,0,4 +male,21,third,hazel,72,200,0,1,20,No,0,1000,1,4 +female,18,first,blue,63,180,0,1,8,No,0,50,0,15 +male,21,third,brown,70,219,0,1,5,Yes,3,20,3,2 +female,20,second,hazel,64,150,1,0,10,No,0,55,2,7 +female,19,second,hazel,67,10,1,0,15,No,0,45,0.5,7 +female,19,second,brown,64,30,1,1,5,Yes,3,15,1,7 +female,18,first,blue,62,180,1,3,12,Yes,7,,0,5.5 +female,21,third,brown,72,200,0,1,10,Yes,10,,5,10 +female,20,second,green,,40,3,1,10,Yes,4,200,0,0 +male,24,other,brown,69,184,1,1,14,Yes,6,8,4,14 +female,18,first,green,76,210,1,0,25,Yes,20,50,0,2 +female,20,third,blue,71,120,1,2,10,Yes,4.5,50,1,6 +male,20,second,blue,72,130,1,0,15,No,0,80,2,6 +female,22,other,blue,73,600,1,2,10,Yes,5,50,0,15 +female,20,second,hazel,68,90,1,1,20,Yes,5,40,3,20 +female,23,other,green,64,60,0,2,5,Yes,7,100,0,8 +female,21,third,green,69,30,0,1,10,Yes,4,50,0,2 +female,18,first,blue,66,120,2,0,30,Yes,6,50,0,3 +male,19,second,blue,73,257,1,2,60,No,0,250,15,1 +male,22,fourth,blue,70,90,1,1,2,Yes,12,0,10,10 +female,22,fourth,blue,67,120,0,2,4,Yes,2,80,0,4 +female,20,second,green,63,1600,0,0,15,Yes,2,20,0,2 +male,21,third,brown,72,400,1,0,6,No,0,50,1,4 +female,20,third,brown,66,0,0,1,56,No,0,30,1,5 +female,20,second,blue,65,305,1,0,20,No,0,20,0,28 +male,21,second,blue,70,175,2,2,5,No,0,50,3,5 +female,21,third,brown,64,219,0,0,25,No,0,75,0,20 +female,20,second,green,66,160,1,2,25,No,0,75,0,3 +male,20,third,brown,78,335,1,0,9,No,0,10,8,10 +male,20,second,brown,78,220,1,1,15,No,0,10,2,8 +female,22,fourth,green,63,180,1,0,10,Yes,3,100,0,15 +male,18,first,blue,74,60,0,2,10,Yes,5,10,3,15 +female,26,other,brown,67,185,1,0,20,No,0,,0,15 +female,21,third,green,54,64,1,1,10,Yes,3,113,0,6 +male,21,fourth,brown,72,22.5,1,4,5,Yes,6,75,10,8 +male,19,second,brown,66,361,2,0,15,Yes,9.5,25,10,23 +female,35,fourth,green,64,30,1,0,12,Yes,2.5,200,2,6 +male,19,first,brown,68,102,1,1,14,No,0,20,14,1 +female,18,first,brown,67,350,0,0,10,No,0,200,0,10 +male,21,third,brown,74,360,1,3,6,No,0,650,12,3 +female,20,third,blue,66,180,0,1,28,Yes,7,20,0,21 +male,22,fourth,blue,73,170,0,1,10,No,0,90,0,2 +female,22,fourth,green,64,170,0,1,12,Yes,3,100,0,7 +male,22,fourth,blue,74,60,0,1,8,Yes,2,10,0,4 +male,21,third,other,76,90,1,2,8,No,0,50,12,8 +female,20,second,brown,62,15,4,0,12,No,0,100,0,15 +male,21,third,blue,75,230,0,3,7,Yes,6,200,1,10 +female,19,second,brown,65,30,1,1,25,No,0,78,0,30 +male,19,first,green,75,60,3,0,6,Yes,2,0,4,2 +female,20,second,green,67,110,2,0,25,Yes,10,100,3,20 +male,20,second,hazel,72,120,0,3,10,Yes,12,0,4,5 +female,19,second,blue,66,1027,1,0,20,No,0,0,0,3 +female,22,fourth,blue,65,210,0,1,20,Yes,5,10,0,5 +male,20,second,blue,70,150,0,0,10,Yes,5,5,15,15 +male,19,second,brown,75,15,0,1,4,Yes,0,5,15,3 +female,21,fourth,hazel,67,0,2,0,18,Yes,3,130,2,10 +male,20,second,brown,72,74,1,0,15,No,0,25,1,5 +female,19,second,hazel,70,250,0,0,5,Yes,12,50,1,4 +male,24,other,hazel,75,70,1,0,20,No,0,150,10,30 +male,21,fourth,green,73,120,1,0,6,Yes,6,100,8,35 +female,19,first,blue,64,250,2,1,8,No,0,25,2,10 +female,20,third,blue,67,,0,2,3,No,0,20,0,0 +female,23,other,blue,70,175,1,1,14,Yes,2,40,0,15 +male,22,second,green,66,4000,2,0,30,Yes,3,120,5,10 +male,20,third,green,75,45,4,1,20,Yes,7,10,10,20 +female,20,second,brown,63,90,0,2,4,No,0,23,1,2.5 +female,22,fourth,hazel,69,120,0,4,3,Yes,6,20,0,5 +female,19,second,green,63,250,1,1,20,No,0,75,2,4 +female,21,third,blue,64,1200,1,2,3,Yes,5,200,0,20 +male,32,third,blue,62,50,1,1,5,No,0,50,2,15 +female,21,third,green,64,170,0,2,40,Yes,8,,2,20 +female,21,third,brown,,0,0,2,10,Yes,3,50,0,20 +male,23,fourth,blue,71,236,1,1,8,No,0,40,10,4 +female,20,second,blue,63,60,3,1,24,No,0,90,0,3 +female,20,second,brown,67,20,2,2,42,No,0,2,1,3 +female,22,fourth,green,67,30,1,0,20,Yes,4,,0,10 +female,20,third,blue,66,100,0,2,15,Yes,5,,0,2 +male,24,other,brown,72,104,4,1,3,No,0,150,10,20 +female,19,second,blue,57,300,0,1,15,No,0,25,0,15 +female,25,third,hazel,67,33,0,0,14,Yes,4,50,0,3 +female,18,first,green,65,45,1,0,15,No,0,80,0,8 +male,20,third,green,72,115,2,1,10,No,0,50,30,20 +female,21,third,hazel,67,175,1,0,2,No,0,50,0,4 +female,19,second,hazel,68,150,0,3,15,Yes,4,80,1,3 +male,20,second,hazel,75,162,1,0,10,Yes,5,5,1,2 +male,23,other,blue,75,30,0,1,20,Yes,7,,10,5 +male,18,first,brown,61,352,0,1,35,No,0,30,10,4 +female,21,third,hazel,65,300,1,1,20,Yes,26,100,1,2 +male,19,second,blue,62,333,1,2,20,No,0,,2,12 +female,22,other,brown,67,130,4,2,8,Yes,5,50,2,30 +male,22,third,hazel,73,70,2,1,4,No,0,150,2,7 +female,19,second,brown,68,295,0,1,5,No,0,,0.5,3 +female,22,fourth,brown,68,,1,0,4,No,0,100,0,15 +female,20,second,brown,68,120,0,1,20,Yes,5,30,2,8 +male,22,fourth,hazel,72,120,1,1,3,No,0,25,5,20 +male,27,fourth,brown,68,90,1,0,5,Yes,4.5,600,0,2 +female,21,third,green,68,30,1,0,7,No,0,20,0,10 +female,18,first,brown,65,36,2,1,12,Yes,12,157,2,2 +male,26,other,brown,71,400,1,0,7,No,0,50,5,4 +male,20,second,blue,73,0,1,3,5,Yes,8,20,0,1 +female,19,second,blue,66,250,1,1,20,Yes,3.5,25,0,10 +female,18,first,green,65,120,1,0,15,Yes,4,50,1,8 +female,17,first,blue,66,60,1,0,30,Yes,5,9,0,20 +female,22,fourth,hazel,64,237,2,1,25,Yes,6,25,0,2 +female,19,second,brown,65,0,2,0,24,No,0,50,3,12 +female,20,third,blue,63,45,2,2,70,No,0,50,0,14 +male,20,third,green,73,180,1,1,4,Yes,10,100,2,12 +female,19,second,blue,63,214,1,0,,Yes,10,,0,5 +female,19,second,other,62,121,0,1,20,No,0,20,0,0.5 +female,18,first,blue,63,366,1,0,40,No,0,100,1,2 +male,25,second,blue,71,0,1,1,8,Yes,4,50,0,4 +male,24,fourth,brown,73,120,1,0,20,No,0,100,5,21 +female,20,third,blue,67,170,2,2,24,Yes,4,18,0,13 +female,24,third,brown,67,10,2,1,10,Yes,6,20,0.5,10 +male,21,fourth,green,76,88,0,1,28,Yes,6.5,100,2,2 +female,19,second,blue,67,200,1,0,25,No,0,100,4,10 +male,20,third,blue,71,120,2,0,10,No,0,20,5,15 +female,21,fourth,blue,67,360,1,1,28,Yes,4,150,5,7 +male,23,third,hazel,72,209,1,1,20,Yes,10,100,0,20 +female,19,first,hazel,66,108,0,2,16,Yes,8,40,1,14 +male,21,third,blue,68,110,1,3,10,Yes,7,50,0,9 +female,19,second,hazel,65,130,0,2,20,Yes,3,50,1,12 +male,25,fourth,blue,75,140,3,1,25,No,0,100,0,9 +female,19,second,blue,61,80,1,0,4,No,0,30,1,10 +male,22,third,green,69,40,0,2,10,No,0,50,2,15 +male,21,third,blue,71,38,1,0,40,Yes,21,100,2,4 +male,22,other,brown,70,1043,2,2,5,Yes,5.5,100,3,15 +male,18,first,blue,69,350,1,0,20,No,0,10,5,5 +female,20,third,brown,82,108,0,1,28,No,0,65,0,5 +male,21,third,brown,73,140,2,0,12,Yes,5,100,8,10 +female,19,first,blue,66,50,1,0,30,No,0,20,0,7 +female,20,third,blue,64,27,1,2,20,Yes,2,35,0,2 +male,20,second,hazel,69,30,1,1,5,Yes,4,40,5,12 +female,22,fourth,blue,65,90,1,3,12,Yes,4.5,90,0,40 +female,19,second,blue,70,160,0,1,14,No,0,70,0,8 +female,21,third,green,66,90,0,2,8,Yes,6.5,30,0,10 +female,22,fourth,brown,65,15,2,0,14,No,0,20,0,4 +female,18,first,brown,67,330,1,0,10,Yes,6,100,1,3 +female,18,first,brown,67,45,2,1,4,No,0,120,8,6 +male,22,fourth,blue,68,137,1,2,10,Yes,10,40,10,6 +female,18,first,blue,64,45,1,1,14,Yes,14,50,0,35 +female,20,third,brown,63,30,0,2,20,No,0,12,2,5 +female,18,first,hazel,74,106,1,1,16,Yes,10,58,2,40 +male,20,third,hazel,71,20,1,2,10,Yes,7,22,0,0 +female,18,first,hazel,67,90,2,1,10,Yes,3,26,0,12 +male,21,fourth,blue,73,250,1,0,12,Yes,4,100,1,8 +female,20,second,brown,64,171,1,2,8,Yes,15,45,2,3 +male,20,third,green,70,1500,2,0,10,No,0,15,10,20 +female,21,third,brown,61,70,1,4,20,Yes,4,40,0,3 +female,20,third,brown,62,300,2,1,10,Yes,4,,0,10 +female,24,fourth,brown,59,10200,1,0,5,No,0,0,2,5 +female,22,fourth,brown,66,120,0,1,25,No,0,20,0,0 +female,20,second,hazel,62,136,1,0,15,No,0,20,0,10 +male,20,third,blue,70,50,0,0,20,Yes,3,200,0,7 +female,19,first,blue,67,180,1,0,12,Yes,3,35,1,30 +male,21,third,brown,66,300,1,0,6,Yes,5,80,10,10 +female,18,first,hazel,70,700,0,0,27.5,No,0,150,3,7.5 +female,19,first,green,64,94,0,0,25,Yes,10,200,16,8 +female,19,first,hazel,69,180,1,0,14,Yes,4,60,0,5 +male,21,fourth,blue,74,200,1,0,3,Yes,5,12,5,10 +male,21,third,brown,72,180,1,1,4,No,0,5,4,20 +female,19,second,blue,52,0,2,1,4,Yes,4,200,1,4 +female,21,third,hazel,60,60,2,2,3,No,0,20,0,3 +female,20,second,brown,66,210,2,3,5,Yes,4,25,1,5 +male,19,second,brown,74,200,2,1,5,Yes,1,10,3,2 +male,21,fourth,brown,75,220,3,0,3,Yes,17,75,3,15 +female,18,first,blue,69,100,0,1,10,Yes,4,100,0,15 +male,18,first,blue,71,60,1,1,6,Yes,6,10,8,5 +male,20,third,green,74,800,0,1,20,No,0,30,5,3 +female,19,first,blue,66,80,2,1,4,Yes,4,50,7,7 +male,21,third,blue,75,75,1,1,15,Yes,45,25,0,10 +female,21,third,green,65,200,1,0,6,Yes,7.5,40,2.5,17.5 +male,20,second,blue,73,220,1,1,15,No,0,12,0,1 +female,19,first,blue,68,200,1,1,10,Yes,6,50,0,1 +male,20,second,brown,,55,0,1,8,No,0,5,3,7 +male,20,second,brown,,95,0,1,8,Yes,8,14,5,2 +female,25,fourth,blue,64,0,0,2,20,No,0,20,5,4 +female,20,third,brown,70,0,0,2,10,Yes,8,25,0,3 +male,19,first,green,77,36,0,1,8,No,0,75,9,3 +female,19,second,hazel,64,350,1,0,8,Yes,3,50,0,1 +female,20,second,blue,63,450,0,1,5,Yes,4,75,8,8 +female,18,first,brown,62,350,2,1,100,No,0,45,10,60 +male,26,fourth,brown,72,20,1,0,20,Yes,10,200,25,15 +male,20,second,brown,68,212,1,1,30,Yes,5,654,2,26 +female,19,second,green,70,180,1,0,10,Yes,0,30,0,5 +female,19,first,hazel,64,30,1,3,20,Yes,6,50,0,5 +male,20,second,hazel,75,212,0,1,3,No,0,25,2,15 +female,21,third,hazel,66,35,1,0,30,Yes,3,250,2,10 +female,22,fourth,brown,65,231,0,4,30,Yes,6,200,0,5 +female,20,third,green,65,20,0,1,10,No,0,30,0,15 +female,20,third,blue,67,180,1,0,6,Yes,2,50,0,10 +male,31,third,brown,66,75,4,1,15,Yes,6,400,10,12 +male,19,first,hazel,71,759,1,1,65,No,0,4,20,15 +female,19,second,brown,62,110,0,1,5,No,0,30,1,10 +male,24,third,blue,71,240,1,0,8,No,0,25,1,10 +male,21,third,blue,61,324,0,2,20,Yes,9,230,20,20 +male,21,fourth,brown,68,236,1,1,10,No,0,50,1,10 +male,21,fourth,hazel,72,144,1,1,30,Yes,4,25,0,0 +male,20,second,brown,72,140,0,1,21,No,0,150,7,21 +female,19,first,blue,65,120,1,0,3,No,0,48,2,4 +male,20,second,blue,77,120,1,0,7,Yes,7,0,5,15 +female,20,third,brown,70,300,1,1,10,Yes,5,30,0,8 +male,19,first,brown,69,100,3,0,2,No,0,2,1,6 +female,20,second,blue,69,360,1,1,20,Yes,0,25,0,5 +female,20,second,brown,63,120,1,1,10,Yes,4.5,2,5,5 +male,20,third,blue,76,154,1,1,10,No,0,20,18,5 +female,21,fourth,hazel,63,180,2,1,15,No,0,3,1,1 +female,20,third,green,64,90,0,2,12,Yes,12,100,1,5 +female,18,first,blue,66,110,0,1,14,No,0,239,2,10 +male,19,second,blue,73,140,0,1,4,Yes,6,45,7,12 +female,24,other,green,64,141.2,0,3,40,No,0,80,1,0 \ No newline at end of file diff --git a/Lab 2 - Clustering - Sp18.ipynb b/Lab 2 - Clustering - Sp18.ipynb new file mode 100644 index 0000000..e89db84 --- /dev/null +++ b/Lab 2 - Clustering - Sp18.ipynb @@ -0,0 +1,1335 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Lab 2: Clustering ##\n", + "INFO 254" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "import pandas as pd\n", + "from sklearn.cluster import KMeans\n", + "from sklearn.metrics import silhouette_score\n", + "import numpy as np\n", + "from sklearn.preprocessing import normalize\n", + "\n", + "import matplotlib\n", + "import matplotlib.pyplot as plt\n", + "\n", + "#%matplotlib inline\n", + "matplotlib.style.use('ggplot')" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(171639, 43)\n" + ] + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
q3q4q5q6q7q8q9q10q11q12...q16rq16uq16vq16wq16xq16yq16zq16aaq16abq16ac
count24205.00000024205.00000024205.00000024205.00000024205.00000024205.00000024205.00000024205.00000024205.00000024205.000000...24205.00000024205.00000024205.00000024205.00000024205.00000024205.00000024205.00000024205.00000024205.00000024205.000000
mean6.6734975.5321214.9900029.0026441.5071770.9309150.8637401.54015826.76539825.708965...3.6335880.46091622.55067125.0646970.00378173.9819780.6426770.5611241.1410803.649456
std7.46856125.40716522.81239928.1649310.8892740.9800010.9515311.02708610.16694411.569436...1.4909420.50930514.45427928.6508830.00602051.0606941.4270171.9080113.2348280.990191
min1.0000001.0000001.0000001.0000000.0000000.0000000.0000000.0000002.7800001.410000...1.0000000.0000001.0000001.0000000.0000000.2500000.0000000.0000000.0000001.000000
25%2.0000001.0000001.0000002.0000000.6900000.0000000.0000000.69000020.00000016.670000...3.0000000.00000010.0000009.0000000.00047739.1250000.0000000.0000000.0000003.200000
50%5.0000002.0000002.0000005.0000001.6100000.6900000.6900001.61000025.93000025.000000...4.0000000.33333321.00000017.0000000.00194461.8425930.0000000.0000000.5000003.800000
75%8.0000004.0000004.0000009.0000002.0800001.3900001.3900002.20000033.33000033.330000...5.0000000.66666734.00000032.0000000.00466695.3750001.0000000.0000001.3333334.333333
max360.0000002333.0000002093.0000002420.0000005.8900007.7500007.6500007.79000084.62000089.290000...5.0000007.00000053.0000001289.0000000.150618549.33333344.000000106.000000342.3000005.000000
\n", + "

8 rows × 40 columns

\n", + "
" + ], + "text/plain": [ + " q3 q4 q5 q6 q7 \\\n", + "count 24205.000000 24205.000000 24205.000000 24205.000000 24205.000000 \n", + "mean 6.673497 5.532121 4.990002 9.002644 1.507177 \n", + "std 7.468561 25.407165 22.812399 28.164931 0.889274 \n", + "min 1.000000 1.000000 1.000000 1.000000 0.000000 \n", + "25% 2.000000 1.000000 1.000000 2.000000 0.690000 \n", + "50% 5.000000 2.000000 2.000000 5.000000 1.610000 \n", + "75% 8.000000 4.000000 4.000000 9.000000 2.080000 \n", + "max 360.000000 2333.000000 2093.000000 2420.000000 5.890000 \n", + "\n", + " q8 q9 q10 q11 q12 \\\n", + "count 24205.000000 24205.000000 24205.000000 24205.000000 24205.000000 \n", + "mean 0.930915 0.863740 1.540158 26.765398 25.708965 \n", + "std 0.980001 0.951531 1.027086 10.166944 11.569436 \n", + "min 0.000000 0.000000 0.000000 2.780000 1.410000 \n", + "25% 0.000000 0.000000 0.690000 20.000000 16.670000 \n", + "50% 0.690000 0.690000 1.610000 25.930000 25.000000 \n", + "75% 1.390000 1.390000 2.200000 33.330000 33.330000 \n", + "max 7.750000 7.650000 7.790000 84.620000 89.290000 \n", + "\n", + " ... q16r q16u q16v q16w \\\n", + "count ... 24205.000000 24205.000000 24205.000000 24205.000000 \n", + "mean ... 3.633588 0.460916 22.550671 25.064697 \n", + "std ... 1.490942 0.509305 14.454279 28.650883 \n", + "min ... 1.000000 0.000000 1.000000 1.000000 \n", + "25% ... 3.000000 0.000000 10.000000 9.000000 \n", + "50% ... 4.000000 0.333333 21.000000 17.000000 \n", + "75% ... 5.000000 0.666667 34.000000 32.000000 \n", + "max ... 5.000000 7.000000 53.000000 1289.000000 \n", + "\n", + " q16x q16y q16z q16aa q16ab \\\n", + "count 24205.000000 24205.000000 24205.000000 24205.000000 24205.000000 \n", + "mean 0.003781 73.981978 0.642677 0.561124 1.141080 \n", + "std 0.006020 51.060694 1.427017 1.908011 3.234828 \n", + "min 0.000000 0.250000 0.000000 0.000000 0.000000 \n", + "25% 0.000477 39.125000 0.000000 0.000000 0.000000 \n", + "50% 0.001944 61.842593 0.000000 0.000000 0.500000 \n", + "75% 0.004666 95.375000 1.000000 0.000000 1.333333 \n", + "max 0.150618 549.333333 44.000000 106.000000 342.300000 \n", + "\n", + " q16ac \n", + "count 24205.000000 \n", + "mean 3.649456 \n", + "std 0.990191 \n", + "min 1.000000 \n", + "25% 3.200000 \n", + "50% 3.800000 \n", + "75% 4.333333 \n", + "max 5.000000 \n", + "\n", + "[8 rows x 40 columns]" + ] + }, + "execution_count": 2, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "df = pd.read_csv('yelp_reviewers.csv')\n", + "print(df.shape)\n", + "df.dropna().describe()" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Question 1 ###\n", + "\n", + "Choose an implementation of k-means and specify it in the google sheet \n", + "\n", + "** Answer **: \n" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "from sklearn.cluster import KMeans # Scikit-learn\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Question 2 ###\n", + "What is the best choice of k according to the silhouette metric for clustering q4-q6 (# of cool, funny, useful votes). Only consider 2 <= k <= 8. \n", + "\n", + "NOTE: For features with high variance, empty clusters can occur. There are several ways of dealing with empty clusters. A common approach is to drop empty clusters, the prefered approach for this Lab is to treat the empty cluster as a “singleton” leaving it empty with a single point placeholder. This can be accomplished in MATLAB, for example, with the command: [IDX,C]=kmeans(d,4, 'Distance', 'sqeuclidean','EmptyAction','singleton')\n", + "\n", + "**Answer**: " + ] + }, + { + "cell_type": "code", + "execution_count": 96, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Best choice: k = 2 , silhouette score = 0.98939672069\n" + ] + } + ], + "source": [ + "current_max, current_index = float(\"-inf\"),-1\n", + "#new_df = df.dropna().sample(n = 10000) # Sampling 10000 data points randomly since the whole dataset is too large to load\n", + "#print(type(new_df)) # Dataframe\n", + "#b = [1,3,5]\n", + "#print(df.iloc[:,b])\n", + "\n", + "for k in range(2,9):\n", + " kmeans = KMeans(n_clusters = k).fit(df.iloc[:, 1:4])\n", + " s_score = silhouette_score(df.iloc[:,1:4], kmeans.labels_, sample_size = 10000)\n", + " if s_score > current_max:\n", + " current_max = s_score\n", + " current_index = k\n", + "\n", + "print(\"Best choice: k = \", current_index, \", silhouette score = \", current_max)\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "***\n", + "\n", + "### Question 3 ###\n", + "Answer question 2 but using the log of the features (q7-q10)\n", + "\n", + "**Answer**: " + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "'\\n\\nfrom sklearn.preprocessing import Imputer\\n\\ncol_loc = new_df.columns.get_loc(\\'q7\\')\\n#new_df.iloc[:,col_loc:(col_loc+4)].head()\\n\\nlog_new_df = np.log(new_df.iloc[:,col_loc:(col_loc+4)])\\nlog_new_df[log_new_df == float(\\'-inf\\')] = float(\\'nan\\')\\n#print(log_new_df.head())\\nimputer = Imputer()\\nlog_new_df = imputer.fit_transform(log_new_df) # It is an array now\\n#print(log_new_df[:5])\\n\\n\\n\\ncurrent_max, current_index = float(\"-inf\"),-1\\nfor k in range(2,9):\\n kmeans = KMeans(n_clusters = k).fit(log_new_df)\\n s_score = silhouette_score(log_new_df, kmeans.labels_)\\n if s_score > current_max:\\n current_max = s_score\\n current_index = k\\nprint(\"Best choice: k = \", current_index)\\n\\n'" + ] + }, + "execution_count": 7, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "# I had taken log of the features q7-q10 in this code.\n", + "\n", + "\"\"\"\n", + "\n", + "from sklearn.preprocessing import Imputer\n", + "\n", + "col_loc = new_df.columns.get_loc('q7')\n", + "#new_df.iloc[:,col_loc:(col_loc+4)].head()\n", + "\n", + "log_new_df = np.log(new_df.iloc[:,col_loc:(col_loc+4)])\n", + "log_new_df[log_new_df == float('-inf')] = float('nan')\n", + "#print(log_new_df.head())\n", + "imputer = Imputer()\n", + "log_new_df = imputer.fit_transform(log_new_df) # It is an array now\n", + "#print(log_new_df[:5])\n", + "\n", + "\n", + "\n", + "current_max, current_index = float(\"-inf\"),-1\n", + "for k in range(2,9):\n", + " kmeans = KMeans(n_clusters = k).fit(log_new_df)\n", + " s_score = silhouette_score(log_new_df, kmeans.labels_)\n", + " if s_score > current_max:\n", + " current_max = s_score\n", + " current_index = k\n", + "print(\"Best choice: k = \", current_index)\n", + "\n", + "\"\"\"" + ] + }, + { + "cell_type": "code", + "execution_count": 95, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Best choice: k = 2 , silhouette score = 0.525805639106\n" + ] + } + ], + "source": [ + "from sklearn.preprocessing import Imputer\n", + "\n", + "col_loc = df.columns.get_loc('q7')\n", + "\n", + "\n", + "log_df = df.iloc[:,col_loc:(col_loc+4)]\n", + "log_df[log_df == float('-inf')] = float('nan')\n", + "#print(log_new_df.head())\n", + "imputer = Imputer()\n", + "log_df = imputer.fit_transform(log_df) # It is an array now\n", + "#print(log_new_df[:5])\n", + "\n", + "\n", + "\n", + "current_max, current_index = float(\"-inf\"),-1\n", + "for k in range(2,9):\n", + " kmeans = KMeans(n_clusters = k).fit(log_df)\n", + " s_score = silhouette_score(log_df, kmeans.labels_, sample_size = 10000)\n", + " if s_score > current_max:\n", + " current_max = s_score\n", + " current_index = k\n", + "print(\"Best choice: k = \", current_index, \", silhouette score = \", current_max)" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "#new_df.iloc[:,col_loc:(col_loc+4)].head()" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "***\n", + "\n", + "### Question 4 ###\n", + "Answer question 2 but using the percentage of the features (q11-q13)\n", + "\n", + "**Answer**:" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(10000,)\n", + "Best choice: k = 8\n" + ] + } + ], + "source": [ + "# Here again, I took the percentage of each column w.r.t the sum of all the 3 columns\n", + "\n", + "\"\"\"\n", + "col_loc = new_df.columns.get_loc('q11')\n", + "new_df_slice = new_df.iloc[:,col_loc:(col_loc+3)]\n", + "sum_across_cols = new_df_slice.sum(axis=1) # Axis of repeat isn't supported in pandas' implememtation of repeat\n", + "\n", + "\n", + "#print(type(sum_across_cols)) # Series\n", + "#print(np.repeat(sum_across_cols, 3, axis =1).shape)\n", + "#percent_new_df = np.divide(, np.repeat(sum_across_cols, 3, axis=1))*100\n", + "\n", + "for i in range(len(new_df_slice.iloc[0])): # new_df_slice[:1] wasn't giving the desired results, think why\n", + " new_df_slice.iloc[:,i] = np.divide(new_df_slice.iloc[:,i], sum_across_cols)*100\n", + "#new_df_slice.describe()\n", + "\n", + "current_max, current_index = float(\"-inf\"),-1\n", + "for k in range(2,9):\n", + " kmeans = KMeans(n_clusters = k).fit(new_df_slice)\n", + " s_score = silhouette_score(new_df_slice, kmeans.labels_)\n", + " if s_score > current_max:\n", + " current_max = s_score\n", + " current_index = k\n", + "print(\"Best choice: k = \", current_index)\n", + "\"\"\"" + ] + }, + { + "cell_type": "code", + "execution_count": 51, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Best choice: k = 8\n" + ] + } + ], + "source": [ + "col_loc = df.columns.get_loc('q11')\n", + "df_slice = df.iloc[:,col_loc:(col_loc+3)]\n", + "\n", + "imputer = Imputer()\n", + "df_slice = imputer.fit_transform(df_slice)\n", + "current_max, current_index = float(\"-inf\"),-1\n", + "for k in range(2,9):\n", + " kmeans = KMeans(n_clusters = k).fit(df_slice)\n", + " s_score = silhouette_score(df_slice, kmeans.labels_, sample_size = 10000)\n", + " if s_score > current_max:\n", + " current_max = s_score\n", + " current_index = k\n", + "print(\"Best choice: k = \", current_index)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "***\n", + "\n", + "### Question 5 ###\n", + "Inspect the [best] clustering generated from question 4" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "#### 5.a ####\n", + "**Question**: List the number of data points in each cluster (eg. C1: 2,000 C2: 4,200 etc)" + ] + }, + { + "cell_type": "code", + "execution_count": 52, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "C0 : 8677, C1 : 14865, C2 : 86641, C3 : 5805, C4 : 4026, C5 : 10188, C6 : 32922, C7 : 8515, " + ] + } + ], + "source": [ + "kmeans = KMeans(n_clusters = current_index).fit(df_slice)\n", + "\n", + "from collections import Counter\n", + "cnt = Counter()\n", + "for label in kmeans.labels_:\n", + " cnt[label]+=1\n", + "for item in sorted(cnt.items(), key = lambda x: x[0]): # item is (key,value)\n", + " print(\"C\"+str(item[0]),\":\",item[1], end = \", \")\n", + "#print(sorted(cnt, key = lambda x:)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "#### 5.b ####\n", + "**Question**: Were there clusters that represented very funny but useless reviewers? \n", + "\n", + "**Answer**: " + ] + }, + { + "cell_type": "code", + "execution_count": 54, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[[ 26.35629771 1.56193359 72.08165802]\n", + " [ 32.79166095 33.46908443 33.73584191]\n", + " [ 19.21344078 18.71325288 62.07314944]\n", + " [ 1.36427907 97.08347976 1.55237037]\n", + " [ 98.20565574 0.89977894 0.894615 ]\n", + " [ 49.12774441 2.46021692 48.41214861]\n", + " [ 0.17617186 0.40948758 99.41432112]\n", + " [ 2.01080446 46.42119789 51.56799883]]\n" + ] + } + ], + "source": [ + "print(kmeans.cluster_centers_)\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "From the coordinates of the cluster centers, we see that cluster 3 (in this case, the exact label could vary depending on initializations etc.) has only about 1.5% from useful votes and about 97% from funny votes. Instead of just looking at the cluster centers and saying this (which would be hard if there were many centers, we could also have a threshold, say 80%, for the difference between the percentages of funny and useful votes and return all clusters for which the threshold is exceeded." + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "#### 5.c ####\n", + "**Question**: How many reviewers were in the cluster that represented relatively equal strength in all voting categories (assuming such a cluster exists in your clustering)? \n", + "\n", + "**Answer**:" + ] + }, + { + "cell_type": "code", + "execution_count": 55, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The number of reviewers in the cluster that represented relatively equal strength in all voting categories: 14865\n" + ] + } + ], + "source": [ + "latest_cluster = -1 # The latest cluster that satisfies the required criteria\n", + "for i,centers in enumerate(kmeans.cluster_centers_):\n", + " if max(centers)-min(centers)<10: # some heuristic threshold\n", + " latest_cluster = i\n", + "if latest_cluster == -1:\n", + " print(\"No such cluster found\")\n", + "else:\n", + " print(\"The number of reviewers in the cluster that represented relatively equal strength in all voting categories: \",cnt[latest_cluster])\n", + " \n", + "# We could also have eyeballed it in this case since we see that cluster 6 has almost equal coordinates, but my code is more general, ofcourse with the caveat of having to select the threshold " + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "***\n", + "\n", + "### Question 6 ###\n", + "Cluster the dataset using $k = 5$ and using features q7-q13 (log and % type votes) and q14 (most active year feature) and the natural log of q15 (avg review chars)" + ] + }, + { + "cell_type": "code", + "execution_count": 57, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "col_loc = df.columns.get_loc('q7')\n", + "q6_df = df.iloc[:,col_loc:(col_loc+8)] #q6 refers to question 6 here, not some feature\n", + "#new_df.iloc[:,new_df.columns.get_loc('q15')]\n", + "q6_df = q6_df.join(pd.DataFrame(np.log(df.iloc[:,df.columns.get_loc('q15')]))) \n", + "imputer = Imputer()\n", + "q6_df = imputer.fit_transform(q6_df)\n", + "\n", + "kmeans = KMeans(n_clusters = 5).fit(q6_df)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "#### 6.a ####\n", + "**Question**: What is the silhouette metric for this clustering? \n", + "You may use the max, as you did in question 2. For a more in-depth understanding of cluster analysis with silhouette, look [here](http://scikit-learn.org/stable/auto_examples/cluster/plot_kmeans_silhouette_analysis.html)" + ] + }, + { + "cell_type": "code", + "execution_count": 58, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The silhouette metric for this clustering is: 0.648573840098\n" + ] + } + ], + "source": [ + "s_score = silhouette_score(q6_df, kmeans.labels_, sample_size = 10000)\n", + "print(\"The silhouette metric for this clustering is: \", s_score)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "#### 6.b ####\n", + "**Question**: What was the average “number of reviews per reviewer (q3)” among the points in each of the clusters (eg. C1: 1.4 C2: 4.2 C3: 3.4 etc)" + ] + }, + { + "cell_type": "code", + "execution_count": 60, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "C0 : 5.13274199769, C1 : 2.87911339962, C2 : 2.67239955971, C3 : 2.85209182152, C4 : 2.60288629012, " + ] + } + ], + "source": [ + "dict1 = {}\n", + "#for i in range(5):\n", + "# dict1[i] = list()\n", + "#print(kmeans.labels_[9999])\n", + "#print([new_df.iloc[9999,new_df.columns.get_loc('q3')]])\n", + "#print()\n", + "\n", + "for i in range(len(df)):\n", + " if kmeans.labels_[i] in dict1:\n", + " dict1[kmeans.labels_[i]].append(df.iloc[i,df.columns.get_loc('q3')])\n", + " else:\n", + " dict1[kmeans.labels_[i]] = ([df.iloc[i,df.columns.get_loc('q3')]])\n", + "#print(dict1.keys())\n", + "for key in sorted(dict1.keys()):\n", + " print(\"C\"+str(key),\":\",np.mean(np.array(dict1[key])), end =\", \")\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "***\n", + "\n", + "### Question 7 ###\n", + "Cluster the dataset using the features described in question 6 + every group’s question 16 features (you may drop features with high incidents of -Inf / blank / or NaN values). It is suggested that you perform some form of normalization on these question 16 features so as not to over bias the clustering towards the larger magnitude features." + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "#### Data Cleansing and Normalization ####\n", + "Check how many null values there are in each column." + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "{'q7': 0, 'q8': 117853, 'q9': 122162, 'q10': 81153, 'q11': 71282, 'q12': 71282, 'q13': 71282, 'q14': 0, 'q15': 0, 'q16a': 0, 'q16b': 0, 'q16c': 0, 'q16d': 0, 'q16e': 0, 'q16f': 0, 'q16g': 0, 'q16h': 0, 'q16i': 0, 'q16j': 0, 'q16k': 0, 'q16l': 0, 'q16m': 0, 'q16n': 0, 'q16o': 0, 'q16p': 0, 'q16q': 0, 'q16r': 0, 'q16s': 0, 'q16t': 0, 'q16u': 0, 'q16v': 0, 'q16w': 0, 'q16x': 0, 'q16y': 0, 'q16z': 0, 'q16aa': 0, 'q16ab': 47594, 'q16ac': 0}\n" + ] + } + ], + "source": [ + "from sklearn.preprocessing import MinMaxScaler\n", + "col_loc = df.columns.get_loc('q7')\n", + "q6_df = df.iloc[:,col_loc:(col_loc+8)] #q6 refers to question 6 here, not some feature\n", + "q6_df = q6_df.join(pd.DataFrame(np.log(df.iloc[:,df.columns.get_loc('q15')])))\n", + "q7_df = pd.DataFrame(q6_df).join(df.iloc[:,df.columns.get_loc('q16a'):])\n", + "#print(q7_df.shape)\n", + "#print(q7_df.head())\n", + "#print(q7_df['q8'].isnull().sum())\n", + "\n", + "d = {}\n", + "for col in q7_df.columns:\n", + " d[col] = np.sum(q7_df[col].isnull().sum())\n", + "print(d)\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "It looks like q8 - q13 and q16ab have a lot of null values, especially q8 and q9. Let's see what the impact is of removing some of these columnsbefore removing any columns" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "#print(q7_df.columns)\n", + "del q7_df['q8'] # Could also do df.drop\n", + "del q7_df['q9']\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "By removing 2 features, we double the number of rows remaining. That's pretty good. \n", + "Preprocess categorical variables to dummy values." + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "{dtype('float64'), dtype('int64'), dtype('O')}\n", + " q7 q10 q11 q12 q13 q14 q15 q16a q16b q16c \\\n", + "1 1.10 0.00 0.0 0.0 100.0 9 5.030438 0 0.577350 0.002179 \n", + "3 1.10 0.00 0.0 0.0 100.0 10 6.219934 1 2.309401 0.000663 \n", + "5 1.10 1.10 0.0 0.0 100.0 9 5.950643 0 2.309401 0.002604 \n", + "6 2.08 1.79 25.0 0.0 75.0 9 6.013104 5 1.995531 0.002446 \n", + "9 0.69 0.00 0.0 50.0 50.0 9 5.898527 1 2.121320 0.002743 \n", + "\n", + " ... q16t q16u q16v q16w q16x q16y q16z q16aa \\\n", + "1 ... 1 1.0 19 14 0.000000 21.833333 1 0 \n", + "3 ... 1 0.0 8 11 0.002242 61.500000 0 0 \n", + "5 ... 1 0.0 27 11 0.005814 41.000000 0 0 \n", + "6 ... 0 0.5 1 27 0.006479 42.156250 0 0 \n", + "9 ... 1 0.5 31 7 0.000000 56.750000 0 0 \n", + "\n", + " q16ab q16ac \n", + "1 0.333333 4.666667 \n", + "3 0.333333 3.666667 \n", + "5 1.000000 3.666667 \n", + "6 1.000000 3.375000 \n", + "9 1.000000 3.500000 \n", + "\n", + "[5 rows x 36 columns]\n" + ] + } + ], + "source": [ + "q7_df = q7_df.dropna() # Till now I have been imputing and not dropping the NaN values, but siunce this question refers to dropping NaN, I have done so here\n", + "list_of_types = []\n", + "for col in q7_df.columns:\n", + " list_of_types.append(q7_df[col].dtype)\n", + "print(set(list_of_types))\n", + "\n", + "for col in q7_df.columns:\n", + " if q7_df[col].dtype == 'O':\n", + " cats = set(q7_df[col])\n", + " #print(cats)\n", + " count = 0\n", + " d = {}\n", + " for elt in cats:\n", + " d[elt] = count\n", + " count+=1\n", + " #print(d)\n", + " #break\n", + " new_q7 = []\n", + " for elt in q7_df[col]:\n", + " new_q7.append(d[elt])\n", + " q7_df[col]=new_q7\n", + " \n", + "print(q7_df.head()) " + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Now normalize the remaining features." + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
q7q10q11q12q13q14q15q16aq16bq16c...q16tq16uq16vq16wq16xq16yq16zq16aaq16abq16ac
00.1867570.0000000.0000000.0000001.0000000.8333330.5110360.00.2041240.000654...1.00.1111110.3461540.0100930.0000000.0315550.0227270.00.0009740.916667
10.1867570.0000000.0000000.0000001.0000000.9166670.6778440.10.8164970.000187...1.00.0000000.1346150.0077640.0058090.0895470.0000000.00.0009740.666667
20.1867570.1412070.0000000.0000001.0000000.8333330.6400800.00.8164970.000784...1.00.0000000.5000000.0077640.0150630.0595760.0000000.00.0029210.666667
30.3531410.2297820.2678670.0000000.7380830.8333330.6488400.50.7055270.000736...0.00.0555560.0000000.0201860.0167860.0612660.0000000.00.0029210.593750
40.1171480.0000000.0000000.5599730.4761660.8333330.6327720.10.7500000.000827...1.00.0555560.5769230.0046580.0000000.0826020.0000000.00.0029210.625000
\n", + "

5 rows × 36 columns

\n", + "
" + ], + "text/plain": [ + " q7 q10 q11 q12 q13 q14 q15 q16a \\\n", + "0 0.186757 0.000000 0.000000 0.000000 1.000000 0.833333 0.511036 0.0 \n", + "1 0.186757 0.000000 0.000000 0.000000 1.000000 0.916667 0.677844 0.1 \n", + "2 0.186757 0.141207 0.000000 0.000000 1.000000 0.833333 0.640080 0.0 \n", + "3 0.353141 0.229782 0.267867 0.000000 0.738083 0.833333 0.648840 0.5 \n", + "4 0.117148 0.000000 0.000000 0.559973 0.476166 0.833333 0.632772 0.1 \n", + "\n", + " q16b q16c ... q16t q16u q16v q16w q16x \\\n", + "0 0.204124 0.000654 ... 1.0 0.111111 0.346154 0.010093 0.000000 \n", + "1 0.816497 0.000187 ... 1.0 0.000000 0.134615 0.007764 0.005809 \n", + "2 0.816497 0.000784 ... 1.0 0.000000 0.500000 0.007764 0.015063 \n", + "3 0.705527 0.000736 ... 0.0 0.055556 0.000000 0.020186 0.016786 \n", + "4 0.750000 0.000827 ... 1.0 0.055556 0.576923 0.004658 0.000000 \n", + "\n", + " q16y q16z q16aa q16ab q16ac \n", + "0 0.031555 0.022727 0.0 0.000974 0.916667 \n", + "1 0.089547 0.000000 0.0 0.000974 0.666667 \n", + "2 0.059576 0.000000 0.0 0.002921 0.666667 \n", + "3 0.061266 0.000000 0.0 0.002921 0.593750 \n", + "4 0.082602 0.000000 0.0 0.002921 0.625000 \n", + "\n", + "[5 rows x 36 columns]" + ] + }, + "execution_count": 23, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "cols = q7_df.columns\n", + "scaler = MinMaxScaler()\n", + "scaler.fit(q7_df)\n", + "q7_df = pd.DataFrame(scaler.transform(q7_df), columns = cols)\n", + "#q7_df = pd.DataFrame(normalize(q7_df, axis = 0))\n", + "q7_df.head()" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "#### 7.a ####\n", + "**Question**: Using the silhouette metric, what was the best k? \n", + "\n", + "**Answer**: " + ] + }, + { + "cell_type": "code", + "execution_count": 24, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Best choice: k = 2 , silhouette score = 0.232197223377\n" + ] + } + ], + "source": [ + "current_max, current_index = float(\"-inf\"),-1\n", + "sse = []\n", + "for k in range(2,9):\n", + " kmeans = KMeans(n_clusters = k).fit(q7_df)\n", + " sse.append(kmeans.inertia_)\n", + " s_score = silhouette_score(q7_df, kmeans.labels_, sample_size = 10000)\n", + " if s_score > current_max:\n", + " current_max = s_score\n", + " current_index = k\n", + "\n", + "print(\"Best choice: k = \", current_index, \", silhouette score = \", current_max)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "#### 7.b ####\n", + "**Question**: Using the the sum of within cluster variance metric with the elbow method what was the best k? \n", + "**Answer**: " + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "metadata": {}, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYcAAAD8CAYAAACcjGjIAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMS4wLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvpW3flQAAIABJREFUeJzt3Xl0VdXB/vHvPgkEkpiQewMiCMoQ\nqowJBAmIjIFWcESkFawVpCihUqRVg7Y/fV8Eo4BgFIqCBX21dUDEV8UpIkTFIQxBBMsg1OKLNJKk\nYCAQkrN/f1xNtUEJmc7NzfNZy1W465x7n73SxZNz9j17G2utRURE5DscrwOIiEjwUTmIiEgFKgcR\nEalA5SAiIhWoHEREpAKVg4iIVKByEBGRClQOIiJSgcpBREQqUDmIiEgF4V4HqI79+/dX6bz4+HgO\nHjxYw2m8ESpjCZVxgMYSrEJlLNUdR6tWrSp1nK4cRESkApWDiIhUoHIQEZEKVA4iIlKBykFERCpQ\nOYiISAUqBxERqaDBlYP77pscz3nX6xgiIkGtQZWDLS3Fvr2aQw/OxH51wOs4IiJBq0GVgwkPx7np\ndrAW95H7sSdOeB1JRCQoNahyADDNWxJz853w+W7sc495HUdEJCg1uHIAaJIyEDPscuzbq3Fz3vE6\njohI0GmQ5QBgRv0KOpyHffxh7IEvvI4jIhJUGm45hIfjTLo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uJ1\nlCorKioiJyeHhQsX8sgjj3Ds2DGys7Nr7fMaVDmUlpYyb948LrroIvr06eN1nBoRFRVF586dyc3N\n9TpKlezYsYMNGzYwZcoUFixYwCeffEJmZqbXsarM5/MBEBsbS+/evdm9e7fHiU6f3+/H7/eXX42m\npKSwd+9ej1NVz+bNm2nXrh3NmjXzOkqVbd26lRYtWhATE0N4eDh9+vRh586dtfZ5Dea2krWWxYsX\n07p1ay655BKv41TL4cOHCQsLIyoqipKSErZu3crll1/udawqGTt2LGPHjgVg27ZtvPTSS0ydOtXj\nVFVz7NgxrLU0bdqUY8eO8fHHHzN69GivY522Zs2a4ff72b9/P61atWLr1q2cffbZXseqlvp+Swkg\nPj6eXbt2cfz4cRo3bszWrVvp0KFDrX1egymHHTt2kJ2dTdu2bbn11lsBuOaaa+jZs6fHyU5fYWEh\nCxcuxHVdrLX07duXXr16eR2rwTt06BBz584FArdm+vfvT2JiosepqmbChAlkZmZSWlpKixYtSEtL\n8zpSlR0/fpyPP/6YSZMmeR2lWhISEkhJSeH2228nLCyMc889t1bntPSEtIiIVNCg5hxERKRyVA4i\nIlKBykFERCpQOYiISAUqBxERqUDlICIiFagcRESkApWDiIhU8P8BVy0MU2vLZloAAAAASUVORK5C\nYII=\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "k = range(2,9)\n", + "plt.plot(k,sse)\n", + "plt.show()" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "By the elbow method, it is seen that maximum slope change occurs at k=3." + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Question 8 ###\n", + "For this question please come up with your own question about this dataset and using a clustering technique as part of your method of answering it. This question answer should be submitted to a bCourses assignment in the form a pdf. This report is expected to be between 2 and 3 pages. It is meant to give you practice writing up your results. The report should have the following sections:\n", + "\n", + "\n", + "RESEARCH QUESTION: Describe what it is you want to ask of this dataset\n", + " (the question can not be the same as question 9)\n", + " \n", + " \n", + "DATASET: describe the yelp_reviews to yelp_reviewers transformation. have a subsection called FEATURES SELECTED: briefly describe the features from the dataset you choose (at least 1 features should be from a q16)\n", + "\n", + "\n", + "METHODS: Briefly describe the methods you used (such as k-means) and why you used them\n", + "\n", + "\n", + "RESULTS: Here you can tell the story of how you investigated the question (plots are always nice) and the conclusions you drew.\n", + "\n", + "\n", + "NOTE: If you are hypothesizing that clusters might be formed with respect to a particular attribute, consider withholding that attribute from clustering and then looking to see what the mean value or distribution of that attribute is among the formed clusters." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "#I have submitted the pdf and a separate Ipython notebook for this titled Lab2 Q8.ipynb." + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Bonus question (+15%) - Reviewer overlap:\n", + "Create a dataset with f reviewers as the rows and business_ids as the columns (there are a lot) where the feature value is is ‘1’ if the reviewer has written a review for that business and ‘0’ if not. Use the methods described in this assignment to answer the question of how much overlap of businesses reviewed exists among reviewers in this dataset. Append this answer to your question 8 document." + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "# Attached after Q8\n", + "\n" + ] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.6.3" + } + }, + "nbformat": 4, + "nbformat_minor": 1 +} diff --git a/Lab3_Decision_Trees.ipynb b/Lab3_Decision_Trees.ipynb new file mode 100644 index 0000000..2480693 --- /dev/null +++ b/Lab3_Decision_Trees.ipynb @@ -0,0 +1,511 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Lab 3 - Decision Trees" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "This assignment uses a dataset obtained from the JSE Data Archive that aims at identifying whether there is a statistically significant dependence between gender and biological/activity traits in humans. \n", + "\n", + "FEATURE DESCRIPTIONS: \n", + "\n", + "
    \n", + "
  • Color (Blue, Brown, Green, Hazel, Other)\n", + "
  • Age (in years)\n", + "
  • YearinSchool (First, Second, Third, Fourth, Other)\n", + "
  • Height (in inches)\n", + "
  • Miles (distance from home town of student to Ames, IA) \n", + "
  • Brothers (number of brothers)\n", + "
  • Sisters (number of sisters)\n", + "
  • CompTime (number of hours spent on computer per week)\n", + "
  • Exercise (whether the student exercises Yes or No)\n", + "
  • ExerTime (number of hours spent exercising per week)\n", + "
  • MusicCDs (number of music CDs student owns)\n", + "
  • PlayGames (number of hours spent playing games per week)\n", + "
  • WatchTV (number of hours spent watching TV per week\n", + "
\n", + "\n", + "https://ww2.amstat.org/publications/jse/jse_data_archive.htm" + ] + }, + { + "cell_type": "code", + "execution_count": 65, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "from collections import Counter, defaultdict\n", + "from itertools import combinations \n", + "import pandas as pd\n", + "import numpy as np\n", + "import operator" + ] + }, + { + "cell_type": "code", + "execution_count": 66, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "RangeIndex: 2068 entries, 0 to 2067\n", + "Data columns (total 14 columns):\n", + "gender 2068 non-null object\n", + "age 2068 non-null int64\n", + "year 2068 non-null object\n", + "eyecolor 2068 non-null object\n", + "height 2051 non-null float64\n", + "miles 2052 non-null float64\n", + "brothers 2068 non-null int64\n", + "sisters 2068 non-null int64\n", + "computertime 2061 non-null float64\n", + "exercise 2068 non-null object\n", + "exercisehours 2068 non-null float64\n", + "musiccds 2024 non-null float64\n", + "playgames 2067 non-null float64\n", + "watchtv 2067 non-null float64\n", + "dtypes: float64(7), int64(3), object(4)\n", + "memory usage: 226.3+ KB\n" + ] + } + ], + "source": [ + "df = pd.read_csv('Eye_Color.csv')\n", + "df.info()" + ] + }, + { + "cell_type": "code", + "execution_count": 67, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "RangeIndex: 1988 entries, 0 to 1987\n", + "Data columns (total 14 columns):\n", + "gender 1988 non-null object\n", + "age 1988 non-null int64\n", + "year 1988 non-null object\n", + "eyecolor 1988 non-null object\n", + "height 1988 non-null float64\n", + "miles 1988 non-null float64\n", + "brothers 1988 non-null int64\n", + "sisters 1988 non-null int64\n", + "computertime 1988 non-null float64\n", + "exercise 1988 non-null object\n", + "exercisehours 1988 non-null float64\n", + "musiccds 1988 non-null float64\n", + "playgames 1988 non-null float64\n", + "watchtv 1988 non-null float64\n", + "dtypes: float64(7), int64(3), object(4)\n", + "memory usage: 217.5+ KB\n" + ] + }, + { + "data": { + "text/plain": [ + "30" + ] + }, + "execution_count": 67, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "# remove NA's and reset the index\n", + "df = df.dropna(axis=0, how='any', thresh=None, subset=None, inplace=False)\n", + "df = df.reset_index(drop=True)\n", + "df.info()\n", + "df.head()\n", + "len(df.height.unique())" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Calculating Gini Index " + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "\n", + "\n", + "**Question 1: How many rows are there in the dataset for males? For females? **\n", + "\n" + ] + }, + { + "cell_type": "code", + "execution_count": 121, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "male: 910 female: 1078\n" + ] + } + ], + "source": [ + "grouped=df.groupby('gender').size()\n", + "grouped\n", + "print('male: ',grouped['male'],'female: ',grouped['female'])" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "**Question 2: What is the Gini Index of this dataset, using males and females as the target classes?**" + ] + }, + { + "cell_type": "code", + "execution_count": 108, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "0.496429279905\n" + ] + } + ], + "source": [ + "ratio=grouped['female']/(grouped['female']+grouped['male'])\n", + "\n", + "def gini(p):\n", + " return 1-p*p-(1-p)*(1-p)\n", + "print(gini(ratio))" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Best Split of a Numeric Feature" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "**Question 3: What is the best split point of the 'height' feature. **" + ] + }, + { + "cell_type": "code", + "execution_count": 125, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[44.0, 52.0, 54.0, 56.0, 57.0, 58.0, 59.0, 60.0, 61.0, 62.0, 63.0, 64.0, 65.0, 66.0, 67.0, 68.0, 69.0, 70.0, 71.0, 72.0, 73.0, 74.0, 75.0, 76.0, 77.0, 78.0, 79.0, 80.0, 82.0, 85.0]\n", + "[48.0, 53.0, 55.0, 56.5, 57.5, 58.5, 59.5, 60.5, 61.5, 62.5, 63.5, 64.5, 65.5, 66.5, 67.5, 68.5, 69.5, 70.5, 71.5, 72.5, 73.5, 74.5, 75.5, 76.5, 77.5, 78.5, 79.5, 81.0, 83.5]\n" + ] + }, + { + "ename": "KeyError", + "evalue": "'female'", + "output_type": "error", + "traceback": [ + "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m", + "\u001b[1;31mTypeError\u001b[0m Traceback (most recent call last)", + "\u001b[1;32m~\\Anaconda3\\lib\\site-packages\\pandas\\core\\indexes\\base.py\u001b[0m in \u001b[0;36mget_value\u001b[1;34m(self, series, key)\u001b[0m\n\u001b[0;32m 2482\u001b[0m \u001b[1;32mtry\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m-> 2483\u001b[1;33m \u001b[1;32mreturn\u001b[0m \u001b[0mlibts\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mget_value_box\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0ms\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mkey\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 2484\u001b[0m \u001b[1;32mexcept\u001b[0m \u001b[0mIndexError\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n", + "\u001b[1;32mpandas/_libs/tslib.pyx\u001b[0m in \u001b[0;36mpandas._libs.tslib.get_value_box (pandas\\_libs\\tslib.c:18843)\u001b[1;34m()\u001b[0m\n", + "\u001b[1;32mpandas/_libs/tslib.pyx\u001b[0m in \u001b[0;36mpandas._libs.tslib.get_value_box (pandas\\_libs\\tslib.c:18477)\u001b[1;34m()\u001b[0m\n", + "\u001b[1;31mTypeError\u001b[0m: 'str' object cannot be interpreted as an integer", + "\nDuring handling of the above exception, another exception occurred:\n", + "\u001b[1;31mKeyError\u001b[0m Traceback (most recent call last)", + "\u001b[1;32m\u001b[0m in \u001b[0;36m\u001b[1;34m()\u001b[0m\n\u001b[0;32m 25\u001b[0m \u001b[1;31m# bsplitcount=bottomcount['male'] + bottomcount['female']\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 26\u001b[0m \u001b[1;31m#else:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m---> 27\u001b[1;33m \u001b[0mbsplitcount\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mbottomcount\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;34m'male'\u001b[0m\u001b[1;33m]\u001b[0m \u001b[1;33m+\u001b[0m \u001b[0mbottomcount\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;34m'female'\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 28\u001b[0m \u001b[0mbottomsplitprob\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mbottomcount\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;34m'male'\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m/\u001b[0m\u001b[0mbsplitcount\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 29\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n", + "\u001b[1;32m~\\Anaconda3\\lib\\site-packages\\pandas\\core\\series.py\u001b[0m in \u001b[0;36m__getitem__\u001b[1;34m(self, key)\u001b[0m\n\u001b[0;32m 599\u001b[0m \u001b[0mkey\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mcom\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_apply_if_callable\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mkey\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 600\u001b[0m \u001b[1;32mtry\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 601\u001b[1;33m \u001b[0mresult\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mindex\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mget_value\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mkey\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 602\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 603\u001b[0m \u001b[1;32mif\u001b[0m \u001b[1;32mnot\u001b[0m \u001b[0mis_scalar\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mresult\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n", + "\u001b[1;32m~\\Anaconda3\\lib\\site-packages\\pandas\\core\\indexes\\base.py\u001b[0m in \u001b[0;36mget_value\u001b[1;34m(self, series, key)\u001b[0m\n\u001b[0;32m 2489\u001b[0m \u001b[1;32mraise\u001b[0m \u001b[0mInvalidIndexError\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mkey\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 2490\u001b[0m \u001b[1;32melse\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m-> 2491\u001b[1;33m \u001b[1;32mraise\u001b[0m \u001b[0me1\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 2492\u001b[0m \u001b[1;32mexcept\u001b[0m \u001b[0mException\u001b[0m\u001b[1;33m:\u001b[0m \u001b[1;31m# pragma: no cover\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 2493\u001b[0m \u001b[1;32mraise\u001b[0m \u001b[0me1\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n", + "\u001b[1;32m~\\Anaconda3\\lib\\site-packages\\pandas\\core\\indexes\\base.py\u001b[0m in \u001b[0;36mget_value\u001b[1;34m(self, series, key)\u001b[0m\n\u001b[0;32m 2475\u001b[0m \u001b[1;32mtry\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 2476\u001b[0m return self._engine.get_value(s, k,\n\u001b[1;32m-> 2477\u001b[1;33m tz=getattr(series.dtype, 'tz', None))\n\u001b[0m\u001b[0;32m 2478\u001b[0m \u001b[1;32mexcept\u001b[0m \u001b[0mKeyError\u001b[0m \u001b[1;32mas\u001b[0m \u001b[0me1\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 2479\u001b[0m \u001b[1;32mif\u001b[0m \u001b[0mlen\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m)\u001b[0m \u001b[1;33m>\u001b[0m \u001b[1;36m0\u001b[0m \u001b[1;32mand\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0minferred_type\u001b[0m \u001b[1;32min\u001b[0m \u001b[1;33m[\u001b[0m\u001b[1;34m'integer'\u001b[0m\u001b[1;33m,\u001b[0m \u001b[1;34m'boolean'\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n", + "\u001b[1;32mpandas\\_libs\\index.pyx\u001b[0m in \u001b[0;36mpandas._libs.index.IndexEngine.get_value\u001b[1;34m()\u001b[0m\n", + "\u001b[1;32mpandas\\_libs\\index.pyx\u001b[0m in \u001b[0;36mpandas._libs.index.IndexEngine.get_value\u001b[1;34m()\u001b[0m\n", + "\u001b[1;32mpandas\\_libs\\index.pyx\u001b[0m in \u001b[0;36mpandas._libs.index.IndexEngine.get_loc\u001b[1;34m()\u001b[0m\n", + "\u001b[1;32mpandas\\_libs\\hashtable_class_helper.pxi\u001b[0m in \u001b[0;36mpandas._libs.hashtable.PyObjectHashTable.get_item\u001b[1;34m()\u001b[0m\n", + "\u001b[1;32mpandas\\_libs\\hashtable_class_helper.pxi\u001b[0m in \u001b[0;36mpandas._libs.hashtable.PyObjectHashTable.get_item\u001b[1;34m()\u001b[0m\n", + "\u001b[1;31mKeyError\u001b[0m: 'female'" + ] + } + ], + "source": [ + "sorted_heights = sorted(df[\"height\"].unique())\n", + "print(sorted_heights)\n", + "psp=[] #potential split point\n", + "for i,value in enumerate(sorted_heights):\n", + " if i<29:\n", + " midpoint=((sorted_heights[i]+sorted_heights[i+1])/2)\n", + " psp=np.append(midpoint,psp)\n", + "print(sorted(psp))\n", + "\n", + "for x in psp:\n", + " top=df[df['height']<=x]\n", + " topcount=top.groupby('gender').size()\n", + " bottom=df[df['height']>x]\n", + " bottomcount=bottom.groupby('gender').size()\n", + " \n", + " #if len(topcount==1):\n", + " # topsplitprob=1\n", + " # tsplitcount=topcount['male'] + topcount['female']\n", + " #else:\n", + " tsplitcount=topcount['male'] + topcount['female']\n", + " topsplitprob=topcount['male']/tsplitcount\n", + " \n", + " #if len(bottomcount==1):\n", + " # bottomsplitprob=1\n", + " # bsplitcount=bottomcount['male'] + bottomcount['female']\n", + " #else:\n", + " bsplitcount=bottomcount['male'] + bottomcount['female']\n", + " bottomsplitprob=bottomcount['male']/bsplitcount \n", + " \n", + " # totalcount=bsplitcount+tsplitcount\n", + " # final_gini=gini(tsplitcount)*(topsplitprob/totalcount) +gini(bottomsplitprob)*(bsplitcount/totalcount)\n", + " \n", + " " + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "**Question 4: What is the Gini Index of this best split?**" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "**Question 5: How much does this partitioning reduce the Gini Index over that of the overall dataset?**" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "**Question 6: How many 'female' rows are below your best split point? 'male' rows?**" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "**Question 7: How many 'female' rows are above your best split point? 'male' rows?**" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Recall that, to calculate the best split of this numeric field, you'll need to order your data by 'height', then consider the midpoint between each pair of consecutive heights as a potential split point, then calculate the Gini Index for that partitioning. You'll want to keep track of the best split point and its Gini Index (remember that you are trying to minimize the Gini Index). \n", + "\n", + "There are a lot of ways to do this. Some are very fast, others very slow. One tip to make this run quickly is, as you consecutively step through the data and calculate the Gini Index of each possible split point, keep a running total of the number of rows for each candidate that are located above and below the split point. \n", + "\n", + "Some Python tips: \n", + "\n", + "* Counter(), from the collections module, is a special dictionary for counting values of a key\n", + "* zip() lets you concatenate lists into a list of tuples (for example, if we have a list of the candidates and a list of transaction amounts, zip(candidate_list, transaction_amount) would give us a list of (candidate, transaction amount) pairs" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Best Split of a Categorial Variable" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "**Question 8: How many possible splits are there of the eyecolor feature?**" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "**Question 9: Which split of eyecolor best splits the female and male rows, as measured by the Gini Index?**" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "**Question 10: What is the Gini Index of this best split?**" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "**Question 11: How much does this partitioning reduce the Gini Index over that of the overall data set?**" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "**Question 12: How many 'female' rows and 'male' rows are in your first partition? How many 'female' rows and 'male' rows are in your second partition?**" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Python tip: the combinations function of the itertools module allows you to enumerate combinations of a list. You might want to Google 'power set'." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Training a decision tree" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "**Question 13: Using all of the features in the original dataframe read in at the top of this notebook, train a decision tree classifier that has a depth of three (including the root node and leaf nodes). What is the accuracy of this classifier on the training data?**" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Scikit-learn classifiers require class labels and features to be in numeric arrays. As such, you will need to turn your categorical features into numeric arrays using DictVectorizer. This is a helpful notebook for understanding how to do this: http://nbviewer.ipython.org/gist/sarguido/7423289. You can turn a pandas dataframe of features into a dictionary of the form needed by DictVectorizer by using df.to_dict('records'). Make sure you remove the class label first (in this case, gender). If you use the class label as a feature, your classifier will have a training accuracy of 100%! The example notebook link also shows how to turn your class labels into a numeric array using sklearn.preprocessing.LabelEncoder()." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "import sklearn\n", + "from sklearn.tree import DecisionTreeClassifier\n", + "from sklearn.feature_extraction import DictVectorizer #to turn categorial variables into numeric arrays\n", + "from sklearn import preprocessing #to transform the feature labels" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "**Question 14: Using the following code snippet, export your decision tree to graphviz and visualize it. In your write-up, write down the interpretation of the rule at each node which is used to perform the splitting.**\n", + "\n", + "In order to install graphviz, you may need to download the tool from [this website](https://graphviz.gitlab.io), and then pip3/conda install the python libraries you do not have.\n", + "\n", + "Mac users can use ```brew install graphviz``` instead of following the link, and linux users can do the same using their favourite package manager (for example, Ubuntu users can use ```sudo apt-get install graphviz```, followed by the necessary pip3/conda installations." + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "from IPython.display import Image \n", + "import pydotplus \n", + "import pydot\n", + "from sklearn.externals.six import StringIO\n", + "\n", + "#\n", + "# clf = your classifier\n", + "\n", + "dotfile = StringIO() \n", + "tree.export_graphviz(clf, out_file=dotfile,\n", + "# feature_names=df.columns, \n", + "# class_names=['Female', 'Male'], \n", + " filled=True, rounded=True, \n", + " special_characters=True)\n", + " \n", + "graph = pydotplus.graph_from_dot_data(dotfile.getvalue())\n", + "Image(graph.create_png())" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "**Question 15 (Extra Credit): For each of your leaf nodes, specify the percentage of 'female' rows in that node (out of the total number of rows at that node).**" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "See this notebook for the basics of training a decision tree in scikit-learn and exporting the outputs to view in graphviz: http://nbviewer.ipython.org/gist/tebarkley/b68c04d9b31e64ce6023" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "anaconda-cloud": {}, + "gist_id": "0945553f802dad1bfa88", + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.6.3" + } + }, + "nbformat": 4, + "nbformat_minor": 1 +} diff --git a/Pre-Lab 2 Tutorial.ipynb b/Pre-Lab 2 Tutorial.ipynb new file mode 100644 index 0000000..c142ec5 --- /dev/null +++ b/Pre-Lab 2 Tutorial.ipynb @@ -0,0 +1,469 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Learning Goals:\n", + "\n", + "1. Jupyter functionality for markdown text\n", + "2. Plotting with matplotlib\n", + "3. Using scikit-learn for k-means\n", + "4. Calculate silhouette_score" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# 1. Markdown" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "You can do cool stuff with markdown. You can make numbered or bullet lists. You can even write cool equations like: $\\sum{x}=\\log(y)$" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# 2. Matplotlib\n", + "matplotlib.pyplot is a collection of command style functions that make matplotlib work like MATLAB. Each pyplot function makes some change to a figure: e.g., creates a figure, creates a plotting area in a figure, plots some lines in a plotting area, decorates the plot with labels, etc." + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "import numpy as np\n", + "import matplotlib.pyplot as plt\n", + "%matplotlib inline \n", + "x=np.array(range(10))\n", + "y=np.array([1,1.1,1.2,1.3,4,2.3,3.9,7,10,15])" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": {}, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYoAAAEWCAYAAAB42tAoAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMS4wLCBo\ndHRwOi8vbW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xH5GPgBN1pwIaV8OQ9bwsMYY0yhynLTkzHGmGKwoDDGGFMoCwpj\njDGFsqAwxhhTKAsKY4wxhbKgMKaYxJkrIhfnO3a1iEzxsi5jws2GxxpzFESkOfARbi2sWGAR0F1V\nVx3Ha/pUNTdEJRoTchYUxhwlEXket95RBWCvqg4RkX7AHUAc8A1wp6oGRGQobrmLcsB/VfWp4Guk\nAm8B3XELECYCtwA5wOKyPBPcRJ8yOzPbmOMwGDcrNxtICl5lXAacG5zxPxS39McY4EFV3RFcjnq2\niHysqvuXv0hT1Q4AIvI7UF9Vs0WkasQ/kTGFsKAw5iipapqI/BfYp6pZInIB0AZIcUv/UI6DS9j3\nFZGbcf/WTsZtkrU/KP6b72WXAu+LyGfA+Ah8DGOKzYLCmGMT4OBeFYJbK+yx/E8QkSa4XfLaququ\n4Aq0+bfMTMv380VAF9zy1Y+KSHNVzQtb9cYcBRv1ZMzxmwFcLSI1AESkuojUAyoDe4E9IlIbFwaH\nCW7Lm6iqs4D7gZq4XdOMiQp2RWHMcVLVxSIyGJghIjG4DunbgBRcM9MS3IqrXx/hJXzAGBGphPvj\n7R/B7WiNiQo26skYY0yhrOnJGGNMoSwojDHGFMqCwhhjTKEsKIwxxhTKgsIYY0yhLCiMMcYUyoLC\nGGNMof4fNeY6JvufmY0AAAAASUVORK5CYII=\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "plt.plot(x,y)\n", + "plt.plot(x,y,color='r',linewidth=5)\n", + "plt.plot(x,y,x,-y)\n", + "plt.xlabel('Years')\n", + "plt.ylabel('Portfolio [$]')\n", + "plt.title('Stocks')\n", + "plt.legend(['good','bad'])\n", + "#plt.xlim([-1,5])\n", + "#plt.ylim([1,10])\n", + "plt.show()" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": {}, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXQAAAEACAYAAACj0I2EAAAABHNCSVQICAgI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+PqN+h2AAXVT0OfDAzLwBeBby7sOM75v3A/eMuYkg+CXwlM18KvBwoYjo0Ip4PvBfY\nnpnbWJ42vmq8VdViL8t5cqLrgQOZ+RLgDtaQmyMJ9Mw8kJlP9J7eBWwdRb9DVPRFVZn508y8t7f8\nK5bDoKhrDCJiK/Ba4NPjrqVuvU/Af5KZewEy8/HM/J8xl1WnJwNPi4hNwFOBh8dcz8Ay807g0RXN\nVwI39ZZvAt642n7GcR76O4GvjqHfOm2Yi6oiogVcCHxzvJXU7hPAdUCJXyK9CHgkIvb2ppRujIjG\nuIuqQ2Y+DHwceBD4CfDLzDww3qqG5jmZeRiWB1nAc1bboLZAj4hv9Oa0jj3u6/35+hPW+QhwNDP3\n1dWvhicing7cCry/N1IvQkS8Djjc+xQSvUdJNgHbgX/MzO3A/7L88f2sFxHPZHnk2gSeDzw9It4y\n3qpGZtXBR20/Ep2ZO073ekRczfJH3Evq6nOMfgK88ITnW3ttxeh9nL0V+Gxmfmnc9dTs1cAbIuK1\nQAN4RkTcnJlvG3Nddfkx8FBmfrv3/FaglC/uLwN+lJm/AIiILwB/BJQ4SDwcEc/NzMMR8TzgZ6tt\nMKqzXK5g+ePtGzLz16Poc8jmgT+IiGbvG/argNLOlPgMcH9mfnLchdQtM2/IzBdm5nks/93dUVCY\n0/uY/lBEnN9rupRyvvx9ELg4Ip4SEcHysRXxhS+/+2nxNuDq3vLbgVUHVrWN0FfxKWAz8I3lvwPu\nysxrR9R37Uq/qCoiXg38OXBfRNzD8ke9GzLza+OtTOvwPuBzETEB/Ah4x5jrqUVmfisibgXuAY72\n/rxxvFUNLiL2AW3g3Ih4ENgNfBS4JSLeCSwCb1p1P15YJEll8G6LklQIA12SCmGgS1IhDHRJKoSB\nLkmFMNAlqRAGuiQVwkCXpEL8P/tpXtyLRUX2AAAAAElFTkSuQmCC\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "plt.scatter(x,y)\n", + "#plt.scatter(x+5,y-5)\n", + "#plt.legend(['original','shifted'])\n", + "plt.show()" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": {}, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXQAAAEICAYAAABPgw/pAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMS4wLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvpW3flQAAIABJREFUeJzt3Xl4lfWZ//H3nX0lISQBQsKiCLIv\nImqtWgGrVRDXjtrOdDqdOtOZ6a/rtLV277TVttPOXNPrmqm/1rbzq9qqJYK72E3rAgLnBMIqCJys\nZCEn+3rO/fsjB0RMyPac85zlfl1XruQsOd875MmH53yf7yKqijHGmNiX5HYBxhhjnGGBbowxccIC\n3Rhj4oQFujHGxAkLdGOMiRMW6MYYEycs0F0iIn8Skb93uw5jnGbHtnss0MNIRI6JSLeIdIjICRH5\nhYjkjPE1ZouIikjKOZ6zWESeF5EmEbGJBSbsInhsf0REdopIm4hUi8j3z/X8RGeBHn4bVDUHWAlc\nDHwlDG30A48CHwvDaxsznEgc21nAp4FC4BJgLfD5MLQTFyzQI0RVa4BngcVnPyYiSSLyFRE5LiIN\nIvK/IpIXevil0Gd/6GzosiFe+6Cq/hzYG7YfwJhhhPnY/m9VfVlV+0LtPARcHq6fJdZZoEeIiJQB\n1wOeIR7+29DH1cB5QA7wk9BjV4Y+56tqjqq+Ft5KjRmbCB/bV2InLsOyvqjwe0JEBoBW4Gngu0M8\n50PAj1T1LQARuQeoFJGPRq5MY8Ysosd26HtWAXbBdRgW6OF3k6q+OMJzSoDjZ9w+zuDvZmrYqjJm\n4iJ2bIvITcB9wDpVbRpTlQnEulyiQy0w64zbM4EB4ARgo1ZMLJvwsS0i1wH/l8GLsHscrzCOWKBH\nh0eAz4jInNDQr+8Cv1XVAaARCDLY/zgkGZQBpI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bTjdDuJ4BNoQDfLiJBBheQagxn2yKyhMH/+CtEBAZzYZeIrFbV+nC2\nfUYNHwHWA2ud+g9sGI5moNtdLm8AF4jIHBFJA+4AtkSiYRk8Un4O7FfVH0WizVNU9R5VLVXV2Qz+\nzH+IUJgT+oOoEpH5obvWAvsi0LQPuFREskL/9msZvG5hRlYLXBX6eg3wZoTafSLUHiIyj8GLdmFf\niVBV96hqsarODv2NVDM4gMGRMB+JiFwHfBG4UVW7wtycoxno6hm6qg6IyL8weCU7GXhQVfdGqPnL\ngb8G9oiIN3Tfl1X1mQi176ZPAg+FDqC3gI+Gu8FQ987jwC4G38Z6sCUARuvjwH+GLib3AHdHqN0H\ngQdFpBLoAz4S5rPVaPETIB3YGnqH8Lqq/mM4GnI6A23qvzHGxAm3u1yMMcY4xALdGGPihAW6McbE\nCQt0Y4yJExboxhgTJyzQjTEmTligG2NMnPj/3o9/kWgYljwAAAAASUVORK5CYII=\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "#plt.figure(1,figsize=(10,5))\n", + "plt.subplot(121)\n", + "plt.title('Plot 1')\n", + "plt.plot(x,y)\n", + "plt.subplot(122)\n", + "plt.title('Plot 2')\n", + "plt.plot(-x,-y)\n", + "plt.show()" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# 3. Scikit-learn K-means" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "http://scikit-learn.org/stable/modules/generated/sklearn.cluster.KMeans.html" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "from sklearn.cluster import KMeans\n", + "import numpy as np" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(8, 2)\n" + ] + } + ], + "source": [ + "X = np.array([[1, 2], [1, 4], [1.5, 3], [4, 2], [4, 4], [3.5, 1.9],[3.7,3],[4.2,3.8]])\n", + "print(X.shape)" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "scrolled": true + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAW4AAAD8CAYAAABXe05zAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMS4wLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvpW3flQAADFdJREFUeJzt3F9onfUdx/HPZ2k2D1XJxTJnU0Ev\nRmToZrZDd1EYmzjTzeKKVxP0SujNNpRtEbObsd3oCIi72MWCyiY6RWYtY25mBS2l4L+Tphq1yxBX\nWBOhERe0EFwbv7s4J0bbpOfJzjl9zjd5v6A0OX3Sfnl4njeH33l+dUQIAJDHZ8oeAACwPoQbAJIh\n3ACQDOEGgGQINwAkQ7gBIJktRQ6yfVzSB5KWJJ2JiGonhwIArK1QuBu+HRHvdmwSAEAhLJUAQDIu\nsnPS9r8k/UdSSPpdRIyvcsxeSXslaevWrV+/+uqr2zwqAGxck5OT70ZEf5Fji4Z7W0TM2f6CpAOS\nfhwRh9Y6vlqtRq1WKzwwAGx2tieLfn5YaKkkIuYav5+U9LSkHf//eACAVjQNt+2tti9Z/lrSjZJe\n7/RgAIDVFXmq5DJJT9tePv6PEfFsR6cCAKypabgj4m1JX70AswAACuBxQABIhnADQDKEGwCSIdwA\nkAzhBoBkCDcAJEO4ASAZwg0AyRBuAEiGcANAMoQbAJIh3ACQDOEGgGQINwAkQ7gBIBnCDQDJEG4A\nSIZwA0AyhBsAkiHcAJAM4QaAZAg3ACRDuAEgGcINAMkQbgBIhnADQDKEGwCSIdwAkAzhBoBkCDcA\nJEO4ASAZwg0AyRBuAEiGcANAMoQbAJLZUvRA2z2SapJmI2J350baGPZPzWpsYkZzC4va1lfRyPCg\n9gwNlD0W0BW4P1pTONyS7pR0TNKlHZplw9g/NavR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fFYVWM99ylJj0XEvrLn6QYRsSDpoKRd\nJY9Slp2Sbm6s7T4h6Xrbj5Y7UnkiYq7x+0lJT6u+9LymdoabrfE4R+MDuYckHYuI+8uep0y2+233\nNb6uSLpB0j/KnaocETEaEdsj4krVW/FcRNxW8lilsL218cG9bG+VdKOk8z6R1rZwR8QZSctb449J\nerLA1vgNyfbjkl6QNGj7hO07yp6pRDsl3a76O6qjjV/fK3uoklwu6Xnbr6n+RudARGzqx+AgSbpM\n0mHbr0p6WdIzEfHs+X6ALe8AkAw7JwEgGcINAMkQbgBIhnADQDKEGwCSIdwAkAzhBoBk/gfNmMVt\nb4m+WQAAAABJRU5ErkJggg==\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "plt.scatter(X[:,0],X[:,1])\n", + "plt.xlim([0,5])\n", + "plt.ylim([0,5])\n", + "plt.show()" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "kmeans = KMeans(n_clusters=2, random_state=0).fit(X)" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "array([1, 1, 1, 0, 0, 0, 0, 0])" + ] + }, + "execution_count": 17, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "kmeans.labels_" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "array([1, 0])" + ] + }, + "execution_count": 18, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "kmeans.predict([[0, 0], [4, 4]])" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "array([[ 3.88 , 2.94 ],\n", + " [ 1.16666667, 3. ]])" + ] + }, + "execution_count": 19, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "kmeans.cluster_centers_" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": {}, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXcAAAD8CAYAAACMwORRAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMS4wLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvpW3flQAAGfhJREFUeJzt3X9wVPW9//HnW4gkKDUV6KhBCOot\nPxKSELZWBqqOWmilVYvOgMUfMF6p3lbrfK8o3HaspaNyi6XSaq/FH60WbtVSynhtHcQftXWqwkZC\n+RERragJtEQqIAWFkPf3j10iWTZkNz/2xyevx8xOzp7z2XPeOUle+8k5nz3H3B0REQnLMdkuQERE\nup7CXUQkQAp3EZEAKdxFRAKkcBcRCZDCXUQkQAp3EZEAKdxFRAKkcBcRCVDvbG14wIABXlpamq3N\ni4jkpZqamvfdfWB77bIW7qWlpUSj0WxtXkQkL5nZO6m002EZEZEAKdxFRAKkcBcRCZDCXUQkQAp3\nEZEAKdxFRAKUcribWS8zW2NmTyVZ1sfMHjezN83sVTMr7coiRUQkPemMc/82UAd8Ksmya4AP3P0M\nM5sK/DcwpQvqO8LyNQ3MX7GJrTv3cUpxEbMmDuOS0SXdsSkR6eHyOW9S6rmb2SBgEvBgG00uBh6J\nTy8Fzjcz63x5rS1f08CcZeto2LkPBxp27mPOsnUsX9PQ1ZsSkR4u3/Mm1cMy9wC3AM1tLC8B3gNw\n9yZgF9C/09UlmL9iE/sOHGw1b9+Bg8xfsamrNyUiPVy+50274W5mXwG2u3vN0ZolmedJ1jXTzKJm\nFm1sbEyjzJitO/elNV9EpKPyPW9S6bmPAy4ysy3AY8B5ZrY4oU09cCqAmfUGTgD+mbgid1/k7hF3\njwwc2O51b45wSnFRWvNFRDoq3/Om3XB39znuPsjdS4GpwPPufkVCsyeBq+PTl8XbHNFz76xZE4dR\nVNCr1byigl7MmjisqzclIj1cv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nJ3lJzuz/dmrP2X3v7gfdvQoYBJxpZuUJTXJ6v6dQ//8Bpe5eATzLJz3hrDKzrwDb3b3maM2SzMuZ\nfX+4fA/3euDwd/1BwNYs1ZI2d9996F9Yd/8DUGBmA7JcVgszKyAWjkvcfVmSJjm7/9urPdf3PYC7\n7wT+CHwpYVHLfjez3sAJ5ODhv7bqd/cd7v5x/OkDwJgMl9aWccBFZrYFeAw4z8wWJ7TJi30P+R/u\nTwJXxUdtnAXscvdt2S4qVWZ20qHjdWZ2JrGfx47sVhUTr+shoM7dF7TRLCf3fyq15+q+N7OBZlYc\nny4CLgBeT2j2JHB1fPoy4HmPn+HLtlTqTzgvcxGxcyJZ5+5z3H2Qu5cSO1n6vLtfkdAsZ/d9opy+\nE5OZ/ZrYqIYBZlYPfI/YCRrc/X7gD8RGbLwJ7AVmZKfS5FKo/zLgejNrAvYBU3PoF2UccCWwLn78\nFOC/gMGQ8/s/ldpzdd+fDDxiZr2IveE84e5PmdlcIOruTxJ74/qVmb1JrNc4NXvlHiGV+m80s4uA\nJmL1T89atSnIo33fij6hKiISoHw/LCMiIkko3EVEAqRwFxEJkMJdRCRACncRkQAp3EVEAqRwFxEJ\nkMJdRCRA/x+kBSaIu17TZwAAAABJRU5ErkJggg==\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "plt.scatter(X[:,0],X[:,1])\n", + "plt.scatter(kmeans.cluster_centers_[:,0],kmeans.cluster_centers_[:,1],color='r')\n", + "plt.legend(['Training Data','Cluster Center'])\n", + "plt.show()" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# 4. Scikit-learn Silhouette_score" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "The Silhouette Coefficient is calculated using the mean intra-cluster distance (a) and the mean nearest-cluster distance (b) for each sample. The Silhouette Coefficient for a sample is $\\frac{(b - a)}{\\max(a, b)}$. To clarify, b is the distance between a sample and the nearest cluster that the sample is not a part of.\n", + "\n", + "http://scikit-learn.org/stable/modules/generated/sklearn.metrics.silhouette_score.html" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "from sklearn.metrics import silhouette_score" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "score = silhouette_score(X, kmeans.labels_)" + ] + }, + { + "cell_type": "code", + "execution_count": 24, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "0.546688066289\n" + ] + } + ], + "source": [ + "print(score)" + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "metadata": {}, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAW4AAAD8CAYAAABXe05zAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMS4wLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvpW3flQAAC+5JREFUeJzt3FFonfUZx/Hfb2mGoToyMJM2VbrB\nSBHLzHboBoUxxZluigu9mqBXg9xso24jsu5meNWLgniziwWVbeh0QmsZbjMr2CKFWU3aaq2xQ1yH\nTYTEuaCF4Nr02UVOjDUnOW/sOXnznHw/EHrO27ftw0v75e3/vP84IgQAyONzZQ8AAFgZwg0AyRBu\nAEiGcANAMoQbAJIh3ACQzIYiJ9k+J+lDSbOSLkVEpZlDAQCWVijcVbdFxHtNmwQAUAhLJQCQjIvs\nnLT9L0n/lRSSfhsRQzXOGZA0IEkbN278xrZt2xo8KgC0rtHR0fcioqvIuUXDvTkiJmx/SdJhST+N\niBeXOr9SqcTIyEjhgQFgvbM9WvTzw0JLJRExUf1xUtKzknZ89vEAAFejbrhtb7R93fxrSXdKer3Z\ngwEAaivyVMkNkp61PX/+HyPi+aZOBQBYUt1wR8Tbkr62CrMAAArgcUAASIZwA0AyhB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5U5S\nnurSwClJk5IOR8S6vRaSHpH0oKTLZQ+yBoSkv9serX77kGU1MtyFtsZjfbJ9raQDkh6IiA/Knqcs\nETEbEbdqbgfyDtvrcinN9t2SJiNitOxZ1oidEfF1zX0X1h9Xl1uX1MhwszUeNVXXcw9IejIiDpY9\nz1oQEdOSjkraVfIoZdkp6Z7q2u7Tkm63/US5I5UnIiaqP05KelZzS89LamS42RqPRaofyD0maSwi\nHi57njLZ7rLdWX3dIekOSW+WO1U5ImJvRGyJiK2aa8ULEXFfyWOVwvbG6gf3sr1R0p2Sln0irWHh\njohLkua3xo9JeqbA1viWZPspSf+Q1GP7vO0flT1TiXZKul9zd1Snql/fL3uokmySdMT2a5q70Tkc\nEev6MThIkm6QdMz2q5JelvSXiHh+uV/AlncASIadkwCQDOEGgGQINwAkQ7gBIBnCDQDJEG4ASIZw\nA0Ay/wfrGAlQXKUVNwAAAABJRU5ErkJggg==\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "X = np.array([[1.1, 1.1], [1, 1.1], [1.1, 1], [4, 2], [4, 2.1], [4.1, 1.9]])\n", + "plt.scatter(X[:,0],X[:,1])\n", + "plt.xlim([0,5])\n", + "plt.ylim([0,5])\n", + "plt.show()" + ] + }, + { + "cell_type": "code", + "execution_count": 26, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "kmeans = KMeans(n_clusters=2, random_state=0).fit(X)" + ] + }, + { + "cell_type": "code", + "execution_count": 27, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "array([1, 1, 1, 0, 0, 0])" + ] + }, + "execution_count": 27, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "kmeans.labels_" + ] + }, + { + "cell_type": "code", + "execution_count": 28, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "score = silhouette_score(X, kmeans.labels_)" + ] + }, + { + "cell_type": "code", + "execution_count": 30, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "0.956852497597\n" + ] + } + ], + "source": [ + "print(score)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.6.3" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/diabetesdata.csv b/diabetesdata.csv new file mode 100644 index 0000000..35d3b9f --- /dev/null +++ b/diabetesdata.csv @@ -0,0 +1 @@ +TimesPregnant,glucoseLevel,BP,insulin,BMI,Pedigree,Age,IsDiabetic 6,148,72,0,33.6,0.627,50,1 1,,66,0,26.6,0.351,31,0 8,183,64,0,23.3,0.672,,1 1,,66,94,28.1,0.167,21,0 0,137,40,168,43.1,2.288,33,1 5,116,74,0,25.6,0.201,30,0 3,78,50,88,31,0.248,26,1 10,115,0,0,35.3,0.134,29,0 2,197,70,543,30.5,0.158,53,1 8,,96,0,0,0.232,54,1 4,110,92,0,37.6,0.191,,0 10,168,74,0,38,0.537,34,1 10,139,80,0,27.1,1.441,57,0 1,,60,846,30.1,0.398,59,1 5,166,72,175,25.8,0.587,51,1 7,100,0,0,30,0.484,32,1 0,,84,230,45.8,0.551,31,1 7,107,74,0,29.6,0.254,31,1 1,103,30,83,43.3,0.183,33,0 1,115,70,96,34.6,0.529,32,1 3,126,88,235,39.3,0.704,27,0 8,99,84,0,35.4,0.388,50,0 7,196,90,0,39.8,0.451,41,1 9,119,80,0,29,0.263,29,1 11,143,94,146,36.6,0.254,51,1 10,125,70,115,31.1,0.205,41,1 7,147,76,0,39.4,0.257,43,1 1,97,66,140,23.2,0.487,,0 13,,82,110,22.2,0.245,57,0 5,117,92,0,34.1,0.337,38,0 5,109,75,0,36,0.546,60,0 3,158,76,245,31.6,0.851,28,1 3,88,58,54,24.8,0.267,22,0 6,,92,0,19.9,0.188,28,0 10,122,78,0,27.6,0.512,,0 4,103,60,192,24,0.966,33,0 11,138,76,0,33.2,0.42,35,0 9,102,76,0,32.9,0.665,46,1 2,,68,0,38.2,0.503,27,1 4,111,72,207,37.1,1.39,56,1 3,180,64,70,34,0.271,26,0 7,133,84,0,40.2,0.696,37,0 7,106,92,0,22.7,0.235,48,0 9,171,110,240,45.4,0.721,54,1 7,159,64,0,27.4,0.294,40,0 0,180,66,0,42,1.893,25,1 1,146,56,0,29.7,0.564,29,0 2,71,70,0,28,0.586,22,0 7,103,66,0,39.1,0.344,31,1 7,105,0,0,0,0.305,24,0 1,103,80,82,19.4,0.491,22,0 1,101,50,36,24.2,0.526,26,0 5,88,66,23,24.4,0.342,30,0 8,176,90,300,33.7,0.467,58,1 7,150,66,342,34.7,0.718,42,0 1,73,50,0,23,0.248,21,0 7,187,68,304,37.7,0.254,41,1 0,100,88,110,46.8,0.962,31,0 0,146,82,0,40.5,1.781,44,0 0,105,64,142,41.5,0.173,22,0 2,84,0,0,0,0.304,21,0 8,133,72,0,32.9,0.27,39,1 5,44,62,0,25,0.587,36,0 2,141,58,128,25.4,0.699,24,0 7,114,66,0,32.8,0.258,42,1 5,99,74,0,29,0.203,32,0 0,109,88,0,32.5,0.855,38,1 2,109,92,0,42.7,0.845,54,0 1,95,66,38,19.6,0.334,25,0 4,146,85,100,28.9,0.189,27,0 2,100,66,90,32.9,0.867,28,1 5,139,64,140,28.6,0.411,26,0 13,126,90,0,43.4,0.583,42,1 4,129,86,270,35.1,0.231,23,0 1,79,75,0,32,0.396,22,0 1,0,48,0,24.7,0.14,,0 7,62,78,0,32.6,0.391,41,0 5,95,72,0,37.7,0.37,,0 0,131,0,0,43.2,0.27,26,1 2,,66,0,25,0.307,24,0 3,113,44,0,22.4,0.14,22,0 2,74,0,0,0,0.102,22,0 7,83,78,71,29.3,0.767,36,0 0,101,65,0,24.6,0.237,22,0 5,137,108,0,48.8,0.227,37,1 2,110,74,125,32.4,0.698,27,0 13,,72,0,36.6,0.178,45,0 2,100,68,71,38.5,0.324,26,0 15,136,70,110,37.1,0.153,43,1 1,107,68,0,26.5,0.165,24,0 1,80,55,0,19.1,0.258,21,0 4,123,80,176,32,0.443,34,0 7,81,78,48,46.7,0.261,42,0 4,,72,0,23.8,0.277,60,1 2,142,82,64,24.7,0.761,21,0 6,144,72,228,33.9,0.255,40,0 2,92,62,0,31.6,0.13,24,0 1,,48,76,20.4,0.323,22,0 6,93,50,64,28.7,0.356,23,0 1,122,90,220,49.7,0.325,31,1 1,,72,0,39,1.222,33,1 1,151,60,0,26.1,0.179,22,0 0,125,96,0,22.5,0.262,21,0 1,81,72,40,26.6,0.283,24,0 2,85,65,0,39.6,0.93,27,0 1,126,56,152,28.7,0.801,21,0 1,96,122,0,22.4,0.207,27,0 4,144,58,140,29.5,0.287,37,0 3,83,58,18,34.3,0.336,25,0 0,95,85,36,37.4,0.247,24,1 3,171,72,135,33.3,0.199,24,1 8,155,62,495,34,0.543,46,1 1,89,76,37,31.2,0.192,23,0 4,76,62,0,34,0.391,25,0 7,160,54,175,30.5,0.588,39,1 4,146,92,0,31.2,0.539,61,1 5,124,74,0,34,0.22,38,1 5,78,48,0,33.7,0.654,25,0 4,97,60,0,28.2,0.443,22,0 4,99,76,51,23.2,0.223,21,0 0,162,76,100,53.2,0.759,25,1 6,111,64,0,34.2,0.26,24,0 2,107,74,100,33.6,0.404,23,0 5,132,80,0,26.8,0.186,69,0 0,113,76,0,33.3,0.278,,1 1,88,30,99,55,0.496,26,1 3,120,70,135,42.9,0.452,30,0 1,118,58,94,33.3,0.261,23,0 1,117,88,145,34.5,0.403,,1 0,105,84,0,27.9,0.741,62,1 4,173,70,168,29.7,0.361,33,1 9,122,56,0,33.3,1.114,33,1 3,170,64,225,34.5,0.356,30,1 8,84,74,0,38.3,0.457,39,0 2,96,68,49,21.1,0.647,26,0 2,125,60,140,33.8,0.088,31,0 0,100,70,50,30.8,0.597,21,0 0,93,60,92,28.7,0.532,22,0 0,129,80,0,31.2,0.703,29,0 5,105,72,325,36.9,0.159,28,0 3,128,78,0,21.1,0.268,55,0 5,106,82,0,39.5,0.286,38,0 2,108,52,63,32.5,0.318,22,0 10,108,66,0,32.4,0.272,42,1 4,154,62,284,32.8,0.237,23,0 0,102,75,0,0,0.572,21,0 9,57,80,0,32.8,0.096,41,0 2,106,64,119,30.5,1.4,34,0 5,147,78,0,33.7,0.218,65,0 2,90,70,0,27.3,0.085,22,0 1,136,74,204,37.4,0.399,24,0 4,114,65,0,21.9,0.432,37,0 9,156,86,155,34.3,1.189,42,1 1,153,82,485,40.6,0.687,23,0 8,188,78,0,47.9,0.137,43,1 7,152,88,0,50,0.337,36,1 2,99,52,94,24.6,0.637,21,0 1,109,56,135,25.2,0.833,23,0 2,88,74,53,29,0.229,22,0 17,163,72,114,40.9,0.817,47,1 4,151,90,0,29.7,0.294,36,0 7,102,74,105,37.2,0.204,45,0 0,114,80,285,44.2,0.167,27,0 2,100,64,0,29.7,0.368,21,0 0,131,88,0,31.6,0.743,32,1 6,104,74,156,29.9,0.722,41,1 3,148,66,0,32.5,0.256,22,0 4,120,68,0,29.6,0.709,34,0 4,110,66,0,31.9,0.471,29,0 3,111,90,78,28.4,0.495,29,0 6,102,82,0,30.8,0.18,36,1 6,134,70,130,35.4,0.542,29,1 2,87,0,0,28.9,0.773,25,0 1,79,60,48,43.5,0.678,23,0 2,75,64,55,29.7,0.37,33,0 8,179,72,130,32.7,0.719,36,1 6,85,78,0,31.2,0.382,42,0 0,129,110,130,67.1,0.319,26,1 5,143,78,0,45,0.19,47,0 5,130,82,0,39.1,0.956,37,1 6,87,80,0,23.2,0.084,32,0 0,119,64,92,34.9,0.725,23,0 1,,74,23,27.7,0.299,21,0 5,73,60,0,26.8,0.268,27,0 4,141,74,0,27.6,0.244,40,0 7,,68,0,35.9,0.745,41,1 8,181,68,495,30.1,0.615,60,1 1,,98,58,32,1.321,33,1 8,109,76,114,27.9,0.64,31,1 5,139,80,160,31.6,0.361,25,1 3,111,62,0,22.6,0.142,21,0 9,123,70,94,33.1,0.374,40,0 7,159,66,0,30.4,0.383,36,1 11,135,0,0,52.3,0.578,40,1 8,85,55,0,24.4,0.136,42,0 5,158,84,210,39.4,0.395,29,1 1,105,58,0,24.3,0.187,21,0 3,107,62,48,22.9,0.678,23,1 4,109,64,99,34.8,0.905,26,1 4,148,60,318,30.9,0.15,29,1 0,113,80,0,31,0.874,21,0 1,138,82,0,40.1,0.236,28,0 0,108,68,0,27.3,0.787,32,0 2,99,70,44,20.4,0.235,27,0 6,103,72,190,37.7,0.324,55,0 5,111,72,0,23.9,0.407,27,0 8,196,76,280,37.5,0.605,57,1 5,162,104,0,37.7,0.151,52,1 1,96,64,87,33.2,0.289,21,0 7,184,84,0,35.5,0.355,41,1 2,81,60,0,27.7,0.29,25,0 0,147,85,0,42.8,0.375,24,0 7,179,95,0,34.2,0.164,60,0 0,140,65,130,42.6,0.431,24,1 9,112,82,175,34.2,0.26,36,1 12,151,70,271,41.8,0.742,38,1 5,109,62,129,35.8,0.514,25,1 6,125,68,120,30,0.464,32,0 5,85,74,0,29,1.224,32,1 5,112,66,0,37.8,0.261,41,1 0,177,60,478,34.6,1.072,21,1 2,158,90,0,31.6,0.805,66,1 7,119,0,0,25.2,0.209,37,0 7,142,60,190,28.8,0.687,61,0 1,100,66,56,23.6,0.666,26,0 1,87,78,32,34.6,0.101,22,0 0,101,76,0,35.7,0.198,26,0 3,162,52,0,37.2,0.652,24,1 4,197,70,744,36.7,2.329,31,0 0,117,80,53,45.2,0.089,24,0 4,142,86,0,44,0.645,22,1 6,134,80,370,46.2,0.238,46,1 1,79,80,37,25.4,0.583,22,0 4,122,68,0,35,0.394,29,0 3,74,68,45,29.7,0.293,23,0 4,171,72,0,43.6,0.479,26,1 7,181,84,192,35.9,0.586,51,1 0,179,90,0,44.1,0.686,23,1 9,164,84,0,30.8,0.831,32,1 0,104,76,0,18.4,0.582,27,0 1,91,64,0,29.2,0.192,21,0 4,91,70,88,33.1,0.446,22,0 3,139,54,0,25.6,0.402,22,1 6,119,50,176,27.1,1.318,33,1 2,146,76,194,38.2,0.329,29,0 9,184,85,0,30,1.213,49,1 10,122,68,0,31.2,0.258,41,0 0,165,90,680,52.3,0.427,23,0 9,124,70,402,35.4,0.282,34,0 1,111,86,0,30.1,0.143,23,0 9,106,52,0,31.2,0.38,42,0 2,129,84,0,28,0.284,27,0 2,90,80,55,24.4,0.249,24,0 0,86,68,0,35.8,0.238,25,0 12,92,62,258,27.6,0.926,44,1 1,113,64,0,33.6,0.543,21,1 3,111,56,0,30.1,0.557,30,0 2,114,68,0,28.7,0.092,25,0 1,193,50,375,25.9,0.655,24,0 11,155,76,150,33.3,1.353,51,1 3,191,68,130,30.9,0.299,34,0 3,141,0,0,30,0.761,27,1 4,95,70,0,32.1,0.612,24,0 3,142,80,0,32.4,0.2,63,0 4,123,62,0,32,0.226,35,1 5,96,74,67,33.6,0.997,43,0 0,138,0,0,36.3,0.933,25,1 2,128,64,0,40,1.101,24,0 0,102,52,0,25.1,0.078,21,0 2,146,0,0,27.5,0.24,28,1 10,101,86,0,45.6,1.136,38,1 2,108,62,56,25.2,0.128,21,0 3,122,78,0,23,0.254,40,0 1,71,78,45,33.2,0.422,21,0 13,106,70,0,34.2,0.251,52,0 2,100,70,57,40.5,0.677,25,0 7,106,60,0,26.5,0.296,29,1 0,104,64,116,27.8,0.454,23,0 5,114,74,0,24.9,0.744,57,0 2,108,62,278,25.3,0.881,22,0 0,146,70,0,37.9,0.334,28,1 10,129,76,122,35.9,0.28,39,0 7,133,88,155,32.4,0.262,37,0 7,161,86,0,30.4,0.165,47,1 2,108,80,0,27,0.259,52,1 7,136,74,135,26,0.647,51,0 5,155,84,545,38.7,0.619,34,0 1,119,86,220,45.6,0.808,29,1 4,96,56,49,20.8,0.34,,0 5,108,72,75,36.1,0.263,33,0 0,78,88,40,36.9,0.434,21,0 0,107,62,74,36.6,0.757,25,1 2,128,78,182,43.3,1.224,31,1 1,128,48,194,40.5,0.613,24,1 0,161,50,0,21.9,0.254,65,0 6,151,62,120,35.5,0.692,28,0 2,146,70,360,28,0.337,29,1 0,126,84,215,30.7,0.52,24,0 14,,78,184,36.6,0.412,46,1 8,112,72,0,23.6,0.84,,0 0,167,0,0,32.3,0.839,30,1 2,144,58,135,31.6,0.422,25,1 5,77,82,42,35.8,0.156,35,0 5,,98,0,52.9,0.209,,1 3,150,76,0,21,0.207,37,0 2,120,76,105,39.7,0.215,29,0 10,161,68,132,25.5,0.326,47,1 0,137,68,148,24.8,0.143,21,0 0,128,68,180,30.5,1.391,25,1 2,124,68,205,32.9,0.875,30,1 6,80,66,0,26.2,0.313,41,0 0,106,70,148,39.4,0.605,22,0 2,155,74,96,26.6,0.433,27,1 3,113,50,85,29.5,0.626,25,0 7,109,80,0,35.9,1.127,43,1 2,112,68,94,34.1,0.315,26,0 3,99,80,64,19.3,0.284,30,0 3,182,74,0,30.5,0.345,29,1 3,115,66,140,38.1,0.15,28,0 6,194,78,0,23.5,0.129,59,1 4,129,60,231,27.5,0.527,31,0 3,112,74,0,31.6,0.197,25,1 0,124,70,0,27.4,0.254,36,1 13,152,90,29,26.8,0.731,43,1 2,112,75,0,35.7,0.148,21,0 1,157,72,168,25.6,0.123,24,0 1,122,64,156,35.1,0.692,30,1 10,179,70,0,35.1,0.2,37,0 2,102,86,120,45.5,0.127,23,1 6,105,70,68,30.8,0.122,37,0 8,118,72,0,23.1,1.476,46,0 2,87,58,52,32.7,0.166,25,0 1,180,0,0,43.3,0.282,41,1 12,106,80,0,23.6,0.137,44,0 1,95,60,58,23.9,0.26,22,0 0,165,76,255,47.9,0.259,26,0 0,117,0,0,33.8,0.932,44,0 5,115,76,0,31.2,0.343,44,1 9,152,78,171,34.2,0.893,33,1 7,178,84,0,39.9,0.331,41,1 1,130,70,105,25.9,0.472,22,0 1,95,74,73,25.9,0.673,36,0 1,0,68,0,32,0.389,22,0 5,122,86,0,34.7,0.29,33,0 8,95,72,0,36.8,0.485,57,0 8,126,88,108,38.5,0.349,49,0 1,139,46,83,28.7,0.654,22,0 3,116,0,0,23.5,0.187,23,0 3,99,62,74,21.8,0.279,26,0 5,0,80,0,41,0.346,37,1 4,92,80,0,42.2,0.237,29,0 4,137,84,0,31.2,0.252,30,0 3,61,82,0,34.4,0.243,46,0 1,90,62,43,27.2,0.58,24,0 3,90,78,0,42.7,0.559,21,0 9,165,88,0,30.4,0.302,49,1 1,125,50,167,33.3,0.962,28,1 13,129,0,0,39.9,0.569,44,1 12,88,74,54,35.3,0.378,48,0 1,196,76,249,36.5,0.875,29,1 5,189,64,325,31.2,0.583,29,1 5,158,70,0,29.8,0.207,63,0 5,103,108,0,39.2,0.305,65,0 4,146,78,0,38.5,0.52,67,1 4,147,74,293,34.9,0.385,30,0 5,99,54,83,34,0.499,30,0 6,124,72,0,27.6,0.368,29,1 0,101,64,0,21,0.252,21,0 3,81,86,66,27.5,0.306,22,0 1,133,102,140,32.8,0.234,45,1 3,173,82,465,38.4,2.137,25,1 0,118,64,89,0,1.731,21,0 0,84,64,66,35.8,0.545,21,0 2,105,58,94,34.9,0.225,25,0 2,122,52,158,36.2,0.816,28,0 12,140,82,325,39.2,0.528,58,1 0,98,82,84,25.2,0.299,22,0 1,87,60,75,37.2,0.509,22,0 4,156,75,0,48.3,0.238,32,1 0,93,100,72,43.4,1.021,35,0 1,107,72,82,30.8,0.821,24,0 0,105,68,0,20,0.236,22,0 1,109,60,182,25.4,0.947,21,0 1,90,62,59,25.1,1.268,25,0 1,125,70,110,24.3,0.221,25,0 1,119,54,50,22.3,0.205,24,0 5,116,74,0,32.3,0.66,35,1 8,105,100,0,43.3,0.239,45,1 5,144,82,285,32,0.452,58,1 3,100,68,81,31.6,0.949,28,0 1,100,66,196,32,0.444,42,0 5,166,76,0,45.7,0.34,27,1 1,131,64,415,23.7,0.389,21,0 4,116,72,87,22.1,0.463,37,0 4,158,78,0,32.9,0.803,31,1 2,127,58,275,27.7,1.6,25,0 3,96,56,115,24.7,0.944,39,0 0,131,66,0,34.3,0.196,22,1 3,82,70,0,21.1,0.389,25,0 3,193,70,0,34.9,0.241,25,1 4,95,64,0,32,0.161,31,1 6,137,61,0,24.2,0.151,55,0 5,136,84,88,35,0.286,35,1 9,72,78,0,31.6,0.28,38,0 5,168,64,0,32.9,0.135,41,1 2,123,48,165,42.1,0.52,26,0 4,115,72,0,28.9,0.376,46,1 0,101,62,0,21.9,0.336,25,0 8,197,74,0,25.9,1.191,39,1 1,172,68,579,42.4,0.702,28,1 6,102,90,0,35.7,0.674,28,0 1,112,72,176,34.4,0.528,25,0 1,143,84,310,42.4,1.076,22,0 1,143,74,61,26.2,0.256,21,0 0,138,60,167,34.6,0.534,21,1 3,173,84,474,35.7,0.258,22,1 1,97,68,0,27.2,1.095,22,0 4,144,82,0,38.5,0.554,37,1 1,83,68,0,18.2,0.624,27,0 3,129,64,115,26.4,0.219,28,1 1,119,88,170,45.3,0.507,26,0 2,94,68,76,26,0.561,21,0 0,102,64,78,40.6,0.496,21,0 2,115,64,0,30.8,0.421,21,0 8,151,78,210,42.9,0.516,36,1 4,184,78,277,37,0.264,31,1 0,94,0,0,0,0.256,25,0 1,181,64,180,34.1,0.328,38,1 0,135,94,145,40.6,0.284,26,0 1,95,82,180,35,0.233,43,1 2,99,0,0,22.2,0.108,23,0 3,89,74,85,30.4,0.551,38,0 1,80,74,60,30,0.527,22,0 2,139,75,0,25.6,0.167,29,0 1,90,68,0,24.5,1.138,36,0 0,141,0,0,42.4,0.205,29,1 12,140,85,0,37.4,0.244,41,0 5,147,75,0,29.9,0.434,28,0 1,97,70,0,18.2,0.147,21,0 6,107,88,0,36.8,0.727,31,0 0,189,104,0,34.3,0.435,41,1 2,83,66,50,32.2,0.497,22,0 4,117,64,120,33.2,0.23,24,0 8,108,70,0,30.5,0.955,33,1 4,117,62,0,29.7,0.38,30,1 0,180,78,14,59.4,2.42,25,1 1,100,72,70,25.3,0.658,28,0 0,95,80,92,36.5,0.33,26,0 0,104,64,64,33.6,0.51,22,1 0,120,74,63,30.5,0.285,26,0 1,82,64,95,21.2,0.415,23,0 2,134,70,0,28.9,0.542,23,1 0,91,68,210,39.9,0.381,25,0 2,119,0,0,19.6,0.832,72,0 2,100,54,105,37.8,0.498,24,0 14,175,62,0,33.6,0.212,38,1 1,135,54,0,26.7,0.687,62,0 5,86,68,71,30.2,0.364,24,0 10,148,84,237,37.6,1.001,51,1 9,134,74,60,25.9,0.46,81,0 9,120,72,56,20.8,0.733,48,0 1,71,62,0,21.8,0.416,26,0 8,74,70,49,35.3,0.705,39,0 5,88,78,0,27.6,0.258,37,0 10,115,98,0,24,1.022,34,0 0,124,56,105,21.8,0.452,21,0 0,74,52,36,27.8,0.269,22,0 0,97,64,100,36.8,0.6,25,0 8,120,0,0,30,0.183,38,1 6,154,78,140,46.1,0.571,27,0 1,144,82,0,41.3,0.607,28,0 0,137,70,0,33.2,0.17,22,0 0,119,66,0,38.8,0.259,22,0 7,136,90,0,29.9,0.21,50,0 4,114,64,0,28.9,0.126,24,0 0,137,84,0,27.3,0.231,59,0 2,105,80,191,33.7,0.711,29,1 7,114,76,110,23.8,0.466,31,0 8,126,74,75,25.9,0.162,39,0 4,132,86,0,28,0.419,63,0 3,158,70,328,35.5,0.344,35,1 0,123,88,0,35.2,0.197,29,0 4,85,58,49,27.8,0.306,28,0 0,84,82,125,38.2,0.233,23,0 0,145,0,0,44.2,0.63,31,1 0,135,68,250,42.3,0.365,24,1 1,139,62,480,40.7,0.536,21,0 0,173,78,265,46.5,1.159,58,0 4,99,72,0,25.6,0.294,28,0 8,194,80,0,26.1,0.551,67,0 2,83,65,66,36.8,0.629,24,0 2,89,90,0,33.5,0.292,42,0 4,99,68,0,32.8,0.145,33,0 4,125,70,122,28.9,1.144,45,1 3,80,0,0,0,0.174,22,0 6,166,74,0,26.6,0.304,66,0 5,110,68,0,26,0.292,30,0 2,81,72,76,30.1,0.547,25,0 7,195,70,145,25.1,0.163,55,1 6,154,74,193,29.3,0.839,39,0 2,117,90,71,25.2,0.313,21,0 3,84,72,0,37.2,0.267,28,0 6,0,68,0,39,0.727,41,1 7,94,64,79,33.3,0.738,41,0 3,96,78,0,37.3,0.238,40,0 10,75,82,0,33.3,0.263,38,0 0,180,90,90,36.5,0.314,35,1 1,130,60,170,28.6,0.692,21,0 2,84,50,76,30.4,0.968,21,0 8,120,78,0,25,0.409,64,0 12,84,72,0,29.7,0.297,46,1 0,139,62,210,22.1,0.207,21,0 9,91,68,0,24.2,0.2,58,0 2,91,62,0,27.3,0.525,22,0 3,99,54,86,25.6,0.154,24,0 3,163,70,105,31.6,0.268,28,1 9,145,88,165,30.3,0.771,53,1 7,125,86,0,37.6,0.304,51,0 13,76,60,0,32.8,0.18,41,0 6,129,90,326,19.6,0.582,60,0 2,68,70,66,25,0.187,25,0 3,124,80,130,33.2,0.305,26,0 6,114,0,0,0,0.189,26,0 9,130,70,0,34.2,0.652,45,1 3,125,58,0,31.6,0.151,24,0 3,87,60,0,21.8,0.444,21,0 1,97,64,82,18.2,0.299,21,0 3,116,74,105,26.3,0.107,24,0 0,117,66,188,30.8,0.493,22,0 0,111,65,0,24.6,0.66,31,0 2,122,60,106,29.8,0.717,22,0 0,107,76,0,45.3,0.686,24,0 1,86,66,65,41.3,0.917,29,0 6,91,0,0,29.8,0.501,31,0 1,77,56,56,33.3,1.251,24,0 4,132,0,0,32.9,0.302,23,1 0,105,90,0,29.6,0.197,46,0 0,57,60,0,21.7,0.735,67,0 0,127,80,210,36.3,0.804,23,0 3,129,92,155,36.4,0.968,32,1 8,100,74,215,39.4,0.661,43,1 3,128,72,190,32.4,0.549,,1 10,90,85,0,34.9,0.825,56,1 4,84,90,56,39.5,0.159,25,0 1,88,78,76,32,0.365,29,0 8,186,90,225,34.5,0.423,37,1 5,187,76,207,43.6,1.034,53,1 4,131,68,166,33.1,0.16,,0 1,164,82,67,32.8,0.341,50,0 4,189,110,0,28.5,0.68,37,0 1,116,70,0,27.4,0.204,21,0 3,84,68,106,31.9,0.591,25,0 6,114,88,0,27.8,0.247,66,0 1,88,62,44,29.9,0.422,23,0 1,84,64,115,36.9,0.471,28,0 7,124,70,215,25.5,0.161,37,0 1,97,70,0,38.1,0.218,30,0 8,110,76,0,27.8,0.237,58,0 11,103,68,0,46.2,0.126,42,0 11,85,74,0,30.1,0.3,35,0 6,125,76,0,33.8,0.121,54,1 0,198,66,274,41.3,0.502,28,1 1,87,68,77,37.6,0.401,24,0 6,99,60,54,26.9,0.497,32,0 0,91,80,0,32.4,0.601,27,0 2,95,54,88,26.1,0.748,22,0 1,99,72,18,38.6,0.412,21,0 6,92,62,126,32,0.085,46,0 4,154,72,126,31.3,0.338,37,0 0,121,66,165,34.3,0.203,33,1 3,78,70,0,32.5,0.27,39,0 2,130,96,0,22.6,0.268,21,0 3,111,58,44,29.5,0.43,22,0 2,98,60,120,34.7,0.198,22,0 1,143,86,330,30.1,0.892,23,0 1,119,44,63,35.5,0.28,25,0 6,108,44,130,24,0.813,35,0 2,118,80,0,42.9,0.693,21,1 10,133,68,0,27,0.245,36,0 2,197,70,0,34.7,0.575,62,1 0,151,90,0,42.1,0.371,21,1 6,109,60,0,25,0.206,27,0 12,121,78,0,26.5,0.259,62,0 8,100,76,0,38.7,0.19,42,0 8,124,76,600,28.7,0.687,52,1 1,93,56,0,22.5,0.417,22,0 8,143,66,0,34.9,0.129,41,1 6,103,66,0,24.3,0.249,29,0 3,176,86,156,33.3,1.154,52,1 0,73,0,0,21.1,0.342,25,0 11,111,84,0,46.8,0.925,45,1 2,112,78,140,39.4,0.175,24,0 3,132,80,0,34.4,0.402,44,1 2,82,52,115,28.5,1.699,25,0 6,123,72,230,33.6,0.733,34,0 0,188,82,185,32,0.682,22,1 0,67,76,0,45.3,0.194,46,0 1,89,24,25,27.8,0.559,21,0 1,173,74,0,36.8,0.088,,1 1,109,38,120,23.1,0.407,26,0 1,108,88,0,27.1,0.4,24,0 6,96,0,0,23.7,0.19,28,0 1,124,74,0,27.8,0.1,30,0 7,150,78,126,35.2,0.692,54,1 4,183,0,0,28.4,0.212,36,1 1,124,60,0,35.8,0.514,21,0 1,181,78,293,40,1.258,,1 1,92,62,41,19.5,0.482,25,0 0,152,82,272,41.5,0.27,27,0 1,111,62,182,24,0.138,23,0 3,106,54,158,30.9,0.292,24,0 3,174,58,194,32.9,0.593,36,1 7,168,88,321,38.2,0.787,40,1 6,105,80,0,32.5,0.878,,0 11,138,74,144,36.1,0.557,50,1 3,106,72,0,25.8,0.207,27,0 6,117,96,0,28.7,0.157,,0 2,68,62,15,20.1,0.257,23,0 9,112,82,0,28.2,1.282,50,1 0,119,0,0,32.4,0.141,24,1 2,112,86,160,38.4,0.246,28,0 2,92,76,0,24.2,1.698,28,0 6,183,94,0,40.8,1.461,45,0 0,94,70,115,43.5,0.347,21,0 2,108,64,0,30.8,0.158,21,0 4,90,88,54,37.7,0.362,29,0 0,125,68,0,24.7,0.206,21,0 0,132,78,0,32.4,0.393,21,0 5,128,80,0,34.6,0.144,45,0 4,94,65,0,24.7,0.148,21,0 7,114,64,0,27.4,0.732,34,1 0,102,78,90,34.5,0.238,24,0 2,111,60,0,26.2,0.343,23,0 1,128,82,183,27.5,0.115,22,0 10,92,62,0,25.9,0.167,31,0 13,104,72,0,31.2,0.465,38,1 5,104,74,0,28.8,0.153,48,0 2,94,76,66,31.6,0.649,23,0 7,97,76,91,40.9,0.871,32,1 1,100,74,46,19.5,0.149,28,0 0,102,86,105,29.3,0.695,27,0 4,128,70,0,34.3,0.303,24,0 6,147,80,0,29.5,0.178,50,1 4,90,0,0,28,0.61,31,0 3,103,72,152,27.6,0.73,27,0 2,157,74,440,39.4,0.134,30,0 1,167,74,144,23.4,0.447,33,1 0,179,50,159,37.8,0.455,22,1 11,136,84,130,28.3,0.26,42,1 0,107,60,0,26.4,0.133,,0 1,91,54,100,25.2,0.234,23,0 1,117,60,106,33.8,0.466,27,0 5,123,74,77,34.1,0.269,,0 2,120,54,0,26.8,0.455,,0 1,106,70,135,34.2,0.142,,0 2,155,52,540,38.7,0.24,,1 2,101,58,90,21.8,0.155,22,0 1,120,80,200,38.9,1.162,41,0 11,127,106,0,39,0.19,51,0 3,80,82,70,34.2,1.292,27,1 10,162,84,0,27.7,0.182,54,0 1,199,76,0,42.9,1.394,22,1 8,167,106,231,37.6,0.165,43,1 9,145,80,130,37.9,0.637,40,1 6,115,60,0,33.7,0.245,40,1 1,112,80,132,34.8,0.217,24,0 4,145,82,0,32.5,0.235,70,1 10,111,70,0,27.5,0.141,40,1 6,98,58,190,34,0.43,43,0 9,154,78,100,30.9,0.164,45,0 6,165,68,168,33.6,0.631,49,0 1,99,58,0,25.4,0.551,21,0 10,68,106,49,35.5,0.285,47,0 3,123,100,240,57.3,0.88,22,0 8,91,82,0,35.6,0.587,68,0 6,195,70,0,30.9,0.328,31,1 9,156,86,0,24.8,0.23,53,1 0,93,60,0,35.3,0.263,25,0 3,121,52,0,36,0.127,25,1 2,101,58,265,24.2,0.614,23,0 2,56,56,45,24.2,0.332,,0 0,162,76,0,49.6,0.364,26,1 0,95,64,105,44.6,0.366,22,0 4,125,80,0,32.3,0.536,27,1 5,136,82,0,0,0.64,,0 2,129,74,205,33.2,0.591,25,0 3,,64,0,23.1,0.314,22,0 1,107,50,0,28.3,0.181,29,0 1,140,74,180,24.1,0.828,,0 1,144,82,180,46.1,0.335,46,1 8,,80,0,24.6,0.856,,0 13,158,114,0,42.3,0.257,44,1 2,121,70,95,39.1,0.886,23,0 7,129,68,125,38.5,0.439,43,1 2,90,60,0,23.5,0.191,25,0 7,142,90,480,30.4,0.128,,1 3,169,74,125,29.9,0.268,31,1 0,99,0,0,25,0.253,22,0 4,,88,155,34.5,0.598,28,0 4,118,70,0,44.5,0.904,26,0 2,,76,200,35.9,0.483,26,0 6,125,78,0,27.6,0.565,,1 1,168,88,0,35,0.905,52,1 2,129,0,0,38.5,0.304,41,0 4,110,76,100,28.4,0.118,27,0 6,80,80,0,39.8,0.177,28,0 10,115,0,0,0,0.261,30,1 2,127,46,335,34.4,0.176,,0 9,,78,0,32.8,0.148,45,1 2,93,64,160,38,0.674,23,1 3,158,64,387,31.2,0.295,24,0 5,,78,22,29.6,0.439,40,0 10,129,62,0,41.2,0.441,,1 0,,58,291,26.4,0.352,21,0 3,,74,0,29.5,0.121,32,0 7,,50,392,33.9,0.826,34,1 3,173,78,185,33.8,0.97,31,1 10,,72,0,23.1,0.595,56,0 1,108,60,178,35.5,0.415,24,0 5,,76,0,35.6,0.378,52,1 4,83,86,0,29.3,0.317,34,0 1,114,66,200,38.1,0.289,21,0 1,149,68,127,29.3,0.349,42,1 5,,86,105,39.1,0.251,42,0 1,111,94,0,32.8,0.265,45,0 4,,78,0,39.4,0.236,38,0 1,116,78,180,36.1,0.496,25,0 0,141,84,0,32.4,0.433,,0 2,,88,0,22.9,0.326,22,0 2,92,52,0,30.1,0.141,22,0 3,130,78,79,28.4,0.323,34,1 8,120,86,0,28.4,0.259,22,1 2,174,88,120,44.5,0.646,24,1 2,,56,165,29,0.426,,0 2,105,75,0,23.3,0.56,53,0 4,95,60,0,35.4,0.284,28,0 0,126,86,120,27.4,0.515,21,0 8,,72,0,32,0.6,42,0 2,99,60,160,36.6,0.453,,0 1,102,74,0,39.5,0.293,42,1 11,120,80,150,42.3,0.785,48,1 3,102,44,94,30.8,0.4,26,0 1,109,58,116,28.5,0.219,22,0 9,140,94,0,32.7,0.734,45,1 13,153,88,140,40.6,1.174,39,0 12,100,84,105,30,0.488,46,0 1,147,94,0,49.3,0.358,27,1 1,81,74,57,46.3,1.096,32,0 3,187,70,200,36.4,0.408,36,1 6,162,62,0,24.3,0.178,50,1 4,136,70,0,31.2,1.182,22,1 1,121,78,74,39,0.261,28,0 3,108,62,0,26,0.223,25,0 0,181,88,510,43.3,0.222,26,1 8,154,78,0,32.4,0.443,45,1 1,128,88,110,36.5,1.057,37,1 7,137,90,0,32,0.391,39,0 0,123,72,0,36.3,0.258,52,1 1,106,76,0,37.5,0.197,26,0 6,190,92,0,35.5,0.278,66,1 2,88,58,16,28.4,0.766,22,0 9,170,74,0,44,0.403,43,1 9,89,62,0,22.5,0.142,33,0 10,101,76,180,32.9,0.171,63,0 2,122,70,0,36.8,0.34,27,0 5,121,72,112,26.2,0.245,30,0 1,126,60,0,30.1,0.349,47,1 1,93,70,0,30.4,0.315,23,0 \ No newline at end of file diff --git a/hw2_regression_classification_webscraping.ipynb b/hw2_regression_classification_webscraping.ipynb new file mode 100644 index 0000000..6ad4a09 --- /dev/null +++ b/hw2_regression_classification_webscraping.ipynb @@ -0,0 +1,2744 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Data-X Spring 2018: Homework 02\n", + "\n", + "### Regression, Classification, Webscraping\n", + "\n", + "**Authors:** Sana Iqbal (Part 1, 2, 3), Alexander Fred-Ojala (Extra Credit)\n", + "\n", + "\n", + "In this homework, you will do some exercises with prediction-classification, regression and web-scraping.\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Part 1" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "\n", + "### Data:\n", + "__Data Source__:\n", + "Data file is uploaded to bCourses and is named: __Energy.csv__\n", + "\n", + "The dataset was created by Angeliki Xifara ( Civil/Structural Engineer) and was processed by Athanasios Tsanas, Oxford Centre for Industrial and Applied Mathematics, University of Oxford, UK).\n", + "\n", + "__Data Description__:\n", + "\n", + "The dataset contains eight attributes of a building (or features, denoted by X1...X8) and response being the heating load on the building, y1. \n", + "\n", + "* X1\tRelative Compactness \n", + "* X2\tSurface Area \n", + "* X3\tWall Area \n", + "* X4\tRoof Area \n", + "* X5\tOverall Height \n", + "* X6\tOrientation \n", + "* X7\tGlazing Area \n", + "* X8\tGlazing Area Distribution \n", + "* y1\tHeating Load \n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "#### Q1:Read the data file in python. Describe data features in terms of type, distribution range and mean values. Plot feature distributions.This step should give you clues about data sufficiency." + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "import warnings\n", + "warnings.filterwarnings('ignore')\n", + "import numpy as np" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "scrolled": true + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "X1 float64\n", + "X2 float64\n", + "X3 float64\n", + "X4 float64\n", + "X5 float64\n", + "X6 int64\n", + "X7 float64\n", + "X8 int64\n", + "Y1 float64\n", + "dtype: object\n", + " X1 X2 X3 X4 X5 X6 \\\n", + "count 768.000000 768.000000 768.000000 768.000000 768.00000 768.000000 \n", + "mean 0.764167 671.708333 318.500000 176.604167 5.25000 3.500000 \n", + "std 0.105777 88.086116 43.626481 45.165950 1.75114 1.118763 \n", + "min 0.620000 514.500000 245.000000 110.250000 3.50000 2.000000 \n", + "25% 0.682500 606.375000 294.000000 140.875000 3.50000 2.750000 \n", + "50% 0.750000 673.750000 318.500000 183.750000 5.25000 3.500000 \n", + "75% 0.830000 741.125000 343.000000 220.500000 7.00000 4.250000 \n", + "max 0.980000 808.500000 416.500000 220.500000 7.00000 5.000000 \n", + "\n", + " X7 X8 Y1 \n", + "count 768.000000 768.00000 768.000000 \n", + "mean 0.234375 2.81250 22.307201 \n", + "std 0.133221 1.55096 10.090196 \n", + "min 0.000000 0.00000 6.010000 \n", + "25% 0.100000 1.75000 12.992500 \n", + "50% 0.250000 3.00000 18.950000 \n", + "75% 0.400000 4.00000 31.667500 \n", + "max 0.400000 5.00000 43.100000 \n" + ] + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAskAAAJOCAYAAABFgJqNAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMS4wLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvpW3flQAAIABJREFUeJzs3X2YZHV55//3J6CAo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pZ0T8MvB54KrM\n/PGQsrWb7f58hHq+KuqW8zTgY8BERBykdR7YdgfvjUx/GZqIOJHWP7xbM/OrdefJzL8BJoCVQ37o\nS4Criv7yCPBLEfGfh5wBgMx8rfh5FHiCVnGhwTkSEYsAip9Ha85znGn6aeNzT2nr1xcDpxd1EzTv\nM/i4zwFaR5Zrz9ykIrmX5TO3A6uL658E/lsWZ3QP2ags9dk1Z3F6wB/SKpDr6uy95FzadvNK4KUh\n5psyY87MfCMzz8rMJZm5hNY53ldl5kIfKT8q/WUoinPtHgD2Z+YXa8zxwYg4vbh+MvDLwHeHmSEz\n78jMc4v+sorWZ/qvDTMDQEScEhGnTV0HfgWodRaUBaD93/PVwLYasxxnhn7a9Nyd+vV+4BladRM0\nLPc0nwPX04TMwx4pONMFuILWCNKXgc8Xbb9Dq9AA+Fngj4EDwAvAhxqc9R/TOoL2t8APgX0Nzfnn\nwBFgd3HZ3tCc/wHYV2R8BvhoE3OWtp3A2S2m3W81ZHgYOAz8v6Jv3lJTjn9C62vDF9v63RU15Pg4\n8K0ix17g39T8HhmnptktaM288u3isq+u9+h8vXTqe7TOOd1B64DHDuDMunOWMnfspyOQu2O/Lt7j\nLxT10x8DJ9WddZr8P/kcaEJml6WWJEmSSpp0uoUkSZLUCBbJkiRJUolFsiRJklRikSxJkiSVWCRL\nkiRJJRbJkiRJUolFsiRJklTy/wFzrg2Vs4gCmwAAAABJRU5ErkJggg==\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "import pandas as pd\n", + "import matplotlib.pyplot as plt\n", + "\n", + "data=pd.read_csv('Energy.csv')\n", + "energydata=pd.DataFrame(data)\n", + "print(energydata.dtypes)\n", + "print(energydata.describe())\n", + "energydata.hist(figsize=(12,10))\n", + "plt.show()" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + " __REGRESSION__:\n", + "LABELS ARE CONTINUOUS VALUES.\n", + "Here the model is trained to predict a continuous value for each instance.\n", + "On inputting a feature vector into the model, the trained model is able to predict a continuous value for that instance. \n", + "\n", + "__Q2.1: Train a linear regression model on 85 percent of the given dataset, what is the intercept value and coefficient values.__\n", + "\n" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "number of total samples: 768\n", + "Number of samples in training data: 652\n", + "Number of samples in validation data: 116\n", + "\n", + "Coefficients:\n", + " [ -6.24938187e+01 1.14351200e+12 -1.14351200e+12 -2.28702401e+12\n", + " 4.32184148e+00 1.94553204e-02 2.00676946e+01 2.36007105e-01]\n", + "\n", + "Intercept: 77.891702454\n" + ] + } + ], + "source": [ + "from sklearn import datasets, linear_model\n", + "from sklearn.model_selection import train_test_split\n", + "\n", + "energy_x = energydata.iloc[:,:-1]\n", + "energy_y = energydata['Y1']\n", + "print('number of total samples: ',len(energy_x))\n", + "\n", + "xtrain, xtest, ytrain, ytest = train_test_split(energy_x, energy_y, test_size=0.15, random_state = 100)\n", + "print ('Number of samples in training data:',len(xtrain))\n", + "print ('Number of samples in validation data:',len(xtest))\n", + "\n", + "reg=linear_model.LinearRegression(fit_intercept=True)\n", + "reg.fit(xtrain, ytrain)\n", + "\n", + "ypred=reg.predict(xtest)\n", + "ypred1=reg.predict(xtrain)\n", + "\n", + "print('\\nCoefficients:\\n ',reg.coef_)\n", + "print('\\nIntercept: ',reg.intercept_)" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "\n", + "#### Q.2.2: Report model performance using 'ROOT MEAN SQUARE' error metric on: \n", + "__1. Data that was used for training(Training error)__ \n", + "__2. On the 15 percent of unseen data (test error) __ \n", + "\n" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "1. RMSE train data: 2.93551172582705\n", + "2. RMSE test data: 2.885331133638931\n", + "\n", + "linear regression naccuracy (%): 90.9952525941\n" + ] + } + ], + "source": [ + "from sklearn.metrics import mean_squared_error\n", + "from math import sqrt\n", + "\n", + "print('1. RMSE train data: ',sqrt(mean_squared_error(ytrain, ypred1)))\n", + "print('2. RMSE test data: ',sqrt(mean_squared_error(ytest, ypred)))\n", + "acc_reglin=reg.score(xtest,ytest)\n", + "print('\\nlinear regression naccuracy (%): ',acc_reglin*100)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "\n", + "__ Q2.3: Lets us see the effect of amount of data on the performance of prediction model.Use varying amounts of Training data (100,200,300,400,500,all) to train regression models and report training error and validation error in each case. Validation data/Test data is the same as above for all these cases.__ \n", + "\n", + "Plot error rates vs number of training examples.Comment on the relationshipyou observe in the plot, between the amount of data used to train the model and the validation accuracy of the model.\n", + "\n", + "__Hint:__ Use array indexing to choose varying data amounts" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[100, 200, 300, 400, 500, 652]\n", + "Number of samples in train data: 100\n", + "Number of samples in test data: 116\n", + "Training RMSE for 100 observations in training set: 2.92760482324\n", + "Test RMSE for 100 observations in training set: 3.05435382389\n", + "Number of samples in train data: 200\n", + "Number of samples in test data: 116\n", + "Training RMSE for 200 observations in training set: 2.94940507493\n", + "Test RMSE for 200 observations in training set: 2.89522452089\n", + "Number of samples in train data: 300\n", + "Number of samples in test data: 116\n", + "Training RMSE for 300 observations in training set: 3.03196105191\n", + "Test RMSE for 300 observations in training set: 2.9246707638\n", + "Number of samples in train data: 400\n", + "Number of samples in test data: 116\n", + "Training RMSE for 400 observations in training set: 2.93409921214\n", + "Test RMSE for 400 observations in training set: 2.88615665111\n", + "Number of samples in train data: 500\n", + "Number of samples in test data: 116\n", + "Training RMSE for 500 observations in training set: 3.00664352621\n", + "Test RMSE for 500 observations in training set: 2.86352008296\n", + "Number of samples in train data: 652\n", + "Number of samples in test data: 116\n", + "Training RMSE for all observations in training set: 2.93551172583\n", + "Test RMSE for all observations in training set: 2.88533113364\n" + ] + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAZIAAAEKCAYAAAA4t9PUAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMS4wLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvpW3flQAAIABJREFUeJzs3Xd4VGX2wPHvSUJCDy30EjokdEIV\nRBAErATsvaLYV9e+uq4/XVHXXkDsvSI2UCyAKC2E3iH0UENNaCHl/P64E4kxCQPJzJ2ZnM/zzJOZ\nO/fOPSO7Obnnfe95RVUxxhhjTlaY2wEYY4wJbpZIjDHGlIglEmOMMSViicQYY0yJWCIxxhhTIpZI\njDHGlIglEmOMMSViicQYY0yJWCIxxhhTIhFuB+APtWrV0tjYWLfDMMaYoDJv3rxdqhpzvP3KRCKJ\njY0lOTnZ7TCMMSaoiMhGb/az0pYxxpgSsURijDGmRCyRGGOMKRFLJMYYY0rEEokxxpgSsURijDGm\nRCyRGGOMKRFLJMVJ+QV+f87tKIwxJqBZIinOut9g6hNweK/bkRhjTMDyWSIRkfIikiQii0RkmYj8\np5B9okTkMxFJEZE5IhLr2R4rIodFZKHnMTbfMV1FZInnmJdERHz1HYhPhNxsWDnRZ6cwxphg58sr\nkkxggKp2BDoBQ0SkZ4F9rgP2qmoL4HngqXzvrVXVTp7HTfm2jwFGAi09jyE++wb1O0O1xrDsa5+d\nwhhjgp3PEok6DnhelvM8tMBu5wHveZ5/CZxe3BWGiNQDqqrqLFVV4H1gWOlG/pcTOlcl66bCoT0+\nO40xxgQzn46RiEi4iCwEdgI/q+qcArs0ADYDqGo2sB+o6XmvqYgsEJHfRKRvvv1T8x2f6tnmO3HD\nrLxljDHF8GkiUdUcVe0ENAS6i0i7ArsUdvWhwDagsap2Bu4CPhaRqsXs/zci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ALzGyppGckLYx8V7f6\n7CStIr3/JskmJKbfRpjZGW2tS5JsKnJqK0mSJKmJHJEkSZIkNZEjkiRJkqQmsiNJkiRJaiI7kiRJ\nkqQmsiNJkiRJaiI7kiRJkqQmsiNJkiRJauL/QHjCnQ11wZ4AAAAASUVORK5CYII=\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "\n", + "Observations from the plot:\n", + "1. Training RMSE wavers with increasing training observations.\n", + "2. Test RMSE in general decreases with increasing observations in the training set.\n", + "3. The training error being higher than test error means that the linear regression model accurately captures the trend in \n", + " the data. This can be seen in that the predictions made by this model on the test set are quite accurate and have low \n", + " errors/deviations from their actual values.\n", + "4. The test and train RMSE values are very close to each other indicating a good model.\n" + ] + } + ], + "source": [ + "'''traindata=[100,200,300,400,500,652]\n", + "\n", + "n=[]\n", + "ytesterror=[]\n", + "ytrainerror=[]\n", + "\n", + "for i,x in enumerate(traindata):\n", + " xtrainpoints=xtrain[:x]\n", + " ytrainpoints=ytrain[:x]\n", + " n=np.append(n,x)\n", + " print('no of training points: ',int(n[i]))\n", + " print(len(xtrainpoints))\n", + " reg=linear_model.LinearRegression()\n", + " reg.fit(xtrainpoints, ytrainpoints)\n", + " \n", + " ypred=reg.predict(xtest)\n", + " ypred1=reg.predict(xtrainpoints)\n", + " \n", + " a=mean_squared_error(ytrainpoints, ypred1)\n", + " b=mean_squared_error(ytest, ypred)\n", + " \n", + " ytesterror=np.append(ytesterror,a)\n", + " ytrainerror=np.append(ytrainerror,b)\n", + " \n", + " print('\\n1.',x,'RMSE train data: ',a)\n", + " print('2.',x,'RMSE test data: ',b)\n", + "\n", + "plt.plot(n,ytesterror,n,ytrainerror)\n", + "plt.xlabel('no of training samples')\n", + "plt.ylabel('RMSE')\n", + "\n", + "plt.show()'''\n", + "\n", + "train_mse = list()\n", + "test_mse = list()\n", + "a = list([100,200,300,400,500,652])\n", + "print(a)\n", + "\n", + "# Assuming error rate being talked about is RMSE and not error rate = 1 - accuracy\n", + "\n", + "# 100 samples\n", + "# Splitting data \n", + "x_train_100, x_test_100, y_train_100, y_test_100 = train_test_split(energy_x, energy_y, train_size = 100, test_size=0.15, random_state=100)\n", + "print ('Number of samples in train data:',len(x_train_100))\n", + "print ('Number of samples in test data:',len(x_test_100))\n", + "\n", + "# Fitting the model\n", + "LinearRegressionModel_100= linear_model.LinearRegression()\n", + "LinearRegressionModel_100.fit(x_train_100, y_train_100)\n", + "\n", + "# RMSE for training data\n", + "y_pred_train_100 = LinearRegressionModel_100.predict(x_train_100)\n", + "train_mse_100 = np.sqrt(np.mean((y_train_100-y_pred_train_100)**2))\n", + "print(\"Training RMSE for 100 observations in training set:\",train_mse_100)\n", + "train_mse.append(train_mse_100)\n", + "\n", + "# RMSE for test data\n", + "y_pred_test_100 = LinearRegressionModel_100.predict(x_test_100)\n", + "test_mse_100 = np.sqrt(np.mean((y_test_100-y_pred_test_100)**2))\n", + "print(\"Test RMSE for 100 observations in training set:\", test_mse_100)\n", + "test_mse.append(test_mse_100)\n", + "\n", + "\n", + "# 200 samples\n", + "# Splitting data \n", + "x_train_200, x_test_200, y_train_200, y_test_200 = train_test_split(energy_x, energy_y, train_size = 200, test_size=0.15, random_state=100)\n", + "print ('Number of samples in train data:',len(x_train_200))\n", + "print ('Number of samples in test data:',len(x_test_200))\n", + "\n", + "# Fitting the model\n", + "LinearRegressionModel_200= linear_model.LinearRegression()\n", + "LinearRegressionModel_200.fit(x_train_200, y_train_200)\n", + "\n", + "# RMSE for training data\n", + "y_pred_train_200 = LinearRegressionModel_200.predict(x_train_200)\n", + "train_mse_200 = np.sqrt(np.mean((y_train_200-y_pred_train_200)**2))\n", + "print(\"Training RMSE for 200 observations in training set:\",train_mse_200)\n", + "train_mse.append(train_mse_200)\n", + "\n", + "# RMSE for test data\n", + "y_pred_test_200 = LinearRegressionModel_200.predict(x_test_200)\n", + "test_mse_200 = np.sqrt(np.mean((y_test_200-y_pred_test_200)**2))\n", + "print(\"Test RMSE for 200 observations in training set:\", test_mse_200)\n", + "test_mse.append(test_mse_200)\n", + "\n", + "\n", + "# 300 samples\n", + "# Splitting data \n", + "x_train_300, x_test_300, y_train_300, y_test_300 = train_test_split(energy_x, energy_y, train_size = 300, test_size=0.15, random_state=100)\n", + "print ('Number of samples in train data:',len(x_train_300))\n", + "print ('Number of samples in test data:',len(x_test_300))\n", + "\n", + "# Fitting the model\n", + "LinearRegressionModel_300= linear_model.LinearRegression()\n", + "LinearRegressionModel_300.fit(x_train_300, y_train_300)\n", + "\n", + "# RMSE for training data\n", + "y_pred_train_300 = LinearRegressionModel_300.predict(x_train_300)\n", + "train_mse_300 = np.sqrt(np.mean((y_train_300-y_pred_train_300)**2))\n", + "print(\"Training RMSE for 300 observations in training set:\",train_mse_300)\n", + "train_mse.append(train_mse_300)\n", + "\n", + "# RMSE for test data\n", + "y_pred_test_300 = LinearRegressionModel_300.predict(x_test_300)\n", + "test_mse_300 = np.sqrt(np.mean((y_test_300-y_pred_test_300)**2))\n", + "print(\"Test RMSE for 300 observations in training set:\", test_mse_300)\n", + "test_mse.append(test_mse_300)\n", + "\n", + "\n", + "# 400 samples\n", + "# Splitting data \n", + "x_train_400, x_test_400, y_train_400, y_test_400 = train_test_split(energy_x, energy_y, train_size = 400, test_size=0.15, random_state=100)\n", + "print ('Number of samples in train data:',len(x_train_400))\n", + "print ('Number of samples in test data:',len(x_test_400))\n", + "\n", + "# Fitting the model\n", + "LinearRegressionModel_400= linear_model.LinearRegression()\n", + "LinearRegressionModel_400.fit(x_train_400, y_train_400)\n", + "\n", + "# RMSE for training data\n", + "y_pred_train_400 = LinearRegressionModel_400.predict(x_train_400)\n", + "train_mse_400 = np.sqrt(np.mean((y_train_400-y_pred_train_400)**2))\n", + "print(\"Training RMSE for 400 observations in training set:\",train_mse_400)\n", + "train_mse.append(train_mse_400)\n", + "\n", + "# RMSE for test data\n", + "y_pred_test_400 = LinearRegressionModel_400.predict(x_test_400)\n", + "test_mse_400 = np.sqrt(np.mean((y_test_400-y_pred_test_400)**2))\n", + "print(\"Test RMSE for 400 observations in training set:\", test_mse_400)\n", + "test_mse.append(test_mse_400)\n", + "\n", + "\n", + "# 500 samples\n", + "# Splitting data \n", + "x_train_500, x_test_500, y_train_500, y_test_500 = train_test_split(energy_x, energy_y, train_size = 500, test_size=0.15, random_state=100)\n", + "print ('Number of samples in train data:',len(x_train_500))\n", + "print ('Number of samples in test data:',len(x_test_500))\n", + "\n", + "# Fitting the model\n", + "LinearRegressionModel_500= linear_model.LinearRegression()\n", + "LinearRegressionModel_500.fit(x_train_500, y_train_500)\n", + "\n", + "# RMSE for training data\n", + "y_pred_train_500 = LinearRegressionModel_500.predict(x_train_500)\n", + "train_mse_500 = np.sqrt(np.mean((y_train_500-y_pred_train_500)**2))\n", + "print(\"Training RMSE for 500 observations in training set:\",train_mse_500)\n", + "train_mse.append(train_mse_500)\n", + "\n", + "# RMSE for test data\n", + "y_pred_test_500 = LinearRegressionModel_500.predict(x_test_500)\n", + "test_mse_500 = np.sqrt(np.mean((y_test_500-y_pred_test_500)**2))\n", + "print(\"Test RMSE for 500 observations in training set:\", test_mse_500)\n", + "test_mse.append(test_mse_500)\n", + "\n", + "# All samples\n", + "# Splitting data \n", + "x_train_all, x_test_all, y_train_all, y_test_all = train_test_split(energy_x, energy_y, test_size=0.15, random_state=100)\n", + "print ('Number of samples in train data:',len(x_train_all))\n", + "print ('Number of samples in test data:',len(x_test_all))\n", + "\n", + "# Fitting the model\n", + "LinearRegressionModel_all= linear_model.LinearRegression()\n", + "LinearRegressionModel_all.fit(x_train_all, y_train_all)\n", + "\n", + "# RMSE for training data\n", + "y_pred_train_all = LinearRegressionModel_all.predict(x_train_all)\n", + "train_mse_all = np.sqrt(np.mean((y_train_all-y_pred_train_all)**2))\n", + "print(\"Training RMSE for all observations in training set:\",train_mse_all)\n", + "train_mse.append(train_mse_all)\n", + "\n", + "# RMSE for test data\n", + "y_pred_test_all = LinearRegressionModel_all.predict(x_test_all)\n", + "test_mse_all = np.sqrt(np.mean((y_test_all-y_pred_test_all)**2))\n", + "print(\"Test RMSE for all observations in training set:\", test_mse_all)\n", + "test_mse.append(test_mse_all)\n", + "\n", + "plt.plot(a,train_mse, label = 'train RMSE')\n", + "plt.plot(a,test_mse, label = \"test RMSE\");\n", + "#plt.legend(loc=3)\n", + "plt.xlabel(\"Number of samples in the test set\")\n", + "plt.ylabel(\"Training/Test RMSE\")\n", + "plt.show()\n", + "\n", + "print('''\\n\\nObservations from the plot:\n", + "1. Training RMSE wavers with increasing training observations.\n", + "2. Test RMSE in general decreases with increasing observations in the training set.\n", + "3. The training error being higher than test error means that the linear regression model accurately captures the trend in \n", + " the data. This can be seen in that the predictions made by this model on the test set are quite accurate and have low \n", + " errors/deviations from their actual values.\n", + "4. The test and train RMSE values are very close to each other indicating a good model.''')" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "\"import numpy as np\\n#np.random.seed(100)\\n\\nxtrain1=xtrain[:100] # error becomes very large when I choose random samples - xtrain.sample(100). why??\\nxtrain2=xtrain[:200]\\nxtrain3=xtrain[:300]\\nxtrain4=xtrain[:400]\\nxtrain5=xtrain[:500]\\nytrain1=ytrain[:100]\\nytrain2=ytrain[:200]\\nytrain3=ytrain[:300]\\nytrain4=ytrain[:400]\\nytrain5=ytrain[:500]\\nprint(xtrain1.head())\\nprint(xtrain2.head())\\n\\nreg1=linear_model.LinearRegression()\\nreg1.fit(xtrain1, ytrain1)\\n\\nypred1=reg1.predict(xtest)\\nypred11=reg1.predict(xtrain1)\\n\\nprint('1. 100 RMSE train data: ',sqrt(mean_squared_error(ytrain1, ypred11)))\\nprint('2. 100 RMSE test data: ',sqrt(mean_squared_error(ytest, ypred1)))\\n\\nreg2=linear_model.LinearRegression()\\nreg.fit(xtrain2, ytrain2)\\n\\nypred2=reg.predict(xtest)\\nypred12=reg.predict(xtrain2)\\n\\nprint('\\n1. 200 RMSE train data: ',sqrt(mean_squared_error(ytrain2, ypred12)))\\nprint('2. 200 RMSE test data: ',sqrt(mean_squared_error(ytest, ypred2)))\\n\\nreg3=linear_model.LinearRegression()\\nreg.fit(xtrain3, ytrain3)\\n\\nypred3=reg.predict(xtest)\\nypred13=reg.predict(xtrain3)\\n\\nprint('\\n1. 300 RMSE train data: ',sqrt(mean_squared_error(ytrain3, ypred13))\\nprint('2. 300 RMSE test data: ',sqrt(mean_squared_error(ytest, ypred3)))\\n\\nreg4=linear_model.LinearRegression()\\nreg.fit(xtrain4, ytrain4)\\n\\nypred4=reg.predict(xtest)\\nypred14=reg.predict(xtrain4)\\n\\nprint('\\n1. 400 RMSE train data: ',sqrt(mean_squared_error(ytrain4, ypred14)))\\nprint('2. 400 RMSE test data: ',sqrt(mean_squared_error(ytest, ypred4)))\\n\\nreg5=linear_model.LinearRegression()\\nreg.fit(xtrain5, ytrain5)\\n\\nypred5=reg.predict(xtest)\\nypred15=reg.predict(xtrain5)\\n\\nprint('\\n1. 500 RMSE train data: ',sqrt(mean_squared_error(ytrain5, ypred15)))\\nprint('2. 500 RMSE test data: ',sqrt(mean_squared_error(ytest, ypred5)))\\n\\nprint('\\nerror for all data is same as in previous part')\"" + ] + }, + "execution_count": 21, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "## IGNORE\n", + "\n", + "'''import numpy as np\n", + "#np.random.seed(100)\n", + "\n", + "xtrain1=xtrain[:100] # error becomes very large when I choose random samples - xtrain.sample(100). why??\n", + "xtrain2=xtrain[:200]\n", + "xtrain3=xtrain[:300]\n", + "xtrain4=xtrain[:400]\n", + "xtrain5=xtrain[:500]\n", + "ytrain1=ytrain[:100]\n", + "ytrain2=ytrain[:200]\n", + "ytrain3=ytrain[:300]\n", + "ytrain4=ytrain[:400]\n", + "ytrain5=ytrain[:500]\n", + "print(xtrain1.head())\n", + "print(xtrain2.head())\n", + "\n", + "reg1=linear_model.LinearRegression()\n", + "reg1.fit(xtrain1, ytrain1)\n", + "\n", + "ypred1=reg1.predict(xtest)\n", + "ypred11=reg1.predict(xtrain1)\n", + "\n", + "print('1. 100 RMSE train data: ',sqrt(mean_squared_error(ytrain1, ypred11)))\n", + "print('2. 100 RMSE test data: ',sqrt(mean_squared_error(ytest, ypred1)))\n", + "\n", + "reg2=linear_model.LinearRegression()\n", + "reg.fit(xtrain2, ytrain2)\n", + "\n", + "ypred2=reg.predict(xtest)\n", + "ypred12=reg.predict(xtrain2)\n", + "\n", + "print('\\n1. 200 RMSE train data: ',sqrt(mean_squared_error(ytrain2, ypred12)))\n", + "print('2. 200 RMSE test data: ',sqrt(mean_squared_error(ytest, ypred2)))\n", + "\n", + "reg3=linear_model.LinearRegression()\n", + "reg.fit(xtrain3, ytrain3)\n", + "\n", + "ypred3=reg.predict(xtest)\n", + "ypred13=reg.predict(xtrain3)\n", + "\n", + "print('\\n1. 300 RMSE train data: ',sqrt(mean_squared_error(ytrain3, ypred13))\n", + "print('2. 300 RMSE test data: ',sqrt(mean_squared_error(ytest, ypred3)))\n", + "\n", + "reg4=linear_model.LinearRegression()\n", + "reg.fit(xtrain4, ytrain4)\n", + "\n", + "ypred4=reg.predict(xtest)\n", + "ypred14=reg.predict(xtrain4)\n", + "\n", + "print('\\n1. 400 RMSE train data: ',sqrt(mean_squared_error(ytrain4, ypred14)))\n", + "print('2. 400 RMSE test data: ',sqrt(mean_squared_error(ytest, ypred4)))\n", + "\n", + "reg5=linear_model.LinearRegression()\n", + "reg.fit(xtrain5, ytrain5)\n", + "\n", + "ypred5=reg.predict(xtest)\n", + "ypred15=reg.predict(xtrain5)\n", + "\n", + "print('\\n1. 500 RMSE train data: ',sqrt(mean_squared_error(ytrain5, ypred15)))\n", + "print('2. 500 RMSE test data: ',sqrt(mean_squared_error(ytest, ypred5)))\n", + "\n", + "print('\\nerror for all data is same as in previous part')'''" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "\n", + "__CLASSIFICATION__:\n", + "LABELS ARE DISCRETE VALUES.\n", + "Here the model is trained to classify each instance into a set of predefined discrete classes.\n", + "On inputting a feature vector into the model, the trained model is able to predict a class of that instance. You can also output the probabilities of an instance belnging to a class. \n", + "\n", + "__ Q 3.1: Bucket values of 'y1' i.e 'Heating Load' from the original dataset into 3 classes:__ \n", + "\n", + "0: 'Low' ( < 15), \n", + "1: 'Medium' (15-30), \n", + "2: 'High' (>30)\n", + "\n", + "This converts the given dataset into a classification problem, classes being, Heating load is: *low, medium or high*. Use this datset with transformed 'heating load' for creating a logistic regression classifiction model that predicts heating load type of a building. Use test-train split ratio of 0.15. \n", + "\n", + "*Report training and test accuracies and confusion matrices.*\n", + "\n", + "\n", + "**HINT:** Use pandas.cut" + ] + }, + { + "cell_type": "code", + "execution_count": 27, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
X1X2X3X4X5X6X7X8Heating Load
00.98514.5294.0110.257.020.00Medium
10.98514.5294.0110.257.030.00Medium
20.98514.5294.0110.257.040.00Medium
30.98514.5294.0110.257.050.00Medium
40.90563.5318.5122.507.020.00Medium
\n", + "
" + ], + "text/plain": [ + " X1 X2 X3 X4 X5 X6 X7 X8 Heating Load\n", + "0 0.98 514.5 294.0 110.25 7.0 2 0.0 0 Medium\n", + "1 0.98 514.5 294.0 110.25 7.0 3 0.0 0 Medium\n", + "2 0.98 514.5 294.0 110.25 7.0 4 0.0 0 Medium\n", + "3 0.98 514.5 294.0 110.25 7.0 5 0.0 0 Medium\n", + "4 0.90 563.5 318.5 122.50 7.0 2 0.0 0 Medium" + ] + }, + "execution_count": 27, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "energydata['Heating Load']=pd.cut(energydata['Y1'],bins=[0,15,30,45],labels=['Low','Medium','High'])\n", + "energydata=energydata.drop('Y1',axis=1)\n", + "energydata.head() #energydata['Heating Load'].unique to chech values of bands\n" + ] + }, + { + "cell_type": "code", + "execution_count": 37, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Logistic Regression accuracy for train data: 0.773006134969 and for test data: 0.76724137931\n", + "Confusion matrix of train data is: \n", + " Predicted 0 Predicted 1 Predicted 2\n", + "Actual 0 244 1 0\n", + "Actual 1 71 120 41\n", + "Actual 2 0 35 140\n", + "Confusion matrix of test data is: \n", + " Predicted 0 Predicted 1 Predicted 2\n", + "Actual 0 40 0 0\n", + "Actual 1 12 29 9\n", + "Actual 2 0 6 20\n" + ] + } + ], + "source": [ + "from sklearn.linear_model import LogisticRegression\n", + "\n", + "energy1x=energydata.iloc[:,:-1]\n", + "energy1y=energydata['Heating Load'].map({'Low': 0, 'Medium': 1,'High' :2})\n", + "xtrain, xtest, ytrain, ytest = train_test_split(energy1x, energy1y, test_size=0.15, random_state = 100)\n", + "\n", + "logreg=LogisticRegression()\n", + "logreg.fit(xtrain,ytrain)\n", + "Ypred=logreg.predict(xtest)\n", + "acc_train=logreg.score(xtrain,ytrain)\n", + "acc_test=logreg.score(xtest,ytest)\n", + "print('Logistic Regression accuracy for train data: ',acc_train,'and for test data: ',acc_test)\n", + "\n", + "#acc_log = sum(Ypred == ytest)/len(ytest)*100\n", + "#print('Scikit Model score: ',acc_log)\n", + "\n", + "# CONFUSION MATRIX\n", + "\n", + "from sklearn.metrics import confusion_matrix\n", + "y_true_train=ytrain\n", + "y_pred_train=logreg.predict(xtrain)\n", + "ConfusionMatrix=pd.DataFrame(confusion_matrix(y_true_train, y_pred_train), \\\n", + " columns=['Predicted 0','Predicted 1','Predicted 2'],index=['Actual 0','Actual 1','Actual 2'])\n", + "print ('Confusion matrix of train data is: \\n',ConfusionMatrix)\n", + "\n", + "y_true_test=ytest\n", + "y_pred_test=logreg.predict(xtest)\n", + "ConfusionMatrix1=pd.DataFrame(confusion_matrix(y_true_test, y_pred_test), \\\n", + " columns=['Predicted 0','Predicted 1','Predicted 2'],index=['Actual 0','Actual 1','Actual 2'])\n", + "print ('Confusion matrix of test data is: \\n',ConfusionMatrix1)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "__ Q2.2: One of the preprocessing steps in Data science is Feature Scaling i.e getting all our data on the same scale by setting same Min-Max of feature values. This makes training less sensitive to the scale of features . Scaling is important in algorithms that use distance based classification, SVM or K means or involve gradient descent optimization.If we Scale features in the range [0,1] it is called unity based normalization.__\n", + "\n", + "__Perform unity based normalization on the above dataset and train the model again, compare model performance in training and validation with your previous model.__ \n", + "\n", + "refer:http://scikit-learn.org/stable/modules/preprocessing.html#preprocessing-scaler \n", + "more at: https://en.wikipedia.org/wiki/Feature_scaling" + ] + }, + { + "cell_type": "code", + "execution_count": 50, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "MinMaxScaler(copy=True, feature_range=(0, 1))\n", + "\n", + " Sample row from actual train values:\n", + " X1 X2 X3 X4 X5 X6 X7 X8\n", + "458 0.74 686.0 245.0 220.5 3.5 4 0.25 4\n", + "\n", + " Scaled values of the same row:\n", + " [[ 0.33333333 0.58333333 0. 1. 0. 0.66666667\n", + " 0.625 0.8 ]]\n", + "\n", + " Sample row from actual test values:\n", + " X1 X2 X3 X4 X5 X6 X7 X8\n", + "173 0.71 710.5 269.5 220.5 3.5 3 0.1 3\n", + "\n", + " Scaled values of the test values\n", + " [[ 0.25 0.66666667 0.14285714 1. 0. 0.33333333\n", + " 0.25 0.6 ]]\n", + "Training accuracy for scaled features: 0.799079754601\n", + "Accuracy of the model on test data: 0.784482758621\n", + "\n", + "model improves after scaling\n" + ] + } + ], + "source": [ + "from sklearn import preprocessing\n", + "from sklearn.preprocessing import MinMaxScaler\n", + "\n", + "min_max_scaler = preprocessing.MinMaxScaler() \n", + "print(min_max_scaler)\n", + "\n", + "energy_x = energydata.iloc[:,:-1]\n", + "energy_y = energydata['Heating Load'].map({'Low': 0, 'Medium': 1,'High' :2})\n", + "xtrain, xtest, ytrain, ytest = train_test_split(energy_x, energy_y, test_size=0.15, random_state = 100)\n", + "\n", + "x_train_scaled = min_max_scaler.fit_transform(xtrain)\n", + "x_test_scaled = min_max_scaler.fit_transform(xtest)\n", + "\n", + "print(\"\\n Sample row from actual train values:\\n\", xtrain[0:1][:])\n", + "print(\"\\n Scaled values of the same row:\\n\", x_train_scaled[0:1][:])\n", + "print(\"\\n Sample row from actual test values:\\n\", xtest[0:1][:])\n", + "print(\"\\n Scaled values of the test values\\n\", x_test_scaled[0:1][:])\n", + "\n", + "Logreg_scaled = linear_model.LogisticRegression()\n", + "Logreg_scaled.fit(x_train_scaled, ytrain)\n", + "\n", + "training_accuracy_scaled=Logreg_scaled.score(x_train_scaled,ytrain)\n", + "print ('Training accuracy for scaled features:',training_accuracy_scaled)\n", + "\n", + "test_accuracy_scaled=Logreg_scaled.score(x_test_scaled,ytest)\n", + "print('Accuracy of the model on test data: ',test_accuracy_scaled)\n", + "print('\\nmodel improves after scaling')\n", + "#minmax=MinMaxScaler().fit(xtrain)\n", + "#scaled_xtrain=minmax.transform(xtrain)\n", + "#scaled_ytrain=minmax.fit_transform(ytrain.values.reshape(-1,1))\n", + "#scaled_xtest=minmax.transform(xtest)\n", + "#scaled_ytest=minmax.fit_transform(ytest.values.reshape(-1,1))\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Part 2" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "\n", + "\n", + "__ 1. Read __`diabetesdata.csv`__ file into a pandas dataframe. Analyze the data features, check for NaN values. \n", + "About the data: __\n", + "\n", + "1. __TimesPregnant__: Number of times pregnant \n", + "2. __glucoseLevel__: Plasma glucose concentration a 2 hours in an oral glucose tolerance test \n", + "3. __BP__: Diastolic blood pressure (mm Hg) \n", + "5. __insulin__: 2-Hour serum insulin (mu U/ml) \n", + "6. __BMI__: Body mass index (weight in kg/(height in m)^2) \n", + "7. __pedigree__: Diabetes pedigree function \n", + "8. __Age__: Age (years) \n", + "9. __IsDiabetic__: 0 if not diabetic or 1 if diabetic) \n", + "\n", + "__ 2. Preprocess data to replace NaN values in a feature(if any) using mean of the feature. \n", + "Train logistic regression, SVM, perceptron, kNN, xgboost and random forest models using this preprocessed data with 20% test split.Report training and test accuracies.__\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "code", + "execution_count": 53, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + " TimesPregnant glucoseLevel BP insulin BMI Pedigree Age \\\n", + "0 6 148.000000 72 0 33.6 0.627 50.000000 \n", + "1 1 121.016349 66 0 26.6 0.351 31.000000 \n", + "2 8 183.000000 64 0 23.3 0.672 33.353741 \n", + "3 1 121.016349 66 94 28.1 0.167 21.000000 \n", + "4 0 137.000000 40 168 43.1 2.288 33.000000 \n", + "\n", + " IsDiabetic \n", + "0 1 \n", + "1 0 \n", + "2 1 \n", + "3 0 \n", + "4 1 \n" + ] + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAeoAAAJOCAYAAAB4CERfAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1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2HxziOT2Yr8JGq+klV/Q2wv8U7Dmv1XV4MfL2q/s9xYpvUcZDW\nTI+J+izgoUXbBzn2H61pM1NVh2DwBxp4Xiuf6v1Osgl4CXA362Mf1yTWo44jwBtb0/JNC83OY4yt\ngM8kuacNrwpr911eCXx40fYkj4PUlR4T9XGHflynpna/kzwD+Djw5qr6/rGqDinrdR8nHuuQ4/g+\n4B8ALwYOAdePObaLquoC4FLg2iS/eqxwxxQDbYCa3wT+rBVN+jhIXekxUa/3oR8fWWgibI+HW/lU\n7neSpzJILjdX1Sda8XrYx4nGOuw4VtUjVfV4Vf0UeD8/b9YdS2xV9XB7PAzc2j5vLb7LS4EvV9Uj\nLZ6JHgepNz0m6vU+9OMeYFtb3wbctqj89a037YXAYwtNjr1KEuBGYF9VvWvRU+thHyd2Hj7ZcTzq\nN9/fAhbuHtgDXJnk5CTnApuBL6wwhlOTPHNhHXhl+7y1+C5fy6Jm70keB6lLa92bbdjCoEfpXzPo\nxfm7ax3PCvbjwwya6v4fg//9XwM8B7gDeLA9nt7qBnhv2+e9wJa1jn+E/fsnDJoa7wPubctl62Uf\nJ3UeHuM4fqgdp/sYJKUzF73md1tcXwMuXYUYfplBD+qvAA8s7O+kv0vg7wHfAZ61qGxix8HFpcfF\nIUQlSepYj03fkiSpMVFLktQxE7UkSR0zUUuS1DETtSRJHTNRS5LUMRO1JEkd+/+uyLpAhnDRYwAA\nAABJRU5ErkJggg==\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "data=pd.read_csv('diabetesdata.csv')\n", + "diabetes=pd.DataFrame(data)\n", + "diabetes1=diabetes.fillna(diabetes.mean())\n", + "print(diabetes1.head())\n", + "diabetes1.hist(figsize=(8,10))\n", + "plt.show()" + ] + }, + { + "cell_type": "code", + "execution_count": 54, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "from sklearn import datasets, linear_model\n", + "from sklearn.model_selection import train_test_split\n", + "\n", + "diabetes_x=diabetes1.iloc[:,:-1]\n", + "diabetes_y=diabetes['IsDiabetic']\n", + "#diabetes_y=diabetes_y.to_frame('IsDiabetic')\n", + "xtrain,xtest,ytrain,ytest=train_test_split(diabetes_x,diabetes_y,test_size=0.2,random_state=100)" + ] + }, + { + "cell_type": "code", + "execution_count": 58, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "no. of correct predictions: 113 / 154\n", + "Logistic Regression Accuracy for test data: 73.0 % and fo rtrain data: 78.0\n" + ] + } + ], + "source": [ + "# LOGISTIC REGRESSION\n", + "\n", + "from sklearn.linear_model import LogisticRegression\n", + "logreg=LogisticRegression()\n", + "logreg.fit(xtrain,ytrain)\n", + "ypred=logreg.predict(xtest)\n", + "print('no. of correct predictions: ',sum(ypred==ytest),'/',len(xtest))\n", + "trainacc=logreg.score(xtrain,ytrain)\n", + "accuracy=logreg.score(xtest,ytest)\n", + "print('Logistic Regression Accuracy for test data: ',str(round(accuracy,2)*100),'% and fo rtrain data: ',str(round(trainacc,2)*100))" + ] + }, + { + "cell_type": "code", + "execution_count": 59, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "no. of correct predictions: 101 / 154\n", + "Logistic Regression Accuracy for test data: 66.0 % and fo rtrain data: 100.0\n" + ] + } + ], + "source": [ + "# SVM\n", + "\n", + "from sklearn.svm import SVC, LinearSVC\n", + "svc=SVC()\n", + "svc.fit(xtrain,ytrain)\n", + "ypred=svc.predict(xtest)\n", + "print('no. of correct predictions: ',sum(ypred==ytest),'/',len(xtest))\n", + "trainacc=svc.score(xtrain,ytrain)\n", + "accuracy=svc.score(xtest,ytest)\n", + "print('Logistic Regression Accuracy for test data: ',str(round(accuracy,2)*100),'% and fo rtrain data: ',str(round(trainacc,2)*100))" + ] + }, + { + "cell_type": "code", + "execution_count": 60, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "no. of correct predictions: 99 / 154\n", + "Logistic Regression Accuracy for test data: 64.0 % and fo rtrain data: 64.0\n" + ] + } + ], + "source": [ + "# PERCEPTRON\n", + "\n", + "from sklearn.linear_model import Perceptron\n", + "per=Perceptron()\n", + "per.fit(xtrain,ytrain)\n", + "ypred=per.predict(xtest)\n", + "print('no. of correct predictions: ',sum(ypred==ytest),'/',len(xtest))\n", + "trainacc=per.score(xtrain,ytrain)\n", + "accuracy=per.score(xtest,ytest)\n", + "print('Logistic Regression Accuracy for test data: ',str(round(accuracy,2)*100),'% and fo rtrain data: ',str(round(trainacc,2)*100))" + ] + }, + { + "cell_type": "code", + "execution_count": 61, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "no. of correct predictions: 110 / 154\n", + "Logistic Regression Accuracy for test data: 71.0 % and fo rtrain data: 85.0\n" + ] + } + ], + "source": [ + "# KNN\n", + "\n", + "from sklearn.neighbors import KNeighborsClassifier\n", + "knn=KNeighborsClassifier(n_neighbors=2)\n", + "knn.fit(xtrain,ytrain)\n", + "ypred=knn.predict(xtest)\n", + "print('no. of correct predictions: ',sum(ypred==ytest),'/',len(xtest))\n", + "trainacc=knn.score(xtrain,ytrain)\n", + "accuracy=knn.score(xtest,ytest)\n", + "print('Logistic Regression Accuracy for test data: ',str(round(accuracy,2)*100),'% and fo rtrain data: ',str(round(trainacc,2)*100))" + ] + }, + { + "cell_type": "code", + "execution_count": 63, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "no. of correct predictions: 111 / 154\n", + "Logistic Regression Accuracy for test data: 72.0 % and fo rtrain data: 100.0\n" + ] + } + ], + "source": [ + "# XGBOOST\n", + "\n", + "import xgboost as xgb\n", + "gradboost=xgb.XGBClassifier(n_estimators=1000)\n", + "gradboost.fit(xtrain,ytrain)\n", + "ypred=gradboost.predict(xtest)\n", + "print('no. of correct predictions: ',sum(ypred==ytest),'/',len(xtest))\n", + "trainacc=gradboost.score(xtrain,ytrain)\n", + "accuracy=gradboost.score(xtest,ytest)\n", + "print('Logistic Regression Accuracy for test data: ',str(round(accuracy,2)*100),'% and fo rtrain data: ',str(round(trainacc,2)*100))" + ] + }, + { + "cell_type": "code", + "execution_count": 62, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "no. of correct predictions: 108 / 154\n", + "Logistic Regression Accuracy for test data: 70.0 % and fo rtrain data: 100.0\n" + ] + } + ], + "source": [ + "# RANDOM FOREST\n", + "\n", + "from sklearn.ensemble import RandomForestClassifier\n", + "rf=RandomForestClassifier(n_estimators=1000)\n", + "rf.fit(xtrain,ytrain)\n", + "ypred=rf.predict(xtest)\n", + "print('no. of correct predictions: ',sum(ypred==ytest),'/',len(xtest))\n", + "trainacc=rf.score(xtrain,ytrain)\n", + "accuracy=rf.score(xtest,ytest)\n", + "print('Logistic Regression Accuracy for test data: ',str(round(accuracy,2)*100),'% and fo rtrain data: ',str(round(trainacc,2)*100))" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "\n", + "\n", + "__3. What is the ratio of diabetic persons in 3 equirange bands of 'BMI' and 'Pedigree' in the provided dataset.__\n", + "\n", + " __Convert these features - 'BP','insulin','BMI' and 'Pedigree' into categorical values by mapping different bands of values of these features to integers 0,1,2.__ \n", + " \n", + "HINT: USE pd.cut with bin=3 to create 3 bins\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "code", + "execution_count": 69, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "IsDiabetic 0 1\n", + "BMI_cat \n", + "0 49 2\n", + "1 437 244\n", + "2 14 22\n", + "IsDiabetic 0 1\n", + "Pedigree_cat \n", + "0 461 224\n", + "1 34 40\n", + "2 5 4\n", + "IsDiabetic 0 1 Ratio of diabetics by BMI\n", + "BMI_cat \n", + "0 49 2 0.007463\n", + "1 437 244 0.910448\n", + "2 14 22 0.082090\n", + "IsDiabetic 0 1 Ratio of diabetics by Pedigree\n", + "Pedigree_cat \n", + "0 461 224 0.835821\n", + "1 34 40 0.149254\n", + "2 5 4 0.014925\n" + ] + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
Ratio of diabetics by BMIRatio of diabetics by Pedigree
00.0074630.835821
10.9104480.149254
20.0820900.014925
\n", + "
" + ], + "text/plain": [ + " Ratio of diabetics by BMI Ratio of diabetics by Pedigree\n", + "0 0.007463 0.835821\n", + "1 0.910448 0.149254\n", + "2 0.082090 0.014925" + ] + }, + "execution_count": 69, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "X_BP = pd.cut(diabetes[\"BP\"],bins=3,labels = [\"Low\", \"Medium\", \"High\"]) \n", + "X_BP=X_BP.map({'Low': 0, 'Medium': 1,'High' :2})\n", + "diabetes['BP_cat'] = X_BP\n", + "\n", + "X_insulin = pd.cut(diabetes[\"insulin\"],bins=3,labels = [\"Low\", \"Medium\", \"High\"])\n", + "X_insulin=X_insulin.map({'Low': 0, 'Medium': 1,'High' :2})\n", + "diabetes['insulin_cat'] = X_insulin\n", + "\n", + "X_BMI = pd.cut(diabetes[\"BMI\"],bins=3,labels = [\"Low\", \"Medium\", \"High\"])\n", + "X_BMI=X_BMI.map({'Low': 0, 'Medium': 1,'High' :2})\n", + "diabetes['BMI_cat'] = X_BMI\n", + "\n", + "X_Pedigree = pd.cut(diabetes[\"Pedigree\"],bins=3,labels = [\"Low\", \"Medium\", \"High\"])\n", + "X_Pedigree=X_Pedigree.map({'Low': 0, 'Medium': 1,'High' :2})\n", + "diabetes['Pedigree_cat'] = X_Pedigree\n", + "\n", + "tab1 = pd.crosstab(diabetes[\"BMI_cat\"], diabetes[\"IsDiabetic\"])\n", + "print(tab1)\n", + "tab2 = pd.crosstab(diabetes[\"Pedigree_cat\"],diabetes[\"IsDiabetic\"])\n", + "print(tab2)\n", + "ratio1 = pd.Series([2/268, 244/268, 22/268]) \n", + "tab1[\"Ratio of diabetics by BMI\"]=ratio1\n", + "print(tab1)\n", + "ratio2 = pd.Series([224/268, 40/268, 4/268])\n", + "tab2[\"Ratio of diabetics by Pedigree\"] = ratio2\n", + "print(tab2)\n", + "ratio_df = pd.concat([tab1[\"Ratio of diabetics by BMI\"],tab2[\"Ratio of diabetics by Pedigree\"]], axis = 1)\n", + "\n", + "ratio_df" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "\n", + "__4. Now consider the original dataset again, instead of generalizing the NAN values with the mean of the feature we will try assigning values to NANs based on some hypothesis. For example for age we assume that the relation between BMI and BP of people is a reflection of the age group.We can have 9 types of BMI and BP relations and our aim is to find the median age of each of that group:__\n", + "\n", + "Your Age guess matrix will look like this: \n", + "\n", + "| BMI | 0 | 1 | 2 |\n", + "|-----|-------------|------------- |----- |\n", + "| BP | | | |\n", + "| 0 | a00 | a01 | a02 |\n", + "| 1 | a10 | a11 | a12 |\n", + "| 2 | a20 | a21 | a22 |\n", + "\n", + "\n", + "__Create a guess_matrix for NaN values of *'Age'* ( using 'BMI' and 'BP') and *'glucoseLevel'* (using 'BP' and 'Pedigree') for the given dataset and assign values accordingly to the NaNs in 'Age' or *'glucoseLevel'* .__\n", + "\n", + "\n", + "Refer to how we guessed age in the titanic notebook in the class.\n", + "\n" + ] + }, + { + "cell_type": "code", + "execution_count": 70, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + " TimesPregnant glucoseLevel BP insulin BMI Pedigree Age IsDiabetic\n", + "0 6 148.0 72 0 33.6 0.627 50.0 1\n", + "1 1 NaN 66 0 26.6 0.351 31.0 0\n", + "2 8 183.0 64 0 23.3 0.672 NaN 1\n", + "3 1 NaN 66 94 28.1 0.167 21.0 0\n", + "4 0 137.0 40 168 43.1 2.288 33.0 1\n", + "\n", + " TimesPregnant 0\n", + "glucoseLevel 34\n", + "BP 0\n", + "insulin 0\n", + "BMI 0\n", + "Pedigree 0\n", + "Age 33\n", + "IsDiabetic 0\n", + "dtype: int64\n", + "\n", + " [[0 0 0]\n", + " [0 0 0]\n", + " [0 0 0]]\n", + "Guess_Age table:\n", + " [[24 29 33]\n", + " [25 29 32]\n", + " [55 37 31]]\n", + "\n", + "Assigning age values to NAN age values in the dataset...\n", + "\n", + "\n", + " [[0 0 0]\n", + " [0 0 0]\n", + " [0 0 0]]\n", + "Guess_Glucose table:\n", + " [[115 112 133]\n", + " [127 115 129]\n", + " [137 149 159]]\n", + "\n", + "Assigning glucose values to NAN age values in the dataset...\n", + "\n" + ] + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
TimesPregnantglucoseLevelBPinsulinBMIPedigreeAgeIsDiabeticBP_catBMI_catPedigree_catinsulin_cat
0614872033.60.6275011100
1111266026.60.3513101100
2818364023.30.6722911100
31112669428.10.1672101100
401374016843.12.2883310120
\n", + "
" + ], + "text/plain": [ + " TimesPregnant glucoseLevel BP insulin BMI Pedigree Age IsDiabetic \\\n", + "0 6 148 72 0 33.6 0.627 50 1 \n", + "1 1 112 66 0 26.6 0.351 31 0 \n", + "2 8 183 64 0 23.3 0.672 29 1 \n", + "3 1 112 66 94 28.1 0.167 21 0 \n", + "4 0 137 40 168 43.1 2.288 33 1 \n", + "\n", + " BP_cat BMI_cat Pedigree_cat insulin_cat \n", + "0 1 1 0 0 \n", + "1 1 1 0 0 \n", + "2 1 1 0 0 \n", + "3 1 1 0 0 \n", + "4 0 1 2 0 " + ] + }, + "execution_count": 70, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "# Reading the data as a new file\n", + "diabetes2 = pd.read_csv(\"diabetesdata.csv\")\n", + "print(diabetes2.head())\n", + "print(\"\\n\",diabetes2.isnull().sum())\n", + "\n", + "# Converting features to categorical variables\n", + "X_BP = pd.cut(diabetes2[\"BP\"],bins=3,labels = [\"Low\", \"Medium\", \"High\"]) \n", + "X_BP=X_BP.map({'Low': 0, 'Medium': 1,'High' :2})\n", + "diabetes2['BP_cat'] = X_BP\n", + "\n", + "X_BMI = pd.cut(diabetes2[\"BMI\"],bins=3,labels = [\"Low\", \"Medium\", \"High\"])\n", + "X_BMI=X_BMI.map({'Low': 0, 'Medium': 1,'High' :2})\n", + "diabetes2['BMI_cat'] = X_BMI\n", + "\n", + "X_Pedigree = pd.cut(diabetes2[\"Pedigree\"],bins=3,labels = [\"Low\", \"Medium\", \"High\"])\n", + "X_Pedigree=X_Pedigree.map({'Low': 0, 'Medium': 1,'High' :2})\n", + "diabetes2['Pedigree_cat'] = X_Pedigree\n", + "\n", + "X_insulin = pd.cut(diabetes2[\"insulin\"],bins=3,labels = [\"Low\", \"Medium\", \"High\"])\n", + "X_insulin=X_insulin.map({'Low': 0, 'Medium': 1,'High' :2})\n", + "diabetes2['insulin_cat'] = X_insulin\n", + "\n", + "# Initiating our age guess table\n", + "guess_ages = np.zeros((3,3),dtype=int)\n", + "print(\"\\n\",guess_ages)\n", + "\n", + "# Forming the age guess table and modifying the diabetes2 dataframe to fill median values\n", + "for i in range(0, 3):\n", + " for j in range(0,3):\n", + " guess_df = diabetes2[(diabetes2['BP_cat'] == i) \\\n", + " &(diabetes2['BMI_cat'] == j)]['Age'].dropna()\n", + "\n", + " # Extract the median age for this group\n", + " # (less sensitive) to outliers\n", + " age_guess = guess_df.median()\n", + " \n", + " # Convert random age float to int\n", + " guess_ages[i,j] = int(age_guess)\n", + " \n", + " \n", + "print('Guess_Age table:\\n',guess_ages)\n", + "print ('\\nAssigning age values to NAN age values in the dataset...')\n", + " \n", + "for i in range(0, 3):\n", + " for j in range(0, 3):\n", + " diabetes2.loc[ (diabetes2.Age.isnull()) & (diabetes2.BP_cat == i) \\\n", + " & (diabetes.BMI_cat == j),'Age'] = guess_ages[i,j]\n", + " \n", + "\n", + "diabetes2['Age'] = diabetes2['Age'].astype(int)\n", + "print()\n", + "\n", + "# Initiating our glucose guess table\n", + "guess_glucose = np.zeros((3,3),dtype=int)\n", + "print(\"\\n\",guess_glucose)\n", + "\n", + "# Forming the glucose guess table and modifying the diabetes2 dataframe to fill median values\n", + "for i in range(0, 3):\n", + " for j in range(0,3):\n", + " guess_df2 = diabetes2[(diabetes2['Pedigree_cat'] == i) \\\n", + " &(diabetes2['BP_cat'] == j)]['glucoseLevel'].dropna()\n", + "\n", + " # Extract the median age for this group\n", + " # (less sensitive) to outliers\n", + " glucose_guess = guess_df2.median()\n", + " \n", + " # Convert random age float to int\n", + " guess_glucose[i,j] = int(glucose_guess)\n", + " \n", + " \n", + "print('Guess_Glucose table:\\n',guess_glucose)\n", + "print ('\\nAssigning glucose values to NAN age values in the dataset...')\n", + " \n", + "for i in range(0, 3):\n", + " for j in range(0, 3):\n", + " diabetes2.loc[ (diabetes2.glucoseLevel.isnull()) & (diabetes2.Pedigree_cat == i) \\\n", + " & (diabetes.BP_cat == j),'glucoseLevel'] = guess_glucose[i,j]\n", + " \n", + "\n", + "diabetes2['glucoseLevel'] = diabetes2['glucoseLevel'].astype(int)\n", + "print()\n", + "diabetes2.head()" + ] + }, + { + "cell_type": "code", + "execution_count": 71, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The guess matrix for age as a dataframe is shown below:\n", + "\n", + " BMI_cat \n", + " 0 1 2\n", + "BP_cat 0 24 29 33\n", + " 1 25 29 32\n", + " 2 55 37 31\n", + "The guess matrix for glucose as a dataframe is shown below:\n", + "\n" + ] + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
BP_cat
012
Pedigree_cat0115112133
1127115129
2137149159
\n", + "
" + ], + "text/plain": [ + " BP_cat \n", + " 0 1 2\n", + "Pedigree_cat 0 115 112 133\n", + " 1 127 115 129\n", + " 2 137 149 159" + ] + }, + "execution_count": 71, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "age_df = pd.DataFrame(guess_ages)\n", + "\n", + "columns = [(\"BMI_cat\",0),(\"BMI_cat\",1),(\"BMI_cat\",2)]\n", + "age_df.columns = pd.MultiIndex.from_tuples(columns)\n", + "\n", + "index = [(\"BP_cat\",0),(\"BP_cat\",1),(\"BP_cat\",2)]\n", + "age_df.index = pd.MultiIndex.from_tuples(index)\n", + "print(\"The guess matrix for age as a dataframe is shown below:\\n\")\n", + "print(age_df)\n", + "\n", + "\n", + "glucose_df = pd.DataFrame(guess_glucose)\n", + "\n", + "columns2 = [(\"BP_cat\",0),(\"BP_cat\",1),(\"BP_cat\",2)]\n", + "glucose_df.columns = pd.MultiIndex.from_tuples(columns2)\n", + "\n", + "index2 = [(\"Pedigree_cat\",0),(\"Pedigree_cat\",1),(\"Pedigree_cat\",2)]\n", + "glucose_df.index = pd.MultiIndex.from_tuples(index2)\n", + "print(\"The guess matrix for glucose as a dataframe is shown below:\\n\")\n", + "glucose_df\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "\n", + "\n", + "__5. Now, convert 'glucoseLevel' and 'Age' features also to categorical variables of 5 categories each.__\n", + "\n", + "__Use this dataset (with all features in categorical form) to train perceptron, logistic regression and random forest models using 20% test split. Report training and test accuracies.__\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "code", + "execution_count": 72, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
TimesPregnantIsDiabeticBP_catBMI_catPedigree_catinsulin_catglucoseLevel_catAge_cat
061110032
110110020
281110040
310110020
401012030
\n", + "
" + ], + "text/plain": [ + " TimesPregnant IsDiabetic BP_cat BMI_cat Pedigree_cat insulin_cat \\\n", + "0 6 1 1 1 0 0 \n", + "1 1 0 1 1 0 0 \n", + "2 8 1 1 1 0 0 \n", + "3 1 0 1 1 0 0 \n", + "4 0 1 0 1 2 0 \n", + "\n", + " glucoseLevel_cat Age_cat \n", + "0 3 2 \n", + "1 2 0 \n", + "2 4 0 \n", + "3 2 0 \n", + "4 3 0 " + ] + }, + "execution_count": 72, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "\n", + "# Converting glucose and age into categorical variables of 5 categories each\n", + "X_glucose = pd.cut(diabetes2[\"glucoseLevel\"],bins=5,labels = [\"Lowest\", \"Lower\", \"Medium\", \"Higher\", \"Highest\"])\n", + "X_glucose=X_glucose.map({'Lowest': 0, 'Lower': 1,'Medium' :2, 'Higher':3, 'Highest':4})\n", + "diabetes2['glucoseLevel_cat'] = X_glucose\n", + "\n", + "X_age = pd.cut(diabetes2[\"Age\"],bins=5,labels = [\"Lowest\", \"Lower\", \"Medium\", \"Higher\", \"Highest\"])\n", + "X_age=X_age.map({'Lowest': 0, 'Lower': 1,'Medium' :2, 'Higher':3, 'Highest':4})\n", + "diabetes2['Age_cat'] = X_age\n", + "\n", + "\n", + "diabetes2.drop(\"glucoseLevel\",axis=1, inplace=True)\n", + "diabetes2.drop(\"BP\",axis=1, inplace=True)\n", + "diabetes2.drop(\"insulin\",axis=1, inplace=True)\n", + "diabetes2.drop(\"BMI\",axis=1, inplace=True)\n", + "diabetes2.drop(\"Pedigree\",axis=1, inplace=True)\n", + "diabetes2.drop(\"Age\",axis=1, inplace=True)\n", + "\n", + "diabetes2.head()\n", + "\n" + ] + }, + { + "cell_type": "code", + "execution_count": 73, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + " TimesPregnant BP_cat BMI_cat Pedigree_cat insulin_cat \\\n", + "0 6 1 1 0 0 \n", + "1 1 1 1 0 0 \n", + "2 8 1 1 0 0 \n", + "3 1 1 1 0 0 \n", + "4 0 0 1 2 0 \n", + "\n", + " glucoseLevel_cat Age_cat \n", + "0 3 2 \n", + "1 2 0 \n", + "2 4 0 \n", + "3 2 0 \n", + "4 3 0 \n", + "\n", + "\n", + " 0 1\n", + "1 0\n", + "2 1\n", + "3 0\n", + "4 1\n", + "Name: IsDiabetic, dtype: int64\n", + "Number of samples in training data: 614\n", + "Number of samples in validation data: 154\n", + "\n", + " Use this dataset (with all features in categorical form) to train perceptron,\n", + "logistic regression and random forest models using 20% test split. Report training and test accuracies..\n", + "\n", + " Training accuracy for logistic regression: 0.768729641694\n", + "Test accuracy for logistic regression: 0.714285714286\n", + "\n", + " Training accuracy for perceptron: 0.711726384365\n", + "Test accuracy for perceptron: 0.701298701299\n", + "\n", + " Training accuracy for Random Forest: 0.899022801303\n", + "Test accuracy for Random Forest: 0.655844155844\n" + ] + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
TimesPregnantIsDiabeticBP_catBMI_catPedigree_catinsulin_catglucoseLevel_catAge_cat
061110032
110110020
281110040
310110020
401012030
\n", + "
" + ], + "text/plain": [ + " TimesPregnant IsDiabetic BP_cat BMI_cat Pedigree_cat insulin_cat \\\n", + "0 6 1 1 1 0 0 \n", + "1 1 0 1 1 0 0 \n", + "2 8 1 1 1 0 0 \n", + "3 1 0 1 1 0 0 \n", + "4 0 1 0 1 2 0 \n", + "\n", + " glucoseLevel_cat Age_cat \n", + "0 3 2 \n", + "1 2 0 \n", + "2 4 0 \n", + "3 2 0 \n", + "4 3 0 " + ] + }, + "execution_count": 73, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "# Applying various ML methods\n", + "\n", + "# Getting features and response from the data as 2 separate dataframes\n", + "X=diabetes2.loc[:,[\"TimesPregnant\",\"BP_cat\",\"BMI_cat\", \"Pedigree_cat\",\"insulin_cat\",\"glucoseLevel_cat\",\"Age_cat\"]]\n", + "print(X.head())\n", + "\n", + "Y=diabetes2['IsDiabetic']\n", + "print(\"\\n\\n\",Y.head())\n", + "\n", + "# Splitting the data set\n", + "x_train, x_test, y_train, y_test = train_test_split(X, Y, test_size=0.20, random_state=100)\n", + "print('Number of samples in training data:',len(x_train))\n", + "print('Number of samples in validation data:',len(x_test))\n", + "\n", + "print('''\\n Use this dataset (with all features in categorical form) to train perceptron,\n", + "logistic regression and random forest models using 20% test split. Report training and test accuracies..''')\n", + "\n", + "\n", + "\n", + "# Logistic regression\n", + "logreg = LogisticRegression() \n", + "logreg.fit(x_train, y_train) \n", + "\n", + "# Training accuracy\n", + "training_accuracy_logistic=logreg.score(x_train,y_train)\n", + "print ('\\n Training accuracy for logistic regression:',training_accuracy_logistic)\n", + "\n", + "# Test accuracy\n", + "test_accuracy_logistic=logreg.score(x_test,y_test)\n", + "print('Test accuracy for logistic regression: ', test_accuracy_logistic)\n", + "\n", + "\n", + "# Perceptron\n", + "perceptron = Perceptron()\n", + "perceptron.fit(x_train, y_train)\n", + "\n", + "# Training accuracy\n", + "training_accuracy_perceptron=perceptron.score(x_train,y_train)\n", + "print ('\\n Training accuracy for perceptron:',training_accuracy_perceptron)\n", + "\n", + "# Test accuracy\n", + "test_accuracy_perceptron=perceptron.score(x_test,y_test)\n", + "print('Test accuracy for perceptron: ', test_accuracy_perceptron)\n", + "\n", + "\n", + "\n", + "# Random Forest\n", + "random_forest = RandomForestClassifier(n_estimators=1000)\n", + "random_forest.fit(x_train, y_train)\n", + "\n", + "# Training accuracy\n", + "training_accuracy_rf=random_forest.score(x_train,y_train)\n", + "print ('\\n Training accuracy for Random Forest:',training_accuracy_rf)\n", + "\n", + "# Test accuracy\n", + "test_accuracy_rf=random_forest.score(x_test,y_test)\n", + "print('Test accuracy for Random Forest: ', test_accuracy_rf)\n", + "\n", + "diabetes2.head()" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Part 3\n", + "\n", + "1. __Derive the expression for the optimal parameters in the linear regression equation, i.e. solve the normal equation for Ordinary Least Squares for the case of Simple Linear Regression, when we only have one input and one output__\n", + "\n", + "Given a set of _n_ points $(X_i,Y_i)$ where $Yi$ is dependent on $Xi$ by a linear relation, find the best-fit line,$$Z_i = {aX_i + b}$$ that minimizes the __sum of squared errors in Y__,i.e: $$minimize \\sum_{i}{(Y_i- Z_i)^2}$$\n", + "__i. __ Show that $$ intercept \\quad b = \\overline{Y}- a.\\overline{X}\\quad and \\quad slope \\quad a= \\frac{\\sum_{i}(X_i- \\overline{X})\u0001(Y_i- \\overline{Y})^2}{ \\sum_{i}(X_i- \\overline{X})}$$\n", + "\n", + "\n", + " where $\\overline{X}$ and $\\overline{Y}$ are the averages of the X values and the Y values, respectively.\n", + " \n", + "__ ii. __Show that slope _a_ can be written as $ a = r.(S_y /S_x)$ where $S_y$ = the standard deviation of the Y values and $S_x$= the standard deviation of the X values and _r_ is the correlation coefficient.\n", + "\n", + "##### Please try to write a nice LateXed version of your answer, and do the derivations of the expressions as nicely as possible\n", + "\n", + "\n", + "_____" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "\n", + "i. For least squares regression, the sum of the squares of the errors is minimized. Using calculus, we can find equations for the parameters a and b that minimize the sum of the squared errors, S.\n", + "\n", + "$\\min S = \\displaystyle\\min \\sum\\limits_{i=1}^n \\left(e_i \\right)^2= \\min \\sum \\left(Y_i - Z_i \\right)^2= \\min \\sum \\left(Y_i - b - aX_i\\right)^2$\n", + "\n", + "We want to find b and a that minimize the sum, S. We start by taking the partial derivative of S with respect to b and setting it to zero: \n", + "\n", + "$\\displaystyle\\frac{\\partial{S}}{\\partial{b}} = -2 \\sum \\left(Y_i - b - aX_i\\right) = 0$\n", + "\n", + "$=>\\displaystyle\\sum \\left(Y_i - b - aX_i\\right) = 0$\n", + "\n", + "$=>\\displaystyle\\sum b = \\sum Y_i -a \\sum X_i$\n", + "\n", + "$=>\\displaystyle nb = \\sum Y_i -a\\sum X_i$\n", + "\n", + "$=>\\displaystyle b = \\frac{1}{n}\\sum Y_i - a \\frac{1}{n}\\sum X_i $ \n", + "\n", + "Let's call the above as equation 1\n", + "\n", + "$=>\\displaystyle b = \\bar Y - a . \\bar X $\n", + "\n", + "where $\\bar Y$ and $\\bar X$ are the averages of the X values and Y values respectively. This completes the derivation of the\n", + "intercept.\n", + "\n", + "Before taking partial derivative of S with respect to a, substitute the previous result for b in the equation for S\n", + "\n", + "$\\displaystyle \\min S = \\min \\sum \\left[Y_i-\\left(\\bar Y-a\\bar X \\right)-aX_i\\right]^{2}=\\min \\sum \\left[\\left(Y_i-\\bar Y\\right)-a\\left(X_i-\\bar X\\right)\\right]^{2}$\n", + "\n", + "Now, taking the partial derivative of S with respect to a and setting it to zero:\n", + "\n", + "$\\displaystyle \\frac{\\partial{S}}{\\partial{b}} = -2\\sum \\left[\\left(Y_i-\\bar Y\\right)-a\\left(X_i-\\bar X\\right)\\right]\\left(X_i-{\\bar X}\\right)=0$\n", + "\n", + "$=>\\displaystyle \\sum \\left(Y_i-\\bar Y\\right)\\left(X_i-\\bar X\\right)-a\\sum \\left(X_i-\\bar X\\right)^{2}=0$\n", + "\n", + "$=>\\displaystyle a = \\frac {\\sum \\left(X_i-\\bar X\\right)\\left(Y_i-\\bar Y\\right)}{\\sum \\left(X_i-\\bar X\\right)^{2}}$\n", + "\n", + "This completes the derivation of the slope.\n", + "\n", + "ii. We can divide the numerator and the denominator in the above equation obtained for slope by n to get the following equation:\n", + "\n", + "$=>\\displaystyle a = \\frac {\\sum \\left(X_i-\\bar X\\right)\\left(Y_i-\\bar Y\\right)}{\\sum \\left(X_i-\\bar X\\right)^{2}}$\n", + "\n", + "$=>\\displaystyle a = \\frac {\\operatorname {Cov} (X,Y)}{\\operatorname {Var} (X)}$\n", + "\n", + "We know that the covariance can be written as $ r . S_x . S_y$ , where r is the correlation coefficient and $S_x$ and $S_y$ are the standard deviation of X and Y values respectively. We also know that Var(X) = $(S_x)^2$. Substituting this in the above equation for the slope a, we get:\n", + "\n", + "$=>\\displaystyle a = \\frac {\\operatorname {Cov} (X,Y)}{\\operatorname {Var} (X)}$\n", + "\n", + "$=>\\displaystyle a = \\frac {r . S_x . S_y}{(S_x)^2}$\n", + "\n", + "$=>\\displaystyle a = \\frac {r.S_y}{S_x}$\n", + "\n", + "$=>\\displaystyle a = r.(S_y/S_x)$" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Two Extra Credit Points: Fun with Webscraping & Text manipulation\n", + "### (Mandatory for Grad students!)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "
`NOTE:` **If you are a Graduate Section student (enrolled in 290), the Extra Credit Questions are mandatory.**
" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## 1. Statistics in Presidential Debates\n", + "\n", + "Your first task is to scrape Presidential Debates from the Commission of Presidential Debates website: http://www.debates.org/index.php?page=debate-transcripts.\n", + "\n", + "To do this, you are not allowed to manually look up the URLs that you need, instead you have to scrape them. The root url to be scraped is the one listed above, namely: http://www.presidency.ucsb.edu/debates.php\n", + "\n", + "\n", + "1. By using `requests` and `BeautifulSoup` find all the links / URLs on the website that links to transcriptions of **First Presidential Debates** from the years [2012, 2008, 2004, 2000, 1996, 1988, 1984, 1976, 1960]. In total you should find 9 links / URLs tat fulfill this criteria.\n", + "2. When you have a list of the URLs your task is to create a Data Frame with some statistics (see example of output below):\n", + " 1. Scrape the title of each link and use that as the column name in your Data Frame. \n", + " 2. Count how long the transcript of the debate is (as in the number of characters in transcription string). Feel free to include `\\` characters in your count, but remove any breakline characters, i.e. `\\n`. You will get credit if your count is +/- 10% from our result.\n", + " 3. Count how many times the word **war** was used in the different debates. Note that you have to convert the text in a smart way (to not count the word **warranty** for example, but counting **war.**, **war!**, **war,** or **War** etc.\n", + " 4. Also scrape the most common used word in the debate, and write how many times it was used. Note that you have to use the same strategy as in 3 in order to do this.\n", + " \n", + "**Tips:**\n", + "\n", + "___\n", + "\n", + "In order to solve question 3 and 4 above it can be useful to work with Regular Expressions and explore methods on strings like `.strip(), .replace(), .find(), .count(), .lower()` etc. Both are very powerful tools to do string processing in Python. To count common words for example I used a `Counter` object and a Regular expression pattern for only words, see example:\n", + "\n", + "```python\n", + " from collections import Counter\n", + " import re\n", + "\n", + " counts = Counter(re.findall(r\"[\\w']+\", text.lower()))\n", + "```\n", + "\n", + "Read more about Regular Expressions here: https://docs.python.org/3/howto/regex.html\n", + " \n", + " \n", + "**Example output of all of the answers to EC Question 1:**\n", + "\n", + "\n", + "![pres_stats](https://github.com/ikhlaqsidhu/data-x/raw/master/x-archive/misc/hw2_imgs_spring2018/president_stats.png)\n", + "\n", + "\n", + "\n", + "\n", + "----\n", + "\n", + ".\n", + "\n", + "\n" + ] + }, + { + "cell_type": "code", + "execution_count": 77, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "import requests\n", + "import bs4 as bs\n", + "from collections import Counter\n", + "import re" + ] + }, + { + "cell_type": "code", + "execution_count": 92, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "urls are:\n", + " ['http://www.debates.org/index.php?page=october-3-2012-debate-transcript', 'http://www.debates.org/index.php?page=2008-debate-transcript', 'http://www.debates.org/index.php?page=september-30-2004-debate-transcript', 'http://www.debates.org/index.php?page=october-3-2000-transcript', 'http://www.debates.org/index.php?page=october-6-1996-debate-transcript', 'http://www.debates.org/index.php?page=september-25-1988-debate-transcript', 'http://www.debates.org/index.php?page=october-7-1984-debate-transcript', 'http://www.debates.org/index.php?page=september-23-1976-debate-transcript', 'http://www.debates.org/index.php?page=september-26-1960-debate-transcript']\n", + "\n", + "titles: \n", + " ['October 3, 2012: The First Obama-Romney Presidential Debate', 'September 26, 2008: The First McCain-Obama Presidential Debate', 'September 30, 2004: The First Bush-Kerry Presidential Debate', 'October 3, 2000: The First Gore-Bush Presidential Debate', 'October 6, 1996: The First Clinton-Dole Presidential Debate', 'September 25, 1988: The First Bush-Dukakis Presidential Debate', 'October 7, 1984: The First Reagan-Mondale Presidential Debate', 'September 23, 1976: The First Carter-Ford Presidential Debate', 'September 26, 1960: The First Kennedy-Nixon Presidential Debate']\n" + ] + } + ], + "source": [ + "# PART A\n", + "\n", + "source = requests.get('http://www.debates.org/index.php?page=debate-transcripts').content\n", + "soup = bs.BeautifulSoup(source,features='html.parser')\n", + "#print(soup.prettify())\n", + "#print(soup.a)\n", + "soup.a.get('href')\n", + "\n", + "array = ['First', 'Presidential', 'Debate']\n", + "url=[]\n", + "title=[]\n", + "links = soup.find_all('a')\n", + "\n", + "for l in links:\n", + " if all(x in l.text for x in array):\n", + " url.append(l.get('href'))\n", + " title.append(l.text)\n", + "print('urls are:\\n',url)\n", + "print('\\ntitles: \\n',title)" + ] + }, + { + "cell_type": "code", + "execution_count": 95, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[, , , , , , , , ]\n" + ] + } + ], + "source": [ + "# PART 2A\n", + "\n", + "source=[]\n", + "for i in range(len(url)):\n", + " source.append(requests.get(url[i]))\n", + "print(source) " + ] + }, + { + "cell_type": "code", + "execution_count": 97, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[95108, 182428, 82726, 91071, 93095, 87736, 87000, 80837, 61013]\n", + "[3, 44, 64, 11, 14, 8, 2, 7, 3]\n", + "['the', 'the', 'the', 'the', 'the', 'the', 'the', 'the', 'the']\n", + "[757, 1470, 857, 919, 876, 804, 867, 857, 779]\n" + ] + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
October 3, 2012: The First Obama-Romney Presidential DebateSeptember 26, 2008: The First McCain-Obama Presidential DebateSeptember 30, 2004: The First Bush-Kerry Presidential DebateOctober 3, 2000: The First Gore-Bush Presidential DebateOctober 6, 1996: The First Clinton-Dole Presidential DebateSeptember 25, 1988: The First Bush-Dukakis Presidential DebateOctober 7, 1984: The First Reagan-Mondale Presidential DebateSeptember 23, 1976: The First Carter-Ford Presidential DebateSeptember 26, 1960: The First Kennedy-Nixon Presidential Debate
Debate char length9510818242882726910719309587736870008083761013
war_count3446411148273
most_common_wthethethethethethethethethe
most_common_w_count7571470857919876804867857779
\n", + "
" + ], + "text/plain": [ + " October 3, 2012: The First Obama-Romney Presidential Debate \\\n", + "Debate char length 95108 \n", + "war_count 3 \n", + "most_common_w the \n", + "most_common_w_count 757 \n", + "\n", + " September 26, 2008: The First McCain-Obama Presidential Debate \\\n", + "Debate char length 182428 \n", + "war_count 44 \n", + "most_common_w the \n", + "most_common_w_count 1470 \n", + "\n", + " September 30, 2004: The First Bush-Kerry Presidential Debate \\\n", + "Debate char length 82726 \n", + "war_count 64 \n", + "most_common_w the \n", + "most_common_w_count 857 \n", + "\n", + " October 3, 2000: The First Gore-Bush Presidential Debate \\\n", + "Debate char length 91071 \n", + "war_count 11 \n", + "most_common_w the \n", + "most_common_w_count 919 \n", + "\n", + " October 6, 1996: The First Clinton-Dole Presidential Debate \\\n", + "Debate char length 93095 \n", + "war_count 14 \n", + "most_common_w the \n", + "most_common_w_count 876 \n", + "\n", + " September 25, 1988: The First Bush-Dukakis Presidential Debate \\\n", + "Debate char length 87736 \n", + "war_count 8 \n", + "most_common_w the \n", + "most_common_w_count 804 \n", + "\n", + " October 7, 1984: The First Reagan-Mondale Presidential Debate \\\n", + "Debate char length 87000 \n", + "war_count 2 \n", + "most_common_w the \n", + "most_common_w_count 867 \n", + "\n", + " September 23, 1976: The First Carter-Ford Presidential Debate \\\n", + "Debate char length 80837 \n", + "war_count 7 \n", + "most_common_w the \n", + "most_common_w_count 857 \n", + "\n", + " September 26, 1960: The First Kennedy-Nixon Presidential Debate \n", + "Debate char length 61013 \n", + "war_count 3 \n", + "most_common_w the \n", + "most_common_w_count 779 " + ] + }, + "execution_count": 97, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "# PART 2B\n", + "\n", + "soups = []\n", + "content = []\n", + "character_length = []\n", + "war_count = []\n", + "counts = []\n", + "word = []\n", + "frequency = []\n", + "common_count = []\n", + "common_word = []\n", + "\n", + "for i in range(len(url)):\n", + " soups.append(bs.BeautifulSoup(source[i].content, features='html.parser')) \n", + " #print(\"The transcript of\", title[i], \"debate is as follows\")\n", + " content.append(soups[i].find(id='content-sm').text)\n", + " #print(content[i])\n", + " character_length.append(len(content[i]))\n", + " # Part 2C counting the word war in the text\n", + " war_count.append(sum(1 for _ in re.finditer(r'\\b%s\\b' % re.escape(\"war\"), content[i].lower())))\n", + " # Part 2D counting the most common word and its quantity\n", + " counts = Counter(re.findall(r\"[\\w']+\", content[i].lower()))\n", + " word,frequency = counts.most_common(1)[0]\n", + " common_word.append(word)\n", + " common_count.append(frequency)\n", + " \n", + "\n", + "print(character_length)\n", + "print(war_count)\n", + "print(common_word)\n", + "print(common_count)\n", + "\n", + "# making the final data frame\n", + "indices = [\"Debate char length\",\"war_count\",\"most_common_w\",\"most_common_w_count\"]\n", + "df_final = pd.DataFrame([character_length, war_count, common_word, common_count],columns=title,index=indices)\n", + "df_final\n", + "# number of years for reference\n", + "#[2012, 2008, 2004, 2000, 1996, 1988, 1984, 1976, 1960]" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + " \n", + "## 2. Download and read in specific line from many data sets\n", + "\n", + "Scrape the first 27 data sets from this URL http://people.sc.fsu.edu/~jburkardt/datasets/regression/ (i.e.`x01.txt` - `x27.txt`). Then, save the 5th line in each data set, this should be the name of the data set author (get rid of the `#` symbol, the white spaces and the comma at the end). \n", + "\n", + "Count how many times (with a Python function) each author is the reference for one of the 27 data sets. Showcase your results, sorted, with the most common author name first and how many times he appeared in data sets. Use a Pandas DataFrame to show your results, see example.\n", + "\n", + "**Example output of the answer EC Question 2:**\n", + "\n", + "![author_stats](https://github.com/ikhlaqsidhu/data-x/raw/master/x-archive/misc/hw2_imgs_spring2018/data_authors.png)\n" + ] + }, + { + "cell_type": "code", + "execution_count": 98, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "\n", + "None\n", + "\n" + ] + } + ], + "source": [ + "source2 = requests.get(\" http://people.sc.fsu.edu/~jburkardt/datasets/regression/ \") \n", + "print(source2)\n", + "\n", + "soup2 = bs.BeautifulSoup(source2.content, features='html.parser') \n", + "print(type(soup2))\n", + "print(soup2.a)\n", + "print()" + ] + }, + { + "cell_type": "code", + "execution_count": 99, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n" + ] + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
# of occurence
names
Helmut Spaeth16
S Chatterjee3
D G Kleinbaum and L L Kupper2
R J Freund and P D Minton2
S C Narula2
K A Brownlee1
S Chatterjee and B Price1
\n", + "
" + ], + "text/plain": [ + " # of occurence\n", + "names \n", + " Helmut Spaeth 16\n", + " S Chatterjee 3\n", + " D G Kleinbaum and L L Kupper 2\n", + " R J Freund and P D Minton 2\n", + " S C Narula 2\n", + " K A Brownlee 1\n", + " S Chatterjee and B Price 1" + ] + }, + "execution_count": 99, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "# KR code\n", + "source3 = requests.get(\"http://people.sc.fsu.edu/~jburkardt/datasets/regression/\",) \n", + "soup3 = bs.BeautifulSoup(source3.content, features='html.parser') \n", + "print(source3) \n", + "# If then the website has been downloaded succesfully\n", + "\n", + "links3 = soup3.find('table').find_all('a')\n", + "urls3 = ['http://people.sc.fsu.edu/~jburkardt/datasets/regression/'+l.get('href') for l in links3]\n", + "urls3 = urls3[6:33]\n", + "#urls3\n", + "\n", + "sourc = requests.get(urls3[15],) \n", + "soup3 = bs.BeautifulSoup(sourc.content, features='html.parser') \n", + "content3 = soup3.body\n", + "#content3 = soup3.find('p').text\n", + "chars3 = str(soup3)\n", + "#chars3\n", + "\n", + "cnt = 0\n", + "m=0\n", + "names=[]\n", + "while cnt<5: \n", + " if(chars3[m]=='\\n'):\n", + " cnt+=1\n", + " elif(cnt==4):\n", + " names.append(chars3[m])\n", + " m+=1\n", + "\n", + "#names\n", + "\n", + "names = ''.join(names)\n", + "#names\n", + "\n", + "finallist=[]\n", + "for i in range(len(urls3)):\n", + " lis=[]\n", + " sourc = requests.get(urls3[i],) \n", + " soup3 = bs.BeautifulSoup(sourc.content, features='html.parser') \n", + " content3 = soup3.body\n", + " chars3 = str(soup3)\n", + " cnt = 0\n", + " m=0\n", + " names=[]\n", + " while cnt<5: \n", + " if(chars3[m]=='\\n'):\n", + " cnt+=1\n", + " elif(cnt==4):\n", + " names.append(chars3[m])\n", + " m+=1\n", + " names = ''.join(names)\n", + " finallist.append(names) \n", + " #chars = chars.replace('\\n', '')\n", + " #lis.append(len(chars)) #Adding total word count to the list first\n", + " #warcts = Counter(re.findall(r\"[ ][w][a][r][!?.,]? \", content.lower()))\n", + " #lis.append(len(list(warcts.elements()))) # Adding 'war' word count to the list\n", + " #counts = Counter(re.findall(r\"[\\w']+\", content.lower()))\n", + " #most_common,num_most_common = counts.most_common(1)[0]\n", + " #lis.append(most_common) #Adding most common word\n", + " #lis.append(num_most_common) #Adding most common word count\n", + " #finaldf[title[i]] = lis\n", + "\n", + "# finallist\n", + "\n", + "namesdf = pd.DataFrame(finallist)\n", + "\n", + "namesdf = namesdf.rename(columns = {0:'names'})\n", + "\n", + "# namesdf\n", + "\n", + "namesdf['names']=namesdf.names.str.extract('([A-Za-z ]+)')\n", + "\n", + "ans= pd.DataFrame(namesdf.groupby('names')['names'].count())\n", + "\n", + "#ans.head()\n", + "\n", + "ans = ans.sort_values('names', ascending=0)\n", + "ans = ans.rename(columns = {'names':'# of occurence'})\n", + "\n", + "ans" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.6.3" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/web_scraping.ipynb b/web_scraping.ipynb new file mode 100644 index 0000000..98999ce --- /dev/null +++ b/web_scraping.ipynb @@ -0,0 +1,4522 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "import pandas as pd\n", + "import numpy as np\n", + "import bs4 as bs" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "import requests" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "rbt = requests.get('https://www.bloomberg.com/robots.txt')\n", + "soup=bs.BeautifulSoup(rbt.content,'lxml')" + ] + }, + { + "cell_type": "code", + "execution_count": 46, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "#print(soup.prettify())" + ] + }, + { + "cell_type": "code", + "execution_count": 45, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "source = requests.get('https://www.bloomberg.com/feeds/bpol/sitemap_news.xml').content\n", + "a=bs.BeautifulSoup(source,'xml')\n", + "#print(a.prettify())" + ] + }, + { + "cell_type": "code", + "execution_count": 44, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "news=a.find_all({'news'})" + ] + }, + { + "cell_type": "code", + "execution_count": 42, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "House Passes a Temporary Spending Bill\n" + ] + } + ], + "source": [ + "for news in print(news.title.text)" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "" + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "source = requests.post('https://www.caravanmagazine.in/')\n", + "source" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " PHP Security Audit Script: php_security.php\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
\n", + "
\n", + " \n", + " \"PHP\n", + " \n", + "

\n", + " \n", + " PHP\n", + " \n", + " Security Audit\n", + "

\n", + "
\n", + "
\n", + " \n", + "
\n", + "
\n", + "

\n", + " Script Name\n", + "

\n", + "
\n", + "
\n", + "

\n", + " Description\n", + "

\n", + "

\n", + " This web-accessible script will list security recommendations after scanning available PHP configuration variables and functions for common exploit vectors.\n", + "

\n", + "
\n", + "
\n", + "

\n", + " Download script\n", + "

\n", + "

\n", + " \n", + " Click here\n", + " \n", + " to download this script.\n", + "

\n", + "
\n", + "
\n", + "

\n", + " View Source\n", + "

\n", + "
\n", + " \n", + " \n", + " \n", + " <?php\n", + "
\n", + "
\n", + "
\n", + " \n", + " /**\n", + "
\n", + " *  PHP Security Check Script\n", + "
\n", + " *  http://php-security-audit.com/\n", + "
\n", + " *\n", + "
\n", + " *  This security check script will evaluate the PHP runtime environment\n", + "
\n", + " *  for your configuration to determine whether any improvements could be\n", + "
\n", + " *  made to your configuration.\n", + "
\n", + " *\n", + "
\n", + " * * * * * * *\n", + "
\n", + " *\n", + "
\n", + " *  Revision History\n", + "
\n", + " *\n", + "
\n", + " *  2009-05-08 - 1.0 - Created\n", + "
\n", + " *\n", + "
\n", + " *  2009-06-10 - 1.1 - Classified security levels, added message constants\n", + "
\n", + " *\n", + "
\n", + " *  2009-11-23 - 1.3 - Removed \"PHP_VERSION constant set\" warning\n", + "
\n", + " *\n", + "
\n", + " *                     Note for splFileObject: (disable_classes config\n", + "
\n", + " *                     directive requires lowercase)\n", + "
\n", + " *\n", + "
\n", + " *  2011-07-17 - 1.4 - Contributed by kaotix: Added various tweaks to make\n", + "
\n", + " *                     script more compatible with Windows:\n", + "
\n", + " *\n", + "
\n", + " *                      - Backslashes\n", + "
\n", + " *                      - OS detection\n", + "
\n", + " *                      - User detection\n", + "
\n", + " *\n", + "
\n", + " * * * * * * *\n", + "
\n", + " *\n", + "
\n", + " *  Please freely distribute this script without modification - if any\n", + "
\n", + " *  improvements can be made, visit php-security-audit.com to submit\n", + "
\n", + " *  your recommendation.\n", + "
\n", + " *\n", + "
\n", + " */\n", + "
\n", + "
\n", + "
\n", + " // Application message declarations\n", + "
\n", + "
\n", + " \n", + " define\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'APP_TITLE'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " 'PHP Security Audit'\n", + " \n", + " \n", + " );\n", + "
\n", + "
\n", + " \n", + " define\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'APP_DESCRIPTION'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " 'This audit script checks core PHP configuration, available functions, and available classes to determine potential vulnerabilities and offer configuration suggestions.'\n", + " \n", + " \n", + " );\n", + "
\n", + "
\n", + " \n", + " define\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'APP_INSTRUCTIONS'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " 'If errors are reported which you do not have access to correct (as in the case of a shared hosting account), you may want to contact your hosting provider or system administrator to ensure the security of your system.'\n", + " \n", + " \n", + " );\n", + "
\n", + "
\n", + "
\n", + " \n", + " define\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'APP_LABEL_HOSTNAME'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " 'Server Hostname:'\n", + " \n", + " \n", + " );\n", + "
\n", + "
\n", + " \n", + " define\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'APP_LABEL_OS'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " 'Operating System:'\n", + " \n", + " \n", + " );\n", + "
\n", + "
\n", + " \n", + " define\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'APP_LABEL_USER'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " 'Username:'\n", + " \n", + " \n", + " );\n", + "
\n", + "
\n", + " \n", + " define\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'APP_LABEL_RUN_DATE'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " 'Date Run:'\n", + " \n", + " \n", + " );\n", + "
\n", + "
\n", + "
\n", + " \n", + " define\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'APP_LABEL_COMMON'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " 'Common Exploits'\n", + " \n", + " \n", + " );\n", + "
\n", + "
\n", + " \n", + " define\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'APP_LABEL_SHARED'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " 'Shared Environment Protection'\n", + " \n", + " \n", + " );\n", + "
\n", + "
\n", + " \n", + " define\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'APP_LABEL_PARANOID'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " 'Locked Down Configuration'\n", + " \n", + " \n", + " );\n", + "
\n", + "
\n", + "
\n", + " \n", + " define\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'APP_LABEL_ERROR_FEATURES'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " 'PHP Configuration'\n", + " \n", + " \n", + " );\n", + "
\n", + "
\n", + " \n", + " define\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'APP_DESCRIPTION_ERROR_FEATURES'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " 'Update your <a href=\"http://us2.php.net/configuration.changes\">PHP configuration</a> to correct the following issues:'\n", + " \n", + " \n", + " );\n", + "
\n", + "
\n", + "
\n", + " \n", + " define\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'APP_LABEL_ERROR_FUNCTIONS'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " 'Insecure Functions'\n", + " \n", + " \n", + " );\n", + "
\n", + "
\n", + " \n", + " define\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'APP_DESCRIPTION_ERROR_FUNCTIONS'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " 'Add the following to the <strong class=\"ms\">disable_functions</strong> directive in your <a href=\"http://us2.php.net/configuration.changes\">PHP configuration</a> to reduce your risk exposure:'\n", + " \n", + " \n", + " );\n", + "
\n", + "
\n", + "
\n", + " \n", + " define\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'APP_LABEL_ERROR_CLASSES'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " 'Insecure Classes'\n", + " \n", + " \n", + " );\n", + "
\n", + "
\n", + " \n", + " define\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'APP_DESCRIPTION_ERROR_CLASSES'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " 'Add the following to the <strong class=\"ms\">disable_classes</strong> directive in your <a href=\"http://us2.php.net/configuration.changes\">PHP configuration</a> to reduce your risk exposure:<br />Note: Configuration requires class names in lower case letters - i.e. \"splfileobject\"'\n", + " \n", + " \n", + " );\n", + "
\n", + "
\n", + "
\n", + " \n", + " define\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'APP_LABEL_MESSAGES'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " 'Messages'\n", + " \n", + " \n", + " );\n", + "
\n", + "
\n", + " \n", + " define\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'APP_DESCRIPTION_MESSAGES'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " ''\n", + " \n", + " \n", + " );\n", + "
\n", + "
\n", + "
\n", + "
\n", + " \n", + " // Message declarations\n", + "
\n", + "
\n", + " \n", + " define\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'MSG_BASEDIR'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " 'Your base directory is presently set to $$BASEDIR$$ - PHP scripts will not be able to access the file system outside of this directory.'\n", + " \n", + " \n", + " );\n", + "
\n", + "
\n", + "
\n", + "
\n", + " \n", + " // Error declarations\n", + "
\n", + "
\n", + " \n", + " define\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'ERR_CONFIG_BASEDIR'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " 'Your configuration should be changed to enforce a base directory (i.e. \"/var/www/\") to prevent PHP from accessing other directories on the underlying filesystem.'\n", + " \n", + " \n", + " );\n", + "
\n", + "
\n", + " \n", + " define\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'ERR_CONFIG_BASEDIR_CHDIR'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " 'A base directory is presently set to $$BASEDIR$$ - you should remove this directory entry to ensure that PHP scripts will not be able to access other directories by changing the working directory.'\n", + " \n", + " \n", + " );\n", + "
\n", + "
\n", + " \n", + " define\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'ERR_CONFIG_BASEDIR_SLASH'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " 'A base directory is presently set to $$BASEDIR$$ - you should add a trailing \"/\" to ensure that PHP scripts will not be able to access the file system outside of this directory.'\n", + " \n", + " \n", + " );\n", + "
\n", + "
\n", + " \n", + " define\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'ERR_CONFIG_ERRORS'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " 'Your configuration should be changed to avoid displaying error output when your scripts encounter errors as this information may be useful to a malicious user.'\n", + " \n", + " \n", + " );\n", + "
\n", + "
\n", + " \n", + " define\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'ERR_CONFIG_EXECUTE'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " '(Critical) Your configuration should be changed to restrict PHP from executing commands on the underlying system.'\n", + " \n", + " \n", + " );\n", + "
\n", + "
\n", + " \n", + " define\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'ERR_CONFIG_INCLUDES'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " '(Critical) Your configuration presently allows PHP to include files from remote webservers - this functionality should be disabled and any applications which rely upon remote file includes should be replaced immediately as there exists an extremely high potential for abuse of this feature.'\n", + " \n", + " \n", + " );\n", + "
\n", + "
\n", + " \n", + " define\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'ERR_CONFIG_GLOBALS'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " '(Critical) You must disable register_globals in your PHP configuration to prevent malicious variable manipulation.'\n", + " \n", + " \n", + " );\n", + "
\n", + "
\n", + " \n", + " define\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'ERR_CONFIG_PHPUSER'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " 'PHP is running under the underlying system\\'s \"root\" user account - this creates many possibilities for abuse. '\n", + " \n", + " \n", + " );\n", + "
\n", + "
\n", + " \n", + " define\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'ERR_CONFIG_PROFILE'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " 'Your configuration should be changed to reduce the amount of information a malicious user may gather regarding your PHP configuration.'\n", + " \n", + " \n", + " );\n", + "
\n", + "
\n", + "
\n", + " \n", + " define\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'ERR_FUNCTION_EXECUTE'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " '(Critical) This function should be disabled to prevent PHP from executing commands on the underlying system.'\n", + " \n", + " \n", + " );\n", + "
\n", + "
\n", + " \n", + " define\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'ERR_FUNCTION_DISRUPT'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " 'This function should be disabled to prevent PHP scripts from disrupting other processes.'\n", + " \n", + " \n", + " );\n", + "
\n", + "
\n", + " \n", + " define\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'ERR_FUNCTION_LOGGING'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " 'You should disable this function to avoid the possibility of log file tampering on your system.'\n", + " \n", + " \n", + " );\n", + "
\n", + "
\n", + " \n", + " define\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'ERR_FUNCTION_PROFILE'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " 'This function should be disabled to reduce the amount of information a malicious user may gather regarding your PHP configuration. While this function must be run to generate output, some applications may include this function as part of their feature set.'\n", + " \n", + " \n", + " );\n", + "
\n", + "
\n", + "
\n", + "
\n", + "
\n", + " \n", + " // Warning declarations\n", + "
\n", + "
\n", + " \n", + " define\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'WARN_CONFIG_PHPUSER_WIN'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " 'PHP is running as $$USERNAME$$ - you should ensure that this user is not an administrator on the local system as this creates many possibilites for abuse.'\n", + " \n", + " \n", + " );\n", + "
\n", + "
\n", + " \n", + " define\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'WARN_CONFIG_UPLOAD'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " '(Warning) You may want to change your configuration to prevent PHP from accepting file uploads unless this feature is absolutely necessary.'\n", + " \n", + " \n", + " );\n", + "
\n", + "
\n", + " \n", + " define\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'WARN_FUNCTION_FILES'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " '(Warning) You may want to change your configuration to disable PHP access to the underlying filesystem unless this access is absolutely necessary.'\n", + " \n", + " \n", + " );\n", + "
\n", + "
\n", + "
\n", + " \n", + " // Awaiting implementation (need reliable mechanism for confirmation)\n", + "
\n", + "
\n", + " \n", + " define\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'ERR_VERSION'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " 'Your version of PHP is outdated. Exploitable vulnerabilities may exist in your present PHP installation.'\n", + " \n", + " \n", + " );\n", + "
\n", + "
\n", + " \n", + " define\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'WARN_VERSION'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " '(Warning) Your version of PHP could not be determined. While this greatly reduces the likelihood that your PHP information can be successfully profiled in mounting an attack on your system, it is recommended that you check php.net to ensure that your version of PHP is up to date.'\n", + " \n", + " \n", + " );\n", + "
\n", + "
\n", + "
\n", + " function\n", + "
\n", + " \n", + " build_output\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " $section_title\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " $section_class\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " $section_description\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " $section_array\n", + " \n", + " \n", + " ) {\n", + "
\n", + "
\n", + " global\n", + "
\n", + " \n", + " $output_count_errors\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + "
\n", + " \n", + " $build_output\n", + " \n", + " \n", + " =\n", + " \n", + " \n", + " \"\"\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " if (\n", + "
\n", + " (\n", + "
\n", + " \n", + " is_array\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " $section_array\n", + " \n", + " \n", + " ) ) &&\n", + "
\n", + " (\n", + "
\n", + " \n", + " count\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " $section_array\n", + " \n", + " \n", + " ) )\n", + "
\n", + " ) {\n", + "
\n", + "
\n", + " \n", + " $build_output\n", + " \n", + " \n", + " .=\n", + " \n", + " \n", + " \"\\r\\n\\t\"\n", + " \n", + " \n", + " .\n", + " \n", + " \n", + " '<div class=\"'\n", + " \n", + " \n", + " .\n", + " \n", + " \n", + " $section_class\n", + " \n", + " \n", + " .\n", + " \n", + " \n", + " '\">'\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $build_output\n", + " \n", + " \n", + " .=\n", + " \n", + " \n", + " \"\\r\\n\\t\\t\"\n", + " \n", + " \n", + " .\n", + " \n", + " \n", + " ' <h2>'\n", + " \n", + " \n", + " .\n", + " \n", + " \n", + " $section_title\n", + " \n", + " \n", + " .\n", + " \n", + " \n", + " '</h2>'\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $build_output\n", + " \n", + " \n", + " .=\n", + " \n", + " \n", + " \"\\r\\n\\t\\t\"\n", + " \n", + " \n", + " .\n", + " \n", + " \n", + " ' <p>'\n", + " \n", + " \n", + " .\n", + " \n", + " \n", + " $section_description\n", + " \n", + " \n", + " .\n", + " \n", + " \n", + " '</p>'\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $build_output\n", + " \n", + " \n", + " .=\n", + " \n", + " \n", + " \"\\r\\n\\t\\t\"\n", + " \n", + " \n", + " .\n", + " \n", + " \n", + " ' <ul>'\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " foreach (\n", + "
\n", + " \n", + " $section_array\n", + " \n", + " \n", + " as\n", + " \n", + " \n", + " $error_key\n", + " \n", + " \n", + " =>\n", + " \n", + " \n", + " $error_message\n", + " \n", + " \n", + " )\n", + "
\n", + " {\n", + "
\n", + "
\n", + " \n", + " $build_output\n", + " \n", + " \n", + " .=\n", + " \n", + " \n", + " \"\\r\\n\\t\\t\\t\"\n", + " \n", + " \n", + " .\n", + " \n", + " \n", + " '<li><strong class=\"ms\">'\n", + " \n", + " \n", + " .\n", + " \n", + " \n", + " $error_key\n", + " \n", + " \n", + " .\n", + " \n", + " \n", + " '</strong> - '\n", + " \n", + " \n", + " .\n", + " \n", + " \n", + " $error_message\n", + " \n", + " \n", + " .\n", + " \n", + " \n", + " '</li>'\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $output_count_errors\n", + " \n", + " \n", + " ++;\n", + "
\n", + " }\n", + "
\n", + "
\n", + "
\n", + " \n", + " $build_output\n", + " \n", + " \n", + " .=\n", + " \n", + " \n", + " \"\\r\\n\\t\\t\"\n", + " \n", + " \n", + " .\n", + " \n", + " \n", + " ' </ul>'\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $build_output\n", + " \n", + " \n", + " .=\n", + " \n", + " \n", + " \"\\r\\n\\t\"\n", + " \n", + " \n", + " .\n", + " \n", + " \n", + " '</div>'\n", + " \n", + " \n", + " ;\n", + "
\n", + " }\n", + "
\n", + "
\n", + " return\n", + "
\n", + " \n", + " $build_output\n", + " \n", + " \n", + " ;\n", + "
\n", + " }\n", + "
\n", + "
\n", + "
\n", + "
\n", + " \n", + " $insecure_features\n", + " \n", + " \n", + " = array();\n", + "
\n", + "
\n", + " \n", + " $insecure_functions\n", + " \n", + " \n", + " = array();\n", + "
\n", + "
\n", + " \n", + " $insecure_classes\n", + " \n", + " \n", + " = array();\n", + "
\n", + "
\n", + "
\n", + " \n", + " $messages\n", + " \n", + " \n", + " = array();\n", + "
\n", + "
\n", + " \n", + " $error_features\n", + " \n", + " \n", + " = array();\n", + "
\n", + "
\n", + " \n", + " $error_functions\n", + " \n", + " \n", + " = array();\n", + "
\n", + "
\n", + " \n", + " $error_classes\n", + " \n", + " \n", + " = array();\n", + "
\n", + "
\n", + "
\n", + " \n", + " $output\n", + " \n", + " \n", + " =\n", + " \n", + " \n", + " ''\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $output_count_errors\n", + " \n", + " \n", + " =\n", + " \n", + " \n", + " 0\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + "
\n", + "
\n", + " \n", + " $flag_windows\n", + " \n", + " \n", + " =\n", + " \n", + " \n", + " false\n", + " \n", + " \n", + " ;\n", + "
\n", + " if (\n", + "
\n", + "
\n", + " \n", + " 'win'\n", + " \n", + " \n", + " ==\n", + " \n", + " \n", + " substr\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " strtolower\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " PHP_OS\n", + " \n", + " \n", + " ),\n", + " \n", + " \n", + " 0\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " 3\n", + " \n", + " \n", + " ) ||\n", + "
\n", + "
\n", + " \n", + " 'cygwin'\n", + " \n", + " \n", + " ==\n", + " \n", + " \n", + " substr\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " strtolower\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " PHP_OS\n", + " \n", + " \n", + " ),\n", + " \n", + " \n", + " 0\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " 6\n", + " \n", + " \n", + " )\n", + "
\n", + " ) {\n", + "
\n", + "
\n", + " \n", + " $flag_windows\n", + " \n", + " \n", + " =\n", + " \n", + " \n", + " true\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $process_user\n", + " \n", + " \n", + " =\n", + " \n", + " \n", + " getenv\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'username'\n", + " \n", + " \n", + " );\n", + "
\n", + " } else {\n", + "
\n", + "
\n", + " \n", + " $process_user\n", + " \n", + " \n", + " =\n", + " \n", + " \n", + " posix_getpwuid\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " posix_geteuid\n", + " \n", + " \n", + " ());\n", + "
\n", + "
\n", + " \n", + " $process_user\n", + " \n", + " \n", + " = (\n", + " \n", + " \n", + " $process_user\n", + " \n", + " \n", + " ) ?\n", + " \n", + " \n", + " $process_user\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'name'\n", + " \n", + " \n", + " ] :\n", + " \n", + " \n", + " '[unknown]'\n", + " \n", + " \n", + " ;\n", + "
\n", + " }\n", + "
\n", + "
\n", + "
\n", + "
\n", + " \n", + " $app_audit_level\n", + " \n", + " \n", + " =\n", + " \n", + " \n", + " ''\n", + " \n", + " \n", + " ;\n", + "
\n", + " if (\n", + "
\n", + "
\n", + " \n", + " $_POST\n", + " \n", + " \n", + " &&\n", + "
\n", + "
\n", + " \n", + " array_key_exists\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'app_audit_level'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " $_POST\n", + " \n", + " \n", + " )\n", + "
\n", + " ) {\n", + "
\n", + "
\n", + " \n", + " $app_audit_level\n", + " \n", + " \n", + " =\n", + " \n", + " \n", + " trim\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " $_POST\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'app_audit_level'\n", + " \n", + " \n", + " ]);\n", + "
\n", + " }\n", + "
\n", + "
\n", + " switch (\n", + "
\n", + " \n", + " $app_audit_level\n", + " \n", + " \n", + " ) {\n", + "
\n", + "
\n", + " case\n", + "
\n", + " \n", + " 'paranoid'\n", + " \n", + " \n", + " :\n", + "
\n", + "
\n", + "
\n", + " \n", + " $insecure_features\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'expose_php'\n", + " \n", + " \n", + " ]                =\n", + " \n", + " \n", + " ERR_CONFIG_PROFILE\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $insecure_functions\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'apache_child_terminate'\n", + " \n", + " \n", + " ]    =\n", + " \n", + " \n", + " ERR_FUNCTION_PROFILE\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $insecure_functions\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'apache_get_modules'\n", + " \n", + " \n", + " ]        =\n", + " \n", + " \n", + " ERR_FUNCTION_PROFILE\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $insecure_functions\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'apache_get_version'\n", + " \n", + " \n", + " ]        =\n", + " \n", + " \n", + " ERR_FUNCTION_PROFILE\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $insecure_functions\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'apache_getenv'\n", + " \n", + " \n", + " ]            =\n", + " \n", + " \n", + " ERR_FUNCTION_PROFILE\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $insecure_functions\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'get_loaded_extensions'\n", + " \n", + " \n", + " ]    =\n", + " \n", + " \n", + " ERR_FUNCTION_PROFILE\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $insecure_functions\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'phpinfo'\n", + " \n", + " \n", + " ]                    =\n", + " \n", + " \n", + " ERR_FUNCTION_PROFILE\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $insecure_functions\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'phpversion'\n", + " \n", + " \n", + " ]                =\n", + " \n", + " \n", + " ERR_FUNCTION_PROFILE\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + "
\n", + " \n", + " $insecure_features\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'file_uploads'\n", + " \n", + " \n", + " ]                =\n", + " \n", + " \n", + " WARN_CONFIG_UPLOAD\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $insecure_functions\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'chgrp'\n", + " \n", + " \n", + " ]                    =\n", + " \n", + " \n", + " WARN_FUNCTION_FILES\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $insecure_functions\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'chmod'\n", + " \n", + " \n", + " ]                    =\n", + " \n", + " \n", + " WARN_FUNCTION_FILES\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $insecure_functions\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'chown'\n", + " \n", + " \n", + " ]                    =\n", + " \n", + " \n", + " WARN_FUNCTION_FILES\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $insecure_functions\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'copy'\n", + " \n", + " \n", + " ]                        =\n", + " \n", + " \n", + " WARN_FUNCTION_FILES\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $insecure_functions\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'link'\n", + " \n", + " \n", + " ]                        =\n", + " \n", + " \n", + " WARN_FUNCTION_FILES\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $insecure_functions\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'mkdir'\n", + " \n", + " \n", + " ]                    =\n", + " \n", + " \n", + " WARN_FUNCTION_FILES\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $insecure_functions\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'rename'\n", + " \n", + " \n", + " ]                    =\n", + " \n", + " \n", + " WARN_FUNCTION_FILES\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $insecure_functions\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'rmdir'\n", + " \n", + " \n", + " ]                    =\n", + " \n", + " \n", + " WARN_FUNCTION_FILES\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $insecure_functions\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'symlink'\n", + " \n", + " \n", + " ]                    =\n", + " \n", + " \n", + " WARN_FUNCTION_FILES\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $insecure_functions\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'touch'\n", + " \n", + " \n", + " ]                    =\n", + " \n", + " \n", + " WARN_FUNCTION_FILES\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $insecure_functions\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'unlink'\n", + " \n", + " \n", + " ]                    =\n", + " \n", + " \n", + " WARN_FUNCTION_FILES\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " case\n", + "
\n", + " \n", + " 'shared'\n", + " \n", + " \n", + " :\n", + "
\n", + "
\n", + "
\n", + " \n", + " $insecure_functions\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'openlog'\n", + " \n", + " \n", + " ]                    =\n", + " \n", + " \n", + " ERR_FUNCTION_LOGGING\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $insecure_functions\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'proc_nice'\n", + " \n", + " \n", + " ]                =\n", + " \n", + " \n", + " ERR_FUNCTION_DISRUPT\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $insecure_functions\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'syslog'\n", + " \n", + " \n", + " ]                    =\n", + " \n", + " \n", + " ERR_FUNCTION_LOGGING\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " case\n", + "
\n", + " \n", + " 'common'\n", + " \n", + " \n", + " :\n", + "
\n", + "
\n", + "
\n", + " \n", + " $insecure_classes\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'splFileObject'\n", + " \n", + " \n", + " ]                 =\n", + " \n", + " \n", + " ERR_CONFIG_EXECUTE\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + "
\n", + " \n", + " $insecure_features\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'register_globals'\n", + " \n", + " \n", + " ]            =\n", + " \n", + " \n", + " ERR_CONFIG_GLOBALS\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $insecure_features\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'allow_url_fopen'\n", + " \n", + " \n", + " ]            =\n", + " \n", + " \n", + " ERR_CONFIG_INCLUDES\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $insecure_features\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'display_errors'\n", + " \n", + " \n", + " ]            =\n", + " \n", + " \n", + " ERR_CONFIG_ERRORS\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + "
\n", + " \n", + " $insecure_features\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'enable_dl'\n", + " \n", + " \n", + " ]                    =\n", + " \n", + " \n", + " ERR_CONFIG_EXECUTE\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $insecure_functions\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'apache_note'\n", + " \n", + " \n", + " ]                =\n", + " \n", + " \n", + " ERR_FUNCTION_EXECUTE\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $insecure_functions\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'apache_setenv'\n", + " \n", + " \n", + " ]            =\n", + " \n", + " \n", + " ERR_FUNCTION_EXECUTE\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $insecure_functions\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'dl'\n", + " \n", + " \n", + " ]                        =\n", + " \n", + " \n", + " ERR_FUNCTION_EXECUTE\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $insecure_functions\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'exec'\n", + " \n", + " \n", + " ]                        =\n", + " \n", + " \n", + " ERR_FUNCTION_EXECUTE\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $insecure_functions\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'passthru'\n", + " \n", + " \n", + " ]                    =\n", + " \n", + " \n", + " ERR_FUNCTION_EXECUTE\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $insecure_functions\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'pcntl_exec'\n", + " \n", + " \n", + " ]                =\n", + " \n", + " \n", + " ERR_FUNCTION_EXECUTE\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $insecure_functions\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'popen'\n", + " \n", + " \n", + " ]                    =\n", + " \n", + " \n", + " ERR_FUNCTION_EXECUTE\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $insecure_functions\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'proc_close'\n", + " \n", + " \n", + " ]                =\n", + " \n", + " \n", + " ERR_FUNCTION_EXECUTE\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $insecure_functions\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'proc_open'\n", + " \n", + " \n", + " ]                =\n", + " \n", + " \n", + " ERR_FUNCTION_EXECUTE\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $insecure_functions\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'proc_get_status'\n", + " \n", + " \n", + " ]            =\n", + " \n", + " \n", + " ERR_FUNCTION_EXECUTE\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $insecure_functions\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'proc_terminate'\n", + " \n", + " \n", + " ]            =\n", + " \n", + " \n", + " ERR_FUNCTION_EXECUTE\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $insecure_functions\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'putenv'\n", + " \n", + " \n", + " ]                    =\n", + " \n", + " \n", + " ERR_FUNCTION_EXECUTE\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $insecure_functions\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'shell_exec'\n", + " \n", + " \n", + " ]                =\n", + " \n", + " \n", + " ERR_FUNCTION_EXECUTE\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $insecure_functions\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'system'\n", + " \n", + " \n", + " ]                    =\n", + " \n", + " \n", + " ERR_FUNCTION_EXECUTE\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $insecure_functions\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'virtual'\n", + " \n", + " \n", + " ]                    =\n", + " \n", + " \n", + " ERR_FUNCTION_EXECUTE\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + "
\n", + " \n", + " // Check PHP permissions\n", + "
\n", + "
\n", + " \n", + " if (\n", + " \n", + " \n", + " $flag_windows\n", + " \n", + " \n", + " )\n", + "
\n", + " {\n", + "
\n", + "
\n", + " \n", + " $error_features\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'PHP User Account'\n", + " \n", + " \n", + " ] =\n", + " \n", + " \n", + " str_replace\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " '$$USERNAME$$'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " $process_user\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " WARN_CONFIG_PHPUSER_WIN\n", + " \n", + " \n", + " );\n", + "
\n", + " } else if (\n", + "
\n", + " \n", + " 'root'\n", + " \n", + " \n", + " ==\n", + " \n", + " \n", + " $process_user\n", + " \n", + " \n", + " ) {\n", + "
\n", + "
\n", + " \n", + " $error_features\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'PHP User Account'\n", + " \n", + " \n", + " ] =\n", + " \n", + " \n", + " ERR_CONFIG_PHPUSER\n", + " \n", + " \n", + " ;\n", + "
\n", + " }\n", + "
\n", + "
\n", + "
\n", + " \n", + " // Check open_basedir restriction\n", + "
\n", + "
\n", + " \n", + " if ( !\n", + " \n", + " \n", + " ini_get\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'open_basedir'\n", + " \n", + " \n", + " ) )\n", + "
\n", + " {\n", + "
\n", + "
\n", + " \n", + " $error_features\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'open_basedir'\n", + " \n", + " \n", + " ] =\n", + " \n", + " \n", + " ERR_CONFIG_BASEDIR\n", + " \n", + " \n", + " ;\n", + "
\n", + " } else {\n", + "
\n", + "
\n", + "
\n", + " \n", + " $error_basedir\n", + " \n", + " \n", + " =\n", + " \n", + " \n", + " ''\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + "
\n", + " \n", + " $basedirs\n", + " \n", + " \n", + " = (\n", + " \n", + " \n", + " $flag_windows\n", + " \n", + " \n", + " ) ?\n", + " \n", + " \n", + " explode\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " ';'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " ini_get\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'open_basedir'\n", + " \n", + " \n", + " )) :\n", + " \n", + " \n", + " explode\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " ':'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " ini_get\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'open_basedir'\n", + " \n", + " \n", + " ));\n", + "
\n", + "
\n", + " foreach (\n", + "
\n", + " \n", + " $basedirs\n", + " \n", + " \n", + " as\n", + " \n", + " \n", + " $basedir\n", + " \n", + " \n", + " )\n", + "
\n", + " {\n", + "
\n", + " if (\n", + "
\n", + " \n", + " '.'\n", + " \n", + " \n", + " ===\n", + " \n", + " \n", + " $basedir\n", + " \n", + " \n", + " )\n", + "
\n", + " {\n", + "
\n", + "
\n", + " \n", + " $error_basedir\n", + " \n", + " \n", + " .= (\n", + " \n", + " \n", + " $error_basedir\n", + " \n", + " \n", + " ) ?\n", + " \n", + " \n", + " '<br />'\n", + " \n", + " \n", + " :\n", + " \n", + " \n", + " ''\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $error_basedir\n", + " \n", + " \n", + " .=\n", + " \n", + " \n", + " str_replace\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " '$$BASEDIR$$'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " $basedir\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " ERR_CONFIG_BASEDIR_CHDIR\n", + " \n", + " \n", + " );\n", + "
\n", + " }\n", + "
\n", + "
\n", + " if (\n", + "
\n", + " \n", + " $flag_windows\n", + " \n", + " \n", + " )\n", + "
\n", + " {\n", + "
\n", + " if (\n", + "
\n", + " \n", + " '\\\\'\n", + " \n", + " \n", + " !=\n", + " \n", + " \n", + " substr\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " $basedir\n", + " \n", + " \n", + " , -\n", + " \n", + " \n", + " 1\n", + " \n", + " \n", + " ) )\n", + "
\n", + " {\n", + "
\n", + "
\n", + " \n", + " $error_basedir\n", + " \n", + " \n", + " .= (\n", + " \n", + " \n", + " $error_basedir\n", + " \n", + " \n", + " ) ?\n", + " \n", + " \n", + " '<br />'\n", + " \n", + " \n", + " :\n", + " \n", + " \n", + " ''\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $error_basedir\n", + " \n", + " \n", + " .=\n", + " \n", + " \n", + " str_replace\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " '$$BASEDIR$$'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " $basedir\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " ERR_CONFIG_BASEDIR_SLASH\n", + " \n", + " \n", + " );\n", + "
\n", + " }\n", + "
\n", + " } else {\n", + "
\n", + " if (\n", + "
\n", + " \n", + " '/'\n", + " \n", + " \n", + " !=\n", + " \n", + " \n", + " substr\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " $basedir\n", + " \n", + " \n", + " , -\n", + " \n", + " \n", + " 1\n", + " \n", + " \n", + " ) )\n", + "
\n", + " {\n", + "
\n", + "
\n", + " \n", + " $error_basedir\n", + " \n", + " \n", + " .= (\n", + " \n", + " \n", + " $error_basedir\n", + " \n", + " \n", + " ) ?\n", + " \n", + " \n", + " '<br />'\n", + " \n", + " \n", + " :\n", + " \n", + " \n", + " ''\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " $error_basedir\n", + " \n", + " \n", + " .=\n", + " \n", + " \n", + " str_replace\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " '$$BASEDIR$$'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " $basedir\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " ERR_CONFIG_BASEDIR_SLASH\n", + " \n", + " \n", + " );\n", + "
\n", + " }\n", + "
\n", + " }\n", + "
\n", + " }\n", + "
\n", + "
\n", + " if (\n", + "
\n", + " \n", + " $error_basedir\n", + " \n", + " \n", + " )\n", + "
\n", + " {\n", + "
\n", + "
\n", + " \n", + " $error_features\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'open_basedir'\n", + " \n", + " \n", + " ] =\n", + " \n", + " \n", + " $error_basedir\n", + " \n", + " \n", + " ;\n", + "
\n", + " } else {\n", + "
\n", + "
\n", + " \n", + " $messages\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'Base Directory'\n", + " \n", + " \n", + " ] =\n", + " \n", + " \n", + " str_replace\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " '$$BASEDIR$$'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " ini_get\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'open_basedir'\n", + " \n", + " \n", + " ),\n", + " \n", + " \n", + " MSG_BASEDIR\n", + " \n", + " \n", + " );\n", + "
\n", + " }\n", + "
\n", + " }\n", + "
\n", + "
\n", + "
\n", + "
\n", + " \n", + " // PHP version checking\n", + "
\n", + "
\n", + " \n", + " switch (\n", + " \n", + " \n", + " true\n", + " \n", + " \n", + " ) {\n", + "
\n", + "
\n", + " case (\n", + "
\n", + " \n", + " defined\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'PHP_VERSION_ID'\n", + " \n", + " \n", + " ) ):\n", + "
\n", + "
\n", + "
\n", + " \n", + " $php_version_id\n", + " \n", + " \n", + " =\n", + " \n", + " \n", + " PHP_VERSION_ID\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " case (\n", + "
\n", + " \n", + " function_exists\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'phpversion'\n", + " \n", + " \n", + " ) ):\n", + "
\n", + "
\n", + "
\n", + " \n", + " $php_version_id\n", + " \n", + " \n", + " = (!\n", + " \n", + " \n", + " $php_version_id\n", + " \n", + " \n", + " ) ?\n", + " \n", + " \n", + " substr\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " phpversion\n", + " \n", + " \n", + " (),\n", + " \n", + " \n", + " 0\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " strpos\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " phpversion\n", + " \n", + " \n", + " (),\n", + " \n", + " \n", + " '-'\n", + " \n", + " \n", + " )) :\n", + " \n", + " \n", + " $php_version_id\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " case (\n", + "
\n", + " \n", + " defined\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'PHP_VERSION'\n", + " \n", + " \n", + " ) ):\n", + "
\n", + "
\n", + "
\n", + " \n", + " $php_version_id\n", + " \n", + " \n", + " = (!\n", + " \n", + " \n", + " $php_version_id\n", + " \n", + " \n", + " ) ? (\n", + " \n", + " \n", + " $version\n", + " \n", + " \n", + " {\n", + " \n", + " \n", + " 0\n", + " \n", + " \n", + " } *\n", + " \n", + " \n", + " 10000\n", + " \n", + " \n", + " +\n", + " \n", + " \n", + " $version\n", + " \n", + " \n", + " {\n", + " \n", + " \n", + " 2\n", + " \n", + " \n", + " } *\n", + " \n", + " \n", + " 100\n", + " \n", + " \n", + " +\n", + " \n", + " \n", + " $version\n", + " \n", + " \n", + " {\n", + " \n", + " \n", + " 4\n", + " \n", + " \n", + " }) :\n", + " \n", + " \n", + " $php_version_id\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " break;\n", + "
\n", + "
\n", + " default:\n", + "
\n", + "
\n", + " \n", + " $messages_features\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'PHP_VERSION'\n", + " \n", + " \n", + " ] =\n", + " \n", + " \n", + " WARN_VERSION\n", + " \n", + " \n", + " ;\n", + "
\n", + " break;\n", + "
\n", + " }\n", + "
\n", + "
\n", + "
\n", + " \n", + " // Check features\n", + "
\n", + "
\n", + " \n", + " if (\n", + " \n", + " \n", + " is_array\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " $insecure_features\n", + " \n", + " \n", + " ) )\n", + "
\n", + " {\n", + "
\n", + " foreach (\n", + "
\n", + " \n", + " $insecure_features\n", + " \n", + " \n", + " as\n", + " \n", + " \n", + " $feature_key\n", + " \n", + " \n", + " =>\n", + " \n", + " \n", + " $feature_message\n", + " \n", + " \n", + " )\n", + "
\n", + " {\n", + "
\n", + " if ( (bool)\n", + "
\n", + " \n", + " ini_get\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " $feature_key\n", + " \n", + " \n", + " ) )\n", + "
\n", + "
\n", + " \n", + " $error_features\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " $feature_key\n", + " \n", + " \n", + " ] =\n", + " \n", + " \n", + " $feature_message\n", + " \n", + " \n", + " ;\n", + "
\n", + " }\n", + "
\n", + " }\n", + "
\n", + "
\n", + "
\n", + " \n", + " // Check classes\n", + "
\n", + "
\n", + " \n", + " if (\n", + " \n", + " \n", + " is_array\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " $insecure_classes\n", + " \n", + " \n", + " ) )\n", + "
\n", + " {\n", + "
\n", + " foreach (\n", + "
\n", + " \n", + " $insecure_classes\n", + " \n", + " \n", + " as\n", + " \n", + " \n", + " $class_key\n", + " \n", + " \n", + " =>\n", + " \n", + " \n", + " $class_message\n", + " \n", + " \n", + " )\n", + "
\n", + " {\n", + "
\n", + " if (\n", + "
\n", + " \n", + " class_exists\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " $class_key\n", + " \n", + " \n", + " ) )\n", + "
\n", + "
\n", + " \n", + " $error_classes\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " $class_key\n", + " \n", + " \n", + " ] =\n", + " \n", + " \n", + " $class_message\n", + " \n", + " \n", + " ;\n", + "
\n", + " }\n", + "
\n", + " }\n", + "
\n", + "
\n", + "
\n", + " \n", + " // Check functions\n", + "
\n", + "
\n", + " \n", + " if (\n", + " \n", + " \n", + " is_array\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " $insecure_functions\n", + " \n", + " \n", + " ) )\n", + "
\n", + " {\n", + "
\n", + " foreach (\n", + "
\n", + " \n", + " $insecure_functions\n", + " \n", + " \n", + " as\n", + " \n", + " \n", + " $function_key\n", + " \n", + " \n", + " =>\n", + " \n", + " \n", + " $function_message\n", + " \n", + " \n", + " )\n", + "
\n", + " {\n", + "
\n", + " if (\n", + "
\n", + " \n", + " function_exists\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " $function_key\n", + " \n", + " \n", + " ) )\n", + "
\n", + "
\n", + " \n", + " $error_functions\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " $function_key\n", + " \n", + " \n", + " ] =\n", + " \n", + " \n", + " $function_message\n", + " \n", + " \n", + " ;\n", + "
\n", + " }\n", + "
\n", + " }\n", + "
\n", + "
\n", + "
\n", + " \n", + " // Build content for display\n", + "
\n", + "
\n", + " \n", + " $output\n", + " \n", + " \n", + " .=\n", + " \n", + " \n", + " build_output\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " APP_LABEL_ERROR_FEATURES\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " 'error features'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " APP_DESCRIPTION_ERROR_FEATURES\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " $error_features\n", + " \n", + " \n", + " );\n", + "
\n", + "
\n", + " \n", + " $output\n", + " \n", + " \n", + " .=\n", + " \n", + " \n", + " build_output\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " APP_LABEL_ERROR_CLASSES\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " 'error classes'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " APP_DESCRIPTION_ERROR_CLASSES\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " $error_classes\n", + " \n", + " \n", + " );\n", + "
\n", + "
\n", + " \n", + " $output\n", + " \n", + " \n", + " .=\n", + " \n", + " \n", + " build_output\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " APP_LABEL_ERROR_FUNCTIONS\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " 'error functions'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " APP_DESCRIPTION_ERROR_FUNCTIONS\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " $error_functions\n", + " \n", + " \n", + " );\n", + "
\n", + "
\n", + " \n", + " $output\n", + " \n", + " \n", + " .=\n", + " \n", + " \n", + " build_output\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " APP_LABEL_MESSAGES\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " 'message'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " APP_DESCRIPTION_MESSAGES\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " $messages\n", + " \n", + " \n", + " );\n", + "
\n", + "
\n", + " break;\n", + "
\n", + "
\n", + " default:\n", + "
\n", + "
\n", + "
\n", + " \n", + " // Set default content for display\n", + "
\n", + " // ...\n", + "
\n", + "
\n", + "
\n", + " \n", + " break;\n", + "
\n", + "
\n", + " }\n", + "
\n", + "
\n", + "
\n", + " \n", + " ?>\n", + " \n", + " <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n", + "
\n", + " \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n", + "
\n", + " <html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n", + "
\n", + " <head>\n", + "
\n", + "
\n", + " <title>\n", + " \n", + " <?php\n", + " \n", + " \n", + " if (\n", + " \n", + " \n", + " $output_count_errors\n", + " \n", + " \n", + " ) echo\n", + " \n", + " \n", + " $output_count_errors\n", + " \n", + " \n", + " .\n", + " \n", + " \n", + " ' Problems Identified - '\n", + " \n", + " \n", + " ;\n", + " \n", + " \n", + " ?><?php\n", + " \n", + " \n", + " echo\n", + " \n", + " \n", + " APP_TITLE\n", + " \n", + " \n", + " ;\n", + " \n", + " \n", + " ?>\n", + " \n", + " </title>\n", + "
\n", + "
\n", + " <style type=\"text/css\">\n", + "
\n", + " * {\n", + "
\n", + " margin:0;\n", + "
\n", + " padding:0;\n", + "
\n", + " }\n", + "
\n", + " body {\n", + "
\n", + " background-color:#EFEFEF;\n", + "
\n", + " font-family:Arial,sans-serif;\n", + "
\n", + " }\n", + "
\n", + " div {\n", + "
\n", + " margin:10px 20px;\n", + "
\n", + " padding:8px;\n", + "
\n", + " -moz-border-radius:8px;\n", + "
\n", + " border-radius:8px;\n", + "
\n", + " }\n", + "
\n", + " .application {\n", + "
\n", + " border:solid 1px #444444;\n", + "
\n", + " background-color:#F6F6F6;\n", + "
\n", + " }\n", + "
\n", + " .error {\n", + "
\n", + " color:#880000;\n", + "
\n", + " border:solid 1px #880000;\n", + "
\n", + " background-color:#EFCCCC;\n", + "
\n", + " }\n", + "
\n", + " .message {\n", + "
\n", + " color:#008800;\n", + "
\n", + " border:solid 1px #008800;\n", + "
\n", + " background-color:#CCEFCC;\n", + "
\n", + " }\n", + "
\n", + " ul {\n", + "
\n", + " list-style-type:square;\n", + "
\n", + " margin-left:20px;\n", + "
\n", + " }\n", + "
\n", + " li {\n", + "
\n", + " margin-bottom:0.4em;\n", + "
\n", + " }\n", + "
\n", + " p {\n", + "
\n", + " margin:0.4em 0.2em;\n", + "
\n", + " }\n", + "
\n", + " .ms {\n", + "
\n", + " font-family:monospace;\n", + "
\n", + " }\n", + "
\n", + " </style>\n", + "
\n", + "
\n", + " </head>\n", + "
\n", + " <body>\n", + "
\n", + " <div class=\"application\">\n", + "
\n", + " <h1>\n", + " \n", + " <?php\n", + " \n", + " \n", + " echo\n", + " \n", + " \n", + " APP_TITLE\n", + " \n", + " \n", + " ;\n", + " \n", + " \n", + " ?>\n", + " \n", + " </h1>\n", + "
\n", + " <hr />\n", + "
\n", + " <p>\n", + " \n", + " <?php\n", + " \n", + " \n", + " echo\n", + " \n", + " \n", + " APP_DESCRIPTION\n", + " \n", + " \n", + " ;\n", + " \n", + " \n", + " ?>\n", + " \n", + " </p>\n", + "
\n", + " <p></p>\n", + "
\n", + " <hr />\n", + "
\n", + " <p class=\"ms\"><strong>\n", + " \n", + " <?php\n", + " \n", + " \n", + " echo\n", + " \n", + " \n", + " APP_LABEL_HOSTNAME\n", + " \n", + " \n", + " ;\n", + " \n", + " \n", + " ?>\n", + " \n", + " </strong>\n", + " \n", + " <?php\n", + " \n", + " \n", + " echo\n", + " \n", + " \n", + " $_SERVER\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'HTTP_HOST'\n", + " \n", + " \n", + " ];\n", + " \n", + " \n", + " ?>\n", + " \n", + " </p>\n", + "
\n", + " <p class=\"ms\"><strong>\n", + " \n", + " <?php\n", + " \n", + " \n", + " echo\n", + " \n", + " \n", + " APP_LABEL_OS\n", + " \n", + " \n", + " ;\n", + " \n", + " \n", + " ?>\n", + " \n", + " </strong>\n", + " \n", + " <?php\n", + " \n", + " \n", + " echo\n", + " \n", + " \n", + " PHP_OS\n", + " \n", + " \n", + " ;\n", + " \n", + " \n", + " ?>\n", + " \n", + " </p>\n", + "
\n", + " <p class=\"ms\"><strong>\n", + " \n", + " <?php\n", + " \n", + " \n", + " echo\n", + " \n", + " \n", + " APP_LABEL_USER\n", + " \n", + " \n", + " ;\n", + " \n", + " \n", + " ?>\n", + " \n", + " </strong>\n", + " \n", + " <?php\n", + " \n", + " \n", + " echo\n", + " \n", + " \n", + " $process_user\n", + " \n", + " \n", + " ;\n", + " \n", + " \n", + " ?>\n", + " \n", + " </p>\n", + "
\n", + " <p class=\"ms\"><strong>\n", + " \n", + " <?php\n", + " \n", + " \n", + " echo\n", + " \n", + " \n", + " APP_LABEL_RUN_DATE\n", + " \n", + " \n", + " ;\n", + " \n", + " \n", + " ?>\n", + " \n", + " </strong>\n", + " \n", + " <?php\n", + " \n", + " \n", + " echo\n", + " \n", + " \n", + " date\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " \"Y-m-d H:i:s\"\n", + " \n", + " \n", + " );\n", + " \n", + " \n", + " ?>\n", + " \n", + " </p>\n", + "
\n", + " </div>\n", + "
\n", + "
\n", + " <div class=\"application\">\n", + "
\n", + " <form action=\"\n", + " \n", + " <?php\n", + " \n", + " \n", + " echo\n", + " \n", + " \n", + " $_SERVER\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'PHP_SELF'\n", + " \n", + " \n", + " ];\n", + " \n", + " \n", + " ?>\n", + " \n", + " \" method=\"post\">\n", + "
\n", + " <select name=\"app_audit_level\">\n", + "
\n", + " <option value=\"common\"\n", + " \n", + " <?php\n", + " \n", + " \n", + " if (\n", + " \n", + " \n", + " $_POST\n", + " \n", + " \n", + " &&\n", + " \n", + " \n", + " array_key_exists\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'app_audit_level'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " $_POST\n", + " \n", + " \n", + " ) &&\n", + " \n", + " \n", + " $_POST\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'app_audit_level'\n", + " \n", + " \n", + " ] ==\n", + " \n", + " \n", + " 'common'\n", + " \n", + " \n", + " ) echo\n", + " \n", + " \n", + " ' selected=\"selected\"'\n", + " \n", + " \n", + " ;\n", + " \n", + " \n", + " ?>\n", + " \n", + " >\n", + " \n", + " <?php\n", + " \n", + " \n", + " echo\n", + " \n", + " \n", + " APP_LABEL_COMMON\n", + " \n", + " \n", + " ;\n", + " \n", + " \n", + " ?>\n", + " \n", + " </option>\n", + "
\n", + " <option value=\"shared\"\n", + " \n", + " <?php\n", + " \n", + " \n", + " if (\n", + " \n", + " \n", + " $_POST\n", + " \n", + " \n", + " &&\n", + " \n", + " \n", + " array_key_exists\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'app_audit_level'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " $_POST\n", + " \n", + " \n", + " ) &&\n", + " \n", + " \n", + " $_POST\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'app_audit_level'\n", + " \n", + " \n", + " ] ==\n", + " \n", + " \n", + " 'shared'\n", + " \n", + " \n", + " ) echo\n", + " \n", + " \n", + " ' selected=\"selected\"'\n", + " \n", + " \n", + " ;\n", + " \n", + " \n", + " ?>\n", + " \n", + " >\n", + " \n", + " <?php\n", + " \n", + " \n", + " echo\n", + " \n", + " \n", + " APP_LABEL_SHARED\n", + " \n", + " \n", + " ;\n", + " \n", + " \n", + " ?>\n", + " \n", + " </option>\n", + "
\n", + " <option value=\"paranoid\"\n", + " \n", + " <?php\n", + " \n", + " \n", + " if (\n", + " \n", + " \n", + " $_POST\n", + " \n", + " \n", + " &&\n", + " \n", + " \n", + " array_key_exists\n", + " \n", + " \n", + " (\n", + " \n", + " \n", + " 'app_audit_level'\n", + " \n", + " \n", + " ,\n", + " \n", + " \n", + " $_POST\n", + " \n", + " \n", + " ) &&\n", + " \n", + " \n", + " $_POST\n", + " \n", + " \n", + " [\n", + " \n", + " \n", + " 'app_audit_level'\n", + " \n", + " \n", + " ] ==\n", + " \n", + " \n", + " 'paranoid'\n", + " \n", + " \n", + " ) echo\n", + " \n", + " \n", + " ' selected=\"selected\"'\n", + " \n", + " \n", + " ;\n", + " \n", + " \n", + " ?>\n", + " \n", + " >\n", + " \n", + " <?php\n", + " \n", + " \n", + " echo\n", + " \n", + " \n", + " APP_LABEL_PARANOID\n", + " \n", + " \n", + " ;\n", + " \n", + " \n", + " ?>\n", + " \n", + " </option>\n", + "
\n", + " </select>\n", + "
\n", + " <input type=\"submit\" value=\"Run Audit &gt;&gt;\" />\n", + "
\n", + " </form>\n", + "
\n", + " </div>\n", + "
\n", + "
\n", + " \n", + " <?php\n", + "
\n", + "
\n", + " \n", + " echo\n", + " \n", + " \n", + " $output\n", + " \n", + " \n", + " ;\n", + "
\n", + "
\n", + " \n", + " ?>\n", + "
\n", + "
\n", + "
\n", + " </body>\n", + "
\n", + " </html>\n", + "
\n", + "
\n", + "
\n", + "
\n", + "
\n", + "
\n", + "
\n", + "
\n", + "
\n", + "

\n", + " Copyright © 2009-2013 Hadean LLC\n", + "

\n", + "

\n", + " Retrieved 2013-02-23 12:51:40\n", + "

\n", + "
\n", + "
\n", + " \n", + " \n", + " \n", + "\n" + ] + } + ], + "source": [ + "soup = bs.BeautifulSoup(source.content,'lxml')\n", + "print(soup.prettify())" + ] + }, + { + "cell_type": "code", + "execution_count": 33, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[]\n" + ] + } + ], + "source": [ + "navigation=soup.find_all('ul')\n", + "print(navigation)" + ] + }, + { + "cell_type": "code", + "execution_count": 38, + "metadata": {}, + "outputs": [ + { + "ename": "AttributeError", + "evalue": "ResultSet object has no attribute 'find_all'. You're probably treating a list of items like a single item. Did you call find_all() when you meant to call find()?", + "output_type": "error", + "traceback": [ + "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m", + "\u001b[1;31mAttributeError\u001b[0m Traceback (most recent call last)", + "\u001b[1;32m\u001b[0m in \u001b[0;36m\u001b[1;34m()\u001b[0m\n\u001b[1;32m----> 1\u001b[1;33m \u001b[1;32mfor\u001b[0m \u001b[0murl\u001b[0m \u001b[1;32min\u001b[0m \u001b[0mnavigation\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mfind_all\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;34m'a'\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 2\u001b[0m \u001b[0mlink\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0murl\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mget\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;34m'href'\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 3\u001b[0m \u001b[1;32mif\u001b[0m \u001b[1;34m'caravanmagazine.in/'\u001b[0m \u001b[1;32min\u001b[0m \u001b[0mlink\u001b[0m\u001b[1;33m:\u001b[0m \u001b[1;31m# check link to a subpage\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 4\u001b[0m \u001b[0mprint\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mlink\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n", + "\u001b[1;32m~\\Anaconda3\\lib\\site-packages\\bs4\\element.py\u001b[0m in \u001b[0;36m__getattr__\u001b[1;34m(self, key)\u001b[0m\n\u001b[0;32m 1805\u001b[0m \u001b[1;32mdef\u001b[0m \u001b[0m__getattr__\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mkey\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 1806\u001b[0m raise AttributeError(\n\u001b[1;32m-> 1807\u001b[1;33m \u001b[1;34m\"ResultSet object has no attribute '%s'. You're probably treating a list of items like a single item. Did you call find_all() when you meant to call find()?\"\u001b[0m \u001b[1;33m%\u001b[0m \u001b[0mkey\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 1808\u001b[0m )\n", + "\u001b[1;31mAttributeError\u001b[0m: ResultSet object has no attribute 'find_all'. You're probably treating a list of items like a single item. Did you call find_all() when you meant to call find()?" + ] + } + ], + "source": [ + "for url in navigation.find_all('a'):\n", + " link=url.get('href')\n", + " if 'caravanmagazine.in/' in link: # check link to a subpage\n", + " print(link) " + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.6.3" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +}