estimating a population parameter, and test whether a hypothesised parameter value is possible
2
New cards
how to estimate the population parameter
use average of observations in sample (xbar as estimate)
3
New cards
what does standard error measure
the average distance of a sample mean from the population mean - the precision of how reliable this estimate is
4
New cards
confidence interval
gives a range of plausible values for the population mean
5
New cards
CI calculation
xbar +/- t\* x s/(sqrt(n))
6
New cards
R code for a 95% CI
qt(c(0.025, 0.975), df = n-1)
7
New cards
how to carry out testing whether a hypothesises parameter value is plausible
state null and alternative hypotheses; compute test statistic; for testing a population mean use the t-statistic
8
New cards
what is a test statistic used to measure
some sort of distance between the sample data and the null hypothesis
9
New cards
what is the t-statistic
distance of the sample mean from the hypothesised parameter value, measured in units of standard error
10
New cards
what form does the test statistic take when testing a mean
a distance between the observed and hypothesised mean, in units of the SE
11
New cards
the test statistic used for testing a mean is the
t-statistic or t-score
12
New cards
t statistic equation
t = (xbar - mu0)/(s/(sqrt(n))
13
New cards
after computing the t-statistic for the observed sample, we have to decide if this is surprising or not, how do we do this
we look at what all the possible values of the t-statistics are when H0 is true - i.e, what is the null distribution
14
New cards
how is a null distribution formed
take multiple samples of the same sample size, and for each one compute the average (xbar), SD (s) and t-statistic - the null distribution is the histogram of all these t statistics
15
New cards
description of a t distribution
has more variability than a standard normal
16
New cards
when H0 is true
the t-statistic follows a t(n-1) distribution
17
New cards
if the observed samples gives a t statistic that is unlikely when H0 is true
we begin to doubt the null hypothesis
18
New cards
how to calculate tobs
first compute the mean, and then doing : tobs
19
New cards
for a two-sided test, how to compute the p-value
as twice the area to the right of the observed value
20
New cards
what is the p value
the probability of observing a t-statistic having at least the same distance from 0 as the observed t-statistic when H0 is true
21
New cards
we then compare the p-value to the SL
if the p-value is less than the SL, we reject the null hypothesis, in favour of the alternative hypothesis
22
New cards
equivalent approach to p-values
critical values
23
New cards
how to use critical values
instead of comparing the area of alpha (SL) to the area of the p-value, we can compare the corresponding t-statistic along the x-axis
24
New cards
what are the critical values for a= 0.05
the t-values that cut an area of 0.025 to the left and 0.025 to right right
25
New cards
how are t values denoted
\+t and -t
26
New cards
when do we accept the null using CVs
when -t < t < +t (less extreme than CVs)
27
New cards
critical values method
compute the sample mean (xbar) and tobs; find the critical values for a t(n-1) distribution with SL of 96%; then check how extreme the observed t value is compared to the critical values