confidence inter v als
play

Confidence inter v als P R AC TIC IN G STATISTIC S IN TE R VIE W - PowerPoint PPT Presentation

Confidence inter v als P R AC TIC IN G STATISTIC S IN TE R VIE W QU E STION S IN P YTH ON Conor De w e y Data Scientist , Sq u arespace Intro to sampling 1 Wikimedia PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON What is a confidence


  1. Confidence inter v als P R AC TIC IN G STATISTIC S IN TE R VIE W QU E STION S IN P YTH ON Conor De w e y Data Scientist , Sq u arespace

  2. Intro to sampling 1 Wikimedia PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

  3. What is a confidence inter v al ? 1 Wikimedia PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

  4. Calc u lating confidence inter v als PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

  5. Calc u lating confidence inter v als PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

  6. E x ample : means import scipy.stats as st a = range(10,14) st.t.interval(0.95, len(a) - 1, loc = np.mean(a), scale = st.sem(a)) (9.446, 13.554) PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

  7. E x ample : proportions from sm.stats.proportion import proportion_conf proportion_confint(4, 10, .05) (0.0964, 0.7036) PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

  8. S u mmar y Sampling Con � dence inter v als E x ample PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

  9. Let ' s prepare for the inter v ie w! P R AC TIC IN G STATISTIC S IN TE R VIE W QU E STION S IN P YTH ON

  10. H y pothesis testing P R AC TIC IN G STATISTIC S IN TE R VIE W QU E STION S IN P YTH ON Conor De w e y Data Scientist , Sq u arespace

  11. Q u ick re v ie w 1 x kcd PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

  12. Ass u mptions Random sampling Independent obser v ations Normall y distrib u ted Constant v ariance PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

  13. Generating h y potheses PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

  14. Which test to u se PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

  15. E v al u ating res u lts 0,4 0,4 0,3 0,3 0,2 0,2 0,1 0,1 x -4 -4 -3 -3 -2 -2 -1 -1 0 1 2 3 4 1 Wikimedia PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

  16. T y pes of errors 1 AB Tast y PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

  17. S u mmar y Q u ick re v ie w Ass u mptions Testing process T y pes of errors PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

  18. Let ' s prepare for the inter v ie w! P R AC TIC IN G STATISTIC S IN TE R VIE W QU E STION S IN P YTH ON

  19. Po w er and sample si z e P R AC TIC IN G STATISTIC S IN TE R VIE W QU E STION S IN P YTH ON Conor De w e y Data Scientist , Sq u arespace

  20. Po w er anal y sis Many Few 1 P u blic domain v ectors PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

  21. Mo v ing parts E � ect si z e Signi � cance le v el Po w er Sample si z e PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

  22. Calc u lating sample si z e zt_ind_solve_power() tt_ind_solve_power() proportion_effectsize() PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

  23. E x ample : con v ersion rates from statsmodels.stats.power import zt_ind_solve_power import statsmodels.stats.proportion as prop std_effect = prop.proportion_effectsize(.20, .25) zt_ind_solve_power(effect_size=std_effect, nobs1=None, alpha=.05, power=.80) 1091.8962 PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

  24. E x ample : con v ersion rates from statsmodels.stats.power import zt_ind_solve_power import statsmodels.stats.proportion as prop std_effect = prop.proportion_effectsize(.20, .25) zt_ind_solve_power(effect_size=std_effect, nobs1=None, alpha=.05, power=.95) 1807.76215 PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

  25. S u mmar y Po w er anal y sis Mo v ing parts E x ample PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

  26. Let ' s prepare for the inter v ie w! P R AC TIC IN G STATISTIC S IN TE R VIE W QU E STION S IN P YTH ON

  27. M u ltiple testing P R AC TIC IN G STATISTIC S IN TE R VIE W QU E STION S IN P YTH ON Conor De w e y Data Scientist , Sq u arespace

  28. M u ltiple comparisons problem 1 x kcd PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

  29. Correcting for m u ltiple comparisons 1 GraphPad PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

  30. Common approaches Bonferroni correction Sidak correction Step - based proced u res T u ke y’ s proced u re D u nnet ’ s correction PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

  31. Bonferroni correction 1 Wikimedia PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

  32. E x ample from statsmodels.sandbox.stats.multicomp import multipletests p_adjusted = multipletests(pvals, alpha=.05, method='bonferroni') print(p_adjusted[0]) print(p_adjusted[1]) [ True False False False False] [0.05 0.25 0.5 1. 1. ] PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

  33. Side effects 1 What ’ s w rong w ith Bonferroni adj u stments PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

  34. S u mmar y M u ltiple comparisons problem Common correction approaches Bonferroni correction PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

  35. Let ' s prepare for the inter v ie w! P R AC TIC IN G STATISTIC S IN TE R VIE W QU E STION S IN P YTH ON

Recommend


More recommend