{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# ML Basics, warming up with small data"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Automatically created module for IPython interactive environment\n"
]
}
],
"source": [
"print(__doc__)\n",
"\n",
"import matplotlib.pyplot as plt\n",
"from sklearn import datasets\n",
"from sklearn.decomposition import PCA\n",
"from sklearn import metrics\n",
"import pandas as pd\n",
"import seaborn as sns\n",
"import numpy as np"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Read poll data"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"
\n",
"\n",
"
\n",
" \n",
" \n",
" | \n",
" Timestamp | \n",
" Q1_General background in data analysis? | \n",
" Q2_Hands-on experience in data analysis using Python? | \n",
" Q3_Experience in programming in general? | \n",
" Q4_General background in machine learning? | \n",
" Q5_Hands-on experience in running machine learning applications? | \n",
" Q6_Which one would you prefer on a Sunday afternoon? | \n",
" Q7_Hands-on experience in image analysis using satellite images? | \n",
" Q8_Level of interest in mathematics? | \n",
" Q9_Level of interest in reading? | \n",
" Q10_Level of stress about this class? | \n",
" Q11_Your overall motivation about this class? | \n",
"
\n",
" \n",
" \n",
" \n",
" 0 | \n",
" 2020/01/14 5:11:10 PM EST | \n",
" 8 | \n",
" 5 | \n",
" 4 | \n",
" 6 | \n",
" 7 | \n",
" Running | \n",
" 5 | \n",
" 3 | \n",
" 5 | \n",
" 7 | \n",
" 3 | \n",
"
\n",
" \n",
" 1 | \n",
" 2020/01/14 5:15:45 PM EST | \n",
" 8 | \n",
" 8 | \n",
" 5 | \n",
" 5 | \n",
" 6 | \n",
" Reading | \n",
" 7 | \n",
" 7 | \n",
" 6 | \n",
" 7 | \n",
" 8 | \n",
"
\n",
" \n",
" 2 | \n",
" 2020/01/14 10:10:14 PM EST | \n",
" 6 | \n",
" 6 | \n",
" 6 | \n",
" 6 | \n",
" 5 | \n",
" Watching a movie | \n",
" 7 | \n",
" 7 | \n",
" 7 | \n",
" 7 | \n",
" 7 | \n",
"
\n",
" \n",
" 3 | \n",
" 2020/01/15 10:02:48 AM EST | \n",
" 5 | \n",
" 3 | \n",
" 6 | \n",
" 4 | \n",
" 4 | \n",
" Watching a movie | \n",
" 3 | \n",
" 8 | \n",
" 8 | \n",
" 5 | \n",
" 10 | \n",
"
\n",
" \n",
" 4 | \n",
" 2020/01/15 10:03:20 AM EST | \n",
" 6 | \n",
" 6 | \n",
" 5 | \n",
" 4 | \n",
" 3 | \n",
" Reading | \n",
" 4 | \n",
" 5 | \n",
" 4 | \n",
" 10 | \n",
" 8 | \n",
"
\n",
" \n",
"
\n",
"
"
],
"text/plain": [
" Timestamp Q1_General background in data analysis? \\\n",
"0 2020/01/14 5:11:10 PM EST 8 \n",
"1 2020/01/14 5:15:45 PM EST 8 \n",
"2 2020/01/14 10:10:14 PM EST 6 \n",
"3 2020/01/15 10:02:48 AM EST 5 \n",
"4 2020/01/15 10:03:20 AM EST 6 \n",
"\n",
" Q2_Hands-on experience in data analysis using Python? \\\n",
"0 5 \n",
"1 8 \n",
"2 6 \n",
"3 3 \n",
"4 6 \n",
"\n",
" Q3_Experience in programming in general? \\\n",
"0 4 \n",
"1 5 \n",
"2 6 \n",
"3 6 \n",
"4 5 \n",
"\n",
" Q4_General background in machine learning? \\\n",
"0 6 \n",
"1 5 \n",
"2 6 \n",
"3 4 \n",
"4 4 \n",
"\n",
" Q5_Hands-on experience in running machine learning applications? \\\n",
"0 7 \n",
"1 6 \n",
"2 5 \n",
"3 4 \n",
"4 3 \n",
"\n",
" Q6_Which one would you prefer on a Sunday afternoon? \\\n",
"0 Running \n",
"1 Reading \n",
"2 Watching a movie \n",
"3 Watching a movie \n",
"4 Reading \n",
"\n",
" Q7_Hands-on experience in image analysis using satellite images? \\\n",
"0 5 \n",
"1 7 \n",
"2 7 \n",
"3 3 \n",
"4 4 \n",
"\n",
" Q8_Level of interest in mathematics? Q9_Level of interest in reading? \\\n",
"0 3 5 \n",
"1 7 6 \n",
"2 7 7 \n",
"3 8 8 \n",
"4 5 4 \n",
"\n",
" Q10_Level of stress about this class? \\\n",
"0 7 \n",
"1 7 \n",
"2 7 \n",
"3 5 \n",
"4 10 \n",
"\n",
" Q11_Your overall motivation about this class? \n",
"0 3 \n",
"1 8 \n",
"2 7 \n",
"3 10 \n",
"4 8 "
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"dfInit = pd.read_csv(('./Data/MUSA-650WelcomePoll.csv'))\n",
"dfInit.head()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Calculate relative timestamp"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" | \n",
" Timestamp | \n",
" tsRel | \n",
"
\n",
" \n",
" \n",
" \n",
" 0 | \n",
" 2020-01-14 17:11:10 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 1 | \n",
" 2020-01-14 17:15:45 | \n",
" 275.0 | \n",
"
\n",
" \n",
" 2 | \n",
" 2020-01-14 22:10:14 | \n",
" 17944.0 | \n",
"
\n",
" \n",
" 3 | \n",
" 2020-01-15 10:02:48 | \n",
" 60698.0 | \n",
"
\n",
" \n",
" 4 | \n",
" 2020-01-15 10:03:20 | \n",
" 60730.0 | \n",
"
\n",
" \n",
" 5 | \n",
" 2020-01-15 10:03:43 | \n",
" 60753.0 | \n",
"
\n",
" \n",
" 6 | \n",
" 2020-01-15 10:03:50 | \n",
" 60760.0 | \n",
"
\n",
" \n",
" 7 | \n",
" 2020-01-15 10:03:53 | \n",
" 60763.0 | \n",
"
\n",
" \n",
" 8 | \n",
" 2020-01-15 10:03:59 | \n",
" 60769.0 | \n",
"
\n",
" \n",
" 9 | \n",
" 2020-01-15 10:04:03 | \n",
" 60773.0 | \n",
"
\n",
" \n",
"
\n",
"
"
],
"text/plain": [
" Timestamp tsRel\n",
"0 2020-01-14 17:11:10 0.0\n",
"1 2020-01-14 17:15:45 275.0\n",
"2 2020-01-14 22:10:14 17944.0\n",
"3 2020-01-15 10:02:48 60698.0\n",
"4 2020-01-15 10:03:20 60730.0\n",
"5 2020-01-15 10:03:43 60753.0\n",
"6 2020-01-15 10:03:50 60760.0\n",
"7 2020-01-15 10:03:53 60763.0\n",
"8 2020-01-15 10:03:59 60769.0\n",
"9 2020-01-15 10:04:03 60773.0"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"dfInit.Timestamp = pd.to_datetime(dfInit.Timestamp, format='%Y/%m/%d %I:%M:%S %p EST')\n",
"dfInit['tsRel'] = (dfInit.Timestamp - dfInit.Timestamp.min()).dt.total_seconds()\n",
"dfInit[['Timestamp', 'tsRel']].head(10)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Column names"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"['Q1_General background in data analysis?',\n",
" 'Q2_Hands-on experience in data analysis using Python?',\n",
" 'Q3_Experience in programming in general?',\n",
" 'Q4_General background in machine learning?',\n",
" 'Q5_Hands-on experience in running machine learning applications?',\n",
" 'Q6_Which one would you prefer on a Sunday afternoon?',\n",
" 'Q7_Hands-on experience in image analysis using satellite images?',\n",
" 'Q8_Level of interest in mathematics?',\n",
" 'Q9_Level of interest in reading?',\n",
" 'Q10_Level of stress about this class?',\n",
" 'Q11_Your overall motivation about this class?',\n",
" 'tsRel']"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df = dfInit[dfInit.columns[1:]]\n",
"initCol = df.columns.tolist()\n",
"initCol"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" | \n",
" Q1 | \n",
" Q2 | \n",
" Q3 | \n",
" Q4 | \n",
" Q5 | \n",
" Q6 | \n",
" Q7 | \n",
" Q8 | \n",
" Q9 | \n",
" Q10 | \n",
" Q11 | \n",
" tsRel | \n",
"
\n",
" \n",
" \n",
" \n",
" 0 | \n",
" 8 | \n",
" 5 | \n",
" 4 | \n",
" 6 | \n",
" 7 | \n",
" Running | \n",
" 5 | \n",
" 3 | \n",
" 5 | \n",
" 7 | \n",
" 3 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 1 | \n",
" 8 | \n",
" 8 | \n",
" 5 | \n",
" 5 | \n",
" 6 | \n",
" Reading | \n",
" 7 | \n",
" 7 | \n",
" 6 | \n",
" 7 | \n",
" 8 | \n",
" 275.0 | \n",
"
\n",
" \n",
" 2 | \n",
" 6 | \n",
" 6 | \n",
" 6 | \n",
" 6 | \n",
" 5 | \n",
" Watching a movie | \n",
" 7 | \n",
" 7 | \n",
" 7 | \n",
" 7 | \n",
" 7 | \n",
" 17944.0 | \n",
"
\n",
" \n",
" 3 | \n",
" 5 | \n",
" 3 | \n",
" 6 | \n",
" 4 | \n",
" 4 | \n",
" Watching a movie | \n",
" 3 | \n",
" 8 | \n",
" 8 | \n",
" 5 | \n",
" 10 | \n",
" 60698.0 | \n",
"
\n",
" \n",
" 4 | \n",
" 6 | \n",
" 6 | \n",
" 5 | \n",
" 4 | \n",
" 3 | \n",
" Reading | \n",
" 4 | \n",
" 5 | \n",
" 4 | \n",
" 10 | \n",
" 8 | \n",
" 60730.0 | \n",
"
\n",
" \n",
"
\n",
"
"
],
"text/plain": [
" Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 Q9 Q10 Q11 tsRel\n",
"0 8 5 4 6 7 Running 5 3 5 7 3 0.0\n",
"1 8 8 5 5 6 Reading 7 7 6 7 8 275.0\n",
"2 6 6 6 6 5 Watching a movie 7 7 7 7 7 17944.0\n",
"3 5 3 6 4 4 Watching a movie 3 8 8 5 10 60698.0\n",
"4 6 6 5 4 3 Reading 4 5 4 10 8 60730.0"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df.columns = df.columns.str.split('_', 1).str[0].tolist()\n",
"df.head()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Visualize correlations"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
"#sns.pairplot(df, kind = 'reg')"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" | \n",
" Q1 | \n",
" Q2 | \n",
" Q3 | \n",
" Q4 | \n",
" Q5 | \n",
" Q7 | \n",
" Q8 | \n",
" Q9 | \n",
" Q10 | \n",
" Q11 | \n",
" tsRel | \n",
"
\n",
" \n",
" \n",
" \n",
" Q1 | \n",
" 1.000000 | \n",
" 0.766725 | \n",
" 0.713877 | \n",
" 0.624063 | \n",
" 0.738857 | \n",
" 0.676150 | \n",
" 0.405270 | \n",
" -0.244388 | \n",
" -0.441883 | \n",
" 0.042206 | \n",
" 0.313668 | \n",
"
\n",
" \n",
" Q2 | \n",
" 0.766725 | \n",
" 1.000000 | \n",
" 0.639008 | \n",
" 0.481836 | \n",
" 0.568244 | \n",
" 0.692275 | \n",
" 0.399874 | \n",
" -0.321784 | \n",
" -0.329991 | \n",
" 0.099348 | \n",
" 0.383485 | \n",
"
\n",
" \n",
" Q3 | \n",
" 0.713877 | \n",
" 0.639008 | \n",
" 1.000000 | \n",
" 0.564825 | \n",
" 0.544057 | \n",
" 0.616467 | \n",
" 0.596732 | \n",
" -0.083087 | \n",
" -0.631657 | \n",
" 0.400580 | \n",
" 0.457261 | \n",
"
\n",
" \n",
" Q4 | \n",
" 0.624063 | \n",
" 0.481836 | \n",
" 0.564825 | \n",
" 1.000000 | \n",
" 0.945541 | \n",
" 0.450752 | \n",
" 0.426714 | \n",
" -0.461877 | \n",
" -0.168868 | \n",
" 0.036739 | \n",
" 0.440323 | \n",
"
\n",
" \n",
" Q5 | \n",
" 0.738857 | \n",
" 0.568244 | \n",
" 0.544057 | \n",
" 0.945541 | \n",
" 1.000000 | \n",
" 0.444940 | \n",
" 0.467669 | \n",
" -0.463201 | \n",
" -0.263556 | \n",
" -0.023930 | \n",
" 0.407507 | \n",
"
\n",
" \n",
" Q7 | \n",
" 0.676150 | \n",
" 0.692275 | \n",
" 0.616467 | \n",
" 0.450752 | \n",
" 0.444940 | \n",
" 1.000000 | \n",
" 0.184545 | \n",
" -0.198770 | \n",
" -0.284418 | \n",
" 0.045276 | \n",
" 0.152171 | \n",
"
\n",
" \n",
" Q8 | \n",
" 0.405270 | \n",
" 0.399874 | \n",
" 0.596732 | \n",
" 0.426714 | \n",
" 0.467669 | \n",
" 0.184545 | \n",
" 1.000000 | \n",
" -0.126656 | \n",
" -0.205698 | \n",
" 0.501068 | \n",
" 0.036620 | \n",
"
\n",
" \n",
" Q9 | \n",
" -0.244388 | \n",
" -0.321784 | \n",
" -0.083087 | \n",
" -0.461877 | \n",
" -0.463201 | \n",
" -0.198770 | \n",
" -0.126656 | \n",
" 1.000000 | \n",
" -0.217410 | \n",
" 0.228420 | \n",
" -0.193531 | \n",
"
\n",
" \n",
" Q10 | \n",
" -0.441883 | \n",
" -0.329991 | \n",
" -0.631657 | \n",
" -0.168868 | \n",
" -0.263556 | \n",
" -0.284418 | \n",
" -0.205698 | \n",
" -0.217410 | \n",
" 1.000000 | \n",
" -0.133846 | \n",
" -0.311850 | \n",
"
\n",
" \n",
" Q11 | \n",
" 0.042206 | \n",
" 0.099348 | \n",
" 0.400580 | \n",
" 0.036739 | \n",
" -0.023930 | \n",
" 0.045276 | \n",
" 0.501068 | \n",
" 0.228420 | \n",
" -0.133846 | \n",
" 1.000000 | \n",
" 0.430875 | \n",
"
\n",
" \n",
" tsRel | \n",
" 0.313668 | \n",
" 0.383485 | \n",
" 0.457261 | \n",
" 0.440323 | \n",
" 0.407507 | \n",
" 0.152171 | \n",
" 0.036620 | \n",
" -0.193531 | \n",
" -0.311850 | \n",
" 0.430875 | \n",
" 1.000000 | \n",
"
\n",
" \n",
"
\n",
"
"
],
"text/plain": [
" Q1 Q2 Q3 Q4 Q5 Q7 Q8 \\\n",
"Q1 1.000000 0.766725 0.713877 0.624063 0.738857 0.676150 0.405270 \n",
"Q2 0.766725 1.000000 0.639008 0.481836 0.568244 0.692275 0.399874 \n",
"Q3 0.713877 0.639008 1.000000 0.564825 0.544057 0.616467 0.596732 \n",
"Q4 0.624063 0.481836 0.564825 1.000000 0.945541 0.450752 0.426714 \n",
"Q5 0.738857 0.568244 0.544057 0.945541 1.000000 0.444940 0.467669 \n",
"Q7 0.676150 0.692275 0.616467 0.450752 0.444940 1.000000 0.184545 \n",
"Q8 0.405270 0.399874 0.596732 0.426714 0.467669 0.184545 1.000000 \n",
"Q9 -0.244388 -0.321784 -0.083087 -0.461877 -0.463201 -0.198770 -0.126656 \n",
"Q10 -0.441883 -0.329991 -0.631657 -0.168868 -0.263556 -0.284418 -0.205698 \n",
"Q11 0.042206 0.099348 0.400580 0.036739 -0.023930 0.045276 0.501068 \n",
"tsRel 0.313668 0.383485 0.457261 0.440323 0.407507 0.152171 0.036620 \n",
"\n",
" Q9 Q10 Q11 tsRel \n",
"Q1 -0.244388 -0.441883 0.042206 0.313668 \n",
"Q2 -0.321784 -0.329991 0.099348 0.383485 \n",
"Q3 -0.083087 -0.631657 0.400580 0.457261 \n",
"Q4 -0.461877 -0.168868 0.036739 0.440323 \n",
"Q5 -0.463201 -0.263556 -0.023930 0.407507 \n",
"Q7 -0.198770 -0.284418 0.045276 0.152171 \n",
"Q8 -0.126656 -0.205698 0.501068 0.036620 \n",
"Q9 1.000000 -0.217410 0.228420 -0.193531 \n",
"Q10 -0.217410 1.000000 -0.133846 -0.311850 \n",
"Q11 0.228420 -0.133846 1.000000 0.430875 \n",
"tsRel -0.193531 -0.311850 0.430875 1.000000 "
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df.corr()"
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
""
]
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAXQAAAD8CAYAAABn919SAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjIsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+WH4yJAAAfKklEQVR4nO3de5gdVZnv8e8vCQExco0gJGACRGeAGVCuXlAEMidw1OjD+Ig6BhznRM6AOo4egcMw4hz1QRyvA2OMctPxwJzxAlGDDiCKgjAhECAhREJE0iaKgCKBQOju9/xR1Vhp9u6u3XtV9e7i98lTT/al9rtq7955s3rVqvUqIjAzs4lv0ngfgJmZpeGEbmbWEE7oZmYN4YRuZtYQTuhmZg3hhG5m1hBO6GZmiUm6WNKDkla2eV6SviBpraQ7Jb08RbtO6GZm6V0KzBvh+eOBOfm2EPhiikad0M3MEouIG4BHRthlPvDVyNwM7CRpj27bndJtgCo9/dC6Si9j7b9lSZXhYdOjlYaPX2+sND6A9p5VbQO/H+k7373NS26pND7A+27btdL4K57cUGn8syfvW2l8gKP2qv67OvOWH6qb13eSb6a+cN/3kPWshyyOiMUdNDcDWF+435c/1tUH1dMJ3cysF+XJu5MEPlyr/3y67sA6oZuZAQwO1NlaH7BX4f5MoOtfxTyGbmYGMNBffuveEmBBPtvlSODRiOh6XMo9dDMzIGIwWSxJlwNHA9Ml9QEfAbbJ2olFwFLgBGAt8ATwrhTtOqGbmQEMpkvoEfG2UZ4P4LRkDeac0M3MABL20MdL0jF0STMlXSXpXknrJF0gaVtJu0q6XtImSRekbNPMLInBgfJbj0qW0CUJ+BZwZUQMXQH1POB84EngHOBDqdozM0sqBstvPSplD/0Y4MmIuAQgIgaADwALAEXET8kSu5lZz4mB/tJbr0qZ0A8AlhcfiIg/APcD+5UNImmhpFsl3fqVr16e8PDM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n5/MP/73BZx/29+DL/I/74d+AkwuxB7emH/fwHOAaYD/w7cmf88FuXPn4JPim79GY/3AXT9BuCVZGOQh0zUNiZ6/Ca8h4n6GTXhc/GWbvNaLmZmDTERx9DNzKwFJ3Qzs4ZwQjczawgndDOzhnBCNzNrCCd0M7OG+P8fAUIPfuGowAAAAABJRU5ErkJggg==\n",
"text/plain": [
""
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"corr = df.corr()\n",
"sns.heatmap(corr, xticklabels=corr.columns, yticklabels=corr.columns)"
]
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"['Q1_General background in data analysis?',\n",
" 'Q2_Hands-on experience in data analysis using Python?',\n",
" 'Q3_Experience in programming in general?',\n",
" 'Q4_General background in machine learning?',\n",
" 'Q5_Hands-on experience in running machine learning applications?',\n",
" 'Q6_Which one would you prefer on a Sunday afternoon?',\n",
" 'Q7_Hands-on experience in image analysis using satellite images?',\n",
" 'Q8_Level of interest in mathematics?',\n",
" 'Q9_Level of interest in reading?',\n",
" 'Q10_Level of stress about this class?',\n",
" 'Q11_Your overall motivation about this class?',\n",
" 'tsRel']"
]
},
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"initCol"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Handling categorical variables (visualization)"
]
},
{
"cell_type": "code",
"execution_count": 10,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAWAAAAFgCAYAAACFYaNMAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjIsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+WH4yJAAAax0lEQVR4nO3deZRcdZ338feXJBC2KEIrS5BFNkUFpQOCEDZxEGZQEVGPjvKMMwwu4/LI4zDnzFHn0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Tq2ShmQAq2s0p4pdCPw8M3cHdgc2Bb7QfJDgR8Apmbk3res/LKmqVd3B09DUTY4AnszM7wNk5rKI+CitU54uB27JzJub2x6vK1Pdwh6wusnetC7+slJzIZnpwK5ARutC5Tc2F6SR2soesLrJUBeRCVqvhYOBCcAC4PKIuCEzL+9gfeoy9oDVTW6jdWHxlSJiHK3LGT4I/L65JsIC4DfAqztforqJAaxucjmwWTTfv9dcX+PLwOm0rh37ymh988ho4FDgL2WVqisYwOoazfVh3wycEBF3AY8DyzPz35vLIf4nrSuATQZuzMxf11WrbuC1INS1IuIgWt9icXxm3jBce2ldM4AlqYhDEJJUxACWpCIGsCQVMYAlqYgBLElFDGBJKvL/ASv+BnCnaj02AAAAAElFTkSuQmCC\n",
"text/plain": [
""
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"sns.catplot(x=\"Q6\", y=\"Q11\", data=df);"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Handling categorical variables (Data analysis)"
]
},
{
"cell_type": "code",
"execution_count": 11,
"metadata": {},
"outputs": [],
"source": [
"df2 = pd.get_dummies(df, columns=['Q6'])"
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" | \n",
" Q1 | \n",
" Q2 | \n",
" Q3 | \n",
" Q4 | \n",
" Q5 | \n",
" Q7 | \n",
" Q8 | \n",
" Q9 | \n",
" Q10 | \n",
" Q11 | \n",
" tsRel | \n",
" Q6_Reading | \n",
" Q6_Running | \n",
" Q6_Watching a movie | \n",
"
\n",
" \n",
" \n",
" \n",
" 0 | \n",
" 8 | \n",
" 5 | \n",
" 4 | \n",
" 6 | \n",
" 7 | \n",
" 5 | \n",
" 3 | \n",
" 5 | \n",
" 7 | \n",
" 3 | \n",
" 0.0 | \n",
" 0 | \n",
" 1 | \n",
" 0 | \n",
"
\n",
" \n",
" 1 | \n",
" 8 | \n",
" 8 | \n",
" 5 | \n",
" 5 | \n",
" 6 | \n",
" 7 | \n",
" 7 | \n",
" 6 | \n",
" 7 | \n",
" 8 | \n",
" 275.0 | \n",
" 1 | \n",
" 0 | \n",
" 0 | \n",
"
\n",
" \n",
" 2 | \n",
" 6 | \n",
" 6 | \n",
" 6 | \n",
" 6 | \n",
" 5 | \n",
" 7 | \n",
" 7 | \n",
" 7 | \n",
" 7 | \n",
" 7 | \n",
" 17944.0 | \n",
" 0 | \n",
" 0 | \n",
" 1 | \n",
"
\n",
" \n",
" 3 | \n",
" 5 | \n",
" 3 | \n",
" 6 | \n",
" 4 | \n",
" 4 | \n",
" 3 | \n",
" 8 | \n",
" 8 | \n",
" 5 | \n",
" 10 | \n",
" 60698.0 | \n",
" 0 | \n",
" 0 | \n",
" 1 | \n",
"
\n",
" \n",
" 4 | \n",
" 6 | \n",
" 6 | \n",
" 5 | \n",
" 4 | \n",
" 3 | \n",
" 4 | \n",
" 5 | \n",
" 4 | \n",
" 10 | \n",
" 8 | \n",
" 60730.0 | \n",
" 1 | \n",
" 0 | \n",
" 0 | \n",
"
\n",
" \n",
" 5 | \n",
" 8 | \n",
" 7 | \n",
" 8 | \n",
" 3 | \n",
" 3 | \n",
" 8 | \n",
" 4 | \n",
" 10 | \n",
" 2 | \n",
" 8 | \n",
" 60753.0 | \n",
" 0 | \n",
" 1 | \n",
" 0 | \n",
"
\n",
" \n",
" 6 | \n",
" 4 | \n",
" 3 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" 10 | \n",
" 8 | \n",
" 8 | \n",
" 60760.0 | \n",
" 1 | \n",
" 0 | \n",
" 0 | \n",
"
\n",
" \n",
" 7 | \n",
" 7 | \n",
" 3 | \n",
" 7 | \n",
" 6 | \n",
" 5 | \n",
" 4 | \n",
" 6 | \n",
" 8 | \n",
" 6 | \n",
" 9 | \n",
" 60763.0 | \n",
" 1 | \n",
" 0 | \n",
" 0 | \n",
"
\n",
" \n",
" 8 | \n",
" 5 | \n",
" 5 | \n",
" 5 | \n",
" 4 | \n",
" 4 | \n",
" 4 | \n",
" 4 | \n",
" 5 | \n",
" 5 | \n",
" 7 | \n",
" 60769.0 | \n",
" 0 | \n",
" 0 | \n",
" 1 | \n",
"
\n",
" \n",
" 9 | \n",
" 6 | \n",
" 6 | \n",
" 6 | \n",
" 6 | \n",
" 6 | \n",
" 4 | \n",
" 6 | \n",
" 6 | \n",
" 5 | \n",
" 6 | \n",
" 60773.0 | \n",
" 0 | \n",
" 0 | \n",
" 1 | \n",
"
\n",
" \n",
" 10 | \n",
" 4 | \n",
" 4 | \n",
" 4 | \n",
" 5 | \n",
" 3 | \n",
" 5 | \n",
" 2 | \n",
" 7 | \n",
" 8 | \n",
" 7 | \n",
" 60783.0 | \n",
" 0 | \n",
" 0 | \n",
" 1 | \n",
"
\n",
" \n",
" 11 | \n",
" 7 | \n",
" 7 | \n",
" 7 | \n",
" 2 | \n",
" 2 | \n",
" 7 | \n",
" 6 | \n",
" 7 | \n",
" 5 | \n",
" 8 | \n",
" 60790.0 | \n",
" 0 | \n",
" 1 | \n",
" 0 | \n",
"
\n",
" \n",
" 12 | \n",
" 8 | \n",
" 8 | \n",
" 8 | \n",
" 6 | \n",
" 6 | \n",
" 8 | \n",
" 7 | \n",
" 8 | \n",
" 6 | \n",
" 8 | \n",
" 60800.0 | \n",
" 0 | \n",
" 0 | \n",
" 1 | \n",
"
\n",
" \n",
" 13 | \n",
" 4 | \n",
" 4 | \n",
" 4 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" 5 | \n",
" 7 | \n",
" 7 | \n",
" 8 | \n",
" 60801.0 | \n",
" 0 | \n",
" 0 | \n",
" 1 | \n",
"
\n",
" \n",
" 14 | \n",
" 8 | \n",
" 7 | \n",
" 7 | \n",
" 7 | \n",
" 7 | \n",
" 7 | \n",
" 10 | \n",
" 5 | \n",
" 6 | \n",
" 10 | \n",
" 60812.0 | \n",
" 0 | \n",
" 1 | \n",
" 0 | \n",
"
\n",
" \n",
" 15 | \n",
" 7 | \n",
" 7 | \n",
" 6 | \n",
" 6 | \n",
" 6 | \n",
" 6 | \n",
" 6 | \n",
" 6 | \n",
" 5 | \n",
" 7 | \n",
" 60817.0 | \n",
" 0 | \n",
" 0 | \n",
" 1 | \n",
"
\n",
" \n",
" 16 | \n",
" 7 | \n",
" 6 | \n",
" 6 | \n",
" 5 | \n",
" 5 | \n",
" 1 | \n",
" 7 | \n",
" 7 | \n",
" 4 | \n",
" 7 | \n",
" 60823.0 | \n",
" 1 | \n",
" 0 | \n",
" 0 | \n",
"
\n",
" \n",
" 17 | \n",
" 6 | \n",
" 6 | \n",
" 6 | \n",
" 5 | \n",
" 5 | \n",
" 2 | \n",
" 9 | \n",
" 9 | \n",
" 7 | \n",
" 9 | \n",
" 60939.0 | \n",
" 0 | \n",
" 0 | \n",
" 1 | \n",
"
\n",
" \n",
" 18 | \n",
" 9 | \n",
" 9 | \n",
" 9 | \n",
" 9 | \n",
" 9 | \n",
" 7 | \n",
" 6 | \n",
" 5 | \n",
" 4 | \n",
" 10 | \n",
" 443956.0 | \n",
" 0 | \n",
" 0 | \n",
" 1 | \n",
"
\n",
" \n",
"
\n",
"
"
],
"text/plain": [
" Q1 Q2 Q3 Q4 Q5 Q7 Q8 Q9 Q10 Q11 tsRel Q6_Reading \\\n",
"0 8 5 4 6 7 5 3 5 7 3 0.0 0 \n",
"1 8 8 5 5 6 7 7 6 7 8 275.0 1 \n",
"2 6 6 6 6 5 7 7 7 7 7 17944.0 0 \n",
"3 5 3 6 4 4 3 8 8 5 10 60698.0 0 \n",
"4 6 6 5 4 3 4 5 4 10 8 60730.0 1 \n",
"5 8 7 8 3 3 8 4 10 2 8 60753.0 0 \n",
"6 4 3 1 1 1 1 1 10 8 8 60760.0 1 \n",
"7 7 3 7 6 5 4 6 8 6 9 60763.0 1 \n",
"8 5 5 5 4 4 4 4 5 5 7 60769.0 0 \n",
"9 6 6 6 6 6 4 6 6 5 6 60773.0 0 \n",
"10 4 4 4 5 3 5 2 7 8 7 60783.0 0 \n",
"11 7 7 7 2 2 7 6 7 5 8 60790.0 0 \n",
"12 8 8 8 6 6 8 7 8 6 8 60800.0 0 \n",
"13 4 4 4 1 1 1 5 7 7 8 60801.0 0 \n",
"14 8 7 7 7 7 7 10 5 6 10 60812.0 0 \n",
"15 7 7 6 6 6 6 6 6 5 7 60817.0 0 \n",
"16 7 6 6 5 5 1 7 7 4 7 60823.0 1 \n",
"17 6 6 6 5 5 2 9 9 7 9 60939.0 0 \n",
"18 9 9 9 9 9 7 6 5 4 10 443956.0 0 \n",
"\n",
" Q6_Running Q6_Watching a movie \n",
"0 1 0 \n",
"1 0 0 \n",
"2 0 1 \n",
"3 0 1 \n",
"4 0 0 \n",
"5 1 0 \n",
"6 0 0 \n",
"7 0 0 \n",
"8 0 1 \n",
"9 0 1 \n",
"10 0 1 \n",
"11 1 0 \n",
"12 0 1 \n",
"13 0 1 \n",
"14 1 0 \n",
"15 0 1 \n",
"16 0 0 \n",
"17 0 1 \n",
"18 0 1 "
]
},
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df2"
]
},
{
"cell_type": "code",
"execution_count": 13,
"metadata": {},
"outputs": [],
"source": [
"dfTmp = df2[['Q8', 'Q9', 'Q10', 'Q11', 'Q6_Reading', 'Q6_Running', 'Q6_Watching a movie',]].copy()"
]
},
{
"cell_type": "code",
"execution_count": 14,
"metadata": {},
"outputs": [],
"source": [
"#sns.pairplot(dfTmp, kind = 'reg')"
]
},
{
"cell_type": "code",
"execution_count": 15,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
""
]
},
"execution_count": 15,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAXQAAAD8CAYAAABn919SAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4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": "light"
},
"output_type": "display_data"
}
],
"source": [
"corr = df.corr()\n",
"sns.heatmap(corr, xticklabels=corr.columns, yticklabels=corr.columns)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Dealing with outliers (focusing on tsRel)\n",
"\n",
"### Visualize data"
]
},
{
"cell_type": "code",
"execution_count": 16,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"['Q1_General background in data analysis?',\n",
" 'Q2_Hands-on experience in data analysis using Python?',\n",
" 'Q3_Experience in programming in general?',\n",
" 'Q4_General background in machine learning?',\n",
" 'Q5_Hands-on experience in running machine learning applications?',\n",
" 'Q6_Which one would you prefer on a Sunday afternoon?',\n",
" 'Q7_Hands-on experience in image analysis using satellite images?',\n",
" 'Q8_Level of interest in mathematics?',\n",
" 'Q9_Level of interest in reading?',\n",
" 'Q10_Level of stress about this class?',\n",
" 'Q11_Your overall motivation about this class?',\n",
" 'tsRel']"
]
},
"execution_count": 16,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"initCol"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"#### Q: Is there a correlation between how fast a student answered the poll and answers to questions?"
]
},
{
"cell_type": "code",
"execution_count": 17,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"tsRel 1.000000\n",
"Q3 0.457261\n",
"Q10 -0.311850\n",
"Q11 0.430875\n",
"Name: tsRel, dtype: float64\n"
]
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAWYAAAD8CAYAAABErA6HAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjIsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+WH4yJAAAYc0lEQVR4nO3df5RkZX3n8feHUYxjIEgiCDOIo4wayBEx/NAQXeXHZiDJjmzYs6BkAPX0ghCTPW7i5MQ1nmw8EEVXWGDYDkEgGtk9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HgPuAwScdJ2gh8FzivKVHXxZznP8tnltCYDWzaRLFu1M3nu4ghqsufrxuAayQ9n8afa82J+auSDqQxJd90V8ZJwOFN3Yf7StpnYNEOhmhdCQugmIbwCEm/DFwn6Wbbz6maRtic5z/HZ2aqw18T8/kuYohGuWLew/Y3aDy+5QHgryWtatr8VuBQYCPwZ8W6vYA32n5dsSyx/cRAg+6/jcDRzSuKx9wcCGyZXmd7M43Ju39loNH1X0fnP8MEsLTp/VJgR1+iG6z5fBcxRKOcmJ8A9gEoRls8bPsvgb+i8cSAPWz/FPgDYJWk/YEvARdOb5f0ukEFPUDrgcXTv6QkLQI+BlwOvHT6Yl/x3b2axp+1dTLr+Rf/PTxH0Z/6hKQ3FBfMVtFijt0R1PV3EcM1sonZ9qPAP0i6h8aIizslfYdGn/GlLdrvBD4DXAC8Fzi6GEa3CThvYIEPSHHx6jTgdEn3Ao8CU7Y/DPw6cJekO4G/A95j+5HhRVu+NuePpPuAjwPnSJqQdHjx0fNpXHPYCvwLcPOgYy/bfL8LSR+RNEEjqU9I+tBQTmAByi3ZC4SkX6Pxi+k/2r6jXfu6Wejn3yzfRfUlMUdEVMzIdmVERNRVEnNERMUkMUdEVEwSc0RExSQxR0RUTBJzRETF/H8DX9PREvOc2wAAAABJRU5ErkJggg==\n",
"text/plain": [
""
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"dfTmp = df[['tsRel','Q3', 'Q10', 'Q11']].copy()\n",
"corr = dfTmp.corr()\n",
"sns.heatmap(corr, xticklabels=corr.columns, yticklabels=corr.columns)\n",
"print(corr['tsRel'])"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"#### WARNING: Outliers may lead to incorrect conclusions!"
]
},
{
"cell_type": "code",
"execution_count": 18,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
""
]
},
"execution_count": 18,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAYgAAAE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x7aqVVekv1tVv/tXcTYgIv+/2MgvnWpDRERCdcIYhIiINIECQkREQikgREQklAJCRERCKSBERCSUAkJkEcxsrZn97jzrHDWzp4LTQXzXzC6cZ/0bzexAYysVWTwFhMjirKV0ts35vMPd30zpCOD/2tSKRBpMASGyOH8KvM7MnjCzz5vZ4eD202b28yHr/xNnT4q30cy+ZmaPBl9XtLRykTopIEQW5xbgeS+dRO4nlE45fwnwFkpHRle7Bvh6cPuTwO3u/rPAbwBfaEG9IgvWG3UBIh3gUeDO4AR8X3f3yoD4jpldQOmkbeVdTO8E3mA2c1LOITMbbFm1InVSByGyRO5+mNIV9Y4Df21mN1Q8/A7gQkrn8NoXLItRuhDMJcHXZndPtLRokTooIEQWJ0HpcqEEs5NOufvngTsoXXp1hrungN8HbjCz9cCDwJ7y42Z2SauKFlkI7WISWQR3HzWz/2dmT1M6Bfy0meWAKeCGkPVPmtk9lE7h/B+AT5nZk5T+Dx4GPtS66kXqo7O5iohIKO1iEhGRUAoIEREJpYAQEZFQCggREQmlgBARkVAKCBERCaWAEBGRUP8fOt5jmlsEVV8AAAAASUVORK5CYII=\n",
"text/plain": [
""
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"sns.regplot(x='tsRel', y='Q3', data=dfTmp, color=\"g\")"
]
},
{
"cell_type": "code",
"execution_count": 19,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
""
]
},
"execution_count": 19,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAZQAAAEGCAYAAABCa2PoAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjIsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+WH4yJAAAgAElEQVR4nO3de5QdZZ3u8e+ve6e7Q+7XznVIhEgMECIJGIaREbmYMEqYQT1hXBIQzaAw6jr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YiuZW4hGlhLD8qfne/j6oDvNYbmYyj/l+aDiz8Iy2fTfHBxC8cHF1cSDdSmBxevCuW30HxwcUlYHgi8STSwOCAsD3wPnAsDFgI/blHenc/JEKB/WO4J/An4eHc+Jxnn5iMcH0PR+cj3AXS1F9EjZl4nulPj6/k+ng74Pg8Cu4BjRH/93ER0rXYFsDm8D8yo//Xw3TcR7kgJ5VOA9WHd3Rx/CkMJ8P+IHsvzMvC+jDafC+XlwI35PhfhmP6B6BLCWmB1eF3Vzc/JROBv4ZysB74ZyrvtOck4to9wPFC6/fnQo1dERKRDaAxFREQ6hAJFREQ6hAJFREQ6hAJFREQ6hAJFREQ6hAJFpJOZWX8z+1I7dd4KT51da2bPm9np7dS/wczu7tgjFTk1ChSRztef6Omx7bnU3ScSzUT/RqcekUgnUKCIdL65wBlmttrM7jOzP4bl9Wb24Sz1/0p44J+ZDTGz35rZyvC6OKdHLnICFCginW8O8IZHD1fcSPQTCJOA84hm4rc0DXgkLP8E+JG7XwBcC/w8B8crclJS+T4AkW5mJXB/eADlI+6eGSjPmVkp0UMF05e8LgcmhB/yA+hrZn1ydrQiJ0A9FJEccvc/Ev1K5g7gATO7PmP1pcDpwAbg/4SyAqIfWpoUXiPd/WBOD1okJgWKSOc7SPRzwoS7tyrd/T7gF0Q/v9zE3Q8DXwWuN7OBwO+BW9PrzWxSrg5a5ETpkpdIJ3P3PWb2gpmtB3oBNWZ2DDgEXJ+l/i4ze5DoEeZfBu4xs7VE/7/+Ebg5d0cvEp+eNiwiIh1Cl7xERKRDKFBERKRDKFBERKRDKFBERKRDKFBERKRDKFBERKRDKFBERKRD/H81oMAqkdqhSQAAAABJRU5ErkJggg==\n",
"text/plain": [
""
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"sns.distplot(dfTmp.tsRel, hist=True, rug=True, color=\"g\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### What is an outlier? Let's zoom into the data"
]
},
{
"cell_type": "code",
"execution_count": 20,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"(0.0, 100000.0)"
]
},
"execution_count": 20,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAacAAAEGCAYAAADBr1rTAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjIsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+WH4yJAAAgAElEQVR4nO3deXhV1bn48e+bhIQpCTPGBAJUFBkcUbFqreIAXCv0p1aoFrS2lIpFW70t6LW3tVqxelscUAQn0IpQ61Vs8aLghLaAoIiMEhkDSCJDBsh0kvf3x9kn7IQkZ+fk5JzAfj/Pc56zz9prrb32FnlZe6+9lqgqxhhjTEuSEO8GGGOMMbVZcDLGGNPiWHAyxhjT4lhwMsYY0+JYcDLGGNPiJMW7AfHSpUsX7dWrV7ybYYwxx5RVq1Z9o6pdm/s4vg1OvXr1YuXKlfFuhjHGHFNEZHssjmO39YwxxrQ4FpyMMca0OBacjDHGtDgWnIwxxrQ4FpyMMca0OBacjDHGtDgWnIwxxrQ4noKTiAwTkU0ikiMik+vYLyLymLN/jYicFa6siHQSkXdEZLPz3dFJ7ywi74lIsYg84cqfKiKrXZ9vRGSas+8mEcl37ftJUy6KMcaY+AobnEQkEZgODAf6A2NEpH+tbMOBvs5nPPCUh7KTgSWq2hdY4vwGKAXuBe5yH0BVi1T1jNAH2A685soyz7X/GU9nb4yp4eIXLmbasmnxboYxnnpO5wI5qrpFVcuBV4CRtfKMBOZo0DKgg4hkhCk7EpjtbM8GRgGo6iFV/YhgkKqTiPQFugFLvZykMcab5bnL+Xjnx/FuhjGeglMmsNP1O9dJ85KnobLdVXUPgPPdzXuzGUOwp+Rexvca55biqyLSoxF1GWOAskAZZZVl7CrcFe+mGOMpOEkdabXXdq8vj5eykRgNzHX9fhPopaqnAYs50iOr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KpqUUwbbUwcWHAypvkVAakAzii8PFWdRXAW+bPcGVW1BLgDGCsinYC3gdtC+0XkjFg12ph4stt6xjQzVd0nIh+LyFqgHXBIRCqAYoJLDtTOv0dE5gITgUnAdBFZQ/D/1w+BCbFrvTHxYbOSG2OMaXHstp4xxpgWx4KTMcaYFseCkzHGmBbHgpMxxpgWx4KTMcaYFseCkzHGmBbHgpMxxpgW5/8Dy+awTEoqPUMAAAAASUVORK5CYII=\n",
"text/plain": [
""
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"ax = sns.distplot(dfTmp.tsRel, hist = True, color=\"g\")\n",
"ax.set_xlim(0, 100000)\n",
"#ax.set_ylim(0, 0.008)"
]
},
{
"cell_type": "code",
"execution_count": 21,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"60773.00000000001"
]
},
"execution_count": 21,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"dfTmp.tsRel.median()"
]
},
{
"cell_type": "code",
"execution_count": 22,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"0 -60773.0\n",
"1 -60498.0\n",
"2 -42829.0\n",
"3 -75.0\n",
"4 -43.0\n",
"5 -20.0\n",
"6 -13.0\n",
"7 -10.0\n",
"8 -4.0\n",
"9 0.0\n",
"10 10.0\n",
"11 17.0\n",
"12 27.0\n",
"13 28.0\n",
"14 39.0\n",
"15 44.0\n",
"16 50.0\n",
"17 166.0\n",
"18 383183.0\n",
"Name: tsRel, dtype: float64"
]
},
"execution_count": 22,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"dfTmp.tsRel - dfTmp.tsRel.median()"
]
},
{
"cell_type": "code",
"execution_count": 23,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"0 2020-01-14 17:11:10\n",
"1 2020-01-14 17:15:45\n",
"2 2020-01-14 22:10:14\n",
"3 2020-01-15 10:02:48\n",
"4 2020-01-15 10:03:20\n",
"5 2020-01-15 10:03:43\n",
"6 2020-01-15 10:03:50\n",
"7 2020-01-15 10:03:53\n",
"8 2020-01-15 10:03:59\n",
"9 2020-01-15 10:04:03\n",
"10 2020-01-15 10:04:13\n",
"11 2020-01-15 10:04:20\n",
"12 2020-01-15 10:04:30\n",
"13 2020-01-15 10:04:31\n",
"14 2020-01-15 10:04:42\n",
"15 2020-01-15 10:04:47\n",
"16 2020-01-15 10:04:53\n",
"17 2020-01-15 10:06:49\n",
"18 2020-01-19 20:30:26\n",
"Name: Timestamp, dtype: datetime64[ns]"
]
},
"execution_count": 23,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"dfInit.Timestamp"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Detect outliers"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### What about using standard scaling (z-score transformation) + thresholding\n",
"#### Typical outlier threshold: more than +- 2 std. (z<-2 or z>2)\n",
"\n",
""
]
},
{
"cell_type": "code",
"execution_count": 24,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"0 -0.783125\n",
"1 -0.780147\n",
"2 -0.588803\n",
"3 -0.125805\n",
"4 -0.125459\n",
"5 -0.125209\n",
"6 -0.125134\n",
"7 -0.125101\n",
"8 -0.125036\n",
"9 -0.124993\n",
"10 -0.124885\n",
"11 -0.124809\n",
"12 -0.124700\n",
"13 -0.124690\n",
"14 -0.124571\n",
"15 -0.124516\n",
"16 -0.124451\n",
"17 -0.123195\n",
"18 4.024628\n",
"Name: tsRel, dtype: float64"
]
},
"execution_count": 24,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"tsRel_z = (dfTmp.tsRel - dfTmp.tsRel.mean()) / dfTmp.tsRel.std()\n",
"tsRel_z"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Outlier detection is a serious task!\n",
"\n",
"#### SciKit methods\n",
"\n",
""
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Example: a more advanced outlier detection"
]
},
{
"cell_type": "code",
"execution_count": 25,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" | \n",
" tsRel | \n",
" Q3 | \n",
" Q10 | \n",
" Q11 | \n",
" outScore | \n",
"
\n",
" \n",
" \n",
" \n",
" 0 | \n",
" 0.0 | \n",
" 4 | \n",
" 7 | \n",
" 3 | \n",
" -971.093118 | \n",
"
\n",
" \n",
" 1 | \n",
" 275.0 | \n",
" 5 | \n",
" 7 | \n",
" 8 | \n",
" -969.221765 | \n",
"
\n",
" \n",
" 2 | \n",
" 17944.0 | \n",
" 6 | \n",
" 7 | \n",
" 7 | \n",
" -848.985675 | \n",
"
\n",
" \n",
" 3 | \n",
" 60698.0 | \n",
" 6 | \n",
" 5 | \n",
" 10 | \n",
" -2.550890 | \n",
"
\n",
" \n",
" 4 | \n",
" 60730.0 | \n",
" 5 | \n",
" 10 | \n",
" 8 | \n",
" -1.646488 | \n",
"
\n",
" \n",
" 5 | \n",
" 60753.0 | \n",
" 8 | \n",
" 2 | \n",
" 8 | \n",
" -1.071656 | \n",
"
\n",
" \n",
" 6 | \n",
" 60760.0 | \n",
" 1 | \n",
" 8 | \n",
" 8 | \n",
" -0.988349 | \n",
"
\n",
" \n",
" 7 | \n",
" 60763.0 | \n",
" 7 | \n",
" 6 | \n",
" 9 | \n",
" -0.988349 | \n",
"
\n",
" \n",
" 8 | \n",
" 60769.0 | \n",
" 5 | \n",
" 5 | \n",
" 7 | \n",
" -1.012356 | \n",
"
\n",
" \n",
" 9 | \n",
" 60773.0 | \n",
" 6 | \n",
" 5 | \n",
" 6 | \n",
" -1.025628 | \n",
"
\n",
" \n",
" 10 | \n",
" 60783.0 | \n",
" 4 | \n",
" 8 | \n",
" 7 | \n",
" -0.890923 | \n",
"
\n",
" \n",
" 11 | \n",
" 60790.0 | \n",
" 7 | \n",
" 5 | \n",
" 8 | \n",
" -0.915438 | \n",
"
\n",
" \n",
" 12 | \n",
" 60800.0 | \n",
" 8 | \n",
" 6 | \n",
" 8 | \n",
" -1.035467 | \n",
"
\n",
" \n",
" 13 | \n",
" 60801.0 | \n",
" 4 | \n",
" 7 | \n",
" 8 | \n",
" -1.023812 | \n",
"
\n",
" \n",
" 14 | \n",
" 60812.0 | \n",
" 7 | \n",
" 6 | \n",
" 10 | \n",
" -1.085007 | \n",
"
\n",
" \n",
" 15 | \n",
" 60817.0 | \n",
" 6 | \n",
" 5 | \n",
" 7 | \n",
" -1.085007 | \n",
"
\n",
" \n",
" 16 | \n",
" 60823.0 | \n",
" 6 | \n",
" 4 | \n",
" 7 | \n",
" -1.194836 | \n",
"
\n",
" \n",
" 17 | \n",
" 60939.0 | \n",
" 6 | \n",
" 7 | \n",
" 9 | \n",
" -5.640073 | \n",
"
\n",
" \n",
" 18 | \n",
" 443956.0 | \n",
" 9 | \n",
" 4 | \n",
" 10 | \n",
" -13811.188253 | \n",
"
\n",
" \n",
"
\n",
"
"
],
"text/plain": [
" tsRel Q3 Q10 Q11 outScore\n",
"0 0.0 4 7 3 -971.093118\n",
"1 275.0 5 7 8 -969.221765\n",
"2 17944.0 6 7 7 -848.985675\n",
"3 60698.0 6 5 10 -2.550890\n",
"4 60730.0 5 10 8 -1.646488\n",
"5 60753.0 8 2 8 -1.071656\n",
"6 60760.0 1 8 8 -0.988349\n",
"7 60763.0 7 6 9 -0.988349\n",
"8 60769.0 5 5 7 -1.012356\n",
"9 60773.0 6 5 6 -1.025628\n",
"10 60783.0 4 8 7 -0.890923\n",
"11 60790.0 7 5 8 -0.915438\n",
"12 60800.0 8 6 8 -1.035467\n",
"13 60801.0 4 7 8 -1.023812\n",
"14 60812.0 7 6 10 -1.085007\n",
"15 60817.0 6 5 7 -1.085007\n",
"16 60823.0 6 4 7 -1.194836\n",
"17 60939.0 6 7 9 -5.640073\n",
"18 443956.0 9 4 10 -13811.188253"
]
},
"execution_count": 25,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from sklearn.neighbors import LocalOutlierFactor\n",
"\n",
"# fit the model for outlier detection (default)\n",
"X = np.array(dfTmp.tsRel).reshape(dfTmp.shape[0],1)\n",
"X.shape\n",
"clf = LocalOutlierFactor(n_neighbors=5, contamination=0.1)\n",
"clf.fit_predict(X)\n",
"dfTmp['outScore'] = clf.negative_outlier_factor_.tolist()\n",
"dfTmp"
]
},
{
"cell_type": "code",
"execution_count": 26,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
""
]
},
"execution_count": 26,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAZoAAAEGCAYAAABcolNbAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjIsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+WH4yJAAAasklEQVR4nO3df5BV5Z3n8fdHEMRMQMB2ZPjVZnS2lIxx4hXJjtkxgkJSbsDEzOA/MBk2VIwmZlPWRIbduDGVrdHJxEQdnXSCEZwZ1GgSqSQWA3EckykEGn+ChLFVsnZg11ZYFpWowHf/OE/L7ebSfW3u07e59/OqOtXnfp/zdD/nlPLp55zT5ygiMDMzy+W4eg/AzMwam4PGzMyyctCYmVlWDhozM8vKQWNmZlkNr/cAhpqTTz45Wltb6z0MM7NjyqZNm16JiJZKbQ6aXlpbW2lvb6/3MMzMjimSfn2kNp86MzOzrBw0ZmaWlYPGzMyyctCYmVlWDhozM8uqKYJG0hxJ2yR1SLqu3uOpp5kzVzJy5N8yc+bKeg/FzJpEw9/eLGkY8HfAxUAnsFHSqoh4tr4jG3zSN95Zf/jh3yB9g4hr6zgiM2sGzTCjmQ50RMQLEfEWcA8wt85jGnRHmsF4ZmNmuTVD0EwEXir73Jlq75C0WFK7pPaurq5BHdxg+eUvd7yruplZrTRD0KhCrcfb3iKiLSJKEVFqaan4BIVj3gUX/N67qpuZ1UozBE0nMLns8ySg6X6N//nPr3hXdTOzWmmGoNkInCHpNEkjgPnAqjqPqS4iruWiiyYy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r6cqofaf876f8V3OjwV3APyWMp6XiKkPnHiPhhKjf1MekWEf+X4lXpc2jeY/LHwMclbQfuAS6S9A807/E4pN7n7hphoThX+gLFBb3umwGm1XtcNdivVnpeo/kbel7UvCmtT6PnRc0XOHRRcyPFBeLui5ofS/Wr6HlR8760Pg54keKC5ti0Pm4IHAsBK4Bv9ao38zFpAU5K66OAXwCXNvMxKTs2F3LoGo2PR70H0CgL8DGKO5GeB5bWezw12J+VwE7gbYrflhZRnAv+OfBc+jqubPulad+3ke6QSfUSsDm13cahp1GcAPwA6KC4w+Z9ZX3+ItU7gE/X+1ikMV1AcSriaeDJtHysyY/J2cAT6ZhsBr6S6k17TMrGdiGHgqbpj4cfQWNmZln5Go2ZmWXloDEzs6wcNGZmlpWDxszMsnLQmJlZVg4aszqSdJKkz/Wzzfb0JN+nJf2rpKn9bP/nkm6r7UjNBs5BY1ZfJ1E8kbc/H4mIsyn++v6/ZR2RWY05aMzq66+B35f0pKTvSno0rW+W9OEK268jPSxRUoukByRtTMsfD+rIzarkoDGrr+uA56N4MOWvKF43cQ7wAYqnD/Q2B/hxWv82cHNEnAd8EvjeIIzX7F0bXu8BmNk7NgJ3pod3/jgiyoPmXyT9LsUDGbtPnc0CzkovXwQYLem9gzZasyp5RmM2RETEoxRvNv0NcLekBWXNHwGmAluAG1LtOIqXYJ2TlokRsXdQB21WBQeNWX3tpXg1NOluspcj4rvAMopXab8jIvYBXwQWSBoH/DNwdXe7pHMGa9Bm74ZPnZnVUUS8KunfJG0G3gO8Lult4DVgQYXtd0paSfG4+C8AfyfpaYr/lx8FPjt4ozerjp/ebGZmWfnUmZmZZeWgMTOzrBw0ZmaWlYPGzMyyctCYmVlWDhozM8vKQWNmZln9f1PzTWP1xDJUAAAAAElFTkSuQmCC\n",
"text/plain": [
""
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"dfTmp.plot.scatter(x='tsRel', y='outScore', c='DarkBlue')"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Correlations for filtered data"
]
},
{
"cell_type": "code",
"execution_count": 27,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" | \n",
" tsRel | \n",
" Q3 | \n",
" Q10 | \n",
" Q11 | \n",
" outScore | \n",
"
\n",
" \n",
" \n",
" \n",
" 3 | \n",
" 60698.0 | \n",
" 6 | \n",
" 5 | \n",
" 10 | \n",
" -2.550890 | \n",
"
\n",
" \n",
" 4 | \n",
" 60730.0 | \n",
" 5 | \n",
" 10 | \n",
" 8 | \n",
" -1.646488 | \n",
"
\n",
" \n",
" 5 | \n",
" 60753.0 | \n",
" 8 | \n",
" 2 | \n",
" 8 | \n",
" -1.071656 | \n",
"
\n",
" \n",
" 6 | \n",
" 60760.0 | \n",
" 1 | \n",
" 8 | \n",
" 8 | \n",
" -0.988349 | \n",
"
\n",
" \n",
" 7 | \n",
" 60763.0 | \n",
" 7 | \n",
" 6 | \n",
" 9 | \n",
" -0.988349 | \n",
"
\n",
" \n",
" 8 | \n",
" 60769.0 | \n",
" 5 | \n",
" 5 | \n",
" 7 | \n",
" -1.012356 | \n",
"
\n",
" \n",
" 9 | \n",
" 60773.0 | \n",
" 6 | \n",
" 5 | \n",
" 6 | \n",
" -1.025628 | \n",
"
\n",
" \n",
" 10 | \n",
" 60783.0 | \n",
" 4 | \n",
" 8 | \n",
" 7 | \n",
" -0.890923 | \n",
"
\n",
" \n",
" 11 | \n",
" 60790.0 | \n",
" 7 | \n",
" 5 | \n",
" 8 | \n",
" -0.915438 | \n",
"
\n",
" \n",
" 12 | \n",
" 60800.0 | \n",
" 8 | \n",
" 6 | \n",
" 8 | \n",
" -1.035467 | \n",
"
\n",
" \n",
" 13 | \n",
" 60801.0 | \n",
" 4 | \n",
" 7 | \n",
" 8 | \n",
" -1.023812 | \n",
"
\n",
" \n",
" 14 | \n",
" 60812.0 | \n",
" 7 | \n",
" 6 | \n",
" 10 | \n",
" -1.085007 | \n",
"
\n",
" \n",
" 15 | \n",
" 60817.0 | \n",
" 6 | \n",
" 5 | \n",
" 7 | \n",
" -1.085007 | \n",
"
\n",
" \n",
" 16 | \n",
" 60823.0 | \n",
" 6 | \n",
" 4 | \n",
" 7 | \n",
" -1.194836 | \n",
"
\n",
" \n",
"
\n",
"
"
],
"text/plain": [
" tsRel Q3 Q10 Q11 outScore\n",
"3 60698.0 6 5 10 -2.550890\n",
"4 60730.0 5 10 8 -1.646488\n",
"5 60753.0 8 2 8 -1.071656\n",
"6 60760.0 1 8 8 -0.988349\n",
"7 60763.0 7 6 9 -0.988349\n",
"8 60769.0 5 5 7 -1.012356\n",
"9 60773.0 6 5 6 -1.025628\n",
"10 60783.0 4 8 7 -0.890923\n",
"11 60790.0 7 5 8 -0.915438\n",
"12 60800.0 8 6 8 -1.035467\n",
"13 60801.0 4 7 8 -1.023812\n",
"14 60812.0 7 6 10 -1.085007\n",
"15 60817.0 6 5 7 -1.085007\n",
"16 60823.0 6 4 7 -1.194836"
]
},
"execution_count": 27,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"dfTmpFil = dfTmp[np.logical_and(dfTmp.outScore>-5, dfTmp.outScore<5)]\n",
"dfTmpFil"
]
},
{
"cell_type": "code",
"execution_count": 28,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
""
]
},
"execution_count": 28,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAYAAAAEKCAYAAAAb7IIBAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjIsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+WH4yJAAAgAElEQVR4nO3de1xVdb7/8deHmwqioHgBBG+ZSHhDxEuWmVnZVGBao+ZoNRM5djmdmpmc0zlN02OaR3X6TWcqx9LK0bHSsjTzbqZWKiaYonhJRFQUFRXwgsjt+/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jaa+Cu60CtPLIAGGNOAEdFpKd90khsQ1BfbfiJ1UAfEQm0/xGHA3tExE9EwsB2hABwN3Dlk2HV5xoHfG3sOwKtVo/lR0R8sJ2NvaDK8+QB50VksH2Td3KVPi67/OC818CL1oEjwK1iEwQMxrbv35vWgRpfA3ddBxxi9ZcQjXUD+gFp2I7uWQKEYts3tw44YP/Zpkr7SUAmtj/sa/ZpQUC6/TkysV/ZzD6vOfAptuEvvge6Wb3MDVz+W4DUGp4nwf6aHATe5n/PHnfp5XfWa+At6wDQ0r4smdjeJH/vbevA1V4Dd14HarvpUBBKKeWlPHIXkFJKqdppAVBKKS+lBUAppbyUFgCllPJSWgCUUspLaQFQqgb2USSn1dImxz5yZIaIbBSRzrW0f0hE3nZuUqXqTwuAUjULwTbSY21GGGP6YBss7D8bNZFSTqYFQKmavQJ0tw/+NVtEvrHf3y0iN9XQfgv2QdJEpJ2IfCYi2+y3G5s0uVIO0gKgVM2mAweNMf2AfcBq+/2+wI4a2t+J7UxTsJ0p+oYxZiAwFnivCfIqVWd+VgdQyg1sAz6wjwOzxBhTtQCsF5EO2AYUu7IL6DYg9n9HDKaViAQ3WVqlHKRbAErVwhjzDXAzcAz4l4hMrjJ7BNAZ2xgxL9mn+WC7SEg/+y3S2EaRVMqlaAFQqmbngWAA+9E9p4wxs4H3sQ8VfoUx5hLwNDBZRNoAa4AnrswX+7WFlXI1ugtIqRoYY86IyCYR2Y1tNMiLIlIGXMA2JHL19nki8jHwOPAUMENEMrD9j30DTG269Eo5RkcDVUopL6W7gJRSyktpAVBKKS+lBUAppbyUFgCllPJSWgCUUspLaQFQSikvpQVAKaW81P8HDvrR6sd3O6cAAAAASUVORK5CYII=\n",
"text/plain": [
""
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"sns.distplot(dfTmpFil.tsRel, hist = True, color=\"g\")"
]
},
{
"cell_type": "code",
"execution_count": 29,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"tsRel 1.000000\n",
"Q3 0.130838\n",
"Q10 -0.163241\n",
"Q11 -0.344576\n",
"outScore 0.702471\n",
"Name: tsRel, dtype: float64\n"
]
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAWYAAAD+CAYAAAAJZK+MAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjIsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+WH4yJAAAdN0lEQVR4nO3de5wcVZ338c+XAEq4LLJKCEkE1AiCcpFAUIHlIprwqIF93F1wMVx3FgTBVZ4VdUX22ccXqODKPY5chEXFfa0RIhtEDAvoSjQBQkjCRrLhkiFBBF2IyC0zv+ePqoFi6Omunq7urqn5vnnVK11Vp6t+Z4b59elTp04pIjAzs/LYqNsBmJnZqzkxm5mVjBOzmVnJODGbmZWME7OZWck4MZuZlYwTs5nZMCRdJekJScuG2S9JF0laJWmppHcXcV4nZjOz4X0bmFFn/0xgarr0AJcXcVInZjOzYUTEncDv6hSZBVwbiYXA1pImtnpeJ2Yzs5GbBKzJrPel21qycasHaOSlJ1dX7p7v23f7XLdDaIsbN+t2BMVb+tKT3Q6hLW75yn7dDqEtNjvmy2r1GM3knE3f9Na/JemCGNQbEb1NnK5WvC3nvLYnZjOzjhroz100TcLNJOKh+oApmfXJwNoWjge4K8PMqiYG8i+tmwfMTkdn7Ac8HRHrWj2oW8xmVi0DhSRcACR9DzgIeKOkPuBLwCYAETEHmA8cDqwC/ggcX8R5nZjNrFKimJZweqw4usH+AE4t7IQpJ2Yzq5YCW8zd4sRsZtVSYIu5W5yYzaxa+l/qdgQtc2I2s2pxV4aZWbkUefGvW5yYzaxa3GI2MysZt5jNzErGF//MzErGXRlmZiXjrgwzs5Jxi9nMrFwi8k/7WVZOzGZWLe7KMDMrmf4N3Y6gZU7MZlYtTTzBpKyGTcySLqbOs6si4vS2RGRm1o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gDjBz9w0q+LFwCXANsNXuxLfw4788qsf2UzbD3S39FrpH2w6yXtl15km02NeQe6rOl6dcmdwBGSxiuZXvJI4GZg23T0yOtI/p4HZf/GtpB0UGbfnsAj6esFwClpuXHph1Ktc9W68ewW4ARJW6TvnySp1hSZNijnLEqnA/cD/0jSIl0KfLKdMzdlzv1dklEJD6X/3kvyy98p3f8w8MZM+YtJrpC/keRDZCnJpCFz0v3HkfwxdX12qhp1nULyNfBB4H+Ab6bbP07SYltCcjHliG7HOpJ6ZH5fvyO5oNwH7Jpun5b+fv+b5MNI3a5HQfX6aro+kP57Tgfi/HT6s1wGfCrddjqwCrgV+PZgHCQt4pXp/1tbAvMz6/9JMhoIkm8GN6Z5YAnJt9HhzrUjsGxITGek772f5CL9W7v9+yzzUvfOv0GSlqa/iMG+pM2BuyIZomZtkF71/h7w5xFxd6PyZVWVegxV1XpZOeRNzPcD+0R6sUnJNKCLIuJdbY7PzGzMyTsq42qSoTA/TNePIOnnNTOzguVqMQMoecbf/iRXWO+MiHsbvMXMzEYgd2I2M7PO8D3sZmYl48RsZlYyTsxmZiXjxGxmVjJOzGZmJfP/AX8kDqzZRL75AAAAAElFTkSuQmCC\n",
"text/plain": [
""
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"corr = dfTmpFil.corr()\n",
"sns.heatmap(corr, xticklabels=corr.columns, yticklabels=corr.columns)\n",
"print(corr['tsRel'])"
]
},
{
"cell_type": "code",
"execution_count": 30,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
""
]
},
"execution_count": 30,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAYAAAAEGCAYAAABsLkJ6AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjIsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+WH4yJA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3gYeBw4yvNXM2cIjsj+huDM/+5uqBPBUYkTfOC+VX28uV11aua+qnt9mKUngWsE4XwAAAHRSURBVLtyX1WX3wg8UN3O/cANm2FfAb9c/R/8NkGSG+qWehEMNvgU8AhBo3qobjtd2V6sVCea3F5oKggRkYjSlcAiIhGlBCAiElFKACIiEaUEICISUUoAIiIRpQQgkVSdmfFXVllnzJ6fIfOkmd24yvq/ZGZHmxupSHiUACSqBghmT1zNXe7+M8CXgd8MNSKRFlMCkKh6L/C3LJgX/w/M7IHq84fN7O82WP/rVCcSM7OtZvYZM/vL6uPlLY1cpEmUACSq3gU87u63Elxi/4Xq8xcRXF253GsIrt6EYAre/+LuLwZeB3y0BfGKNF2i3QGIdIC/BP6wOivmn7p7fQL4v9Upn5/h+S6gVxPMnVNbp8/MelsWrUiT6BuARJ67PwC8gmBStP9mZnfXvXwXwfw/jwCHq8tiBDfeuLX62OHul1oatEgTKAFIVF0CegGqo3uecfc/ILgRym31K7r7LMHMi3eb2SDwReBg7XVbdg9kkW6hLiCJJHf/sZl9zYKb1eeBaTMrAZcJpg1evv4FM/s48DbgV4EPmdm3CT5DDxDMpinSVTQbqIhIRKkLSEQkopQAREQiSglARCSilABERCJKCUBEJKKUAEREIkoJQEQkov4/3Gvb0l2S7OgAAAAASUVORK5CYII=\n",
"text/plain": [
""
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"sns.regplot(x='tsRel', y='Q3', data=dfTmpFil, color=\"g\")"
]
},
{
"cell_type": "code",
"execution_count": 31,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" | \n",
" Q1 | \n",
" Q2 | \n",
" Q3 | \n",
" Q4 | \n",
" Q5 | \n",
" Q6 | \n",
" Q7 | \n",
" Q8 | \n",
" Q9 | \n",
" Q10 | \n",
" Q11 | \n",
" tsRel | \n",
"
\n",
" \n",
" \n",
" \n",
" 0 | \n",
" 8 | \n",
" 5 | \n",
" 4 | \n",
" 6 | \n",
" 7 | \n",
" Running | \n",
" 5 | \n",
" 3 | \n",
" 5 | \n",
" 7 | \n",
" 3 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 1 | \n",
" 8 | \n",
" 8 | \n",
" 5 | \n",
" 5 | \n",
" 6 | \n",
" Reading | \n",
" 7 | \n",
" 7 | \n",
" 6 | \n",
" 7 | \n",
" 8 | \n",
" 275.0 | \n",
"
\n",
" \n",
" 2 | \n",
" 6 | \n",
" 6 | \n",
" 6 | \n",
" 6 | \n",
" 5 | \n",
" Watching a movie | \n",
" 7 | \n",
" 7 | \n",
" 7 | \n",
" 7 | \n",
" 7 | \n",
" 17944.0 | \n",
"
\n",
" \n",
" 3 | \n",
" 5 | \n",
" 3 | \n",
" 6 | \n",
" 4 | \n",
" 4 | \n",
" Watching a movie | \n",
" 3 | \n",
" 8 | \n",
" 8 | \n",
" 5 | \n",
" 10 | \n",
" 60698.0 | \n",
"
\n",
" \n",
" 4 | \n",
" 6 | \n",
" 6 | \n",
" 5 | \n",
" 4 | \n",
" 3 | \n",
" Reading | \n",
" 4 | \n",
" 5 | \n",
" 4 | \n",
" 10 | \n",
" 8 | \n",
" 60730.0 | \n",
"
\n",
" \n",
" 5 | \n",
" 8 | \n",
" 7 | \n",
" 8 | \n",
" 3 | \n",
" 3 | \n",
" Running | \n",
" 8 | \n",
" 4 | \n",
" 10 | \n",
" 2 | \n",
" 8 | \n",
" 60753.0 | \n",
"
\n",
" \n",
" 6 | \n",
" 4 | \n",
" 3 | \n",
" 1 | \n",
" 1 | \n",
" 1 | \n",
" Reading | \n",
" 1 | \n",
" 1 | \n",
" 10 | \n",
" 8 | \n",
" 8 | \n",
" 60760.0 | \n",
"
\n",
" \n",
" 7 | \n",
" 7 | \n",
" 3 | \n",
" 7 | \n",
" 6 | \n",
" 5 | \n",
" Reading | \n",
" 4 | \n",
" 6 | \n",
" 8 | \n",
" 6 | \n",
" 9 | \n",
" 60763.0 | \n",
"
\n",
" \n",
" 8 | \n",
" 5 | \n",
" 5 | \n",
" 5 | \n",
" 4 | \n",
" 4 | \n",
" Watching a movie | \n",
" 4 | \n",
" 4 | \n",
" 5 | \n",
" 5 | \n",
" 7 | \n",
" 60769.0 | \n",
"
\n",
" \n",
" 9 | \n",
" 6 | \n",
" 6 | \n",
" 6 | \n",
" 6 | \n",
" 6 | \n",
" Watching a movie | \n",
" 4 | \n",
" 6 | \n",
" 6 | \n",
" 5 | \n",
" 6 | \n",
" 60773.0 | \n",
"
\n",
" \n",
" 10 | \n",
" 4 | \n",
" 4 | \n",
" 4 | \n",
" 5 | \n",
" 3 | \n",
" Watching a movie | \n",
" 5 | \n",
" 2 | \n",
" 7 | \n",
" 8 | \n",
" 7 | \n",
" 60783.0 | \n",
"
\n",
" \n",
" 11 | \n",
" 7 | \n",
" 7 | \n",
" 7 | \n",
" 2 | \n",
" 2 | \n",
" Running | \n",
" 7 | \n",
" 6 | \n",
" 7 | \n",
" 5 | \n",
" 8 | \n",
" 60790.0 | \n",
"
\n",
" \n",
" 12 | \n",
" 8 | \n",
" 8 | \n",
" 8 | \n",
" 6 | \n",
" 6 | \n",
" Watching a movie | \n",
" 8 | \n",
" 7 | \n",
" 8 | \n",
" 6 | \n",
" 8 | \n",
" 60800.0 | \n",
"
\n",
" \n",
" 13 | \n",
" 4 | \n",
" 4 | \n",
" 4 | \n",
" 1 | \n",
" 1 | \n",
" Watching a movie | \n",
" 1 | \n",
" 5 | \n",
" 7 | \n",
" 7 | \n",
" 8 | \n",
" 60801.0 | \n",
"
\n",
" \n",
" 14 | \n",
" 8 | \n",
" 7 | \n",
" 7 | \n",
" 7 | \n",
" 7 | \n",
" Running | \n",
" 7 | \n",
" 10 | \n",
" 5 | \n",
" 6 | \n",
" 10 | \n",
" 60812.0 | \n",
"
\n",
" \n",
" 15 | \n",
" 7 | \n",
" 7 | \n",
" 6 | \n",
" 6 | \n",
" 6 | \n",
" Watching a movie | \n",
" 6 | \n",
" 6 | \n",
" 6 | \n",
" 5 | \n",
" 7 | \n",
" 60817.0 | \n",
"
\n",
" \n",
" 16 | \n",
" 7 | \n",
" 6 | \n",
" 6 | \n",
" 5 | \n",
" 5 | \n",
" Reading | \n",
" 1 | \n",
" 7 | \n",
" 7 | \n",
" 4 | \n",
" 7 | \n",
" 60823.0 | \n",
"
\n",
" \n",
" 17 | \n",
" 6 | \n",
" 6 | \n",
" 6 | \n",
" 5 | \n",
" 5 | \n",
" Watching a movie | \n",
" 2 | \n",
" 9 | \n",
" 9 | \n",
" 7 | \n",
" 9 | \n",
" 60939.0 | \n",
"
\n",
" \n",
" 18 | \n",
" 9 | \n",
" 9 | \n",
" 9 | \n",
" 9 | \n",
" 9 | \n",
" Watching a movie | \n",
" 7 | \n",
" 6 | \n",
" 5 | \n",
" 4 | \n",
" 10 | \n",
" 443956.0 | \n",
"
\n",
" \n",
"
\n",
"
"
],
"text/plain": [
" Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 Q9 Q10 Q11 tsRel\n",
"0 8 5 4 6 7 Running 5 3 5 7 3 0.0\n",
"1 8 8 5 5 6 Reading 7 7 6 7 8 275.0\n",
"2 6 6 6 6 5 Watching a movie 7 7 7 7 7 17944.0\n",
"3 5 3 6 4 4 Watching a movie 3 8 8 5 10 60698.0\n",
"4 6 6 5 4 3 Reading 4 5 4 10 8 60730.0\n",
"5 8 7 8 3 3 Running 8 4 10 2 8 60753.0\n",
"6 4 3 1 1 1 Reading 1 1 10 8 8 60760.0\n",
"7 7 3 7 6 5 Reading 4 6 8 6 9 60763.0\n",
"8 5 5 5 4 4 Watching a movie 4 4 5 5 7 60769.0\n",
"9 6 6 6 6 6 Watching a movie 4 6 6 5 6 60773.0\n",
"10 4 4 4 5 3 Watching a movie 5 2 7 8 7 60783.0\n",
"11 7 7 7 2 2 Running 7 6 7 5 8 60790.0\n",
"12 8 8 8 6 6 Watching a movie 8 7 8 6 8 60800.0\n",
"13 4 4 4 1 1 Watching a movie 1 5 7 7 8 60801.0\n",
"14 8 7 7 7 7 Running 7 10 5 6 10 60812.0\n",
"15 7 7 6 6 6 Watching a movie 6 6 6 5 7 60817.0\n",
"16 7 6 6 5 5 Reading 1 7 7 4 7 60823.0\n",
"17 6 6 6 5 5 Watching a movie 2 9 9 7 9 60939.0\n",
"18 9 9 9 9 9 Watching a movie 7 6 5 4 10 443956.0"
]
},
"execution_count": 31,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Dimensionality reduction"
]
},
{
"cell_type": "code",
"execution_count": 32,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[9.99999996e-01 1.81226177e-09 6.72112392e-10 5.91733094e-10\n",
" 3.30434976e-10]\n",
"0.9999999994658001\n"
]
},
{
"data": {
"text/plain": [
"[]"
]
},
"execution_count": 32,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAXQAAAD4CAYAAAD8Zh1EAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjIsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+WH4yJAAAWr0lEQVR4nO3de5BU9ZnG8e8rF2USFZVJglxm0OAmeMHAiBoTReMFEcV4BfFGd4piN25la//YmE1tsltb1tb+sVtJNmZdKvESmUC8ECWWivdoKlFpFFEkmhERRjSARk2ChmDe/eP0SNP00KdnTvfv9OnnUzXF9OnD9FO/gofmnNPvMXdHRESa3z6hA4iISDJU6CIiGaFCFxHJCBW6iEhGqNBFRDJiaKgXHjVqlHd2doZ6eRGRprRq1apt7t5e6blghd7Z2UmhUAj18iIiTcnMXuvvOR1yERHJCBW6iEhGqNBFRDJChS4ikhEqdBGRjKha6GZ2o5ltMbMX+nnezOx7ZtZjZmvMbEryMYu6u6GzE/bZJ/q1u7tuLyUi0mzivEO/GZixl+fPBiYWv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0+vVYrzS/Q58G9Lj7enffASwFZpftMxv4sUeeBEaa2egU5ArC3R8H3t7LLiHWK06uhnP3N9z9meL3fwDWEd0Ht1TD1ytmroYrrsEfiw+HFb/Kr6gIsV5xcgVhZmOJbv7zw352SXy90lzo/d14utZ9QuQCOLH438D7zOzIOmeKK8R6xRVsvcysE/gc0bu7UkHXay+5IMB6FQ8frAa2AA+6eyrWK0YuCPPn6zvAPwF/7ef5xNcrzYWe2M2pExbnNZ8hmrcwGfgf4K46Z4orxHrFEWy9zOzjwJ3AP7j7e+VPV/gtDVmvKrmCrJe7f+juxxLdM3iamR1VtkuQ9YqRq+HrZWazgC3uvmpvu1XYNqj1SnOhp/Xm1FVf093f6/tvoEd3expmZqPqnCuOVN7MO9R6mdkwotLsdvdlFXYJsl7VcoX+8+Xu7wCPEd1yslTQP1/95Qq0XicB55nZBqLDsqeZ2eKyfRJfrzQX+kpgoplNMLPhwBxgedk+y4Eri2eLTwDedfc3Qucys0+ZmRW/n0a0zm/VOVccIdarqhDrVXy9HwHr3P2/+9mt4esVJ1eg9Wo3s5HF70cApwO/KdstxHpVzRVivdz9G+4+1t07iTriEXe/vGy3xNcr1j1FQ3D3nWZ2DbCCXTenXmslN6cmus/pTKCH4s2pU5LrIuBvzWwn8D4wx4untevJzJYQndEfZWa9wLeJThIFW6+YuUKs10nAFcDzxeOvAP8MjC/JFWK94uQKsV6jgVvMbAhRId7m7veE/vsYM1eQv4+V1Hu99NF/EZGMSPMhFxERqYEKXUQkI1ToIiIZoUIXEckIFbqISEao0EVEMkKFLiKSEf8PNme4Gay9ql4AAAAASUVORK5CYII=\n",
"text/plain": [
""
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"mdlPCA = PCA(n_components=5)\n",
"XPCA = mdlPCA.fit_transform(df2)\n",
"\n",
"print(mdlPCA.explained_variance_ratio_)\n",
"print(np.sum(mdlPCA.explained_variance_ratio_))\n",
"plt.plot(np.arange(0,mdlPCA.explained_variance_ratio_.shape[0]), mdlPCA.explained_variance_ratio_, '-ro')"
]
},
{
"cell_type": "code",
"execution_count": 33,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[ 5.23403869e-06 7.40036105e-06 8.97709992e-06 9.61319140e-06\n",
" 9.32793474e-06 3.94503126e-06 8.95009702e-07 -3.58017421e-06\n",
" -6.06213801e-06 7.55257058e-06 1.00000000e+00 -7.70261980e-07\n",
" -6.96515391e-07 1.46677737e-06]\n"
]
},
{
"data": {
"text/plain": [
"[]"
]
},
"execution_count": 33,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAXQAAAD4CAYAAAD8Zh1EAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjIsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+WH4yJAAAYhElEQVR4nO3df4wcd3nH8fdzd7bjc+w4tS/+cT/2gmQgbkRIcg2hhDYtpTgBxVRqpYQUaEpkRUoorSo1Qag/JJT+EG1FaQKuFdJQYSVCkJaUGgKipfxBAZ8phJg0xA3c3vrO8TkxTmInts/39I/Zqff29nZnd2d2ZnY/L+m0t7Pj7z45Ox9/Pft9vmPujoiI5F9f2gWIiEg8FOgiIl1CgS4i0iUU6CIiXUKBLiLSJQbSeuONGzf6+Ph4Wm8vIpJLBw4cOObuQ7VeSy3Qx8fHmZycTOvtRURyycymlntNl1xERLqEAl1EpEso0EVEuoQCXUSkSyjQRUS6RMNAN7MHzeyomT25zOtmZp8ws0Nm9oSZXRV/mSKSK3v3wvg49PUFj3v3pl1RT4gyQ38I2FHn9RuAbeWvXcCn2i9LRHJr717YtQumpsA9eNy1S6HeAQ0D3d2/CbxQ55SdwD954NvAejPbEleBIpIzH/kInDq1+NipU8FxSVQc19CHgemK56XysSXMbJeZTZrZ5NzcXAxvLSKZUyw2d1xi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3A3cBN7n4q7XqiylWglz+kuAt4nOAP9+fc/WC6VUX2FuC9BDPc75e/bky7qB7wQWCvmT0BvBH485TriaT8r4rPA98Dfkjw/2pm29HN7GHgv4DXmVnJzD4A/CXwdjN7Bnh7+XnmLFP7fcBa4Gvl/1d31x0kI9T6LyLSJXI1QxcRkeUp0EVEuoQCXUSkSyjQRUS6hAJdRKRLKNBFRLqEAl1EpEv8H2SstMCZeOepAAAAAElFTkSuQmCC\n",
"text/plain": [
""
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"print(mdlPCA.components_[0,:])\n",
"plt.plot(np.arange(0,mdlPCA.components_[0,:].shape[0]), mdlPCA.components_[0,:], '-ro')"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Question: What is \"wrong\" in the data?"
]
},
{
"cell_type": "code",
"execution_count": 34,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" | \n",
" Q1 | \n",
" Q2 | \n",
" Q3 | \n",
" Q4 | \n",
" Q5 | \n",
" Q7 | \n",
" Q8 | \n",
" Q9 | \n",
" Q10 | \n",
" Q11 | \n",
" tsRel | \n",
" Q6_Reading | \n",
" Q6_Running | \n",
" Q6_Watching a movie | \n",
"
\n",
" \n",
" \n",
" \n",
" count | \n",
" 19.000000 | \n",
" 19.000000 | \n",
" 19.000000 | \n",
" 19.000000 | \n",
" 19.000000 | \n",
" 19.000000 | \n",
" 19.000000 | \n",
" 19.000000 | \n",
" 19.000000 | \n",
" 19.000000 | \n",
" 19.000000 | \n",
" 19.000000 | \n",
" 19.000000 | \n",
" 19.000000 | \n",
"
\n",
" \n",
" mean | \n",
" 6.473684 | \n",
" 5.789474 | \n",
" 5.789474 | \n",
" 4.789474 | \n",
" 4.631579 | \n",
" 4.789474 | \n",
" 5.736842 | \n",
" 6.842105 | \n",
" 6.000000 | \n",
" 7.789474 | \n",
" 72315.052632 | \n",
" 0.263158 | \n",
" 0.210526 | \n",
" 0.526316 | \n",
"
\n",
" \n",
" std | \n",
" 1.540866 | \n",
" 1.781976 | \n",
" 1.812884 | \n",
" 2.016018 | \n",
" 2.113726 | \n",
" 2.393949 | \n",
" 2.256893 | \n",
" 1.708253 | \n",
" 1.795055 | \n",
" 1.618605 | \n",
" 92341.691330 | \n",
" 0.452414 | \n",
" 0.418854 | \n",
" 0.512989 | \n",
"
\n",
" \n",
" min | \n",
" 4.000000 | \n",
" 3.000000 | \n",
" 1.000000 | \n",
" 1.000000 | \n",
" 1.000000 | \n",
" 1.000000 | \n",
" 1.000000 | \n",
" 4.000000 | \n",
" 2.000000 | \n",
" 3.000000 | \n",
" 0.000000 | \n",
" 0.000000 | \n",
" 0.000000 | \n",
" 0.000000 | \n",
"
\n",
" \n",
" 25% | \n",
" 5.500000 | \n",
" 4.500000 | \n",
" 5.000000 | \n",
" 4.000000 | \n",
" 3.000000 | \n",
" 3.500000 | \n",
" 4.500000 | \n",
" 5.500000 | \n",
" 5.000000 | \n",
" 7.000000 | \n",
" 60741.500000 | \n",
" 0.000000 | \n",
" 0.000000 | \n",
" 0.000000 | \n",
"
\n",
" \n",
" 50% | \n",
" 7.000000 | \n",
" 6.000000 | \n",
" 6.000000 | \n",
" 5.000000 | \n",
" 5.000000 | \n",
" 5.000000 | \n",
" 6.000000 | \n",
" 7.000000 | \n",
" 6.000000 | \n",
" 8.000000 | \n",
" 60773.000000 | \n",
" 0.000000 | \n",
" 0.000000 | \n",
" 1.000000 | \n",
"
\n",
" \n",
" 75% | \n",
" 8.000000 | \n",
" 7.000000 | \n",
" 7.000000 | \n",
" 6.000000 | \n",
" 6.000000 | \n",
" 7.000000 | \n",
" 7.000000 | \n",
" 8.000000 | \n",
" 7.000000 | \n",
" 8.500000 | \n",
" 60806.500000 | \n",
" 0.500000 | \n",
" 0.000000 | \n",
" 1.000000 | \n",
"
\n",
" \n",
" max | \n",
" 9.000000 | \n",
" 9.000000 | \n",
" 9.000000 | \n",
" 9.000000 | \n",
" 9.000000 | \n",
" 8.000000 | \n",
" 10.000000 | \n",
" 10.000000 | \n",
" 10.000000 | \n",
" 10.000000 | \n",
" 443956.000000 | \n",
" 1.000000 | \n",
" 1.000000 | \n",
" 1.000000 | \n",
"
\n",
" \n",
"
\n",
"
"
],
"text/plain": [
" Q1 Q2 Q3 Q4 Q5 Q7 \\\n",
"count 19.000000 19.000000 19.000000 19.000000 19.000000 19.000000 \n",
"mean 6.473684 5.789474 5.789474 4.789474 4.631579 4.789474 \n",
"std 1.540866 1.781976 1.812884 2.016018 2.113726 2.393949 \n",
"min 4.000000 3.000000 1.000000 1.000000 1.000000 1.000000 \n",
"25% 5.500000 4.500000 5.000000 4.000000 3.000000 3.500000 \n",
"50% 7.000000 6.000000 6.000000 5.000000 5.000000 5.000000 \n",
"75% 8.000000 7.000000 7.000000 6.000000 6.000000 7.000000 \n",
"max 9.000000 9.000000 9.000000 9.000000 9.000000 8.000000 \n",
"\n",
" Q8 Q9 Q10 Q11 tsRel Q6_Reading \\\n",
"count 19.000000 19.000000 19.000000 19.000000 19.000000 19.000000 \n",
"mean 5.736842 6.842105 6.000000 7.789474 72315.052632 0.263158 \n",
"std 2.256893 1.708253 1.795055 1.618605 92341.691330 0.452414 \n",
"min 1.000000 4.000000 2.000000 3.000000 0.000000 0.000000 \n",
"25% 4.500000 5.500000 5.000000 7.000000 60741.500000 0.000000 \n",
"50% 6.000000 7.000000 6.000000 8.000000 60773.000000 0.000000 \n",
"75% 7.000000 8.000000 7.000000 8.500000 60806.500000 0.500000 \n",
"max 10.000000 10.000000 10.000000 10.000000 443956.000000 1.000000 \n",
"\n",
" Q6_Running Q6_Watching a movie \n",
"count 19.000000 19.000000 \n",
"mean 0.210526 0.526316 \n",
"std 0.418854 0.512989 \n",
"min 0.000000 0.000000 \n",
"25% 0.000000 0.000000 \n",
"50% 0.000000 1.000000 \n",
"75% 0.000000 1.000000 \n",
"max 1.000000 1.000000 "
]
},
"execution_count": 34,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df2.describe()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Let's normalize the data"
]
},
{
"cell_type": "code",
"execution_count": 35,
"metadata": {},
"outputs": [],
"source": [
"df2_norm = (df2-df2.min())/(df2.max()-df2.min())"
]
},
{
"cell_type": "code",
"execution_count": 36,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" | \n",
" Q1 | \n",
" Q2 | \n",
" Q3 | \n",
" Q4 | \n",
" Q5 | \n",
" Q7 | \n",
" Q8 | \n",
" Q9 | \n",
" Q10 | \n",
" Q11 | \n",
" tsRel | \n",
" Q6_Reading | \n",
" Q6_Running | \n",
" Q6_Watching a movie | \n",
"
\n",
" \n",
" \n",
" \n",
" 0 | \n",
" 0.8 | \n",
" 0.333333 | \n",
" 0.375 | \n",
" 0.625 | \n",
" 0.750 | \n",
" 0.571429 | \n",
" 0.222222 | \n",
" 0.166667 | \n",
" 0.625 | \n",
" 0.000000 | \n",
" 0.000000 | \n",
" 0.0 | \n",
" 1.0 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 1 | \n",
" 0.8 | \n",
" 0.833333 | \n",
" 0.500 | \n",
" 0.500 | \n",
" 0.625 | \n",
" 0.857143 | \n",
" 0.666667 | \n",
" 0.333333 | \n",
" 0.625 | \n",
" 0.714286 | \n",
" 0.000619 | \n",
" 1.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 2 | \n",
" 0.4 | \n",
" 0.500000 | \n",
" 0.625 | \n",
" 0.625 | \n",
" 0.500 | \n",
" 0.857143 | \n",
" 0.666667 | \n",
" 0.500000 | \n",
" 0.625 | \n",
" 0.571429 | \n",
" 0.040418 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 1.0 | \n",
"
\n",
" \n",
" 3 | \n",
" 0.2 | \n",
" 0.000000 | \n",
" 0.625 | \n",
" 0.375 | \n",
" 0.375 | \n",
" 0.285714 | \n",
" 0.777778 | \n",
" 0.666667 | \n",
" 0.375 | \n",
" 1.000000 | \n",
" 0.136721 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 1.0 | \n",
"
\n",
" \n",
" 4 | \n",
" 0.4 | \n",
" 0.500000 | \n",
" 0.500 | \n",
" 0.375 | \n",
" 0.250 | \n",
" 0.428571 | \n",
" 0.444444 | \n",
" 0.000000 | \n",
" 1.000 | \n",
" 0.714286 | \n",
" 0.136793 | \n",
" 1.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
"
\n",
" \n",
"
\n",
"
"
],
"text/plain": [
" Q1 Q2 Q3 Q4 Q5 Q7 Q8 Q9 Q10 \\\n",
"0 0.8 0.333333 0.375 0.625 0.750 0.571429 0.222222 0.166667 0.625 \n",
"1 0.8 0.833333 0.500 0.500 0.625 0.857143 0.666667 0.333333 0.625 \n",
"2 0.4 0.500000 0.625 0.625 0.500 0.857143 0.666667 0.500000 0.625 \n",
"3 0.2 0.000000 0.625 0.375 0.375 0.285714 0.777778 0.666667 0.375 \n",
"4 0.4 0.500000 0.500 0.375 0.250 0.428571 0.444444 0.000000 1.000 \n",
"\n",
" Q11 tsRel Q6_Reading Q6_Running Q6_Watching a movie \n",
"0 0.000000 0.000000 0.0 1.0 0.0 \n",
"1 0.714286 0.000619 1.0 0.0 0.0 \n",
"2 0.571429 0.040418 0.0 0.0 1.0 \n",
"3 1.000000 0.136721 0.0 0.0 1.0 \n",
"4 0.714286 0.136793 1.0 0.0 0.0 "
]
},
"execution_count": 36,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df2_norm.head()"
]
},
{
"cell_type": "code",
"execution_count": 37,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" | \n",
" Q1 | \n",
" Q2 | \n",
" Q3 | \n",
" Q4 | \n",
" Q5 | \n",
" Q7 | \n",
" Q8 | \n",
" Q9 | \n",
" Q10 | \n",
" Q11 | \n",
" tsRel | \n",
" Q6_Reading | \n",
" Q6_Running | \n",
" Q6_Watching a movie | \n",
"
\n",
" \n",
" \n",
" \n",
" count | \n",
" 19.000000 | \n",
" 19.000000 | \n",
" 19.000000 | \n",
" 19.000000 | \n",
" 19.000000 | \n",
" 19.000000 | \n",
" 19.000000 | \n",
" 19.000000 | \n",
" 19.000000 | \n",
" 19.000000 | \n",
" 19.000000 | \n",
" 19.000000 | \n",
" 19.000000 | \n",
" 19.000000 | \n",
"
\n",
" \n",
" mean | \n",
" 0.494737 | \n",
" 0.464912 | \n",
" 0.598684 | \n",
" 0.473684 | \n",
" 0.453947 | \n",
" 0.541353 | \n",
" 0.526316 | \n",
" 0.473684 | \n",
" 0.500000 | \n",
" 0.684211 | \n",
" 0.162888 | \n",
" 0.263158 | \n",
" 0.210526 | \n",
" 0.526316 | \n",
"
\n",
" \n",
" std | \n",
" 0.308173 | \n",
" 0.296996 | \n",
" 0.226611 | \n",
" 0.252002 | \n",
" 0.264216 | \n",
" 0.341993 | \n",
" 0.250766 | \n",
" 0.284709 | \n",
" 0.224382 | \n",
" 0.231229 | \n",
" 0.207997 | \n",
" 0.452414 | \n",
" 0.418854 | \n",
" 0.512989 | \n",
"
\n",
" \n",
" min | \n",
" 0.000000 | \n",
" 0.000000 | \n",
" 0.000000 | \n",
" 0.000000 | \n",
" 0.000000 | \n",
" 0.000000 | \n",
" 0.000000 | \n",
" 0.000000 | \n",
" 0.000000 | \n",
" 0.000000 | \n",
" 0.000000 | \n",
" 0.000000 | \n",
" 0.000000 | \n",
" 0.000000 | \n",
"
\n",
" \n",
" 25% | \n",
" 0.300000 | \n",
" 0.250000 | \n",
" 0.500000 | \n",
" 0.375000 | \n",
" 0.250000 | \n",
" 0.357143 | \n",
" 0.388889 | \n",
" 0.250000 | \n",
" 0.375000 | \n",
" 0.571429 | \n",
" 0.136819 | \n",
" 0.000000 | \n",
" 0.000000 | \n",
" 0.000000 | \n",
"
\n",
" \n",
" 50% | \n",
" 0.600000 | \n",
" 0.500000 | \n",
" 0.625000 | \n",
" 0.500000 | \n",
" 0.500000 | \n",
" 0.571429 | \n",
" 0.555556 | \n",
" 0.500000 | \n",
" 0.500000 | \n",
" 0.714286 | \n",
" 0.136890 | \n",
" 0.000000 | \n",
" 0.000000 | \n",
" 1.000000 | \n",
"
\n",
" \n",
" 75% | \n",
" 0.800000 | \n",
" 0.666667 | \n",
" 0.750000 | \n",
" 0.625000 | \n",
" 0.625000 | \n",
" 0.857143 | \n",
" 0.666667 | \n",
" 0.666667 | \n",
" 0.625000 | \n",
" 0.785714 | \n",
" 0.136965 | \n",
" 0.500000 | \n",
" 0.000000 | \n",
" 1.000000 | \n",
"
\n",
" \n",
" max | \n",
" 1.000000 | \n",
" 1.000000 | \n",
" 1.000000 | \n",
" 1.000000 | \n",
" 1.000000 | \n",
" 1.000000 | \n",
" 1.000000 | \n",
" 1.000000 | \n",
" 1.000000 | \n",
" 1.000000 | \n",
" 1.000000 | \n",
" 1.000000 | \n",
" 1.000000 | \n",
" 1.000000 | \n",
"
\n",
" \n",
"
\n",
"
"
],
"text/plain": [
" Q1 Q2 Q3 Q4 Q5 Q7 \\\n",
"count 19.000000 19.000000 19.000000 19.000000 19.000000 19.000000 \n",
"mean 0.494737 0.464912 0.598684 0.473684 0.453947 0.541353 \n",
"std 0.308173 0.296996 0.226611 0.252002 0.264216 0.341993 \n",
"min 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"25% 0.300000 0.250000 0.500000 0.375000 0.250000 0.357143 \n",
"50% 0.600000 0.500000 0.625000 0.500000 0.500000 0.571429 \n",
"75% 0.800000 0.666667 0.750000 0.625000 0.625000 0.857143 \n",
"max 1.000000 1.000000 1.000000 1.000000 1.000000 1.000000 \n",
"\n",
" Q8 Q9 Q10 Q11 tsRel Q6_Reading \\\n",
"count 19.000000 19.000000 19.000000 19.000000 19.000000 19.000000 \n",
"mean 0.526316 0.473684 0.500000 0.684211 0.162888 0.263158 \n",
"std 0.250766 0.284709 0.224382 0.231229 0.207997 0.452414 \n",
"min 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 \n",
"25% 0.388889 0.250000 0.375000 0.571429 0.136819 0.000000 \n",
"50% 0.555556 0.500000 0.500000 0.714286 0.136890 0.000000 \n",
"75% 0.666667 0.666667 0.625000 0.785714 0.136965 0.500000 \n",
"max 1.000000 1.000000 1.000000 1.000000 1.000000 1.000000 \n",
"\n",
" Q6_Running Q6_Watching a movie \n",
"count 19.000000 19.000000 \n",
"mean 0.210526 0.526316 \n",
"std 0.418854 0.512989 \n",
"min 0.000000 0.000000 \n",
"25% 0.000000 0.000000 \n",
"50% 0.000000 1.000000 \n",
"75% 0.000000 1.000000 \n",
"max 1.000000 1.000000 "
]
},
"execution_count": 37,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df2_norm.describe()"
]
},
{
"cell_type": "code",
"execution_count": 38,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[0.31431827 0.29012089 0.15348486 0.07788586 0.04541328]\n",
"0.8812231522564273\n"
]
},
{
"data": {
"text/plain": [
"[]"
]
},
"execution_count": 38,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAXoAAAD4CAYAAADiry33AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjIsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+WH4yJAAAfeUlEQVR4nO3deXSV1bnH8e9DIMqgOIBWBYxaRa2KYGQQoVpKFWsLLgdAsHq1NwsVq3K1ivR6rRW1t15u1TohuLTIoNyKpU7Y22oVcSAoakFUKlO0FlArCsggz/1jH25COCFvyMnZZ/h91jqLnHdInuwVfnmz3/3ube6OiIgUrmaxCxARkaaloBcRKXAKehGRAqegFxEpcAp6EZEC1zx2Aem0a9fOy8rKYpchIpI35s2bt9rd26fbl5NBX1ZWRmVlZewyRETyhpktq2ufum5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N7ENSUVo72SiNpeZtYG+B1whbuvqb07zSlZabN66orSZu7+tbsfC3QAupvZUbUOidJeCerKenuZ2enASneft6PD0mzb6fbKx6CvAjrWeN8B+Ggnjsl6Xe6+Zuufku7+FNDCzNo1cV1JxGivesVsLzNrQQjTye7+WJpDorRZfXXF/hlz938CzwOn1toV9WesrroitVdv4IdmtpTQxfsdM3u41jEZba98DPq5wKFmdpCZlQJDgJm1jpkJ/Ch157on8Lm7/z12XWb2DTOz1MfdCe3/SRPXlUSM9qpXrPZKfc2JwDvuPq6Ow7LeZknqitFmZtbezPZIfdwS+C6wqNZhMdqr3rpitJe7j3b3Du5eRsiJP7v78FqHZbS98m5xcHffbGYjgVmEkS4PuPsCMxuR2n8v8BThrvViYB3wLzlS11nAxWa2GVgPDPHULfamZGZTCaML2plZFfAfhBtT0dorYV1R2otwxXUe8HaqfxfgOqBTjdpitFmSumK02X7AQ2ZWQgjKR939idj/JxPWFetnbDtN2V6aAkFEpMDlY9eNiIg0gIJeRKTAKehFRAqcgl5EpMAp6EVECpyCXkSkwCnoRUQK3P8BGS4VFtIvSJsAAAAASUVORK5CYII=\n",
"text/plain": [
""
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"mdlPCA = PCA(n_components=5)\n",
"XPCA = mdlPCA.fit_transform(df2_norm)\n",
"\n",
"print(mdlPCA.explained_variance_ratio_)\n",
"print(np.sum(mdlPCA.explained_variance_ratio_))\n",
"\n",
"plt.plot(np.arange(0,mdlPCA.explained_variance_ratio_.shape[0]), mdlPCA.explained_variance_ratio_, '-ro')"
]
},
{
"cell_type": "code",
"execution_count": 39,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[-0.28489905 -0.3141605 -0.26107415 -0.25405393 -0.27500032 -0.36871538\n",
" -0.17301488 0.12875075 0.16485422 -0.03296608 -0.13459097 0.4957779\n",
" -0.16340968 -0.33236822]\n"
]
},
{
"data": {
"text/plain": [
"[]"
]
},
"execution_count": 39,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAXwAAAD4CAYAAADvsV2wAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjIsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+WH4yJAAAgAElEQVR4nO3de3RU5bk/8O8TAoQIyl3uCSpkRPFGUOulUi+tWBWr/jza1NrWluOp2tpTa/VE8YL00KW11VMrpdgeu8g5BAUrtlpEFF2txUOgrcpE7kK4SbgJEq7J8/vjmS3DZIbMZPbMvsz3s1bWZCab2Y8Yvnnz7nc/r6gqiIgo/Iq8LoCIiPKDgU9EVCAY+EREBYKBT0RUIBj4REQFotjrAo6md+/eWl5e7nUZRESBsXjx4q2q2ifZ13wd+OXl5airq/O6DCKiwBCRtam+xikdIqICwcAnIioQDHwiogLBwCciKhAMfCKiAsHAJ6JwqakBysuBoiJ7rKnxuiLf8PWyTCKijNTUAOPHA01N9nztWnsOAFVV3tXlExzhE1F4VFcfDntHU5O9Tgx8IgqRdesye73AMPCJKDyGDMns9QLDwCei8Jg0CSgtPfK10lJ7nXjRlohCpKoKUAW+/nV77NoVmDKFF2xjOMInonC54AILewAYNYphH4eBT0ThUl9vj8OGAR9+6G0tPsPAJ6JwiUbt8dprgY8/Bnbs8LYeH2HgE1G41NcDffoA559vz5ct87YeH2HgE1G4RKPAiBFAJGLPGfifYeATUXio2gj/5JOBoUOBjh05jx+HgU9E4bF5M7Bzp43wi4uBk05i4Mdh4BNReDgXbEeMsMdIhIEfh4FPROHhLMk8+WR7jESAVauAgwe9q8lHGPhEFB7RKHDccUD//va8osLCfs0ab+vyCQY+EYWHc8FWxJ47K3U4rQOAgU9EYeIsyXRUVNgjAx8AA5+IwmLbNmDLliMDv3t3oF8/Bn4MA5+IwiHxgq2jooI3X8Uw8IkoHBKXZDoiEfth4HTQ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P4l7rKSLzRGRF7LGHlzUmk6Lux2LfL++JyIsi0t3LGtMVqsCPtWB+GsBYACMA3CQiI7ytKm2HAPxQVU8GcC6A2wNUuyOoHVGfBPBnVY0AOB0B+W8QkYEAvgegUlVPBdABwI3eVnVU/w3g8oTXMum465X/Ruu65wE4VVVPA7AcwH35Lqo9QhX4AM4GsFJVV6vqAQAzYB09fU9VN6nqktjnu2GhM9DbqtIX1I6oInIsgM8DeBYAVPWAqu70tqqMFAPoIiLFAEoBbPS4npRU9W0A2xNeTqvjrpeS1a2qr6nqodjThQAG5b2wdghb4A8E0BD3fD0CFJoOESkHcCaAd72tJCNpd0T1mRMANAL4XWw6apqIHON1UelQ1Q0AHofd5b4JwCeq+pq3VWUs3Y67fvYtAK96XUQ6whb4kuS1QK07FZGuAGYBuEtVd3ldTzriO6J6XUs7FAM4C8AzqnomgD3w57RCK7H57nEAhgIYAOAYEWFTwjwSkWrYdGyN17WkI2yBvx7A4Ljng+DjX3ETiUhHWNjXqOpsr+vJgNMR9SPYNNrFIjLd25LSth7AelV1fpt6AfYDIAguBbBGVRtV9SCA2QDO87imTH0c67SLo3Tc9SURuQXAlQCqNCA3NIUt8BcBGCYiQ0WkE+wC1hyPa0qLiAhsHrleVZ/wup5MqOp9qjpIVcthf+dvBKX9tapuBtAgIhWxly4BEPWwpEysA3CuiJTGvn8uQUAuOMeZA+CW2Oe3AHjJw1rSJiKXA/gxgKtVtcnretIVqsCPXUS5A8Bc2Df+TFVd6m1VaTsfwM2w0fE/Yh9ZdRultN0JoEZE3gNwBoCfeFxPWmK/lbwAYAmA92H/nn17u7+I/C+AvwGoEJH1sS67kwFcJiIrAFwWe+4rKer+JYBuAObF/q1O8bTINLG1AhFRgQjVCJ+IiFJj4BMRFQgGPhFRgWDgExEVCAY+EVGBYOATERUIBj4RUYH4/5RRM0WwG+XvAAAAAElFTkSuQmCC\n",
"text/plain": [
""
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"print(mdlPCA.components_[0,:])\n",
"plt.plot(np.arange(0,mdlPCA.components_[0,:].shape[0]), mdlPCA.components_[0,:], '-ro')"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Remove tsRel column"
]
},
{
"cell_type": "code",
"execution_count": 40,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" | \n",
" Q1 | \n",
" Q2 | \n",
" Q3 | \n",
" Q4 | \n",
" Q5 | \n",
" Q7 | \n",
" Q8 | \n",
" Q9 | \n",
" Q10 | \n",
" Q11 | \n",
" Q6_Reading | \n",
" Q6_Running | \n",
" Q6_Watching a movie | \n",
"
\n",
" \n",
" \n",
" \n",
" 0 | \n",
" 0.8 | \n",
" 0.333333 | \n",
" 0.375 | \n",
" 0.625 | \n",
" 0.750 | \n",
" 0.571429 | \n",
" 0.222222 | \n",
" 0.166667 | \n",
" 0.625 | \n",
" 0.000000 | \n",
" 0.0 | \n",
" 1.0 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 1 | \n",
" 0.8 | \n",
" 0.833333 | \n",
" 0.500 | \n",
" 0.500 | \n",
" 0.625 | \n",
" 0.857143 | \n",
" 0.666667 | \n",
" 0.333333 | \n",
" 0.625 | \n",
" 0.714286 | \n",
" 1.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 2 | \n",
" 0.4 | \n",
" 0.500000 | \n",
" 0.625 | \n",
" 0.625 | \n",
" 0.500 | \n",
" 0.857143 | \n",
" 0.666667 | \n",
" 0.500000 | \n",
" 0.625 | \n",
" 0.571429 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 1.0 | \n",
"
\n",
" \n",
" 3 | \n",
" 0.2 | \n",
" 0.000000 | \n",
" 0.625 | \n",
" 0.375 | \n",
" 0.375 | \n",
" 0.285714 | \n",
" 0.777778 | \n",
" 0.666667 | \n",
" 0.375 | \n",
" 1.000000 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 1.0 | \n",
"
\n",
" \n",
" 4 | \n",
" 0.4 | \n",
" 0.500000 | \n",
" 0.500 | \n",
" 0.375 | \n",
" 0.250 | \n",
" 0.428571 | \n",
" 0.444444 | \n",
" 0.000000 | \n",
" 1.000 | \n",
" 0.714286 | \n",
" 1.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
"
\n",
" \n",
"
\n",
"
"
],
"text/plain": [
" Q1 Q2 Q3 Q4 Q5 Q7 Q8 Q9 Q10 \\\n",
"0 0.8 0.333333 0.375 0.625 0.750 0.571429 0.222222 0.166667 0.625 \n",
"1 0.8 0.833333 0.500 0.500 0.625 0.857143 0.666667 0.333333 0.625 \n",
"2 0.4 0.500000 0.625 0.625 0.500 0.857143 0.666667 0.500000 0.625 \n",
"3 0.2 0.000000 0.625 0.375 0.375 0.285714 0.777778 0.666667 0.375 \n",
"4 0.4 0.500000 0.500 0.375 0.250 0.428571 0.444444 0.000000 1.000 \n",
"\n",
" Q11 Q6_Reading Q6_Running Q6_Watching a movie \n",
"0 0.000000 0.0 1.0 0.0 \n",
"1 0.714286 1.0 0.0 0.0 \n",
"2 0.571429 0.0 0.0 1.0 \n",
"3 1.000000 0.0 0.0 1.0 \n",
"4 0.714286 1.0 0.0 0.0 "
]
},
"execution_count": 40,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df2_noTs = df2_norm[df2_norm.columns[df2_norm.columns.str.contains('tsRel')==False]]\n",
"df2_noTs.head()"
]
},
{
"cell_type": "code",
"execution_count": 41,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" | \n",
" Q1 | \n",
" Q2 | \n",
" Q3 | \n",
" Q4 | \n",
" Q5 | \n",
" Q7 | \n",
" Q8 | \n",
" Q9 | \n",
" Q10 | \n",
" Q11 | \n",
" Q6_Reading | \n",
" Q6_Running | \n",
" Q6_Watching a movie | \n",
"
\n",
" \n",
" \n",
" \n",
" 0 | \n",
" 0.8 | \n",
" 0.333333 | \n",
" 0.375 | \n",
" 0.625 | \n",
" 0.750 | \n",
" 0.571429 | \n",
" 0.222222 | \n",
" 0.166667 | \n",
" 0.625 | \n",
" 0.000000 | \n",
" 0.0 | \n",
" 1.0 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 1 | \n",
" 0.8 | \n",
" 0.833333 | \n",
" 0.500 | \n",
" 0.500 | \n",
" 0.625 | \n",
" 0.857143 | \n",
" 0.666667 | \n",
" 0.333333 | \n",
" 0.625 | \n",
" 0.714286 | \n",
" 1.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 2 | \n",
" 0.4 | \n",
" 0.500000 | \n",
" 0.625 | \n",
" 0.625 | \n",
" 0.500 | \n",
" 0.857143 | \n",
" 0.666667 | \n",
" 0.500000 | \n",
" 0.625 | \n",
" 0.571429 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 1.0 | \n",
"
\n",
" \n",
" 3 | \n",
" 0.2 | \n",
" 0.000000 | \n",
" 0.625 | \n",
" 0.375 | \n",
" 0.375 | \n",
" 0.285714 | \n",
" 0.777778 | \n",
" 0.666667 | \n",
" 0.375 | \n",
" 1.000000 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 1.0 | \n",
"
\n",
" \n",
" 4 | \n",
" 0.4 | \n",
" 0.500000 | \n",
" 0.500 | \n",
" 0.375 | \n",
" 0.250 | \n",
" 0.428571 | \n",
" 0.444444 | \n",
" 0.000000 | \n",
" 1.000 | \n",
" 0.714286 | \n",
" 1.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
"
\n",
" \n",
"
\n",
"
"
],
"text/plain": [
" Q1 Q2 Q3 Q4 Q5 Q7 Q8 Q9 Q10 \\\n",
"0 0.8 0.333333 0.375 0.625 0.750 0.571429 0.222222 0.166667 0.625 \n",
"1 0.8 0.833333 0.500 0.500 0.625 0.857143 0.666667 0.333333 0.625 \n",
"2 0.4 0.500000 0.625 0.625 0.500 0.857143 0.666667 0.500000 0.625 \n",
"3 0.2 0.000000 0.625 0.375 0.375 0.285714 0.777778 0.666667 0.375 \n",
"4 0.4 0.500000 0.500 0.375 0.250 0.428571 0.444444 0.000000 1.000 \n",
"\n",
" Q11 Q6_Reading Q6_Running Q6_Watching a movie \n",
"0 0.000000 0.0 1.0 0.0 \n",
"1 0.714286 1.0 0.0 0.0 \n",
"2 0.571429 0.0 0.0 1.0 \n",
"3 1.000000 0.0 0.0 1.0 \n",
"4 0.714286 1.0 0.0 0.0 "
]
},
"execution_count": 41,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df2_noTs = df2_norm.drop(columns=['tsRel'])\n",
"df2_noTs.head()"
]
},
{
"cell_type": "code",
"execution_count": 42,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[0.31894549 0.29885772 0.1547158 0.07966809 0.04678632]\n",
"0.898973407637008\n"
]
},
{
"data": {
"text/plain": [
"[]"
]
},
"execution_count": 42,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAXoAAAD4CAYAAADiry33AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjIsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+WH4yJAAAeoElEQVR4nO3deXRV9bn/8fdDABnUohJUCAj+ylKpDKURQevUer2ilsHqLYNard4YFW1v21tRnFov16GiaGtrqbOCVG8FqYpopb3W5QBhUHEsRZAUFEoVVFREnt8f35ObQzghO8nJ+Z5z8nmtdVZy9v7u5Mle4ZPNd+/9bHN3RESkeLWJXYCIiLQsBb2ISJFT0IuIFDkFvYhIkVPQi4gUubaxC8ika9eu3rt379hliIgUjEWLFv3D3UszrcvLoO/duzdVVVWxyxARKRhmtqq+dZq6EREpcgp6EZEip6AXESlyCnoRkSKnoBcRKXLFE/TTp0Pv3tCmTfg4fXrsikRE8kJeXl7ZaNOnQ0UFbN4c3q9aF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y4z28fMLPX5EML+39DCdSURY381KNb+Sn3PO4DX3f3GeoblfJ8lqSvGPjOzUjPrkvq8I3As8EadYTH2V4N1xdhf7n6Ju5e5e29CTsx399PqDMvq/iq4h4O7+1YzmwDMI1zpcqe7v2pmlan1twGPE85aLwc2A2flSV2nAOeZ2VbgE2CMp06xtyQze4BwdUFXM6sGriScmIq2vxLWFWV/EY64TgdeSc3vAlwK9EqrLcY+S1JXjH22L3CPmZUQgvJBd3809r/JhHXF+h3bQUvuL7VAEBEpcoU4dSMiIo2goBcRKXIKehGRIqegFxEpcgp6EZEip6AXESlyCnoRkSL3/wHIWf3OvUu/IQAAAABJRU5ErkJggg==\n",
"text/plain": [
""
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"mdlPCA = PCA(n_components=5)\n",
"XPCA = mdlPCA.fit_transform(df2_noTs)\n",
"\n",
"print(mdlPCA.explained_variance_ratio_)\n",
"print(np.sum(mdlPCA.explained_variance_ratio_))\n",
"\n",
"plt.plot(np.arange(0,mdlPCA.explained_variance_ratio_.shape[0]), mdlPCA.explained_variance_ratio_, '-ro')"
]
},
{
"cell_type": "code",
"execution_count": 43,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[-0.30244657 -0.32214438 -0.26410732 -0.25227651 -0.27659662 -0.3869891\n",
" -0.17634825 0.12991123 0.1677439 -0.02453888 0.49300779 -0.20299601\n",
" -0.29001178]\n"
]
},
{
"data": {
"text/plain": [
"[]"
]
},
"execution_count": 43,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAXwAAAD4CAYAAADvsV2wAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjIsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+WH4yJAAAgAElEQVR4nO3deZRcdZn/8feTDW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FmZ0EXAqcGkJojep1qyrhtw9yfBl4CP/jvTOE8Hy8UfXaUcC5eIv46fbbNkVlJBYXAU1m9gxwKHBNzPH0WPs3lLuAecCzeC5IzdYEZvZL4C/A+81suZl9jiIV+JKuyHv5f8BuwCPt//ZvieRa2lpBRKQ2VFULX0REilPCFxGpEUr4IiI1QglfRKRGKOGLiNQIJXwRkRqhhC8iUiP+PxvzuBYWy9FqAAAAAElFTkSuQmCC\n",
"text/plain": [
""
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"print(mdlPCA.components_[0,:])\n",
"plt.plot(np.arange(0,mdlPCA.components_[0,:].shape[0]), mdlPCA.components_[0,:], '-ro')"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Alternative approach: Keep tsRel, but exclude outliers"
]
},
{
"cell_type": "code",
"execution_count": 44,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" | \n",
" Q1 | \n",
" Q2 | \n",
" Q3 | \n",
" Q4 | \n",
" Q5 | \n",
" Q7 | \n",
" Q8 | \n",
" Q9 | \n",
" Q10 | \n",
" Q11 | \n",
" tsRel | \n",
" Q6_Reading | \n",
" Q6_Running | \n",
" Q6_Watching a movie | \n",
"
\n",
" \n",
" \n",
" \n",
" 3 | \n",
" 0.25 | \n",
" 0.0 | \n",
" 0.714286 | \n",
" 0.500000 | \n",
" 0.500000 | \n",
" 0.285714 | \n",
" 0.777778 | \n",
" 0.666667 | \n",
" 0.375 | \n",
" 1.00 | \n",
" 0.000000 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 1.0 | \n",
"
\n",
" \n",
" 4 | \n",
" 0.50 | \n",
" 0.6 | \n",
" 0.571429 | \n",
" 0.500000 | \n",
" 0.333333 | \n",
" 0.428571 | \n",
" 0.444444 | \n",
" 0.000000 | \n",
" 1.000 | \n",
" 0.50 | \n",
" 0.132780 | \n",
" 1.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 5 | \n",
" 1.00 | \n",
" 0.8 | \n",
" 1.000000 | \n",
" 0.333333 | \n",
" 0.333333 | \n",
" 1.000000 | \n",
" 0.333333 | \n",
" 1.000000 | \n",
" 0.000 | \n",
" 0.50 | \n",
" 0.228216 | \n",
" 0.0 | \n",
" 1.0 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 6 | \n",
" 0.00 | \n",
" 0.0 | \n",
" 0.000000 | \n",
" 0.000000 | \n",
" 0.000000 | \n",
" 0.000000 | \n",
" 0.000000 | \n",
" 1.000000 | \n",
" 0.750 | \n",
" 0.50 | \n",
" 0.257261 | \n",
" 1.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 7 | \n",
" 0.75 | \n",
" 0.0 | \n",
" 0.857143 | \n",
" 0.833333 | \n",
" 0.666667 | \n",
" 0.428571 | \n",
" 0.555556 | \n",
" 0.666667 | \n",
" 0.500 | \n",
" 0.75 | \n",
" 0.269710 | \n",
" 1.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
"
\n",
" \n",
"
\n",
"
"
],
"text/plain": [
" Q1 Q2 Q3 Q4 Q5 Q7 Q8 Q9 \\\n",
"3 0.25 0.0 0.714286 0.500000 0.500000 0.285714 0.777778 0.666667 \n",
"4 0.50 0.6 0.571429 0.500000 0.333333 0.428571 0.444444 0.000000 \n",
"5 1.00 0.8 1.000000 0.333333 0.333333 1.000000 0.333333 1.000000 \n",
"6 0.00 0.0 0.000000 0.000000 0.000000 0.000000 0.000000 1.000000 \n",
"7 0.75 0.0 0.857143 0.833333 0.666667 0.428571 0.555556 0.666667 \n",
"\n",
" Q10 Q11 tsRel Q6_Reading Q6_Running Q6_Watching a movie \n",
"3 0.375 1.00 0.000000 0.0 0.0 1.0 \n",
"4 1.000 0.50 0.132780 1.0 0.0 0.0 \n",
"5 0.000 0.50 0.228216 0.0 1.0 0.0 \n",
"6 0.750 0.50 0.257261 1.0 0.0 0.0 \n",
"7 0.500 0.75 0.269710 1.0 0.0 0.0 "
]
},
"execution_count": 44,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df2Fil = df2[np.logical_and(df2.tsRel>60000, df2.tsRel<61000)]\n",
"df2Fil_norm = (df2Fil-df2Fil.min())/(df2Fil.max()-df2Fil.min())\n",
"df2Fil_norm.head()"
]
},
{
"cell_type": "code",
"execution_count": 45,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[0.34631596 0.27017825 0.14469026 0.07712654 0.05616314]\n",
"0.8944741480656595\n"
]
},
{
"data": {
"text/plain": [
"[]"
]
},
"execution_count": 45,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAXoAAAD4CAYAAADiry33AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjIsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+WH4yJAAAfj0lEQVR4nO3de3xV1Zn/8c9DABHQYSoRkADxgkVQUcwg9Ya2lQFveB80tbVqY1RqHceptrZURlGrtXeoUnVaFUUs6qAV4dfWFlsvJWgUUHEQBSIqiFakiEh5fn+sk+GQnJgdOCfrXL7v1yuv5OxL8mS/8OvOOms929wdEREpXh1iFyAiIrmloBcRKXIKehGRIqegFxEpcgp6EZEi1zF2AZn07NnTKysrY5chIlIwFixY8K67l2fal5dBX1lZSV1dXewyREQKhpktb2mfhm5ERIqcgl5EpMgp6EVEilyioDez0Wa2xMyWmtlVGfaPNbMXzazezOrM7Ii0fW+Y2cLGfdksXkREWtfqm7FmVgZMBo4FGoD5ZjbL3V9KO+z3wCx3dzM7EJgBDErbf4y7v5vFukVEJKEkd/TDgaXuvszdNwHTgbHpB7j7et/aHa0b0P6d0qZNg8pK6NAhfJ42rd1LEBHJR0mCvi+wMu11Q2rbNszsFDN7BfgtcF7aLgfmmtkCM6tp6Ye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xXAz27/JIVGuV4K62v16mdkJwGp3X/Bph2XYtt3XqxCDfocehBKzLndf1/inpLs/BnQys545riuJGNerVTGvl5l1IoTpNHd/MMMhUa5Za3XF/jfm7n8D/giMbrIr6r+xluqKdL0OB04yszcIQ7yfN7N7mhyT1etViEG/3Q9CiV2XmfU2C835zWw44fqvzXFdScS4Xq2Kdb1SP/MO4GV3/2ELh7X7NUtSV4xrZmblZtYj9fXOwBeBV5ocFuN6tVpXjOvl7t9y9wp3ryTkxB/c/UtNDsvq9UrycPC84jv2IJTYdZ0OXGRmm4GPgHGeeos9l8zsPsLsgp5m1gB8j/DGVLTrlbCuKNeLcMd1DrAwNb4L8G2gf1ptMa5ZkrpiXLM+wK/NrIwQlDPc/dHY/00mrCvWv7Fmcnm91AJBRKTIFeLQjYiItIGCXkSkyCnoRUSKnIJeRKTIKehFRIqcgl5EpMgp6EVEitz/B0aaKn8aJddmAAAAAElFTkSuQmCC\n",
"text/plain": [
""
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"mdlPCA = PCA(n_components=5)\n",
"XPCA = mdlPCA.fit_transform(df2Fil_norm)\n",
"\n",
"print(mdlPCA.explained_variance_ratio_)\n",
"print(np.sum(mdlPCA.explained_variance_ratio_))\n",
"\n",
"plt.plot(np.arange(0,mdlPCA.explained_variance_ratio_.shape[0]), mdlPCA.explained_variance_ratio_, '-ro')"
]
},
{
"cell_type": "code",
"execution_count": 46,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[-0.43656834 -0.36520933 -0.30003171 -0.22317841 -0.26032745 -0.38821589\n",
" -0.21312891 0.05576004 0.17168435 -0.07017853 -0.05979342 0.27181642\n",
" -0.3812503 0.10943387]\n"
]
},
{
"data": {
"text/plain": [
"[]"
]
},
"execution_count": 46,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAXwAAAD6CAYAAACiefy7AAAABHNCSVQICAgIf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ecqxD/Hycd3W9YmWUBAAAAAElFTkSuQmCC\n",
"text/plain": [
""
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"print(mdlPCA.components_[0,:])\n",
"plt.plot(np.arange(0,mdlPCA.components_[0,:].shape[0]), mdlPCA.components_[0,:], '-ro')"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Predictive models\n",
"\n",
"#### Can we predict motivation?\n",
"#### Can we predict stress?"
]
},
{
"cell_type": "code",
"execution_count": 47,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" | \n",
" Q1 | \n",
" Q2 | \n",
" Q3 | \n",
" Q4 | \n",
" Q5 | \n",
" Q7 | \n",
" Q8 | \n",
" Q9 | \n",
" Q10 | \n",
" Q11 | \n",
" Q6_Reading | \n",
" Q6_Running | \n",
" Q6_Watching a movie | \n",
"
\n",
" \n",
" \n",
" \n",
" 0 | \n",
" 0.8 | \n",
" 0.333333 | \n",
" 0.375 | \n",
" 0.625 | \n",
" 0.750 | \n",
" 0.571429 | \n",
" 0.222222 | \n",
" 0.166667 | \n",
" 0.625 | \n",
" 0.000000 | \n",
" 0.0 | \n",
" 1.0 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 1 | \n",
" 0.8 | \n",
" 0.833333 | \n",
" 0.500 | \n",
" 0.500 | \n",
" 0.625 | \n",
" 0.857143 | \n",
" 0.666667 | \n",
" 0.333333 | \n",
" 0.625 | \n",
" 0.714286 | \n",
" 1.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 2 | \n",
" 0.4 | \n",
" 0.500000 | \n",
" 0.625 | \n",
" 0.625 | \n",
" 0.500 | \n",
" 0.857143 | \n",
" 0.666667 | \n",
" 0.500000 | \n",
" 0.625 | \n",
" 0.571429 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 1.0 | \n",
"
\n",
" \n",
" 3 | \n",
" 0.2 | \n",
" 0.000000 | \n",
" 0.625 | \n",
" 0.375 | \n",
" 0.375 | \n",
" 0.285714 | \n",
" 0.777778 | \n",
" 0.666667 | \n",
" 0.375 | \n",
" 1.000000 | \n",
" 0.0 | \n",
" 0.0 | \n",
" 1.0 | \n",
"
\n",
" \n",
" 4 | \n",
" 0.4 | \n",
" 0.500000 | \n",
" 0.500 | \n",
" 0.375 | \n",
" 0.250 | \n",
" 0.428571 | \n",
" 0.444444 | \n",
" 0.000000 | \n",
" 1.000 | \n",
" 0.714286 | \n",
" 1.0 | \n",
" 0.0 | \n",
" 0.0 | \n",
"
\n",
" \n",
"
\n",
"
"
],
"text/plain": [
" Q1 Q2 Q3 Q4 Q5 Q7 Q8 Q9 Q10 \\\n",
"0 0.8 0.333333 0.375 0.625 0.750 0.571429 0.222222 0.166667 0.625 \n",
"1 0.8 0.833333 0.500 0.500 0.625 0.857143 0.666667 0.333333 0.625 \n",
"2 0.4 0.500000 0.625 0.625 0.500 0.857143 0.666667 0.500000 0.625 \n",
"3 0.2 0.000000 0.625 0.375 0.375 0.285714 0.777778 0.666667 0.375 \n",
"4 0.4 0.500000 0.500 0.375 0.250 0.428571 0.444444 0.000000 1.000 \n",
"\n",
" Q11 Q6_Reading Q6_Running Q6_Watching a movie \n",
"0 0.000000 0.0 1.0 0.0 \n",
"1 0.714286 1.0 0.0 0.0 \n",
"2 0.571429 0.0 0.0 1.0 \n",
"3 1.000000 0.0 0.0 1.0 \n",
"4 0.714286 1.0 0.0 0.0 "
]
},
"execution_count": 47,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df3 = df2.drop(columns=['tsRel'])\n",
"df3_norm = (df3-df3.min())/(df3.max()-df3.min())\n",
"df3_norm.head()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Select X and y\n",
""
]
},
{
"cell_type": "code",
"execution_count": 48,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
":1: FutureWarning: The pandas.np module is deprecated and will be removed from pandas in a future version. Import numpy directly instead\n",
" colX = df3.columns[pd.np.r_[0:8,10:13]]\n"
]
},
{
"data": {
"text/plain": [
"['Q1',\n",
" 'Q2',\n",
" 'Q3',\n",
" 'Q4',\n",
" 'Q5',\n",
" 'Q7',\n",
" 'Q8',\n",
" 'Q9',\n",
" 'Q6_Reading',\n",
" 'Q6_Running',\n",
" 'Q6_Watching a movie']"
]
},
"execution_count": 48,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"colX = df3.columns[pd.np.r_[0:8,10:13]]\n",
"colX.tolist()"
]
},
{
"cell_type": "code",
"execution_count": 49,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"['Q11']"
]
},
"execution_count": 49,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"colY = ['Q10'] # level of stress;\n",
"colY = ['Q11'] # level of motivation;\n",
"\n",
"colY"
]
},
{
"cell_type": "code",
"execution_count": 50,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"(19, 11)\n"
]
},
{
"data": {
"text/plain": [
"array([[ 8, 5, 4, 6, 7, 5, 3, 5, 0, 1, 0],\n",
" [ 8, 8, 5, 5, 6, 7, 7, 6, 1, 0, 0],\n",
" [ 6, 6, 6, 6, 5, 7, 7, 7, 0, 0, 1],\n",
" [ 5, 3, 6, 4, 4, 3, 8, 8, 0, 0, 1],\n",
" [ 6, 6, 5, 4, 3, 4, 5, 4, 1, 0, 0],\n",
" [ 8, 7, 8, 3, 3, 8, 4, 10, 0, 1, 0],\n",
" [ 4, 3, 1, 1, 1, 1, 1, 10, 1, 0, 0],\n",
" [ 7, 3, 7, 6, 5, 4, 6, 8, 1, 0, 0],\n",
" [ 5, 5, 5, 4, 4, 4, 4, 5, 0, 0, 1],\n",
" [ 6, 6, 6, 6, 6, 4, 6, 6, 0, 0, 1],\n",
" [ 4, 4, 4, 5, 3, 5, 2, 7, 0, 0, 1],\n",
" [ 7, 7, 7, 2, 2, 7, 6, 7, 0, 1, 0],\n",
" [ 8, 8, 8, 6, 6, 8, 7, 8, 0, 0, 1],\n",
" [ 4, 4, 4, 1, 1, 1, 5, 7, 0, 0, 1],\n",
" [ 8, 7, 7, 7, 7, 7, 10, 5, 0, 1, 0],\n",
" [ 7, 7, 6, 6, 6, 6, 6, 6, 0, 0, 1],\n",
" [ 7, 6, 6, 5, 5, 1, 7, 7, 1, 0, 0],\n",
" [ 6, 6, 6, 5, 5, 2, 9, 9, 0, 0, 1],\n",
" [ 9, 9, 9, 9, 9, 7, 6, 5, 0, 0, 1]])"
]
},
"execution_count": 50,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"X = np.array(df3[colX])\n",
"print(X.shape)\n",
"X"
]
},
{
"cell_type": "code",
"execution_count": 51,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"(19, 1)\n"
]
},
{
"data": {
"text/plain": [
"array([[ 3],\n",
" [ 8],\n",
" [ 7],\n",
" [10],\n",
" [ 8],\n",
" [ 8],\n",
" [ 8],\n",
" [ 9],\n",
" [ 7],\n",
" [ 6],\n",
" [ 7],\n",
" [ 8],\n",
" [ 8],\n",
" [ 8],\n",
" [10],\n",
" [ 7],\n",
" [ 7],\n",
" [ 9],\n",
" [10]])"
]
},
"execution_count": 51,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"y = np.array(df3[colY])\n",
"print(y.shape)\n",
"y"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Normalize data"
]
},
{
"cell_type": "code",
"execution_count": 52,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.])"
]
},
"execution_count": 52,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from sklearn.preprocessing import StandardScaler\n",
"from sklearn.preprocessing import MinMaxScaler\n",
"\n",
"#scaler = StandardScaler()\n",
"scaler = MinMaxScaler()\n",
"\n",
"scaler.fit(X)\n",
"Xnorm = scaler.transform(X)\n",
"Xnorm.max(axis=0)"
]
},
{
"cell_type": "code",
"execution_count": 53,
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"from sklearn.svm import SVR\n",
"import matplotlib.pyplot as plt"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"#### Cross validation with leave one out"
]
},
{
"cell_type": "code",
"execution_count": 54,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"TRAIN: [ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18] TEST: [0]\n",
"TRAIN: [ 0 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18] TEST: [1]\n",
"TRAIN: [ 0 1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18] TEST: [2]\n",
"TRAIN: [ 0 1 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18] TEST: [3]\n",
"TRAIN: [ 0 1 2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18] TEST: [4]\n",
"TRAIN: [ 0 1 2 3 4 6 7 8 9 10 11 12 13 14 15 16 17 18] TEST: [5]\n",
"TRAIN: [ 0 1 2 3 4 5 7 8 9 10 11 12 13 14 15 16 17 18] TEST: [6]\n",
"TRAIN: [ 0 1 2 3 4 5 6 8 9 10 11 12 13 14 15 16 17 18] TEST: [7]\n",
"TRAIN: [ 0 1 2 3 4 5 6 7 9 10 11 12 13 14 15 16 17 18] TEST: [8]\n",
"TRAIN: [ 0 1 2 3 4 5 6 7 8 10 11 12 13 14 15 16 17 18] TEST: [9]\n",
"TRAIN: [ 0 1 2 3 4 5 6 7 8 9 11 12 13 14 15 16 17 18] TEST: [10]\n",
"TRAIN: [ 0 1 2 3 4 5 6 7 8 9 10 12 13 14 15 16 17 18] TEST: [11]\n",
"TRAIN: [ 0 1 2 3 4 5 6 7 8 9 10 11 13 14 15 16 17 18] TEST: [12]\n",
"TRAIN: [ 0 1 2 3 4 5 6 7 8 9 10 11 12 14 15 16 17 18] TEST: [13]\n",
"TRAIN: [ 0 1 2 3 4 5 6 7 8 9 10 11 12 13 15 16 17 18] TEST: [14]\n",
"TRAIN: [ 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 16 17 18] TEST: [15]\n",
"TRAIN: [ 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 17 18] TEST: [16]\n",
"TRAIN: [ 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 18] TEST: [17]\n",
"TRAIN: [ 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17] TEST: [18]\n"
]
}
],
"source": [
"from sklearn.model_selection import LeaveOneOut\n",
"\n",
"loo = LeaveOneOut()\n",
"for train_index, test_index in loo.split(Xnorm):\n",
" print('TRAIN: ' + str(train_index) + ' TEST: ' + str(test_index))\n"
]
},
{
"cell_type": "code",
"execution_count": 55,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Y : [[3]] , pred as: [6.71770473]\n",
"Y : [[8]] , pred as: [8.44358673]\n",
"Y : [[7]] , pred as: [8.57175498]\n",
"Y : [[10]] , pred as: [7.62213136]\n",
"Y : [[8]] , pred as: [6.70446542]\n",
"Y : [[8]] , pred as: [8.9269527]\n",
"Y : [[8]] , pred as: [5.14777884]\n",
"Y : [[9]] , pred as: [8.02397316]\n",
"Y : [[7]] , pred as: [6.22595715]\n",
"Y : [[6]] , pred as: [7.94496256]\n",
"Y : [[7]] , pred as: [6.21621235]\n",
"Y : [[8]] , pred as: [7.00076291]\n",
"Y : [[8]] , pred as: [9.45348764]\n",
"Y : [[8]] , pred as: [6.27163448]\n",
"Y : [[10]] , pred as: [6.519619]\n",
"Y : [[7]] , pred as: [8.10618284]\n",
"Y : [[7]] , pred as: [8.58400087]\n",
"Y : [[9]] , pred as: [7.92971992]\n",
"Y : [[10]] , pred as: [6.78948034]\n"
]
}
],
"source": [
"import warnings\n",
"warnings.filterwarnings('ignore')\n",
"\n",
"from sklearn.svm import LinearSVR\n",
"\n",
"loo = LeaveOneOut()\n",
"\n",
"predAll = np.zeros([y.shape[0],1])\n",
"\n",
"i=0\n",
"for train_index, test_index in loo.split(Xnorm):\n",
"\n",
" X_train, X_test = Xnorm[train_index], Xnorm[test_index]\n",
" y_train, y_test = y[train_index], y[test_index]\n",
"\n",
" regr = LinearSVR(random_state=0, tol=1e-5)\n",
" \n",
" regr.fit(X_train, y_train) # Train the model\n",
"\n",
" ypred = regr.predict(X_test) # Apply the model\n",
" \n",
" predAll[i] = ypred\n",
" \n",
" print('Y : ' + str(y_test) + ' , pred as: ' + str(ypred))\n",
" i = i + 1 \n"
]
},
{
"cell_type": "code",
"execution_count": 56,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[1. , 0.01086243],\n",
" [0.01086243, 1. ]])"
]
},
"execution_count": 56,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"np.corrcoef(y.T, predAll.T)"
]
},
{
"cell_type": "code",
"execution_count": 57,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
""
]
},
"execution_count": 57,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAWoAAAD4CAYAAADFAawfAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjIsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+WH4yJAAAPxUlEQVR4nO3dXWxkZ33H8e8/XqPMRkVOE4Pw0nRBQg5NULKphXhRo0KgBgphiVopSFQUVSwXiLcLV+xNEypVFC0XcIW0glKk0rRkWRboRUxEW3pFKidmtVkSC/EWMgvEiJgCGYFj/r3weLPe2OsZe86c5+x8P9LK9uPx+Cdr5zfnPOec50RmIkkq1xV1B5AkXZpFLUmFs6glqXAWtSQVzqKWpMLtq+JJr7322jx48GAVTy1Jl6UHH3zwZ5k5udX3KinqgwcPsrCwUMVTS9JlKSJ+uN33nPqQpMJZ1JJUOItakgpnUUtS4SxqSSpcJWd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