Inferential Statistics with Python - FOSSEE

21
Inferential Statistics with Python Rounak Banik

Transcript of Inferential Statistics with Python - FOSSEE

Page 1: Inferential Statistics with Python - FOSSEE

Inferential Statistics with Python

Rounak Banik

Page 2: Inferential Statistics with Python - FOSSEE

github.com/rounakbanik/inferential_stats_pycon

Page 3: Inferential Statistics with Python - FOSSEE

Contents1. Descriptive Statistics Primer

Central Tendencies, Measures of Spread, Binomial and Normal Distributions, Normalcy Test, Z-Scores and p-values.

2. SamplingEstimation of Population Proportion and Mean, The Central Limit Theorem

3. Hypothesis Testing and Statistical TestsNull and Alternate Hypotheses, One and Two Sample Significance Tests, Chi-Squared Significance Tests

4. Ethics and Standards in Inferential StatisticsSampling Bias, Statistical v/s Practical Significance, Misusing p-values

Page 4: Inferential Statistics with Python - FOSSEE

Tools

Page 5: Inferential Statistics with Python - FOSSEE

Sampling

Page 6: Inferential Statistics with Python - FOSSEE

Credit Card FraudsWhat fraction of credit card transactions are fraudulent?

Page 7: Inferential Statistics with Python - FOSSEE

Olympian Weights

What is the average weight of an Olympian athlete?

Page 8: Inferential Statistics with Python - FOSSEE

Hypothesis Testing

Page 9: Inferential Statistics with Python - FOSSEE

Terminology

1. Null and Alternate Hypotheses2. Significance Level3. Statistical Test4. P-Values

Page 10: Inferential Statistics with Python - FOSSEE

Steps

1. Formulate the Null and the Alternate Hypothesis.

2. Decide on the Statistical Test to use.3. Calculate the p-value4. Compare p-value to the significance level,

alpha. Reject/Accept Null Hypothesis based on the comparison.

5. Summarize the result

Page 11: Inferential Statistics with Python - FOSSEE

Suicide by GenderIn India, are men as likely as women to commit suicide?

Page 12: Inferential Statistics with Python - FOSSEE

NBA Player HeightsWhat is the average height of NBA players?

Page 13: Inferential Statistics with Python - FOSSEE

Literacy RatesHow do the literacy rates in Delhi and Punjab compare?

Page 14: Inferential Statistics with Python - FOSSEE

Airbnb DestinationsDo men and women prefer certain countries for Airbnb bookings?

Page 15: Inferential Statistics with Python - FOSSEE

Racial DiscriminationAre blacks as likely to get an interview call as whites?

Page 16: Inferential Statistics with Python - FOSSEE

Ethics and Standards

Page 17: Inferential Statistics with Python - FOSSEE

Quality and Quantity

Page 18: Inferential Statistics with Python - FOSSEE

Sampling Bias

1. Deterministic bias2. Small number of observations3. Selection bias4. Confirmation bias5. Inaccuracy

Page 19: Inferential Statistics with Python - FOSSEE

Statistical and Practical Significance

Page 20: Inferential Statistics with Python - FOSSEE

Further Reading

Page 21: Inferential Statistics with Python - FOSSEE

The End

Rounak BanikE-Mail: [email protected]