Goodness Fit Tests Flashcards
What are these designed ti din
Using chi 2 tests ti see if data can follow a normal, binomial or passion disturb turn
How to use chi 2 test to check if claim is true or not
Use expected as obvious, so if dice Privileg is 1/6
Find chi 2 and use degree of freedom as one row only
Check vs,he and come to conclusion
How to do uniform distribution test null hypotthissn
Null is assuming it is fair
Akthernwtive issome alteration
Then reject or accept
Okay for passion distribution how to start
Youregonna need to expected frewuencies
Work this out by multiply n by expected pros Iltises
Porbsioty worked out using poison distribution where r starts from 0
But what if they don’t give lambda? How can figure it out
The mean is the expected value, so estimate lambda by finding MEAN
Now what about the last value on tsble, if it’s 6 + etc, how can you work it out
Remember p(x)= 6+ is the same as 1- p (x) being less than equal to 5
- find this using calculator, but go on POISSON DISTRIBUTION THIS TIME, and CD because tiscumulative
Now again must check if any EXPECTED FREWUENCY USING POISSON is less than 5, and if it is thrn?
COMBINE BOTH GROUPS, there and then no need to readjust bevaude only one row, combine the expected frequencies and the group and move on
How to calculate degrees of freedom for POISSON?
Basically after combined groups, minus @ like normal and minus 1 again for any PREDICTED PARAMTERS
So if 7 now 6, -1,-1 again for lambda and it beocmes 4!
What is null and alternative hypothesis for position distribution test
H0 : x can be modelled by a POISSON distribution
H1: csn’t be muddled
So how can we do whole POISSON disturb thing tedt
First need ti find the chi 2 statistic using poisssion modelling
- expected frewuency is now possion formula x n , where r starts from 0
- use Lambadas mean if not given as an estimate . Thid idbevaude the expected value in position is the mean
- now check if any less than 5, if so Cl bine
H0: it can be modelled
H1: it can’t
Critical value at degrees of freedom as columns -1 -1 for parameter predicted
Check
If lower font reject if higher rejcet
But BIG IMPORTSNT THING TO REMEMBER ABOUT YOUR LAST PORBSBILKTY, do you just make it 4?
NO POISSON dksturbtiin keeps on going , so must be probability of 4 and above, so use position cd to find 1- 3 and below
AND MULTIPLY BY N AGAIN AS THIS IS JUST PROBBILITY NOT EXOECTED FREAUENCY
An easier way to calculate the expected frequencies hack?
Calculate for 0 as normal using the formula. You’ll find its just e to the power of - lambda as 0 cancels those out . Make sure to multiply by 80
2) now multiply by lambda /r Esch time
3) eventually when you get to last one , use poisson cd to find probability and multiply by total remember !
Remember if they give you w lambda value by saying mean , what not to do for degree of freedom
DONT SUBTRSVT AGAIN
What supports possion model
If the variance and ,wan are the same
Finally if your chi sqaured is very low what can this mean
Data was rigged to fit model, fske