Final Exam Review - PSTAT 5LS - Spring 2026
📚 Final Exam Review - PSTAT 5LS - Spring 2026.pdf
Brief overview
This document provides a concise review of key statistical concepts essential for the PSTAT 5LS final exam. It covers foundational principles of study design and variable types, essential for understanding statistical investigations, alongside detailed methodologies for hypothesis testing and regression analysis.
Key points
- Overview of statistical variables, study design principles, and data collection.
- How to conduct hypothesis tests for population means, including t-tests and confidence intervals.
- Understanding correlation and the principles of simple linear regression analysis.
- Interpreting scatterplots, regression coefficients, and making predictions.
1. Introduction to statistical variables and study design
1.1 Statistical variables
- Categorical variables describe qualities or categories. They can be nominal (no order) or ordinal (ordered).
- Quantitative variables represent numerical measurements. They can be discrete (countable) or continuous (measurable).
A table can clarify variable types:
| Variable Type | Description | Examples |
|---|---|---|
| Categorical | Represents categories or labels. | yes/no, red/blue/green |
| Quantitative | Represents numerical values. | amount of tip (USD), hours worked |
- The amount of tip in dollars is a quantitative variable.
- The variable
workedTipJob(yes/no) is a categorical variable. - The variable
coffeeTipindicates if a tip was left, making it categorical.
1.2 Study design and variables
- An explanatory variable is thought to influence another variable. It's the predictor or independent variable.
- A response variable is the outcome variable. It's what is being measured or predicted.
The variable indicating if an adult left a tip (
coffeeTip) is the response variable. The variable indicating if they worked a tipped job (workedTipJob) is the explanatory variable. 1.
- Randomly assigning participants to groups is crucial for establishing cause-and-effect.
- This random assignment helps ensure the groups are similar before the intervention.
- It allows researchers to conclude that the difference in outcomes is caused by the treatment, not pre-existing differences.
Random assignment allows for conclusions about cause and effect. .
- Generalizing results to a larger population requires a random sample from that population.
- Random assignment within a study is about creating comparable groups for inference.
- Random sampling is about making sure the study participants represent the target population.
Random assignment helps internal validity (causality); random sampling helps external validity (generalizability). [ 10]
- Correlation coefficient (r) measures the strength and direction of a linear relationship.
- Changing units of measurement (e.g., miles to kilometers) does not change the correlation. The strength of the linear association remains the same.
1.3 Hypothesis testing basics
- The test statistic measures how far the sample result is from the null hypothesis value.
- The p-value is the probability of observing a test statistic as extreme as, or more extreme than, the one calculated. This is assuming the null hypothesis is true.
- To calculate the p-value for a t-test, you use the t-distribution.
The p-value is calculated using the t-distribution for t-tests. [ 12]
- A one-sided hypothesis test uses a one-tailed probability from the test statistic's distribution.
- A two-sided hypothesis test uses a two-tailed probability.
- The test statistic value does not change between one-sided and two-sided tests.
The p-value for a one-sided test is generally half the p-value of a two-sided test when the test statistic is in the same direction. [ 12]
- The direction of the alternative hypothesis is needed to determine the correct p-value calculation.
- The significance level (α) is used to decide whether to reject the null hypothesis.
- You do not need the significance level to calculate the p-value itself.
The significance level (α) is used to make a decision after the p-value is calculated, not to calculate the p-value. .
- When a hypothesis test shows statistically significant results (p-value < α), we reject the null hypothesis.
- Rejecting the null hypothesis supports the alternative hypothesis.
1.4 Confidence intervals
- A confidence interval provides a range of plausible values for a population parameter.
- It estimates the unknown population parameter.
A confidence interval estimates the population parameter. 4.
- The sample statistic (e.g., sample mean) is the center of the confidence interval.
- The sample statistic itself is always within the confidence interval.
The sample statistic is always within its own confidence interval. .
- A confidence interval agrees with a hypothesis test if the hypothesized value from the null hypothesis falls outside the interval.
- If the hypothesized value is inside the confidence interval, the results are not statistically significant at that level.
1.5 Parameters of interest
- The parameter of interest depends on the research question.
| Research Question | Parameter |
|---|---|
| Percentage of adults who think community activities are important | p |
| Difference in mean resting pulse rates after mindfulness training | μd |
| Average time students spend in the campus library | μ |
| Difference in average vitamin D levels between cluster headache patients and others | μ1−μ2 |
1.6 Linear regression and correlation
- In linear regression, the intercept estimates the value of the response variable when the explanatory variable is zero.
- The slope estimates the change in the response variable for a one-unit increase in the explanatory variable.
- Multiple R-squared (R2) indicates the proportion of variability in the response variable explained by the model.
R2 explains the proportion of variability in the response variable. .
- A negative correlation or slope indicates an inverse relationship.
- The strength of the relationship is indicated by the absolute value of the correlation or slope. A value of -0.8 represents a stronger relationship than +0.6.
The absolute value of correlation indicates its strength. [ 7] 5.
- We expect GPA to decrease with more hours playing video games, based on a negative slope/correlation.
- A negative slope means that as the explanatory variable increases, the response variable decreases.
A negative slope means the response variable decreases as the explanatory variable increases. 7.
🔑 Important: Correlation coefficients and slopes indicate strength and direction, but only random assignment allows for causal claims. [ 5, 7] 2.
2. Correlation and linear regression analysis
2.1 Understanding relationships between variables
- A scatterplot visually shows the relationship between two numerical variables.
- You can see the direction (positive or negative) and strength of the relationship from the scatterplot.
- The correlation coefficient (r) quantifies this relationship.
- r ranges from -1 to +1.
🔑 Important: A correlation of +1 or -1 indicates a perfect linear relationship. A correlation near 0 suggests no linear relationship.
| Relationship Type | Correlation Coefficient (r) | Interpretation |
|---|---|---|
| Perfect Positive | +1 | All data points lie on a perfect upward-sloping line. |
| Strong Positive | +0.7 to +0.9 | Points closely follow an upward-sloping line. |
| Weak Positive | +0.1 to +0.3 | Points show a slight upward trend. |
| No Linear | 0 | Points are scattered randomly. |
| Weak Negative | −0.1 to −0.3 | Points show a slight downward trend. |
| Strong Negative | −0.7 to −0.9 | Points closely follow a downward-sloping line. |
| Perfect Negative | −1 | All data points lie on a perfect downward-sloping line. |
[ ]. [ ].
- The sign of the correlation indicates the direction.
- Positive r: Variables increase together.
- Negative r: One variable increases as the other decreases.
- The magnitude of r indicates strength.
- Larger absolute value means stronger linear relationship.
- A correlation of +0.8 is as strong as −0.8. [ ].
2.2 Simple linear regression
- Simple linear regression models the linear relationship between a predictor (independent) variable and a response (dependent) variable.
- It uses a straight line to predict the response variable based on the predictor variable.
📝 Example: Predicting a student's GPA (response) based on hours spent playing video games (predictor). [ ].
2.2.1 The regression equation
- The equation of the simple linear regression line is: y^=b0+b1x
- y^ is the predicted value of the response variable.
- x is the value of the predictor variable.
- b0 is the y-intercept, the predicted value of y when x=0.
- b1 is the slope, the average change in y^ for a one-unit increase in x. [ ].
2.2.2 Interpreting regression output
- Regression output typically includes estimates for the intercept and slope.
- These estimates tell us the specific linear relationship found in the data.
📝 Example: In predicting magical height from actual height, the intercept of 11.06878 inches means that if a student's actual height were 0 inches, their predicted magical height would be 11.06878 inches. The slope of 0.85905 means that for every 1-inch increase in actual height, the predicted magical height increases by 0.85905 inches. [ ].
- The p-value for the slope indicates if the predictor variable has a statistically significant linear relationship with the response variable.
- A low p-value (e.g., < 0.05) suggests the relationship is not due to random chance. [ ] [ ] [ ].
2.3 Assessing the model fit
- Multiple R-squared (R2) measures the proportion of variability in the response variable that is explained by the predictor variable in the model.
- It ranges from 0 to 1. A higher R2 indicates a better fit.
🔑 Important: R2 tells you how much of the response variable's variation your model accounts for. [ ].
| Output Value | Interpretation | Related Concept |
|---|---|---|
| R2=0.4896 | 48.96% of the variability in average crawling age is explained by the linear relationship with temperature. [] | Explained Variability |
| R2=0.9149 | 91.49% of the variability in GPA is explained by the linear relationship with hours playing video games. [7] | Explained Variability |
| R2=0.739 | 73.9% of the variability in magical height is explained by the linear relationship with actual height. [] | Explained Variability |
| r=±R2 | The correlation coefficient (r) is the square root of R2, with the sign determined by the slope (b1). [] | Correlation Coefficient (r) |
- The residual standard error estimates the typical size of the residuals (errors) in the model.
- Smaller values indicate a better fit. [ ] [ ]5.
2.4 Prediction and extrapolation
- Regression models can be used to predict the response variable for new values of the predictor variable.
- Predictions are most reliable within the range of the observed predictor variable values.
🔑 Important: Avoid extrapolation. Predicting beyond the observed range of the predictor variable can lead to inaccurate results because the linear relationship might not hold. [ ].
- A residual is the difference between the actual observed value of the response variable and the predicted value from the regression equation.
- Residual = Actual value - Predicted value. [ ].
🔑 Important: For estimating magical height, it's safer to use actual heights that fall within the range observed in the data. Predicting for heights much shorter or taller than those in the study may be unreliable. [ ] 13.
© 2026 Maeve. All rights reserved. This content is protected by copyright.