Biostats test 3 Flashcards
null hypothesis for chi squared test
H0: no association, variables are independent
How does H0 translate to cell frequencies?
Cell counts are proportional to the marginal (row and column) totals.
Formula for expected frequencies
In formula: E = (row total x column total) / n
What does chi quared test measure
If the differences between observed and expected frequencies are large enough to reject H0
DF for a 2x2 table
1
Formula for DF of a cross-table
df = (rows – 1) x (columns – 1)
What do we use to test effect size of chi squared test
Phi for 2x2, Cramer’s V for cross-table. Only do this for if test is significant, then will inform about the strength of the association.
Chi squared goodness of fit test
Determines whether the distribution of observed frequency counts differs from some other distribution
Odds formula
prob event/prob non-event
Risk formula
risk for specific/total
Sensitivity
the proportion of positives that are correctly identified as such (so sick people being diagnosed as having the condition)
Specificity
the proportion of negatives correctly identified as such (healthy people being diagnosed as not having the condition)
Prevalence
The number of cases of a disease, number of infected people, or number of people with some other attribute present during a particular interval of time
Sensitivity formula
TP / (TP + FN)
Specificity formula
TN / (FP + TN)
PPV definition
The likelihood that a person who has a positive test result does have the disease, condition, biomarker, or mutation (change) in the gene being tested
PPV formula
PPV = TP / (TP + FP)
NPV formula
NPV = TN / (FN + TN)
Bayes
demonstrated how prior probabilities may affect estimated probabilities for events.
Cohen’s kappa
measures inter/intrarater reliability
Cohen’s kappa formula
2(ad – bc) / (r1 x c2 + r2 x c1)
What is regression analysis used for
Predict values of an outcome variable on the basis of other variables. Aim is to build a model that describes variability in a dependent variable (Y) as a function of one or more independent (X) variables: Yi = f(X1i, X2i, …). Causality may very well play a role.
What does pearson’s R squared represent in OLS output
the proportion of total variation which is being explained: ssmodel/sstotal
What does an outlier in the Y space do to the correlation coefficient
Pulls the correlation towards it, boosting it
What does an outlier in the X space do to the correlation coefficient
Pulls the correlation towards it, lowering it