sta s cal significance tes ng in theory and in prac ce
play

Sta$s$cal Significance Tes$ng In Theory and In Prac$ce - PowerPoint PPT Presentation

Sta$s$cal Significance Tes$ng In Theory and In Prac$ce Ben Cartere8e University of Delaware h8p://ir.cis.udel.edu/ICTIR13tutorial Hypotheses and Experiments


  1. Sta$s$cal ¡Significance ¡Tes$ng ¡ In ¡Theory ¡and ¡In ¡Prac$ce ¡ Ben ¡Cartere8e ¡ University ¡of ¡Delaware ¡ h8p://ir.cis.udel.edu/ICTIR13tutorial ¡

  2. Hypotheses ¡and ¡Experiments ¡ • Hypothesis: ¡ – Using ¡an ¡SVM ¡for ¡classifica$on ¡will ¡give ¡be8er ¡accuracy ¡ than ¡using ¡Naïve ¡Bayes ¡ – A ¡“Symbol-­‑Refined ¡Tree ¡Subs$tu$on ¡Grammar” ¡will ¡give ¡ be8er ¡parsing ¡results ¡than ¡a ¡simple ¡TSG ¡ – Expanding ¡a ¡short ¡keyword ¡query ¡with ¡synonyms ¡will ¡ improve ¡search ¡engine ¡effec$veness ¡ • Experiment: ¡ – Build ¡a ¡baseline ¡system ¡ – “Improve” ¡it ¡based ¡on ¡your ¡hypothesis ¡ – Test ¡both ¡systems ¡on ¡one ¡or ¡more ¡datasets ¡

  3. Experimental ¡Results ¡ from ¡Shindo ¡et ¡al., ¡ Bayesian ¡Symbol-­‑Refined ¡Tree ¡Subs5tu5on ¡Grammars ¡for ¡Syntac5c ¡Parsing, ¡ ACL ¡2012 ¡

  4. So ¡What? ¡ • “Do ¡these ¡results ¡support ¡my ¡hypothesis? ¡ • “Are ¡these ¡results ¡meaningful?” ¡ • “Is ¡it ¡possible ¡that ¡my ¡results ¡are ¡due ¡to ¡ chance?” ¡  ¡sta$s$cal ¡significance ¡tes$ng! ¡

  5. Part ¡1 ¡ TESTING ¡STATISTICAL ¡SIGNIFICANCE ¡

  6. Using ¡R ¡ • R ¡is ¡a ¡so^ware ¡environment ¡for ¡sta$s$cal ¡ compu$ng ¡ • Includes ¡built-­‑in ¡implementa$ons ¡of ¡many ¡ common ¡tests ¡ – Also ¡has ¡its ¡own ¡programming ¡language ¡for ¡ implemen$ng ¡your ¡own ¡ • Download ¡from ¡h8p://r-­‑project.org ¡ – Download ¡TREC-­‑8 ¡evalua$on ¡data ¡from ¡ h8p://ir.cis.udel.edu/ICTIR13tutorial/trec8.RData ¡

  7. Commonly-­‑Used ¡Tests ¡ • Parametric: ¡ – Student’s ¡t-­‑test ¡ – ANOVA ¡ • Non-­‑parametric: ¡ – Wilcoxon ¡signed ¡rank ¡test ¡ – Sign ¡test/binomial ¡test ¡ • Distribu$on-­‑free: ¡ – Randomiza$on ¡test ¡ – Bootstrap ¡test ¡

  8. Student’s ¡t-­‑test ¡ ˆ µ = B − A = 0.214 Example ¡ A ¡ B ¡ B-­‑A ¡ 1 ¡ .25 ¡ .35 ¡ +.10 ¡ ˆ B − A = 0.291 σ 2 ¡ .43 ¡ .84 ¡ +.41 ¡ 3 ¡ .39 ¡ .15 ¡ -­‑.24 ¡ 4 ¡ .75 ¡ .75 ¡ 0 ¡ ˆ µ 5 ¡ .43 ¡ .68 ¡ +.25 ¡ t = n = 2.33 ˆ 6 ¡ .15 ¡ .85 ¡ +.70 ¡ σ B − A 7 ¡ .20 ¡ .80 ¡ +.60 ¡ 8 ¡ .52 ¡ .50 ¡ -­‑.02 ¡ 9 ¡ .49 ¡ .58 ¡ +.09 ¡ 10 ¡ .50 ¡ .75 ¡ +.25 ¡ 8 ¡

  9. Student’s ¡t-­‑test ¡ ˆ µ = B − A = 0.214 ˆ σ B − A = 0.291 B − A = 0.291 σ ˆ µ t = n = 2.33 ˆ σ B − A p − value = 0.02 9 ¡

  10. Wilcoxon ¡Signed-­‑Rank ¡Test ¡ Example ¡ A ¡ B ¡ B-­‑A ¡ Rank ¡ B-­‑A ¡ 1 ¡ .25 ¡ .35 ¡ +.10 ¡ 1 ¡ -­‑.02 ¡ 2 ¡ .43 ¡ .84 ¡ +.41 ¡ 2 ¡ +.09 ¡ W = 40 − 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80 ¡ +.60 ¡ 8 ¡ .52 ¡ .50 ¡ -­‑.02 ¡ 9 ¡ .49 ¡ .58 ¡ +.09 ¡ 10 ¡ .50 ¡ .75 ¡ +.25 ¡

  18. Summary ¡ • These ¡are ¡6 ¡of ¡the ¡most ¡common ¡tests ¡seen ¡in ¡ IR ¡experimenta$on ¡ – Many ¡others ¡in ¡the ¡literature: ¡ • Chi-­‑squared ¡ • Propor$on ¡test ¡ • ANCOVA/MANOVA/MANCOVA ¡ • All ¡have ¡in ¡common: ¡ – The ¡use ¡of ¡some ¡probability ¡distribu$on, ¡ computa$on ¡of ¡a ¡p-­‑value ¡from ¡that ¡distribu$on ¡

  19. Part ¡2 ¡ FUNDAMENTALS ¡OF ¡ ¡ SIGNIFICANCE ¡TESTING ¡

  20. Tes$ng ¡Paradigms ¡ Ronald ¡Fisher ¡ Egon ¡Pearson ¡ Jerzy ¡Neyman ¡ Harold ¡Jeffreys ¡

  21. What ¡Are ¡Tests ¡Really ¡Telling ¡Us? ¡ • Formal ¡set-­‑up: ¡ – H 0 : ¡ ¡μ ¡= ¡0 ¡ – H 1 : ¡ ¡μ ¡≠ ¡0 ¡ • The ¡null ¡hypothesis ¡is ¡a ¡model ¡ – We ¡are ¡looking ¡to ¡prove ¡the ¡model ¡false ¡ • The ¡p-­‑value ¡is ¡the ¡probability ¡that ¡you ¡would ¡ have ¡found ¡the ¡same ¡results ¡if ¡H 0 ¡were ¡true ¡ – If ¡that ¡probability ¡is ¡low, ¡conclude ¡H 0 ¡is ¡false ¡

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend