1 / 19

Chi-Square Test and Goodness-of-Fit Testing

Chi-Square Test and Goodness-of-Fit Testing. Ming-Tsung Hsu. Outline. Goal of Hypothesis Test Terms & Notation Chi-Square Test Goodness-of-Fit Testing Example. Goal of Hypothesis Test. To examine statistical evidence, and to determine whether it supports or contradicts a claim

mio
Download Presentation

Chi-Square Test and Goodness-of-Fit Testing

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chi-Square Test and Goodness-of-Fit Testing Ming-Tsung Hsu OPLab@im.ntu.edu.tw

  2. Outline • Goal of Hypothesis Test • Terms & Notation • Chi-Square Test • Goodness-of-Fit Testing • Example OPLab@im.ntu.edu.tw

  3. Goal of Hypothesis Test • To examine statistical evidence, and to determine whether it supports or contradicts a claim • The life of lamps is more than 10,000 hours • The data are from normal distribution • To reduce the directly-relevant data to a “level of suspicion” based purely on the data OPLab@im.ntu.edu.tw

  4. Terms & Notation • Null Hypothesis (H0) vs. Alternative hypothesis (H1 or HA) • Type I Error vs. Type II Error • Parametric Test vs. Non-Parametric Test • Significance level (α) and Critical Region • “Reject H0” vs. “Do not reject H0“ • Central Limit Theorem • Sampling distribution of the sample mean • Test Statistic vs. Table Value • P-value OPLab@im.ntu.edu.tw

  5. Null Hypothesis vs. Alternative hypothesis OPLab@im.ntu.edu.tw

  6. Type I Error vs. Type II Error • Type I error • H0 is true but reject H0 • Pr(reject H0 | H0) = α • Type II error • H1 is true but do not reject H0 • Pr(do not reject H0 | H1) = β OPLab@im.ntu.edu.tw

  7. Parametric Test vs. Non-Parametric Test • Parametric Test • Parameters of population • Mean test, variance test, etc. • Non-Parametric Test • Make no assumptions about the frequency distributions of the variables being assessed • Independent test, distribution test, etc. OPLab@im.ntu.edu.tw

  8. Significance level (α) and Critical Region OPLab@im.ntu.edu.tw

  9. Central Limit Theorem OPLab@im.ntu.edu.tw

  10. Test Statistic vs. Table Value OPLab@im.ntu.edu.tw

  11. P-value OPLab@im.ntu.edu.tw

  12. Chi-Square Test • Non-Parametric Test • T. S. ~χ2(ν) • Goodness-of-Fit Test • Also known as “Pearson's chi-square test” • Independent Test • Homogeneity Test OPLab@im.ntu.edu.tw

  13. Goodness-of-Fit Testing • Used to test if a sample of data came from a population with a specific distribution Oi:Observations of ith group Ei:Expected frequency of ith group k:Number of groups m: Number of estimated parameters K-1-m: Degree of freedom OPLab@im.ntu.edu.tw

  14. Example OPLab@im.ntu.edu.tw

  15. Parameter Estimation - λ OPLab@im.ntu.edu.tw

  16. Observations and Expected Frequencies ?! OPLab@im.ntu.edu.tw

  17. Test Statistic and P-value OPLab@im.ntu.edu.tw

  18. Observations and Expected Frequencies - Paper 18 OPLab@im.ntu.edu.tw

  19. Re-Grouping # of groups = 1+3.322*log(n) OPLab@im.ntu.edu.tw

More Related