MADE EASY BY LUYANDA- ADDITIONAL NOTES VERSION

Table of contents

  1. These are a little extra something for you! 칃
  2. Additional notes regression & ANOVA exam notes
  3. Linear regression
  4. Multiple regression
  5. Logistic regression
  6. One-way ANOVA
  7. Practice questions
  8. General review questions
  9. Thank you for supporting me

1. These are a little extra something for you! 칃

1.1 A note from the author

This section provides a personal introduction to the study notes, emphasizing their Honours-level nature and encouraging students to focus on material covered in their specific course. The author shares these notes with the hope of making topics easier to understand and providing extra help for Statistics exams.

Students are advised to select relevant topics, study at their own pace, and concentrate on what they have been taught 2.

  • Author's encouragement: The author wishes students well and hopes these notes are as helpful as their own undergraduate notes were 2.

2. Additional notes regression & ANOVA exam notes

2.1 Identifying the dependent variable and research question

Before interpreting statistical results, it is crucial to identify the type of dependent variable and the specific research question. This guides the selection of appropriate statistical tests 4.

The dependent variable (DV) dictates the primary statistical approach:

  • Continuous DV: Indicates the use of linear regression, multiple regression, or ANOVA. Examples include scores, marks, or stress levels.
  • Binary DV: Suggests logistic regression. Examples include yes/no outcomes, pass/fail, or happier/normal states 4.

The research question further refines the choice of test:

  • Prediction from one predictor: Linear regression is suitable.
  • Prediction from two or more predictors: Multiple regression is the appropriate method.
  • Odds, likelihood, or probability of category membership: Logistic regression is used.
  • Difference between three or more group means: One-way ANOVA is applied 4.
TestDependent VariableIndependent Variable(s)Overall Test Statistic
Linear RegressionContinuous1 predictorF
Multiple RegressionContinuous2+ predictorsF
Logistic RegressionBinary (0/1)1+ predictorsχ²
ANOVAContinuous1 categorical IV, 3+ groupsF
TestVariance Explained
Linear RegressionR², adjusted R²
Multiple RegressionR², adjusted R²
Logistic RegressionPseudo R²
ANOVAη²

2.2 Interpreting non-significant overall tests

If the overall test for a statistical model is non-significant, specific interpretations apply 4.

  • For linear and multiple regression, a non-significant overall test means retaining the null hypothesis (H0H_0), indicating no significant relationship between the predictors and the dependent variable.
  • For logistic regression, a non-significant overall test means no predictive claims can be made.
  • For ANOVA, a non-significant overall test means no post hoc tests should be conducted, as there is no significant difference between the group means 4.

3. Linear regression

3.1 What is regression?

Regression is a statistical method used to predict the value of one variable, known as the dependent variable (Y), using another variable, the independent variable (X). Simple linear regression involves one independent and one dependent variable.

It differs from correlation, which measures the relationship between variables without predicting an outcome and is symmetrical, whereas regression is directional, predicting Y from X 5.

3.2 The regression equation

The fundamental equation for simple linear regression is Y=a+bXY = a + bX. In this equation, YY represents the dependent variable, which is the outcome being predicted. XX is the independent variable, serving as the predictor.

The term aa is the intercept, indicating the value of YY when XX is zero. The term bb is the slope, which quantifies how much YY changes for a one-unit increase in XX 5.

3.3 Making predictions

Predictions in linear regression are made by substituting a given value of the independent variable (XX) into the regression equation. For instance, if the regression equation is Y=0.67X+0.12Y = 0.67X + 0.12 and a participant scores X=35X = 35, the predicted value of YY is calculated as Y=0.67×35+0.12=23.57Y = 0.67 \times 35 + 0.12 = 23.57 5.

3.4 Variance in regression

Regression analysis aims to explain the total variance observed in the dependent variable (YY). This total variance is partitioned into two components: regression variance (also known as systematic, explained, or model variance), which is the variation in YY that is accounted for by the independent variable (XX), and residual variance (also known as non-systematic, unexplained, or error variance), which is the variation in YY not explained by XX 6.

Type of varianceMeaning
Regression (systematic) variationExplained by X
Residual (non-systematic) variationNOT explained by X
Total variationAll the variance in Y

3.5 Error vs. residual

Error refers to the theoretical, population-level unexplained variation, representing the true difference between actual and predicted outcomes. In contrast, a residual is the actual calculated difference between an observed score and a predicted score within a specific sample.

It is calculated as Residual = Y−Y^Y - \hat{Y}, where YY is the observed score and Y^\hat{Y} is the predicted score. A residual serves as an estimate of the error from the sample 6.

3.6 Assumptions of linear regression

Before interpreting linear regression results, several assumptions must be verified:

  • Measurement level: The dependent variable (YY) must be continuous, while the independent variable (XX) can be continuous or nominal.
  • Linearity: A straight-line relationship must exist between XX and YY. This can be checked using a scatterplot, where points should roughly form a straight line.
  • No significant outliers: Extreme data points that deviate from the general pattern should be identified and handled appropriately (corrected, removed, or reported).
  • Independence of errors: The residuals must not be related to each other.
  • Homoscedasticity: Residuals should exhibit an equal spread across all predicted values, appearing evenly distributed on a residual plot. A funnel shape indicates a violation.
  • Normality of residuals: Residuals should be approximately normally distributed. This can be assessed using histograms, Q-Q plots, or statistical tests like the Shapiro–Wilk or Kolmogorov–Smirnov tests. The null hypothesis (H0H_0) is that residuals are normal, so a p-value greater than 0.05 indicates normality is met 7.

3.7 Hypotheses in regression

The primary hypotheses tested in linear regression concern the slope (bb) of the predictor variable. The null hypothesis (H0H_0) states that the slope is zero (b1=0b_1 = 0), meaning the predictor does not significantly predict the outcome.

The alternative hypothesis (H1H_1) states that the slope is not zero (b1≠0b_1 \neq 0), indicating that the predictor does significantly predict the outcome 8.

3.8 Interpreting regression output

Interpreting regression output involves examining several key statistics:

  • R: Represents the strength of the association between variables. In simple regression, RR is equivalent to Pearson's rr.
  • R²: Indicates the proportion of variance in the dependent variable (YY) that is explained by the independent variable (XX). For example, an R2R^2 of 0.56 means 56% of the variance in happiness is explained.
  • Adjusted R²: This value corrects R2R^2 for sample size and the number of predictors, providing a more realistic estimate of explained variance in the population.
  • ANOVA table: Assesses the overall significance of the regression model. It includes Sum of Squares, degrees of freedom (dfdf), Mean Square, the FF-statistic (indicating model significance), and the pp-value. A pp-value less than 0.05 suggests rejecting the null hypothesis.
  • Coefficients table: Provides the values for the intercept (aa) and slope (bb), which are used to construct the prediction equation 8.

📝 If a regression analysis yields an equation Y=0.67X+0.12Y = 0.67X + 0.12 and an R2R^2 of 0.56, it means that for every one-unit increase in XX, YY is predicted to increase by 0.67, and 56% of the variation in YY can be explained by XX 5 8.

4. Multiple regression

4.1 What is multiple regression?

Multiple regression is a statistical technique used to predict or explain a continuous dependent variable (DV) using two or more independent variables (IVs). It helps determine if the predictors collectively explain the outcome, how much variance they account for, and the unique contribution of each predictor 9.

  • Purpose:

  • Predict outcomes.

  • Test relationships between variables.

  • Identify the strongest predictor.

  • Control for other variables.

  • Explain variance in the DV 10.

  • Terminology:

  • Dependent variable (DV) / criterion variable: The outcome being predicted.

  • Independent variable (IV) / predictor: The variable used for prediction.

  • Coefficient (b): Indicates how much the DV changes when an IV changes by one unit.

  • Intercept (b₀): The predicted DV value when all IVs are zero.

  • Residual: The difference between the actual and predicted DV value (prediction error).

  • Model fit: Assesses how well the regression model predicts the DV 10.

  • Variable types:

  • Dependent variable: Must be continuous (interval or ratio), such as happiness, exam marks, or income.

  • Independent variables: Can be continuous, categorical, or dummy-coded, such as age, study hours, or stress level 10.

4.2 The regression equation

The multiple regression equation models the relationship between the dependent variable and multiple independent variables.

The general form of the equation is: Y=b0+b1X1+b2X2+b3X3+⋯+bnXnY = b_0 + b_1X_1 + b_2X_2 + b_3X_3 + \dots + b_nX_n Where:

  • YY is the predicted outcome.
  • b0b_0 is the intercept.
  • b1,b2,…,bnb_1, b_2, \dots, b_n are the coefficients for each predictor variable.
  • X1,X2,…,XnX_1, X_2, \dots, X_n are the predictor variables 10.

4.3 Understanding coefficients

Coefficients in a multiple regression model indicate the direction and magnitude of the relationship between each predictor and the dependent variable, while controlling for other predictors.

  • Positive coefficient (e.g., b=+2.3b = +2.3): As the IV increases, the DV increases. For example, more studying leads to higher marks.
  • Negative coefficient (e.g., b=−1.8b = -1.8): As the IV increases, the DV decreases. For example, more stress leads to lower marks 11.

The concept of "holding other variables constant" is central: each coefficient represents the effect of that predictor while all other predictors in the model remain unchanged. This isolates the unique contribution of each predictor 11.

Coefficients can be:

  • Unstandardised (B): Presented in the original units of the variables (e.g., marks increase by 3 points).
  • Standardised (Beta, β): Presented in standard deviation units, allowing for comparison of the relative strength of predictors. The predictor with the largest Beta value is the strongest predictor 11.

4.4 Assumptions of multiple regression12 13

Meeting these assumptions is crucial for the validity and reliability of regression results. Violations can lead to distorted coefficients, biased results, and misleading conclusions 11.

AssumptionWhat it isHow to checkWhy it matters
Independence of observationsObservations should not influence one another.Durbin–Watson statistic (≈ 2 indicates independence).Ensures each data point is a unique piece of information.
LinearityA straight-line relationship between predictors and the outcome.Scatterplots and residual plots.Regression models linear relationships effectively.
HomoscedasticityResiduals have equal variance across all predicted values.Visual inspection of residual plots (look for consistent spread).Ensures standard errors are accurate and significance tests are reliable.
Normality of residualsResiduals should be approximately normally distributed.Shapiro–Wilk test (p >.05), Q-Q plots.Minor violations are often acceptable; robust to moderate deviations.
No multicollinearityIndependent variables are not highly correlated with each other.Correlation matrix (r >.70), Tolerance (>.10), VIF (> 5 or > 10).Ensures predictors contribute unique information and coefficients are stable.
No influential outliersCases that strongly affect regression results.Cook's distance, standardised residuals, leverage values.Prevents distortion of coefficients, bias, and changes in significance.

4.5 Multicollinearity

Multicollinearity occurs when two or more independent variables are highly correlated with each other, meaning they overlap significantly in the information they provide. This makes it difficult for the regression model to distinguish the unique effect of each predictor 12.

  • Problem: Regression aims for each predictor to contribute unique information. Multicollinearity means predictors are redundant 12.
  • Consequences: Unstable coefficients (potentially flipping signs), increased standard errors, unreliable p-values, and difficulty in interpretation. Important variables may appear non-significant.
  • Types:
  • Perfect multicollinearity: Predictors are perfectly correlated (r=1.00r = 1.00), preventing the regression from running.
  • High multicollinearity: Predictors are strongly correlated (e.g., r=.85r =.85), allowing the regression to run but causing interpretation issues 13.

4.6 Detecting multicollinearity 13

MethodDescriptionRule of Thumb
Correlation matrixExamines pairwise correlations between predictors.r >.70 suggests possible multicollinearity.
ToleranceThe proportion of a predictor's variance not explained by other predictors (1 - R²).<.10 indicates serious multicollinearity.
VIF (Variance Inflation Factor)Measures how much multicollinearity inflates the variance of regression coefficients (1 / Tolerance).> 5 is concerning; > 10 is serious multicollinearity.

4.7 Fixing multicollinearity

  • Remove one of the highly correlated predictors.
  • Combine variables into a composite score.
  • Collect more data to reduce instability.
  • Use theoretical relevance to select predictors 14.

4.8 Influential outliers

Influential outliers are data points that disproportionately affect the regression model's coefficients, results, or significance 12.

  • Detection: Cook's distance, standardised residuals, and leverage values are used 12.

4.9 Model fit

Model fit statistics indicate how well the overall regression model explains the variance in the dependent variable 14.

  • Multiple correlation coefficient (R): Measures the linear relationship between the predicted and actual DV scores, ranging from 0 to 1. -.10 = weak,.30 = moderate,.50+ = strong.
  • Coefficient of determination (R²): Represents the percentage of variance in the DV explained by all predictors in the model.
  • Example: R2=.36R^2 =.36 means 36% of the variance is explained. -.01 = small,.09 = medium,.25 = large effect size.
  • Adjusted R²: A modified version of R2R^2 that accounts for the sample size and the number of predictors, providing a more accurate estimate, especially with many predictors. It is typically smaller than R2R^2 14.

4.10 Hypotheses and the F-test

The F-test, often presented in an ANOVA table, assesses the overall statistical significance of the multiple regression model 15.

  • Null Hypothesis (H₀): All regression coefficients are zero (b1=b2=⋯=bn=0b_1 = b_2 = \dots = b_n = 0), meaning the predictors collectively do not predict the outcome.

  • Alternative Hypothesis (H₁): At least one regression coefficient is non-zero (at least one b≠0b \neq 0), meaning the predictors collectively do predict the outcome 15.

  • F-test interpretation:

  • If p<.05p <.05, the overall model is statistically significant.

  • If p>.05p >.05, the overall model is not statistically significant 15.

📝 A multiple regression was conducted to determine if study groups, anxiety, and sleep predicted exam performance. The model was significant (F(3,96)=7.42,p<.001F(3, 96) = 7.42, p <.001), explaining 32% of the variance (R2=.32R^2 =.32). Study groups positively predicted performance, while anxiety negatively predicted it. VIF values were below 10, indicating no multicollinearity concerns 15.

4.11 Logistic regression

Logistic regression is used when the dependent variable is categorical, predicting the probability of an event occurring rather than raw scores. This is useful for binary outcomes like "yes/no" or "pass/fail." 15.

5. Logistic regression

5.1 Introduction to logistic regression

Logistic regression is a statistical method used to predict categorical outcomes, particularly when the dependent variable has exactly two categories. Unlike linear regression, which predicts numerical outcomes, logistic regression uses the logistic function to ensure predicted probabilities remain between 0 and 1 16.

  • Purpose: Predicts categorical outcomes, such as disease status (sick/healthy) or academic outcome (pass/fail).
  • Outcome variable: Must be binary and mutually exclusive, typically coded as 0 for absence/normal and 1 for presence/happier.
  • Independent variables: Can be continuous (e.g., age, salary) or categorical (e.g., gender).
  • Key questions:
  • Predicts the probability of an outcome occurring.
  • Identifies significant predictors influencing the outcome.
  • Estimates how odds change with predictor variables 16.
  • Keywords: Look for terms like "odds," "likelihood," "association" with a categorical outcome, "probability," or "probability of belonging to a category." 17.

5.2 Logistic vs. linear regression

Logistic regression differs significantly from linear regression in its purpose, outcome variable, estimation method, and output interpretation. While linear regression predicts continuous numerical values, logistic regression predicts probabilities for categorical outcomes 17.

FeatureLinear RegressionLogistic Regression
Outcome VariableContinuousBinary/Categorical
Estimation MethodOrdinary Least SquaresMaximum Likelihood Estimation
OutputRegression LineS-shaped Logistic Curve
ResidualsAssumes normalityDoes not require normal residuals
Model Fit StatisticR²Pseudo R²
Significance TestF-statisticChi-square (χ²)
PredictionRaw ScoresProbabilities / Log-odds

5.3 The logistic regression model

The core of logistic regression lies in its model, which predicts the log-odds of an outcome occurring. This transformation ensures that predicted probabilities are constrained between 0 and 1, avoiding the impossible predictions that linear regression might produce 17.

  • Model equation: ln⁡(p÷(1−p))=b0+b1X1+b2X2+⋯+bkXk\ln(p \div (1 - p)) = b₀ + b₁X₁ + b₂X₂ + \dots + bₖXₖ.
  • pp: Probability that the outcome occurs.
  • b0b₀: Intercept.
  • b1,b2…b₁, b₂ \dots: Regression coefficients.
  • XX: Predictors.
  • Log-odds (logit): The left side of the equation, representing the natural logarithm of the odds 17.

5.4 Odds and odds ratios

Odds provide a measure of the likelihood of an event occurring compared to its non-occurrence, and the odds ratio quantifies how these odds change with a one-unit increase in a predictor variable. This is a crucial concept for interpreting logistic regression results 18.

  • Odds: The probability that the outcome occurs compared to the probability it does not occur.
  • Odds ratio (OR): Also known as Exp(B), it indicates how the odds change when a predictor increases by one unit 18.
OR ValueMeaning
OR = 1No effect
OR > 1Increased odds
OR < 1Decreased odds
  • Percentage change in odds: Calculated as (OR−1)×100(OR - 1) \times 100.
  • An OR of 1.001 indicates a 0.1% increase in odds.
  • An OR of 0.80 indicates a 20% decrease in odds 18.

5.5 Robustness and assumptions of logistic regression

Logistic regression is considered a robust statistical test because it remains reasonably accurate even when some of its assumptions are violated, particularly regarding the normality of residuals. However, several key assumptions must still be met for reliable results 18.

  • Robustness: Less sensitive to normality violations compared to linear regression.
  • Assumptions:
  • Binary dependent variable: The outcome must have exactly two categories.
  • Independence of observations: Each participant should appear only once; no repeated measures.
  • Linearity of the logit: Continuous predictors must relate linearly to the log-odds of the outcome. This can be checked using the Box–Tidwell test or logit plots 18.
  • No multicollinearity: Predictors should not be too strongly correlated, typically checked with a tolerance > 0.10 and VIF < 10.
  • No influential outliers: Assessed using Cook's distance and standardized residuals 19.

5.6 Hypotheses and model significance

In logistic regression, hypotheses focus on whether predictor variables significantly affect the outcome. The overall significance of the model is assessed using a chi-square test, which replaces the F-test used in linear regression 19.

  • Null Hypothesis (H₀): b=0b = 0, meaning the predictor has no effect on the outcome.
  • Alternative Hypothesis (H₁): b≠0b \neq 0, meaning the predictor significantly affects the outcome.
  • Chi-square (χ²) test:
  • Tests if the logistic regression model as a whole significantly predicts the outcome.
  • Interpretation:
  • p<.05p <.05: The model is significant.
  • p>.05p >.05: The model is not significant.
  • If the χ2\chi² is non-significant, prediction is generally not meaningful, though coefficients may be described for exploratory purposes 19.

5.7 Creating a binary variable

A continuous variable can be transformed into a binary one by splitting it at the median, creating two categories. This simplification, however, can lead to a loss of information and should be theoretically justified 20.

  • Median split: Scores at or above the median are assigned to one category (e.g., 1 for "happier"), and scores below the median to the other (e.g., 0 for "normal").
  • Caution: This method simplifies data but loses information; theoretical justification from literature is required 20.

5.8 Interpreting logistic regression output

Interpreting logistic regression output involves a systematic review of model fit, the significance of predictors, and classification accuracy. The order of interpretation is crucial for drawing valid conclusions from the analysis 20.

  • Order of interpretation:
  1. χ2\chi² statistic and its p-value for overall model significance.
  2. Exp(B) / odds ratio for each predictor and its confidence intervals.
  3. Significance of each predictor (p-value).
  4. Classification accuracy.
  5. Pseudo R² (approximate variance explained).
  • Key indicators: The presence of χ2\chi², Exp(B), odds ratios, or probabilities in the output suggests a logistic regression analysis 20.

📝 A binary logistic regression was conducted to determine if time spent listening to amapiano predicted happiness status (happier vs. normal). The model was statistically non-significant, χ2(1)=0.002,p=.96\chi²(1) = 0.002, p =.96, indicating that listening time did not significantly predict the likelihood of being classified as happier 20.

6. One-way ANOVA

6.1 Introduction to one-way ANOVA

ANOVA (Analysis of Variance) is a statistical test used to determine if statistically significant differences exist between the means of three or more groups. It tests whether at least one group mean differs significantly from the others.

For instance, it can compare stress levels across first-year, second-year, and honors students. It is important to note that ANOVA does not identify which specific groups differ, only that a difference exists overall.

While a t-test is used for two groups, ANOVA is employed for three or more 21.

6.2 Why use ANOVA instead of multiple t-tests?

Using multiple t-tests to compare several groups increases the probability of a Type I error, which is wrongly rejecting the null hypothesis and concluding a difference exists when it does not. This cumulative increase in error probability across multiple tests is known as the family-wise error rate.

For example, comparing three pairs of groups (A vs. B, A vs. C, B vs. C) with individual 5% Type I error rates results in an approximate 14% chance of at least one false significant result. ANOVA addresses this by conducting a single overall test, thereby controlling family-wise error and limiting Type I error inflation.

This makes ANOVA more efficient and statistically stronger for comparing multiple groups simultaneously 21.

6.3 Variables in one-way ANOVA

A one-way ANOVA involves one independent variable, which is a categorical grouping variable with three or more levels. The dependent variable must be continuous 22.

Variable typeRequirementExample
Independent variable (grouping variable)Categorical, 3+ levelsAcademic level
Dependent variableContinuousStress score

6.4 The logic of ANOVA

ANOVA works by comparing two sources of variation: between-group variation and within-group variation. Between-group variation, also called systematic or explained variance, is the variation caused by group membership, such as differences between first-year and honors students.

Within-group variation, also known as unsystematic, error, or random variance, is the variation caused by individual differences within each group. The core logic is that if the between-group variation is substantially larger than the within-group variation, the groups likely differ significantly 22.

6.5 The F-ratio

The F-ratio is calculated by dividing the between-group variance by the within-group variance. It essentially compares the systematic variance (group differences) to the unsystematic variance (random error and individual differences).

A large F-ratio suggests that the groups likely differ significantly, while a small F-ratio indicates the groups are likely similar 22.

6.6 Hypotheses in ANOVA

The null hypothesis (H₀) states that all group means are equal (μ1=μ2=μ3\mu_1 = \mu_2 = \mu_3). The alternative hypothesis (H₁) states that at least one group mean differs significantly.

ANOVA does not specify which group mean is different 22.

6.7 Assumptions of one-way ANOVA

One-way ANOVA relies on several assumptions to ensure the validity of its results 23.

  • Independence of observations: Each participant should belong to only one group and contribute only one score.
  • Normality: The dependent variable should be approximately normally distributed within each group. This can be checked using tests like Shapiro–Wilk or Kolmogorov–Smirnov, or visually with histograms and Q-Q plots. The null hypothesis for normality tests is that the data are normal; if the p-value is greater than.05, this assumption is met.
  • Homogeneity of variance: The variances across the groups should be similar. Levene's test is commonly used to check this assumption. The null hypothesis is that group variances are equal; if the p-value is greater than.05, the assumption is satisfied. A p-value less than.05 indicates a violation 23.

ANOVA is considered a robust test, meaning it remains reasonably accurate even with mild violations of assumptions, especially with equal sample sizes. However, severe violations, particularly unequal variances, can affect accuracy 23.

6.8 Post hoc tests

Post hoc tests are conducted after a statistically significant ANOVA to identify which specific groups differ from each other. They are necessary because the ANOVA only indicates that a difference exists somewhere among the group means.

Post hoc tests should only be performed if the overall ANOVA result is statistically significant. If the ANOVA is non-significant, post hoc tests should not be run, as there is no evidence of any group differences overall 23 24.

Post hoc testWhen to use
TukeyEqual variances (Levene's p >.05)
Games–HowellUnequal variances (Levene's p <.05)
BonferroniConservative correction

6.9 Effect size: eta-squared (η²)

Eta-squared (η²) is an effect size measure that indicates the proportion of variance in the dependent variable that is explained by group membership. It quantifies the magnitude of the difference, rather than just its statistical significance 24.

η²Effect
.01Small
.06Medium
.14Large

📝 An eta-squared (η²) of .14 indicates a large effect size, meaning 14% of the variance in the dependent variable is explained by group membership 24.

6.10 Interpreting ANOVA output

Interpreting ANOVA output involves examining several components in a specific order 24.

  1. Descriptives: Review means, standard deviations, and sample sizes for each group.
  2. Levene's test: Check if the assumption of homogeneity of variance is met (p >.05).
  3. ANOVA table: Examine the Sum of Squares, degrees of freedom (df), Mean Squares, F-statistic, and p-value to determine overall significance.
  4. Effect size: Assess the meaningfulness of the difference using eta-squared (η²).
  5. Post hoc comparisons: If the ANOVA is significant, review pairwise group comparisons and their significance values to identify which specific groups differ 24.

6.11 Reporting ANOVA results (APA style)

When reporting ANOVA results in APA style, include the type of test, the groups compared, the overall significance, the F-statistic with its degrees of freedom, the p-value, the effect size, and the results of any post hoc tests 25.

A one-way ANOVA was conducted to compare stress levels across first-year, second-year, and honours students. Results indicated a statistically significant difference between groups, F(2, 57) = 5.62, p =.006, η² =.16. Tukey post hoc tests revealed that honours students reported significantly higher stress levels than first-year students 25.

7. Practice questions

7.1 Case study 1: Predicting an outcome from one predictor (linear regression)

This case study examines the use of simple linear regression to predict a continuous outcome variable from a single predictor variable. The scenario involves a training manager investigating whether the number of training hours completed by employees predicts their job performance rating.

Data from 50 employees were analyzed 26.

The analysis yielded the following results:

  • R:.60
  • R²:.36, indicating that training hours explain 36% of the variance in job performance.
  • Adjusted R²:.35, providing a more realistic population estimate as R² can overestimate.
  • F-test: F(1, 48) = 27.00, p <.001, which is statistically significant (p <.05), leading to the rejection of the null hypothesis that training hours do not predict job performance.
  • Regression equation: Performance = 42.5 + 1.8(Training hours) 26.

The intercept (42.5) represents the predicted performance rating when training hours are zero. The slope (1.8) indicates that each additional training hour increases the predicted performance rating by 1.8 points 27.

For an employee with 10 training hours, the predicted performance rating is calculated as: Performance = 42.5 + 1.8 × 10 = 42.5 + 18 = 60.5 27.

If an employee's actual rating was 65, the residual (the difference between the actual and predicted score) is: Residual = Y − Ŷ = 65 − 60.5 = 4.5. This means the employee performed 4.5 points better than predicted 27.

A funnel shape in the residual plot indicates a violation of the homoscedasticity assumption, meaning the residuals do not have equal spread. This can bias standard errors and distort significance tests, potentially making the results misleading 27.

📝 For an employee with 10 training hours, the predicted performance rating is calculated as: Performance = 42.5 + 1.8 × 10 = 60.5 27.

7.2 Case study 2: Predicting an outcome from several predictors (multiple regression) 28

This case study explores the application of multiple regression to predict a continuous outcome variable (employee burnout scores) using multiple predictor variables: workload, supervisor support, and years of service. Data were collected from 120 employees 27.

The overall model results are:

  • F-test: F(3, 116) = 18.20, p <.001, indicating that the predictors collectively and significantly predict burnout.
  • R²:.32, meaning the model explains 32% of the variance in burnout scores.
  • Adjusted R²:.30, which accounts for the sample size and number of predictors.
  • Durbin–Watson statistic: 1.98, suggesting independence of observations 27 28.

The table below summarizes the predictor information:

PredictorBBeta (β)pToleranceVIF
Workload0.85.45<.001.711.41
Supervisor support−0.60−.30.001.631.59
Years of service0.05.04.62.831.20
  • Strongest predictor: Workload, identified by its largest standardized Beta (β =.45). Standardized Betas are used for comparison as they are in standard-deviation units.
  • Supervisor support coefficient: B = −0.60. For each one-unit increase in supervisor support, burnout decreases by 0.60 units, holding other predictors constant. This effect is statistically significant (p =.001).
  • Years of service significance: Not significant (p =.62), indicating it does not predict burnout when workload and supervisor support are controlled 28.

Regarding assumptions:

  • Multicollinearity: Not a problem, as all tolerance values are above.10 and VIF values are below 10.
  • Independence: Met, as the Durbin–Watson value of 1.98 is close to 2 29.

If "job demands" were added and correlated with workload (r =.88) with a VIF of 12, this would indicate serious multicollinearity. Potential fixes include removing one predictor, combining them, collecting more data, or selecting predictors based on theory 29.

7.3 Case study 3: Predicting a yes/no outcome (binary logistic regression)

This case study focuses on binary logistic regression, used when predicting a categorical outcome with two categories (Yes/No) from one or more predictors. The scenario involves a company predicting employee intention to leave based on years of service, using data from 200 employees 29.

Key results include:

  • Model significance: χ² = 9.84, p =.002. This chi-square statistic replaces the F-test in linear regression and indicates that years of service significantly predict intention to leave (p <.05) 1.
  • Pseudo R²:.07, suggesting the model explains 7% of the variance in the odds of intending to leave.
  • Odds ratio (Exp(B)) for years of service: 0.88, with a 95% confidence interval [0.81, 0.96 and p =.003.
  • Classification accuracy: 64% 29.

Linear regression is unsuitable for binary outcomes because it can produce impossible probabilities (outside the 0-1 range) and predicts raw scores rather than log-odds. Logistic regression uses the logistic function to constrain probabilities between 0 and 1 30.

The odds ratio of 0.88 indicates that for each additional year of service, the odds of intending to leave decrease by 12% (calculated as (0.88 - 1) × 100). The 95% confidence interval [0.81, 0.96 does not include 1, confirming the statistical significance of the predictor 30.

If the chi-square test had been non-significant (e.g., p =.41), the model would not be considered a meaningful predictor, and predictions would not be reliable 30.

A criticism of using a median split on an original continuous scale (like intention to leave) is that it simplifies data but loses information from the original scores, and the split must be theoretically justified 30.

7.4 Case study 4: Comparing three group means (one-way ANOVA)

This case study demonstrates the use of a one-way ANOVA to compare the means of a continuous dependent variable across three or more independent groups. The scenario involves comparing job satisfaction scores (0–50) across three departments: Finance, HR, and Operations, with 20 employees in each department (N = 60) 31.

The department means, standard deviations, and sample sizes are:

DepartmentMeanSDn
Finance31.27.120
HR37.86.420
Operations30.56.920

The statistical test used is one-way ANOVA because it compares means of three or more groups, avoiding the inflated family-wise error rate that would result from conducting multiple t-tests 31.

  • Independent Variable (IV): Department (categorical, 3 levels).
  • Dependent Variable (DV): Job satisfaction score (continuous).
  • Null Hypothesis (H₀): μ Finance = μ HR = μ Operations (all department means are equal).
  • Alternative Hypothesis (H₁): At least one department mean differs 31.

Assumption checks and post hoc tests:

  • Levene's test: p =.38, which is greater than.05, indicating that the homogeneity of variance assumption is met.
  • Appropriate post hoc test: Tukey is suitable because variances are equal. Games–Howell would be used if variances were unequal 31.

ANOVA results:

  • F-test: F(2, 57) = 6.30, p =.003. This significant result (p <.05) leads to rejecting H₀, meaning at least one department's mean job satisfaction differs significantly 31.
  • Effect size (η²):.18, indicating that department membership explains 18% of the variance in job satisfaction, which is considered a large effect 32.

Tukey post hoc results:

  • HR > Finance (p =.012)
  • HR > Operations (p =.005)
  • Finance vs Operations (p =.94)

These results show that HR employees have significantly higher job satisfaction than those in Finance and Operations. There is no significant difference in job satisfaction between Finance and Operations employees 32.

If the ANOVA had been non-significant (e.g., F(2, 57) = 1.61, p =.21), post hoc tests should not be conducted, as there is no overall evidence of a difference between group means 32.

7.5 General review questions

These questions cover distinctions between regression types and definitions of statistical terms 32.

  • Simple linear regression vs. multiple regression: Simple linear regression predicts a continuous DV using one predictor (Y = a + bX). Multiple regression uses two or more predictors, with each coefficient representing a predictor's unique effect while controlling for others.
  • Error vs. residual: An error is the theoretical, population-level unexplained variation between actual and predicted outcomes. A residual is the calculated difference between an actual observed value and the predicted value in a sample 32.

8. General review questions

8.1 Residuals and robust tests

A residual represents the difference between an observed and a predicted score in a sample, serving as an estimate of the error. A robust test maintains accuracy even when its underlying assumptions are not perfectly met 33.

  • Residual: the sample's estimate of the error, calculated as the observed score minus the predicted score (Y−Y^Y - \hat{Y}).
  • Robust test: a statistical test that remains reasonably accurate even when some of its assumptions are violated.
  • Logistic regression: considered robust because it does not require normally distributed residuals.
  • ANOVA: fairly robust, particularly when group sizes are equal and assumption violations are mild 33.

8.2 Variance and the F-statistic

Systematic variance is the variability explained by a model or group membership, while unsystematic variance is the unexplained variability due to random factors. The F-statistic is the ratio of systematic to unsystematic variance, indicating how much more variance is explained by the model than by chance 33.

  • Systematic variance: variance explained by the model or group membership, also known as regression variance or between-group variance.
  • Unsystematic variance: unexplained variance due to random factors and individual differences, also known as residual variance or within-group variance.
  • F-statistic: the ratio of systematic variance to unsystematic variance (F=systematic÷unsystematicF = \text{systematic} \div \text{unsystematic}), where a larger F indicates a greater proportion of variance explained by the model 33.

8.3 Adjusted R²

Ordinary R² can overestimate the variance explained in a population, especially when many predictors are included. Adjusted R² provides a more realistic estimate by correcting for sample size and the number of predictors 33.

  • R²: a measure of the proportion of variance in the dependent variable that is predictable from the independent variable(s).
  • Adjusted R²: a modified version of R² that adjusts for the number of predictors in the model and the sample size, providing a less biased estimate of population variance explained 33.

8.4 Multicollinearity

Multicollinearity occurs when independent variables in a regression model are highly correlated with each other, leading to unstable coefficients and unreliable p-values. Tolerance and Variance Inflation Factor (VIF) are used to detect it 33.

TermDefinition/Relation
MulticollinearityWhen two or more IVs are highly correlated with each other, causing unstable coefficients and unreliable p-values.
ToleranceThe unique variance left in a predictor, calculated as 1−R21 - R^2.
VIF (Variance Inflation Factor)Calculated as 1÷Tolerance1 \div \text{Tolerance}.
Acceptable valuesTolerance > 0.10 and VIF < 10.

8.5 Test statistics in regression

Linear regression and ANOVA use the F-statistic to test the overall model because they have a continuous outcome variable and use ordinary least squares estimation. Logistic regression, with a binary outcome, uses maximum likelihood estimation and tests the overall model with a chi-square (χ²) statistic 33.

Model TypeOutcome VariableEstimation MethodOverall Model Test
Linear Regression / ANOVAContinuousOrdinary Least SquaresF-statistic
Logistic RegressionBinary (Categorical with two levels)Maximum Likelihood EstimationChi-square (χ²) statistic

8.6 Null Hypothesis Significance Testing (NHST)

NHST provides objective decision rules for hypothesis testing but can lead to an overemphasis on p-values and does not distinguish between statistical and practical significance. It is also sensitive to sample size and cannot prove the null hypothesis true 34.

  • Strengths of NHST:
  • Provides objective decision rules for hypothesis testing.
  • Serves as a widely accepted framework for formal hypothesis testing.
  • Limitations of NHST:
  • Encourages an over-focus on p-values.
  • Statistical significance does not equate to practical significance.
  • Is sensitive to sample size.
  • Cannot prove the null hypothesis true 34.

8.7 Effect sizes and p-values

P-values indicate the likelihood of a result occurring by chance, while effect sizes quantify the magnitude and importance of an observed effect. Reporting both provides a more complete understanding of research findings 34.

  • P-value: indicates whether a result is likely due to chance.
  • Effect size (e.g., η², R²): quantifies the magnitude of an effect, providing a measure of its importance 34.

8.8 Choosing statistical tests

Selecting the appropriate statistical test depends on the nature of the outcome variable and the research question. For a binary outcome and mixed predictor types, binary logistic regression is suitable 34.

  • Scenario: A researcher wants to predict employee promotion (Yes/No) based on gender and years of experience.

  • Recommended test: Binary logistic regression.

  • Reasoning: The outcome variable (promoted: Yes/No) is categorical with two categories, and the predictors include both categorical (gender) and continuous (years of experience) variables 34.

  • Conceptual Clarification: Choosing between statistical tests is like selecting the right tool for a job. First, consider what you are measuring (the outcome): a continuous score requires tools like linear regression or ANOVA, while a yes/no outcome needs a tool like logistic regression. Then, consider the task: predicting from one variable uses linear regression; predicting from multiple variables uses multiple regression; comparing three or more groups uses ANOVA. Finally, ensure the conditions are suitable by checking the test's assumptions 34.

📝 To predict employee promotion (Yes/No) based on gender and years of experience, binary logistic regression is suitable because the outcome is binary and predictors can be mixed types.

9. Thank you for supporting me

9.1 Gratitude and encouragement

Thank you for engaging with these notes and for your support in purchasing them. This genuine support is deeply appreciated and signifies a lot.

The aim was for these notes to be helpful, to simplify the understanding of Statistics, and to boost your confidence for upcoming exams 35.

Remember that mastering all topics at once is not necessary. Focus on one subject at a time, practice your analytical skills, and believe in your abilities.

Wishing you the very best for your exams and the remainder of your final year. May your efforts be rewarded, and may you feel a sense of accomplishment at the year's end 35.

Thank you again for your support. Study diligently, and strive to make yourself proud 35.

© 2026 Maeve. All rights reserved. This content is protected by copyright.

See also