Skip to content

Commit 959e63d

Browse files
committed
New Order
1 parent 93f183a commit 959e63d

19 files changed

+87
-14
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Module_1g_TerminologiesModule1.ipynb

+5-4
Original file line numberDiff line numberDiff line change
@@ -47,22 +47,23 @@
4747
}
4848
],
4949
"metadata": {
50+
"anaconda-cloud": {},
5051
"kernelspec": {
51-
"display_name": "Python 3",
52+
"display_name": "Python [default]",
5253
"language": "python",
5354
"name": "python3"
5455
},
5556
"language_info": {
5657
"codemirror_mode": {
5758
"name": "ipython",
58-
"version": 2
59+
"version": 3
5960
},
6061
"file_extension": ".py",
6162
"mimetype": "text/x-python",
6263
"name": "python",
6364
"nbconvert_exporter": "python",
64-
"pygments_lexer": "ipython2",
65-
"version": "2.7.10"
65+
"pygments_lexer": "ipython3",
66+
"version": "3.5.2"
6667
}
6768
},
6869
"nbformat": 4,

Module_1b_BasicMetrics.ipynb Module_2a_Basic_Stat_Metrics.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2820,7 +2820,7 @@
28202820
"metadata": {
28212821
"anaconda-cloud": {},
28222822
"kernelspec": {
2823-
"display_name": "Python 3",
2823+
"display_name": "Python [default]",
28242824
"language": "python",
28252825
"name": "python3"
28262826
},

Module_1c_probability.ipynb Module_2b_probability.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@
451451
"metadata": {
452452
"anaconda-cloud": {},
453453
"kernelspec": {
454-
"display_name": "Python 3",
454+
"display_name": "Python [default]",
455455
"language": "python",
456456
"name": "python3"
457457
},

module_1d_resampling.ipynb Module_2c_resampling.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,7 @@
10641064
"metadata": {
10651065
"anaconda-cloud": {},
10661066
"kernelspec": {
1067-
"display_name": "Python 3",
1067+
"display_name": "Python [default]",
10681068
"language": "python",
10691069
"name": "python3"
10701070
},

Module_1e_Distributions.ipynb Module_2d_Distributions.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@
717717
"metadata": {
718718
"anaconda-cloud": {},
719719
"kernelspec": {
720-
"display_name": "Python 3",
720+
"display_name": "Python [default]",
721721
"language": "python",
722722
"name": "python3"
723723
},

Module_1f_HypothesisTesting.ipynb Module_2e_HypothesisTesting.ipynb

+2-1
Original file line numberDiff line numberDiff line change
@@ -588,8 +588,9 @@
588588
}
589589
],
590590
"metadata": {
591+
"anaconda-cloud": {},
591592
"kernelspec": {
592-
"display_name": "Python 3",
593+
"display_name": "Python [default]",
593594
"language": "python",
594595
"name": "python3"
595596
},

Module_4a_Terminologies.ipynb

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"# Terminology\n",
8+
"\n",
9+
"1. Null Hypothesis\n",
10+
"2. Alternate Hypothesis\n",
11+
"3. p-value (Probability of observing the metric from the data at least as extreme as computed just by chance)\n",
12+
"4. Bootstrap\n",
13+
"5. Acceptance Region\n",
14+
"6. Rejection Region\n",
15+
"7. t-test\n",
16+
"8. One-tailed test\n",
17+
"9. Two-tailed test\n",
18+
"10. Significance test\n",
19+
"11. Confidence interval\n",
20+
"12. Power of a test\n",
21+
"13. type 1 error (Rejecting null hypothesis when it is true). Also called false positive.\n",
22+
"14. type 2 error (Failing to reject null hypothesis when it is false). Also called false negative\n",
23+
"\n",
24+
"# Some Practical thoughts \n",
25+
"\n",
26+
"1. Data could be biased. Confidence intervals may then not be representative.\n",
27+
"2. One way to handle biased data is to use bias-corrected-confidence-intervals. \n",
28+
"3. Outliers can impact confidence intervals. \n",
29+
"4. Too often, people remove outliers. But they might be encoding some necessary information.\n",
30+
"5. One way to handle outliers is to use ranking, instead of actual numbers.\n",
31+
"6. If sample size is small, bootstrapping underestimates the size of confidence interval. \n",
32+
"7. Better to use significance testing if sample size is small.\n",
33+
"8. Bootstrapping should not be used find maximum value (Eg: maximum sales of shoes, 5th largest sales of shoes, etc)\n",
34+
"9. Use rank transformation when using bootstrapping, if the data has outliers\n",
35+
"10. Lack of representativeness is a problem for any statistical technique\n",
36+
"11. The experiment should be random. (Eg: When doing A/B testing, randomize the subjects). Experimental bias can lead to wrong inferences. \n",
37+
"12. Resampling time series data is tricky. The assumption we used - that each data point is independent, doesn't hold good for time series data. \n",
38+
"13. Rank transformation changes the question. For our shoe sales example, a rank transformed analysis would be: \"Do sales tend to be higher after price optimization?\". (Our analysis was: \"Does post-price-optimization sales have a higher mean sales?\")\n",
39+
"14. Power of a test increases if sample size increases\n",
40+
"\n",
41+
"# Types of Error\n",
42+
"\n",
43+
"1. Sampling Bias\n",
44+
"2. Measurement Error\n",
45+
"3. Random Error\n"
46+
]
47+
}
48+
],
49+
"metadata": {
50+
"anaconda-cloud": {},
51+
"kernelspec": {
52+
"display_name": "Python [default]",
53+
"language": "python",
54+
"name": "python3"
55+
},
56+
"language_info": {
57+
"codemirror_mode": {
58+
"name": "ipython",
59+
"version": 3
60+
},
61+
"file_extension": ".py",
62+
"mimetype": "text/x-python",
63+
"name": "python",
64+
"nbconvert_exporter": "python",
65+
"pygments_lexer": "ipython3",
66+
"version": "3.5.2"
67+
}
68+
},
69+
"nbformat": 4,
70+
"nbformat_minor": 0
71+
}

Module_4_References.ipynb Module_4b_References.ipynb

+5-4
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,23 @@
3030
}
3131
],
3232
"metadata": {
33+
"anaconda-cloud": {},
3334
"kernelspec": {
34-
"display_name": "Python 3",
35+
"display_name": "Python [default]",
3536
"language": "python",
3637
"name": "python3"
3738
},
3839
"language_info": {
3940
"codemirror_mode": {
4041
"name": "ipython",
41-
"version": 2
42+
"version": 3
4243
},
4344
"file_extension": ".py",
4445
"mimetype": "text/x-python",
4546
"name": "python",
4647
"nbconvert_exporter": "python",
47-
"pygments_lexer": "ipython2",
48-
"version": "2.7.10"
48+
"pygments_lexer": "ipython3",
49+
"version": "3.5.2"
4950
}
5051
},
5152
"nbformat": 4,

autos.csv data/autos.csv

File renamed without changes.

bank.csv data/bank.csv

File renamed without changes.
File renamed without changes.

cars_small.csv data/cars_small.csv

File renamed without changes.

cars_v1.csv data/cars_v1.csv

File renamed without changes.

loans.csv

-1
This file was deleted.

0 commit comments

Comments
 (0)