Skip to content

Commit efc0993

Browse files
committed
Working from home laptop for a few days
1 parent e8a3c3f commit efc0993

7 files changed

+10666
-1
lines changed

Data/Credit.csv

Lines changed: 401 additions & 0 deletions
Large diffs are not rendered by default.

Data/Default.csv

Lines changed: 10001 additions & 0 deletions
Large diffs are not rendered by default.

Data/Default.xlsx

452 KB
Binary file not shown.

Data/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
From https://github.com/JWarmenhoven/ISLR-python

ISLR-ch4-worksheet.ipynb

Lines changed: 247 additions & 0 deletions
Large diffs are not rendered by default.

questions-2016-06-16.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Discuss:
2+
When would you use logistic regression? LDA? KNN?
3+
4+
# Does this add Lag1..Volume, or say to use them all?
5+
glm(formula = Direction ~ Lag1 + Lag2 + Lag3 + Lag4 + Lag5 +
6+
Volume, family = binomial, data = Smarket)
7+
8+
ISLR p180 - application to admissions prioritization:
9+
""" Suppose that there is some non-trivial cost to trying to sell insurance to a given individual. For instance, perhaps a salesperson must visit each potential customer. If the company tries to sell insurance to a random selection of customers, then the success rate will be only 6%, which may be far too low given the costs involved. Instead, the company would like to try to sell insurance only to customers who are likely to buy it. So the overall error rate is not of interest. Instead, the fraction of individuals that are correctly predicted to buy insurance is of interest.
10+
""" It turns out that KNN with K = 1 does far better than random guessing among the customers that are predicted to buy insurance. Among 77 such customers, 9, or 11.7 %, actually do purchase insurance. This is double the rate that one would obtain from random guessing.
11+
12+
p184
13+
Ch4 C9 - "odds" -- why?? http://blog.princehonest.com/stat-learning/ch4/9.html
14+
15+
Pairing on Applied exercises?

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ backports.ssl-match-hostname==3.5.0.1
44
certifi==2015.11.20.1
55
cycler==0.9.0
66
decorator==4.0.6
7-
functools32==3.2.3.post2
7+
functools32
88
gnureadline==6.3.3
99
ipykernel==4.2.2
1010
ipython==4.1.1

0 commit comments

Comments
 (0)