new UNIT 7 stuff Flashcards
What are the three chi-squared models?
goodness of fit, test for homogeneity, test for independence
When do you know it is GOF test?
When you have ONE ROW or ONE COLUMN.
then it gives you a ratio , like 1:2:5 or it gives you expected percents.
how do you find expected count if n=25 for a 1:3:1 ratio? What test is it?
GOODNESS OF FIT find total: 1+3+1 = 5 divide all by five and that gives exp percents 1/5 : 3/5 : 1/5 .20 : .60 :.20 now multiply each by n and get expected counts. Almost always not a whole number. 25(.20) : 25(.60) :25(.20)
How to find expected cell count on a matrix?
ROW TOTAL* COLUMN TOTAL/ OVERALL TOTAL
What is diff between homogeneity and test for independence?
homogeneity is more than one sample and asking about one variable, independence is just one sample with two variables.
what is df for goodness of fit?
cells - 1
what is df for chi squared homogeneity or independence?
(rows-1)(columns - 1) (remove a row and a colunmn an count the cells that are left)
what are the conditions for chi squared?
counts, five or more in each expected, independent (random), <10%
what are the conditions for inference for slope? (hyp test or confidence interval for slope?)
straight enough (check residuals for random scatter), random and independent, and look at the HISTOGRAM OF THE RESIDUALS and make sure they are unimodal and symmetric
How do you make a confidence interval with computer output?
STAT +/- CRIT SE The STAT and SE are given side by side in the output
the t crit is stilll INVT(area 1 tail, n-2),
Just put the +/- t crit between the actual slope and the given std. error. The calculation is simple
With regression computer output, how do you find the p-value for hypothesis test with null: slope=0
p value is given at the end of the row that the slope is in! It is the SLOPE/SE
(because the t is [slope - 0)/ SE]
With regression computer output, how is the t-ratio and the p-value calculated?
T ratio is just SLOPE/ST ERROR and the p value is just TCDF(T ratio, 9999, n-2)
How do you find Expected Count?
for GOF: Expected % times (total)..
For indep and homog: ROW*COL/TOTAL
What are conditions for chi squared?
indep, rand, <10%, 5 or more in EXPECTED cells
when do you have to check conditions?
In all inference procedures:
ANY CONFIDENCE INTERVAL OR HYPOTHESIS TEST
(including chi squared and slope stuff)