How do you summarise categorical data?
What test is used to compare the distribution of categorical variable to the hypothesised distribution?
chi squared goodness-of-fit test /one sample chi squared test
What is an example of a one-sample chi squared test hypothesis?
H0: is evenly distributed
H1: is not evenly distributed
Why is the one sample chi-squared test (chi squared goodness-of-fit test) used?
What is the shape of the chi-squared distribution?
- changes with the df (degrees of freedom)
What is degree of freedom?
= number of groups -1
- indicates how many of the data points are ‘flexible’
What test is used to look at association between 2 categorical variables?
How is the test statistic calculated for chi-squared test of independence?
How do you calculate the df for a contingency table/cross-table?
df = (number of rows - 1) x (number of columns - 1)
What does a small x^2 value mean?
What causes a large x^2 value?
- Null hypothesis is not true
What are the chi-squared test of independence assumptions?
- the expected cell counts should be >5
What are the limitations of x^2 test of independence?
- only really be used for bivariate analysis
What are other options for assessing associations in categorical variables?
- odds ratio
Can chi-squared test of independence be used for before and after?
What is a McNemar’s test?
SIMPLE CONCEPT:
What test is used for continuous data?
one sample t-test
What is a t-test?
- tests the hypothesis that the means of a sample is equal to a fixed value
What does the one sample t-test assume?
What is the test statistic equation for a one-sample t-test?
t = (sample mean - expected value)/ (sample sd/ square root of the sample size)
what influence the fatness of the t-test distribution tail?
What makes a t-distribution more normally distributed?
What is the t-test distribution if n>30?
When is a two sample/independent sample t-test used?
compare two groups