1/27
Looks like no tags are added yet.
what is inference
Drawing conclusions about a population using information from a sample
in order for inference to be accurate you need to be answer a very specifc question
what are confidence intervals
a range of values that, based on data and certain assumptions, we have a certain level of confidence that contains the population mean
we often use 95% confidence level so that we have a significance level of 5%
what is a point estimate
An estimate of the population means using the mean of a sample
inferring that the mean of our sample is the mean of the population
what does “95% confident mean”
means that if you repeat the experiment over and over 95% of the intervals you calculate will contain the true population mean
how to calculate confidence intervals
<point estimate ± <critical value> x <SE>
critical value is a cut-off point on a probability distribution graph
SE = standard error and is the standard deviation of the sampling distribution of the sample mean (average distance between means)
assumption of CI with known population mean
The population mean is known
that we have a simple random sample of size n
that our sampling distribution is or is close to normal ( the population either has to be normally distributed or we use the central limit theorm)
how to calculate critical value z*
done using R-studio
state the confidnece level and assign variable
zcrit = qnorm(1-alpha/2, mean =, sd =)
alpha = significance level
how to calculate standard error
the standard deviation of the sample distribution for the sample mean

what is the significance level
what is left over after choosing a confidence level
confidence = 95% the significance = 5%
Also represented as alpha and is used with the p-value to determine the significance of results
on a normal distribution graph represent the 2 sections on the side combined that do not fall with the confidence level
format for CI with known population mean interpretation
we are <confidence level> confident that the true <parameter> of <population> is between <lower> and <upper> <units>
what are symmetrical intervals, and how do they relate to the margin of error
Any number that is ± another, for example 5± 1 with the centre being 5 and the width being 2
the 1 then represents the margin of error as the answer could actually be 4,5 or 6
what effects the margin of error of results
the level of confidence (effects the crit value required to calculate)
sample size (affects SE)
variance (affects SE)
what are sample size calculations
a calculation used to determine how big of a sample you need to get a certain margin of error, confidence intervals and variance
sample size >/= (z* x population mean/margin of error)2
how to calculate margin of error

what are the assumption used to calculate CI without and population mean
only need to assume that we have a simple random sample and that our distribution is or is close to normal
can used the central limit theory or a QQ-plot
What is a t-distribution
another for of a symmetrical, unimodal distribution, like a normal distribution, but a little wider
accounts for the additional uncertainty due to an unknown population mean
differs depending on sample size (identified using a degree of freedom of n-1 for this)
how to calculate CI without population mean
<point estimate>± <t* or critical value> x <SE>
SE is calculated with the sample standard dev and not the populations
How to calculate CI in RStudio
everything else is the same but to calulate the t critical value
qt(1-alpha/2, df=n-1)
make sure to assign varible to all thing in CI equation before writing it out in R studio
difference between CI with or without population mean
Without using the population mean when no longer have to make the assumption that said mean is right
however we do get and wider range for our confidence intervals
what is calculated in a t-test
t-distribution
Df
p-value
CI
mean
what is Hypothesis testing
Evaluating the amount of evidence against the null hypothesis to see if it should be retained or rejected
used to determine if we should believe that a certain value is true like the population mean
what does it mean for a theory to be valid
it has to be falsifiable
has to be a way to observe a variable that would prove the theory wrong, like saying all crows are black; you need to be able to find one that isn’t
can’t be deemed certainly true as you may not have discovered the exception yet
what is the p-value
A statistic used to test a hypothesis that represents the plausibility that the hypothesis is right
compared to the significance level to determine so
only infer statistical significance but not always importance and instead you need to use logic to explain a relationship
if p-value = 0.01, you would only see findings consistent with the null hypothesis in 1 of every 100 experiments
interpreting a p-value
if p-value is < the significance then the null hypothesis is rejected and the theory is disproven
if p-value is > significance then we fail to reject the null hypothesis and retain it instead as there is not enough evidence to prove it wrong
how to test a hypothesis framework
State your null and alternative hypothesis
calculate the value of the test statistic (what test you use depends on the situation
find the p-vale of your data and interpret it
state whether or not your null hypothesis can be rejected
what does it mean to have no evidence against the null hypothesis
will occur when the p-value is larger, showing that the data isn’t inconsistent with the null hypothesis but you most likely would get these results is the null hypothesis was right
no evidnec against the null hypothesis but also n evidence that supports it
what does it mean to have strong evidence against the null hypothesis
when the p-value is very small, indicating the data is inconsistant with the findings you would get if the null hypothesis was true
What are some errors that can be made when testing a hypothesis
Type I error (false positive): when you reject the null hypothesis but it turns out to be right
you say there is a relationship between variables when there isn’t
also called type alpha
Type II error (false negative): when you fail to reject the null hypothesis despite it being wrong
you say there is no relationship between variables when there actually is
also called type beta