2.5
-Scatterplot, between two quantitative variables
The correlation is a measure of the strength and direction of linear association between two
quantitative variables.
The correlation between two quantitative variables of a sample is denoted r. The correlation
between two quantitative variables of a population is denoted π, which is the Greek letter “rho”
Properties of the Correlation The sample correlation r has the following properties: • Correlation
is always between −1 and 1, inclusive: −1 ≤ r ≤ 1. • The sign of r (positive or negative) indicates
the direction of association. • Values of r close to +1 or −1 show a strong linear relationship,
while values of r close to 0 show no linear relationship. • The correlation r has no units and is
independent of the scale of either variable. • The correlation is symmetric: The correlation
between variables x and y is the same as the correlation between y and x. The population
correlation π also satisfies these properties.
A strong positive or negative correlation does not (necessarily) imply a cause and effect
relationship between the two variables.
A correlation near zero does not (necessarily) mean that the two variables are not associated,
since the correlation measures only the strength of a linear relationship.
Correlation can be heavily influenced by outliers. Always plot your data!
2.6
Explanatory and Response Variables The regression line to predict y from x is NOT the same as
the regression line to predict x from y. Be sure to always pay attention to which is the
explanatory variable and which is the response variable! A regression line is always in the form
Response Μ = b0 + b1 ⋅ Explanatory,
y=b+mx,
m=deltay/deltax=deltaresponse/deltaexplanatory
Residuals The residual at a data value is the difference between the observed and predicted
values of the response variable: Residual = Obserπ£ed − Predicted = y − Μy On a scatterplot, the
residual represents the vertical deviation from the line to a data point. Points above the line will
have positive residuals and points below the line will have negative residuals. If the predicted
values closely match the observed data values, the residuals will be small.
Least Squares Line The least squares line is the line that minimizes the sum of the squared
residuals
For the slope of a regression line for a population, we use the Greek letter π½1 (beta).
3.1
Statistical inference is the process of drawing conclusions about the entire population based on
the information in a sample.
A parameter is a number that describes some aspect of a population.
A statistic is a number that is computed from the data in a sample.
If we only have one sample and we don’t know the value of the population parameter, the
sample statistic is our best estimate of the true value of the population parameter.
A sampling distribution is the distribution of sample statistics computed for different samples of
the same size from the same population. A sampling distribution shows us how the sample
statistic varies from sample to sample.
For most of the parameters we consider, if samples are randomly selected and the sample size
is large enough, the sampling distribution will be symmetric and bell-shaped and centered at the
value of the population parameter.
The standard error of a statistic, denoted SE, is the standard deviation of the sample statistic.
Statistical inference is built on the assumption that samples are drawn randomly from a
population. Collecting the sample data in a way that biases the results can lead to false
conclusions about the population
3.2
Recall that the best estimate for a population parameter is the relevant sample statistic. We can
expand this idea to give a range of plausible values for the population parameter using: Sample
statistic ± margin of error where the margin of error is a number that reflects the precision of the
sample statistic as an estimate for this parameter.
A confidence interval for a parameter is an interval computed from sample data by a method
that will capture the parameter for a specified proportion of all samples. The success rate
(proportion of all samples whose intervals contain the parameter) is known as the confidence
level.
If we can estimate the standard error SE and if the sampling distribution is relatively symmetric
and bell-shaped, a 95% confidence interval can be estimated using Statistic ± 2 ⋅ SE
The confidence level indicates how sure we are that our interval contains the population
parameter. For example, we interpret a 95% confidence interval by saying we are 95% sure that
the interval contains the population parameter.
Statistics Summary Sheet: Chapters
2.5–2.6, 2.7 & 3.1–3.2
Section 2.5: One Categorical & One Quantitative Variable
1. Key Notation & Summary Statistics
ββ Group Means: π₯‾1, π₯‾2 (sample means) vs. µ1, µ2 (population means)
ββ
ββ Difference in Means: π₯‾1 − π₯‾2 (sample statistic) vs. µ1 − µ2 (population parameter)
ββ
ββ Standard Deviations & Sample Sizes: π 1, π 2 and π1, π2
ββ
2. Visual & Analytical Tools
ββ Side-by-Side Boxplots: Used to visually compare medians, IQRs, overall ranges, and
outliers across categorical categories along a shared quantitative scale.
ββ
ββ Comparative Histograms: Histograms drawn on identical horizontal axes to compare
shape, central tendency, and dispersion.
ββ
ββ Group Summary Statistics: Calculating π₯‾, π , median, and IQR separately for each
group to quantify structural differences.
ββ
Section 2.6: Two Quantitative Variables
1. Correlation (π)
ββ Measures the strength and direction of a linear relationship between two quantitative
variables.
ββ
ββ Range: − 1 ≤ π ≤ 1
ββ
ββ Properties: π > 0 (positive relationship), π < 0 (negative relationship), π ≈ 0 (no linear
relationship). π is unitless and non-resistant to outliers.
ββ
2. Regression Line & Predictions
^
ββ Linear Model: π¦ = π + ππ₯
ββ β
ββ π₯: Explanatory variable (horizontal axis)
ββ
ββ π¦: Response variable (vertical axis)
ββ
^
ββ π¦: Predicted response value
ββ
ββ π (π¦-intercept): Predicted value of π¦ when π₯ = 0
ββ
ββ π (slope): Predicted change in π¦ for each 1-unit increase in π₯
ββ
ββ Residuals:
ββ β
ββ
^
ββ π
ππ πππ’ππ(π) = π¦ − π¦ = πππ πππ£πππ¦ − πππππππ‘πππ¦
Section 2.7: Data Visualization & Data Wrangling
Summary of Plot Selection by Variable Type
Variable Types
Recommended Visualizations
1 Categorical
Bar chart, Pie chart
1 Quantitative
Histogram, Dotplot, Boxplot
1 Categorical + 1 Quantitative
Side-by-side boxplots, Comparative histograms
2 Quantitative
Scatterplot (with optional regression line)
2 Categorical
Two-way table, Segmented bar chart
Section 3.1: Sampling Distributions
1. Parameters vs. Statistics
ββ Parameter: Numerical summary of a population (µ, π, µ1 − µ2, π1 − π2). Fixed but
usually unknown.
ββ
^
^
^
ββ Statistic: Numerical summary calculated from sample data (π₯‾, π, π₯‾1 − π₯‾2, π1 − π2).
Varies from sample to sample.
ββ
2. Sampling Distribution & Standard Error (ππΈ)
ββ Sampling Distribution: The distribution of point estimates obtained from taking many
random samples of the same size π from the same population.
ββ
ββ Standard Error (ππΈ): The standard deviation of the sampling distribution; measures how
much a sample statistic varies from sample to sample.
ββ
ββ Sample Size Effect: As sample size π increases, the standard error ππΈ decreases
(estimates become more precise).
ββ
Section 3.2: Understanding Confidence Intervals
1. Point Estimates & Margin of Error
ββ Point Estimate: A single value computed from sample data used as the best guess for
^
an unknown parameter (e.g., π₯‾ for µ, π for π).
ββ
ββ Confidence Interval (πΆπΌ): An interval of plausible values for a population parameter:
ββ β
ββ
ββ πΆππππππππππΌππ‘πππ£ππ = πππππ‘πΈπ π‘ππππ‘π ± πππππππππΈππππ
2. The 95% Rule for Confidence Intervals
If the sampling distribution is symmetric and bell-shaped:
$$\text{95\% CI} \approx \text{Statistic} \pm 2 \times SE$$
3. Interpretations & Dynamics
ββ Correct Interpretation: "We are 95% confident that the true population parameter [in
context] lies between [lower limit] and [upper limit]."
ββ
ββ Confidence Level Effect: Increasing confidence level (e.g., 95% → 99%) makes the
interval wider.
ββ
ββ Sample Size Effect: Increasing sample size π decreases ππΈ, making the interval
narrower (more precise).