Docsity

Statistical hypotheses tests, Cheat Sheet of Statistics

Toggle sidebar
bg1
Statistical Hypotheses Tests – Notes
Hypothesis testing:
Hypothesis:
• Population parameter
• Population
• Hypothesised value of parameter
There are two kinds of hypotheses for a one sample t-test, the null hypothesis and the alternative
hypothesis. The alternative hypothesis assumes that some difference exists between the true mean
(μ) and the comparison value (m0), whereas the null hypothesis assumes that no difference exists.
The null: The true mean battery life of Buzzy phones is 72 hours.
The alternative: The true mean battery life of Buzzy phones is not 72 hours.
Use RStudio to calculate mean, then the test statistic. This tells us how many SD the sample mean is
from the hypothesised mean.
If the p-value is less than 0.05, the alternative is favoured. The more extreme the test statistic, the
smaller the p-value is.
If the p-value is greater than 0.05, then the null is valid.
Conclusion:
• Population parameter
• Population
• Whether the parameter is equal to the hypothesised value
• 'the evidence suggests that true average battery life of Buzzy phones is not 72 hours.
Check conditions:
• The sample is representative. 'Random sample' or assume it is.
• The sample mean is normally distributed. Sample size > 30.
If both conditions are satisfied, the conclusion can be trusted.
One sample t-test:
• Used with numerical data.
• Used with one sample observations.
• Determines whether the population mean is different from a hypothesised value.
Use to see if there is evidence that the claim is true.
Write the null and alternative hypotheses.
Test statistic = (sample mean - hypothesised mean)/SE
Sample mean= 251.33
Hypothesised mean = 250
SE= SD/(root of sample size) = 1.0496
T=Sample mean - hypothesised mean)/SE
T=(251.33-250)/1.0496
pf3

Partial preview of the text

Download Statistical hypotheses tests and more Cheat Sheet Statistics in PDF only on Docsity!

Statistical Hypotheses Tests – Notes

Hypothesis testing: Hypothesis:

  • Population parameter
  • Population
  • Hypothesised value of parameter There are two kinds of hypotheses for a one sample t-test, the null hypothesis and the alternative hypothesis. The alternative hypothesis assumes that some difference exists between the true mean (μ) and the comparison value (m0), whereas the null hypothesis assumes that no difference exists. The null: The true mean battery life of Buzzy phones is 72 hours. The alternative: The true mean battery life of Buzzy phones is not 72 hours. Use RStudio to calculate mean, then the test statistic. This tells us how many SD the sample mean is from the hypothesised mean. If the p-value is less than 0.05, the alternative is favoured. The more extreme the test statistic, the smaller the p-value is. If the p-value is greater than 0.05, then the null is valid. Conclusion:
  • Population parameter
  • Population
  • Whether the parameter is equal to the hypothesised value
  • 'the evidence suggests that true average battery life of Buzzy phones is not 72 hours. Check conditions:
  • The sample is representative. 'Random sample' or assume it is.
  • The sample mean is normally distributed. Sample size > 30. If both conditions are satisfied, the conclusion can be trusted. One sample t-test:
  • Used with numerical data.
  • Used with one sample observations.
  • Determines whether the population mean is different from a hypothesised value. Use to see if there is evidence that the claim is true. Write the null and alternative hypotheses. Test statistic = (sample mean - hypothesised mean)/SE Sample mean= 251. Hypothesised mean = 250 SE= SD/(root of sample size) = 1. T=Sample mean - hypothesised mean)/SE T=(251.33-250)/1.

RStudio gives the p-value. If the p-value is lower than 0.05, the null is rejected, and the alternative is favoured. Thus, the evidence supports or rejects the claim that the true mean… Are the conditions met?

  1. The sample is representative if it is random.
  2. The sample mean is normally distributed, assuming the population is normal. One sample t-test in RStudio: Look at output: test statistic, p-value. Look at confidence interval. Tells us 95% confidence that the true mean x is between the upper and lower limits. CI:
  • For evidence in favour of the null, the CI includes the hypothesised mean.
  • For evidence in favour of the alternative, the CI does not include the hypothesised mean. Instead, the CI tells us where the true mean is likely to lie. T-test of differences: 2 samples. If the samples involve paired data, use t-test of differences.
  • Used with numerical data.
  • Two paired samples from the same population.
  • Determines whether the mean of differences is equal to 0 or not. Are conditions met?
  1. Paired data. Each individual has 2 measurements.
  2. Sample is representative. Random sampling.
  3. Sampling distribution is normal. Larger than 30 sample size. Two sample t-test:
  • Use with numerical data.
  • Two independent samples.
  • Determines whether the^ two-population^ means are different from each other. Are conditions met?
  1. Two groups are independent.
  2. Samples are representative. Random assignment of units to 2 groups or randomly selected sample from each population.
  3. Both sampling distributions are normal. CLT, larger than 30. Or check population is normal.