Hypothesis testing for the mean Flashcards
hypothesis testing method
uses data from a sample to decide whether or not a statement about a population should be accepted or not
- null hypothesis is tested with a sample and retained or rejected
steps to hypothesis tests
- state the null and alternative hypotheses
- summarise data into suitable test statistics (check distribution)
- assuming null is true, find p-value (probability that the observed statistic value could occur if the null model were correct - smaller = more statistically significant)
- decide if the result is statistically significant based on p-value and report your conclusion in the context of the study
If p is greater of equal to a, do not reject null
If p-value is smaller than a, reject null
test statistic = (sample value - null value)/null error
hypothesis testing assuming sigma is known (using z scores)
for large samples or when the population (assuming null) is normal
Z = (X bar - mew)/sigma/square root(n)
This is the test statistic. if its bigger than expected for a standard normal, reject H0
one or two sided tests
one sided situation: dont use petrol additive if it doesn’t improve consumption
two sided: engine bolts can’t be too big or small
two sided differ in that:
Ha has mew not equally rather than mew is bigger or smaller
p-value is doubled
CI and two sided tests
if mew 0 is 90%, p value is greater 10%. if less, reject
hypothesis testing when sigma is unknown (t distribution)
tn-1 = (x bar - mew 0)/s/square root (n)
reject null with p value between 0.01 and 0.025
do not reject if it is greater than 0.05
as df increases, the t distribution…
gets close to the normal (100 is very close)
can you find p values in excel?
yes