Fitting probability models to frequency data

M. Drew LaMar
February 26, 2016


https://xkcd.com/882/

Class Announcements

  • Exam #1 will be graded by Monday
  • New reading assignment policy (WILL ANNOUNCE ON MONDAY)

Errors in Hypothesis Testing - Revisited

alt text

Definition: Type I error is rejecting a true null hypothesis. The probability of a Type I error is given by Pr[Reject H0 | H0 is true]=α

Definition: Type II error is failing to reject a false null hypothesis. The probability of a Type II error is given by Pr[Do not reject H0 | H0 is false]=β

Errors in Hypothesis Testing - Power

alt text

Definition: The power of a statistical test (denoted 1β) is given by Pr[Reject H0 | H0 is false]=1β=1Pr[Type II error]

Example - Assignment Problem #21

Observed and Expected Frequencies

    Obs        Exp
Jan   4   9.916667
Feb   6   9.916667
Mar   8   9.916667
Apr  10   9.916667
May   9   9.916667
Jun  14   9.916667
Jul  19   9.916667
Aug  13   9.916667
Sep  12   9.916667
Oct  12   9.916667
Nov   7   9.916667
Dec   5   9.916667
Sum 119 119.000000

Example - Assignment Problem #21

barplot(FHRSTable, beside=TRUE)

plot of chunk unnamed-chunk-6

barplot(t(FHRSTable), beside=TRUE)

plot of chunk unnamed-chunk-7

Example - Assignment Problem #21

χ2 test statistic

Definition: The χ2 statistic measures the discrepancy between observed frequencies from the data and expected frequencies from the null hypothesis and is given by

χ2=i(ObservediExpectedi)2Expectedi

Discuss: What would support the null hypothesis more: a small value or large value for χ2?

Answer: Small value for χ2