1/180
Looks like no tags are added yet.
[W1-4] What does 'random sample of independent observations' mean?
Each observation is chosen at
random and no observation influences another. Almost every test in this course assumes this.
[W1-4] What does 'quantitative, continuous variable' mean?
A numerical variable measured on an interval or
ratio scale, so it can take any value in a range (for example weight, time or price). Categories and ranks do not
count.
[W1-4] What does 'scale at least ordinal' mean?
The data can at least be put in order, for example a
satisfaction rating from 1 to 5. Ordinal, interval and ratio data qualify. Nominal data (plain categories) do not.
[W1-4] What does 'population approximately normal' mean?
The values in the whole population follow a
roughly bell-shaped, symmetric distribution.
[W1-4] What are the three ways to check whether data are normal?
Graphs (a histogram with a normal curve,
and a Q-Q plot), numbers (mean versus median, skewness and kurtosis), and a formal test (the Shapiro-Wilk
test).
[W1-4] Why should you never rely on just one normality check?
Each check can mislead on its own. Combine
them, and if most of them cast doubt, treat the data as not normal.
[W1-4] On a Q-Q plot, what do the points look like if the data are normal?
They lie close to a straight line.
Curved or S-shaped patterns suggest skewness or heavy tails.
[W1-4] How do the mean and median show skewness?
Symmetric data: mean equals median. Right-skewed:
the median is smaller than the mean. Left-skewed: the mean is smaller than the median.
[W1-4] What is the rule for the skewness and kurtosis checks (skew.2SE and kurt.2SE in R)?
If the absolute
value is greater than 1, doubt normality (the data are likely not normal at the 5% level).
[W1-4] What are the hypotheses and decision rule of the Shapiro-Wilk test?
Null hypothesis: the data come
from a normal population. Alternative: they do not. Reject the null (conclude not normal) if the p-value is below the
significance level alpha.
[W1-4] What are the limitations of the Shapiro-Wilk test?
With a small sample (under 20) it has low power and
often misses non-normality. With a large sample (over 100) it is oversensitive and rejects for trivial departures
from normality.
[W1-4] What should you do if you are unsure whether the data are normal?
Run both the parametric test and
its nonparametric counterpart. If they give the same answer, you can be confident.
[W1-4] What should you do if normality is clearly violated?
Use the nonparametric test only.
[W1-4] How does ordinal data affect the normality checks?
Skip the normality questions and go straight to the
nonparametric tests.
[W1-4] Can you test a mean or median with nominal data?
No. Nominal data (plain categories) have no mean
or median, so test a proportion instead.
[W1-4] What does the central limit theorem say (rule of thumb)?
With a sample size of 30 or more, the sample
mean is approximately normal even if the population is not.
[W1-4] When does the t-test fail because of non-normality?
Only when the sample is small (under 30) AND the
population is strongly skewed. Otherwise it is fairly robust.
[W1-4] What is the trade-off between parametric and nonparametric tests?
Nonparametric tests need weaker
assumptions but are less powerful when the parametric assumptions actually hold.
[W1-4] How should you word the conclusion of a hypothesis test?
Say 'fail to reject the null hypothesis', never
'accept' it. State the conclusion in context, about the population.
[W1-4] What should hypotheses be written in terms of?
Population parameters (such as the population mean,
variance, proportion or median), never sample statistics.
[W1-4] What are the six steps expected in every hypothesis test?
1) State the hypotheses. 2) Name the test
statistic and its distribution. 3) Choose the significance level. 4) State the decision rule. 5) Calculate. 6) Decide
and conclude in context.
[W1-4] What are the assumptions of the Z-test and confidence interval for a population mean?
Random
sample of independent observations, quantitative continuous variable, population standard deviation (sigma)
KNOWN, and the sample mean is normal (normal population, or a large sample of 30 or more by the central limit
theorem).
[W1-4] What do you do if the Z-test for a mean cannot be used because sigma is unknown?
Use the t-test
instead.
[W1-4] What are the assumptions of the t-test and confidence interval for a population mean?
Random sample
of independent observations, quantitative continuous variable, population standard deviation unknown, and the
population approximately normal.
[W1-4] How robust is the t-test for a mean to non-normality?
Fairly robust. It only fails if the sample is under 30
AND the population is strongly skewed.
[W1-4] What do you do if the population is not normal and you wanted a t-test for one mean?
Use the
Wilcoxon signed-rank test if the population is symmetric, or the sign test if it is skewed.
[W1-4] What are the assumptions of the sign test for a median?
Random sample of independent observations;
the variable can be qualitative or quantitative; scale at least ordinal; and NO assumption about the shape of the
distribution.
[W1-4] How does the sign test handle zero deviations and large samples?
Observations equal to the
hypothesised median (zero deviations) are dropped. If there are 10 or more non-zero deviations, a normal
approximation can be used.
[W1-4] What is the test statistic of the sign test?
S, the number of positive deviations from the hypothesised
median. Under the null it follows a binomial distribution with n trials (n = number of non-zero deviations) and
probability 0.5.
[W1-4] What can you fall back on if the sign test's assumptions fail?
Nothing. It is the most general test, with
no weaker test covered in this course.
[W1-4] What are the assumptions of the Wilcoxon signed-rank test for a median?
Random sample of
independent observations, quantitative continuous variable on an interval or ratio scale, and a SYMMETRIC
population (so the median equals the mean).
[W1-4] Which table or approximation does the Wilcoxon signed-rank test use?
Table 9 for sample sizes from 6
to 30. A normal approximation for sample sizes above 30.
[W1-4] What do you do if the Wilcoxon signed-rank test's symmetry assumption fails (skewed or ordinal
data)?
Use the sign test.
[W1-4] Skewed data and one median: sign test or Wilcoxon signed-rank?
The sign test, because the Wilcoxon
signed-rank test needs a symmetric population.
[W1-4] What are the assumptions of the paired t-test?
Random sample of independent pairs, quantitative
continuous variable, and the DIFFERENCES within each pair approximately normal.
[W1-4] What is a paired t-test really doing?
It is a one-sample t-test on the differences between the two
measurements in each pair, with n minus 1 degrees of freedom.
[W1-4] What do you do if the differences in a paired t-test are not normal?
Use the sign test, or the Wilcoxon
signed-rank test on the differences (which needs the differences to be symmetric).
[W1-4] What is the trade-off of a paired design versus independent samples?
Paired is more efficient (smaller
standard error) but has fewer degrees of freedom: n minus 1 instead of n1 plus n2 minus 2.
[W1-4] What are the assumptions of the two-sample Z-test for comparing two means?
Two independent
random samples, quantitative continuous variable, both population variances KNOWN, and both populations
normal or large samples (central limit theorem).
[W1-4] What do you do if the two population variances are unknown?
Use the pooled t-test (equal variances)
or the Welch t-test (unequal variances).
[W1-4] What are the assumptions of the pooled t-test?
Two independent random samples, quantitative
continuous variable, population standard deviations unknown, both populations approximately normal, AND equal
population variances (check with the F test).
[W1-4] How many degrees of freedom does the pooled t-test have?
n1 plus n2 minus 2, using the pooled
variance (a weighted average of the two sample variances).
[W1-4] What do you do if the pooled t-test's equal-variance assumption fails?
Use the Welch t-test.
[W1-4] What are the assumptions of the Welch t-test?
Two independent random samples, quantitative
continuous variable, population standard deviations unknown, and both populations approximately normal. It does
NOT assume equal variances.
[W1-4] When is the Welch t-test valid?
Whether or not the variances are equal, so many analysts simply use it
by default. Its degrees of freedom are fractional (Satterthwaite).
[W1-4] What do you do if the two populations are not normal for a t-test comparing means?
Use the Wilcoxon
rank-sum test.
[W1-4] What are the assumptions of the Wilcoxon rank-sum (Mann-Whitney U) test?
Two independent
random samples, quantitative continuous variable, scale at least ordinal, and the two populations have the
IDENTICAL shape and spread, differing at most in location.
[W1-4] Which table or approximation does the Wilcoxon rank-sum test use?
Table 8 if both sample sizes are
10 or fewer. A normal approximation if both are above 10.
[W1-4] What happens if the two populations have different shapes in the Wilcoxon rank-sum test?
The test is
no longer valid for comparing the two medians.
[W1-4] Which test compares two independent means?
Variances known: two-sample Z. Equal variances:
pooled t. Unequal variances: Welch t. Not normal: Wilcoxon rank-sum.
[W1-4] What are the assumptions of the chi-square test and confidence interval for one variance?
Random
sample of independent observations, quantitative continuous variable, and a NORMAL population. It is not robust
to non-normality.
[W1-4] What do you do if the population is not normal for a chi-square variance test?
Nothing: no alternative is
covered in this course.
[W1-4] What is the test statistic for one variance?
Chi-square equals (n minus 1) times the sample variance,
divided by the hypothesised variance. It follows a chi-square distribution with n minus 1 degrees of freedom.
[W1-4] What are the assumptions of the F test and confidence interval for comparing two variances?
Two
independent random samples, quantitative continuous variable, and BOTH populations normal. It is not robust to
non-normality.
[W1-4] What do you do if the populations are not normal for the F test of variances?
Nothing: no alternative is
covered in this course.
[W1-4] What is the F test statistic for two variances, and the manual shortcut?
F equals the first sample
variance divided by the second, with n1 minus 1 and n2 minus 1 degrees of freedom. Label the samples so the
larger variance is on top, so you only need right-tail critical values.
[W1-4] Which distribution goes with which test?
Chi-square: one variance. F: ratio of two variances. t: means
when sigma is unknown.
[W1-4] What are the assumptions of the Z-test and confidence interval for one proportion?
Random sample of
independent observations, and a qualitative variable with two exhaustive categories (success or failure).
[W1-4] What sample-size condition does the one-proportion Z-test need?
n times p0 is at least 5 AND n times
q0 is at least 5 (p0 is the hypothesised proportion, q0 is 1 minus p0). For a confidence interval, use the sample
proportion instead.
[W1-4] What do you do if the sample-size condition for the one-proportion Z-test fails?
Use the exact binomial
test.
[W1-4] Does a one-proportion Z-test use the hypothesised or sample proportion in the standard error?
The
test uses the hypothesised proportion p0. The confidence interval uses the sample proportion.
[W1-4] What are the assumptions of the exact binomial test for one proportion?
Random sample of
independent observations, a qualitative variable with two exhaustive categories (nominal or ordinal), and a
binomial population. No sample-size condition.
[W1-4] What are the assumptions of the two-proportion Z-test (first part)?
Two independent random samples
and a qualitative (binary) variable.
[W1-4] What sample-size condition does the two-proportion Z-test need?
In both samples, the number of
expected successes and the number of expected failures must each be at least 5 (all four counts).
[W1-4] What extra condition applies to the two-proportion Z-test if you sample without replacement?
Each
sample must be less than 5% of its population.
[W1-4] When should you pool the sample proportions in a two-proportion Z-test?
Only when the null
hypothesis says the difference is zero (the proportions are equal). Otherwise use separate estimates.
[W1-4] What do you do if the two-proportion Z-test's conditions fail?
Nothing: no alternative is covered in this
course.
[W5-6] What are the assumptions of one-way ANOVA (first part)?
k independent random samples of
independent observations from k populations, and a quantitative continuous variable.
[W5-6] What are the assumptions of one-way ANOVA (second part)?
Each population is normal, and all
populations have the SAME variance (equal variances, called homoskedasticity).
[W5-6] What are the hypotheses and tail of the one-way ANOVA F-test?
Null: all population means are equal.
Alternative: at least one mean differs. It is a right-tail test only.
[W5-6] What do you do if ANOVA's equal-variance assumption fails?
Use the Welch F-test (oneway.test in
R).
[W5-6] What do you do if ANOVA's normality assumption fails?
Use the Kruskal-Wallis test.
[W5-6] Why use ANOVA instead of many separate t-tests?
With many groups there are many pairs, and the
chance of at least one false rejection (Type I error) grows quickly. ANOVA keeps the overall Type I error at
alpha.
[W5-6] What are the assumptions of the Welch F-test?
The same as ANOVA EXCEPT it does not require
equal variances.
[W5-6] What is the remaining weakness of the Welch F-test?
It can still mislead if the populations are strongly
non-normal. In that case use Kruskal-Wallis.
[W5-6] What are the assumptions of the Kruskal-Wallis test (first part)?
k independent random samples,
quantitative continuous variable, scale at least ordinal.
[W5-6] What are the assumptions of the Kruskal-Wallis test (second part)?
The populations differ at most in
location (same shape and spread).
[W5-6] When is the chi-square approximation valid for Kruskal-Wallis?
Only when EVERY sample has at least
5 observations. Otherwise use the exact small-sample table.
[W5-6] Can you use Kruskal-Wallis with nominal data?
No. With nominal data there is no mean or median, so
no location test exists.
[W5-6] Is the Kruskal-Wallis test left-, right- or two-tailed?
Right-tail: reject the null if the test statistic H is
large.
[W5-6] What does a significant ANOVA result tell you?
Only that at least one mean differs, not which one.
[W5-6] What are the assumptions of the Pearson correlation test?
X and Y are quantitative and approximately
bivariate normal. The null is that the population correlation is zero, tested with a t statistic with n minus 2 degrees
of freedom.
[W5-6] What does the Pearson correlation measure, and what does it NOT tell you?
Only LINEAR
association. A correlation near zero does not mean 'no relationship', and correlation does not prove causation.
[W5-6] What do you do if Pearson's assumptions fail (non-normal or ordinal data)?
Use Spearman's rank
correlation (check the exact assumptions on the LMS).
[W5-6] How many degrees of freedom does the Pearson correlation t-test have?
n minus 2 (not n minus
1).
[W6-8] Linear regression assumption LR1: what does it say?
A random sample of n independent
observations, with n greater than k plus 1 (k is the number of regressors), that satisfy the population model, which
is linear in the parameters.
[W6-8] What breaks if LR1 fails?
The sample does not represent the population, or there are too few
observations to estimate the model.
[W6-8] Linear regression assumption LR2: what does it say?
The error term has an expected value of zero
given the regressors. In other words, the errors are unrelated to the regressors.
[W6-8] What breaks if LR2 fails?
Coefficients no longer measure the partial effect. For example, an omitted
variable makes ordinary least squares biased and inconsistent, standard errors biased and tests invalid.
[W6-8] What happens if you include an irrelevant variable?
Ordinary least squares stays unbiased and
consistent and tests stay valid. You only lose precision (larger variances) and one degree of freedom.
[W6-8] Which is worse: omitting an important variable or including an irrelevant one?
Omitting an important
variable is usually worse, because it causes bias and invalid inference. An irrelevant variable only costs
precision.
[W6-8] Linear regression assumption LR3: what does it say?
The variance of the error is constant
(homoskedasticity).
[W6-8] What breaks if LR3 fails (heteroskedasticity)?
Ordinary least squares is still unbiased and consistent
but no longer efficient, and the usual standard errors, t-tests and F-tests are misleading.
[W6-8] How do you detect and fix heteroskedasticity?
Detect with residual plots or the White test. Fix with
heteroskedasticity-consistent (White) standard errors, using the log of Y or ratios, or weighted least squares.
[W6-8] Linear regression assumption LR4: what does it say?
Errors are uncorrelated across observations (the
errors are unrelated to each other).
[W6-8] What replaces LR4 for time series?
TSLR4: errors in different time periods are uncorrelated (no
autocorrelation).
[W6-8] Linear regression assumption LR5: what does it say?
There is no exact linear relationship among the
regressors (no perfect multicollinearity).
[W6-8] What breaks if LR5 fails (perfect multicollinearity)?
Individual effects cannot be separated and the
model cannot be estimated. The dummy variable trap is an example.
[W6-8] What are the consequences of imperfect (strong but not exact) multicollinearity?
It is allowed: ordinary
least squares is still the best linear unbiased estimator. But standard errors are large, t-ratios small, estimates
unstable, and signs may look illogical.
[W6-8] What are the thresholds for judging multicollinearity?
Variance inflation factor below 5 is fine; above 5
is severe (equivalent to an R-squared of 0.8 or more from regressing that variable on the others). Pairwise
correlations above 0.8 in absolute value are a warning.