1/68
fuck fuck fuck
Sample Proportions CLT check:
pn ≥ 10
n(1-p) ≥ 10
Sample mean CLT check:
n ≥ 30
z score that indicates unusual data
-2 ≤ z ≤ 2
(6.1) One sample
z-test
(6.2) p1 vs p2, make inference about two populations
two sample z-test
(7.1) one population mean
one sample t-test
(7.2) u1 vs u2, two population means
two sample t-test
T-test Conditions/Assumptions:
Continuous data (height, scored, time)
Independence (random sampling i.e no groups or clusters and if sampling without replacement keep sample size under 10% of pop.)
Normality (data needs to be roughly normally distributed i.e CLT)
Two sample T-test Conditions/Assumptions:
Includes T-test C/A’s
Equal Variance (both groups should have roughly equal spread/variances)
Continuous measurement (grouping variable should have two distinct categories)
Steps of a T-test
Check C/A’s
State the null hypothesis (Ho) and the alternative Hypothesis (Ha)
Specify (set) the significance level a (if not provided use .05)
Calculate the test statistic (TS = t = (xbar- u)/ (s/ sqrtn)), from the sampled data
Calculate the p-value assuming the null hypothesis is true
Make a decision to reject or fail to reject Ho by comparing p-value with a:
if p-value
What must you calculate when performing ANY t-test
the degrees of freedom, df= n-1 (for one-sample population)
What is alpha (a)
The significance level of your data
What is xbar relative to u
the mean relative to the average
When it comes to the T-test, does the sample size matter?
NO. (Sample can even be n=15)
when p ≤ a do you reject or fail to reject null hypothesis
reject H0
when p ≥ a do you reject or fail to reject the null hypothesis
fail to reject the null hypothesis
Left-tailed (one-sided) testing
Ha predicts a DECREASE/value less than a benchmark
p-value measures tail area left of your statistic
Right-tailed (one-sided) testing
Ha predicts a INCREASE/value greater than a benchmark
p-value measures tail area right of your statistic
Two-sided test
Ha predicts a difference in EITHER direction
The p-value looks at extreme values in both tails
What is the value of a one-tailed p value compated to a two-tailed p-value?
The one-tail p-value is HALF the two-tailed p-value
less than, lower, fewer, decrease, drop, reduce, shrink, shorter, under, below
Left-Tailed (One-sided)
greater than, higher, more, increase, rise, improve, grow, longer, exceed, over, above
Right-Tailed (One-sided)
different from, changed, differs, not the same, affect, impact, whether there is a difference
Two-Tailed (Two-sided)
before/after, pre/post intervention, etc.
Paired observations (t-test)
(Will have two average values, u1 and u2)
For paired t-test, how do you set up Ho?
Ho: udiff = 0
or
Ho: udiff = do (where do is a specified value)
Want to make an inference on the average of the difference
How to calc sdiff from n and xdiff
sdiff = √(∑(x1-xbar)²+(x2-xbar)²+(x3-xbar)²…/(n-1))
How to calc xbar/diff from many samples, n
xbar/diff= the mean
x bar/diff= (∑xdiff1 + xdiff2 +xdiff3…)/n)
ANOVA test
When there are MORE than two groups (populations)…
sample means/overall (grand) mean
F = variability between groups/ variability within groups
ANOVA conditions
Observations should be independent within and between groups
If the data comes from a simple random sample representing less than 10% of the population, this condition is satisfied.
Ensure there is no pairing or dependence among observations
Normality
outcome variable should be approximately normally distributed within each group
Important for small sample sizes
Check with: Historgrams, Q-Q plots
Homogeneity of variance
variability of observations must be similar across groups
Important for when sample sizes differ between groups
Compare standard deviations across groups or use Levenes’ or Bartlett’s test
What do X² and ANOVA tests have in common?
Bigger X², stronger evidence for alternative hypothesis
Bigger F, stronger evidence for alternative hypothesis
What do X² and ANOVA tests NOT have common?
X² can find p-value with one degree of freedom
F Distribution can only find p-value with two degrees of freedom
SSG
Variability between groups
SSE
Variability within groups
When is a q-q plot indicative of NOT being approximately normal for ANOVA testing and linear regression
When the plots are CURVED when compared to a linear regression. It indicated SKEWED statistics
When does the constant variance of box plots FAIL ANOVA testing and linear regression
s (standard deviation) maximum < 2*s minimum
Bonferroni correction, why is it done
a* = a/K
we modify the significance level to control Type 1 error
K (all possible pairs within k groups)
K = k(k-1)/2
Type I error
False positive
Reject a true null hypothesis
Type II error
False negative
Failing to reject a false null hypothesis
TS when given Tdfe (two sample) from MSE (ANOVA)
(xbar1-xbar2)/ (√(MSE/n1) + √(MSE/n2))
ANOVA test
infinitely many samples, 3+ groups: categorical, numerical
t-test
infinitely meany samples, 2+ groups: categorical data
Response variable
Y-axis, dependent variable, outcome, numerical
Explanatory variable
X-axis, independent variable, predictor, numerical
Examples of numerical, dependent variables (y)
price of car, price of house, weight, yield of corn, investment, depression, sales, birth weight, grade, grade, groove depth
Examples of numerical, independent variables (x)
mileage, size of the house, height, fertilizer application, income, stress, advertising, gestational age, hours of watching TV, hours of study, milage
what is true model of y=mx+b in this course
Y= Bo + B1X + E
Bo
intercept
B1
slope
E (epsilon) means..
the variability of data compared to the linear regression (accounts for the scatter on a scatter plot)
It is the noise or randomness
B1 > 0
Positive linear relationship between X & Y
B1 < 0
Negative linear relationship between X & Y
B1 = 0
No linear relationship between X & Y
No association, X does not influence Y
What do we use to set the hypothesis of linear regression?
B1 < 0
B1 > 0
B1 = 0
what is the predicted model of y=mx+b in this course
yi = bo + b1xi
How to find b1 or Bhat1
b1 = Sy/ Sx R
What is R?
correalation coefficient
How to find bo or Bhato?
bo = ybar - b1xbar
predicted dependent variable observation from linear regression
yihat
observed dependent variable observation from linear regression
yi
Conditions for least squared method of linear regressions
L: Linearity
I: Independence
N: Nearly normal residuals (epsilon)
E: Equal variance
Conditions for least squared method of linear regressions: L
The relationship between the explanatory and response variables is linear
Conditions for least squared method of linear regressions: I
The residuals are independent of one another
Conditions for least squared method of linear regressions: N
The residuals are approximately normally distributed
Conditions for least squared method of linear regressions: E
The residuals exhibit constant variance across all levels of the explanatory varable
High-leverage points
Outlier
Horizontally distant form the center of the data cloud
Influential points
High leverage points
Substantially impact the slop or position of the regression line
For regression results, what is the intercept hypothesis
Ha: Bo (true value) ≠ 0
For regression results, what is the hypothesis for evaluating positive/negative relationships
Ha: B1 (true value) ≠ 0