Unit 9 Flashcards
(23 cards)
Hypothesis
*Always in terms of parameters
Null Hypothesis
H0 -> assumes existing claim, assumed to be true unless sample data is different ENOUGH than expected.
Reject the null when P<alpha.
H0 : P/Mew = #
___ IS ____
Alternate Hypothesis
HA -> Null in rejected in favor of alternate hypothesis if sample data is different ENOUGH
HA : P/Mew </>/≠ #
___ is greater/less/not ____
If P ≠ , multiply by 2
If P >, -1
If P <, do nothing
P-Value
The probability, assuming H0 is true, that your observed sample statistic would take a value as or more extreme
Smaller P = more evidence against H0
“If I take many many samples, (weird thing) will happen (P-value)% of the time”
Alpha
Also called “level of significance”
Pre-determine decision point, stated with hypothesis. If P is below alpha, your result is “significant”
Reject the null when P < alpha
Claim
Consists of 6 parts:
- H0
- H0 in context
- HA
- HA in context
- Test type
- Alpha
Conditions (One-sample and two-sample situations)
INR
Calculations
Stat - par / error = P (Reject the null if P<a)
Context
Provide a nerdy answer and an answer in context
Two-Sample Tests
Mostly the same, but the null hypothesis is always that there’s no difference between the groups, alternate hypothesis is that there is a difference or difference is less than/greater than parameter (read the question)
Stat - Par / sqrt. sigma1^2/n1 + sigma2^2/n2
REMOVE OUTLIERS
Type 1 Error
(Alpha)
Stating something is going on, when actually nothing is going on
Power
(Awesome!)
Something weird is going on, and you caught it
Boring
Nothing is going on, and you suspected nothing
Type 2 Error
(B, Beta)
Stating nothing is going on, when actually something is going on
Error sentence structure
I conclude ___ but the truth is ___
Choosing Alpha
If Type 1 Error is worse -> A = 0.01
If Type 2 Error is worse -> A = 0.1
Equally bad -> A =0.05
Why? You want type 1/2 errors to seesaw out, for example a type 2 error can’t be manipulated, but by raising the type 1 error the type 2 error will lower
What if P is bigger than +/- on my Z-Chart?
Two methods:
- Stat -> test -> test type -> put in information -> P should be given to you
- If it’s less than 3, it’ll just continue getting smaller, so write P < .0002 (Remember to multiply or -1 accordingly)
When do you use Chi (X^2) tests?
Used in categorical data, making it always proportional. used when there is 3 or more p-hats.
Goodness of Fit test (GOF)
One row/column, single variable. Think: Is there a difference between observed (sampled) data and expected (population) data?
Stat –> list –> edit –> L1 = observed data, L2 = observed total * percentage of data
THEN
Stat –> tests –> X^2 GOF Test
Test of Association
Multiple row/columns, multiple variables. Think: Is there an association between these two categorical variables?
2nd + x^-1 –> edit –> A
THEN
Stat –> tests –> x^2
You can go back to matrix to check your expected values (B)
Degrees of Freedom (Chi-square)
(rows - 1) * (columns - 1)
If there is only one row/column, simply -1
Conditions (Chi-square)
NORMALITY does NOT exist!!!
You can write:
Expected values are greater than 0
Independence met/not met
Randomness met/not met
Sample size sufficient
Expected value equation
(Row * total) * (column * total)/(total * total)