5a890255 8f8e 428b abe6 c2bc44a4828a

📚 5a890255-8f8e-428b-abe6-c2bc44a4828a.pdf

Brief overview

This document provides a comprehensive guide to statistical inference, covering the foundational concepts of sampling distributions and their application in hypothesis testing and confidence intervals for means and proportions. It also delves into the analysis of relationships between variables through linear regression and correlation.

Key points

  • Overview of sampling distributions for sample mean and proportion.
  • Performing hypothesis tests for population proportions and means.
  • Conducting analysis of variance (ANOVA) for multiple groups.
  • Understanding linear regression and correlation analysis.
  • Practical application of statistical inference in various scenarios.

1. Sampling distributions of sample mean and proportion

1.1 Sampling distribution of the sample mean (xˉ\bar{x})

  • Population mean (μxˉ\mu_{\bar{x}}): The mean of the sampling distribution of the sample mean is equal to the population mean.
    • μxˉ=μ\mu_{\bar{x}} = \mu.
  • Population standard deviation (σxˉ\sigma_{\bar{x}}): This is also known as the standard error of the mean. It is calculated by dividing the population standard deviation by the square root of the sample size.
    • σxˉ=σn\sigma_{\bar{x}} = \frac{\sigma}{\sqrt{n}}.

1.1.1 Normality condition

  • The Central Limit Theorem (CLT) states that the sampling distribution of the sample mean can be approximated by a normal distribution if the sample size (nn) is sufficiently large.
    • Typically, n≥30n \geq 30 is considered large enough.
  • If the population itself is normally distributed, the sampling distribution of the sample mean will also be normal, regardless of the sample size.

🔑 Important: CLT allows us to use normal distribution methods even if the population isn't normal, as long as the sample is large.

1.1.2 Confidence intervals for the population mean (μ\mu)

  • Point estimate: The sample mean (xˉ\bar{x}) is the best point estimate for the population mean (μ\mu).
  • Critical values: These depend on the confidence level and whether the population standard deviation (σ\sigma) is known.
    • If σ\sigma is known or n≥30n \geq 30, use zz-scores.
    • If σ\sigma is unknown and n<30n < 30 (and population is normal), use tt-scores.
  • Confidence Interval formula:
    • When σ\sigma is known or n≥30n \geq 30: xˉ±zα/2(σn)\bar{x} \pm z_{\alpha/2} \left( \frac{\sigma}{\sqrt{n}} \right)
    • When σ\sigma is unknown: xˉ±tα/2,n−1(sn)\bar{x} \pm t_{\alpha/2, n-1} \left( \frac{s}{\sqrt{n}} \right)

🔑 Important: The choice between zz and tt critical values is crucial and depends on whether the population standard deviation is known.

1.1.2.1 Example: Confidence Interval

  • Scenario: Sample mean (xˉ\bar{x}) = 7, sample standard deviation (ss) = 2.5, sample size (nn) = 25, confidence level = 90%.
    • Since σ\sigma is unknown and n<30n < 30, we use the tt-distribution.
    • The critical value for 90% confidence with df=25−1=24df = 25 - 1 = 24 is t0.05,24=2.064t_{0.05, 24} = 2.064.
    • The margin of error is t×sn=2.064×2.525=2.064×0.5=1.032t \times \frac{s}{\sqrt{n}} = 2.064 \times \frac{2.5}{\sqrt{25}} = 2.064 \times 0.5 = 1.032.
    • The confidence interval is 7±1.0327 \pm 1.032, which is (5.968,8.032)(5.968, 8.032).
    • The upper limit is approximately 8.032.

1.1.2.2 Example: Upper limit calculation

  • Scenario: Sample mean (xˉ\bar{x}) = 6.8, sample standard deviation (ss) = 1.6, sample size (nn) = 16, confidence level = 95%.
    • Since σ\sigma is unknown and n<30n < 30, we use the tt-distribution.
    • The critical value for 95% confidence with df=16−1=15df = 16 - 1 = 15 is t0.025,15=2.131t_{0.025, 15} = 2.131.
    • The margin of error is t×sn=2.131×1.616=2.131×0.4=0.8524t \times \frac{s}{\sqrt{n}} = 2.131 \times \frac{1.6}{\sqrt{16}} = 2.131 \times 0.4 = 0.8524.
    • The confidence interval is 6.8±0.85246.8 \pm 0.8524, which is (5.9476,7.6524)(5.9476, 7.6524).
    • The upper limit is approximately 7.652.

1.1.3 Hypothesis testing for the population mean (μ\mu)

  • Test statistic: Calculated to determine how far the sample mean is from the hypothesized population mean.
    • When σ\sigma is known or n≥30n \geq 30: z=xˉ−μ0σ/nz = \frac{\bar{x} - \mu_0}{\sigma/\sqrt{n}}
    • When σ\sigma is unknown: t=xˉ−μ0s/nt = \frac{\bar{x} - \mu_0}{s/\sqrt{n}}
  • Rejection region: Determined by the significance level (α\alpha) and the alternative hypothesis.
    • For a one-sided test HA:μ<μ0H_A: \mu < \mu_0 with α=0.05\alpha = 0.05 and n=8n = 8 (assuming normal population and unknown σ\sigma), the critical tt-value has df=7df = 7. The rejection region is t≤−2.365t \leq -2.365.

🔑 Important: The test statistic quantifies the evidence against the null hypothesis.

1.1.3.1 Example: Test statistic calculation

  • Scenario: Null hypothesis H0:μ=5.4H_0: \mu = 5.4, sample mean (xˉ\bar{x}) = 7, sample standard deviation (ss) = 2.5, sample size (nn) = 25.
    • Using the tt-statistic formula: t=7−5.42.5/25=1.62.5/5=1.60.5=3.2t = \frac{7 - 5.4}{2.5/\sqrt{25}} = \frac{1.6}{2.5/5} = \frac{1.6}{0.5} = 3.2 3.

1.1.3.2 Example: Test statistic calculation

  • Scenario: Null hypothesis H0:μ=5H_0: \mu = 5, sample mean (xˉ\bar{x}) = 6.8, sample standard deviation (ss) = 1.6, sample size (nn) = 16.
    • Using the tt-statistic formula: t=6.8−51.6/16=1.81.6/4=1.80.4=4.5t = \frac{6.8 - 5}{1.6/\sqrt{16}} = \frac{1.8}{1.6/4} = \frac{1.8}{0.4} = 4.5 5.

1.2 Sampling distribution of the sample proportion (p^\hat{p})

  • Population proportion (pp): The proportion of a characteristic in the entire population.
  • Sample proportion (p^\hat{p}): The proportion of a characteristic in a sample.

1.2.1 Mean and standard deviation of the sample proportion

  • Mean (μp^\mu_{\hat{p}}): The mean of the sampling distribution of the sample proportion is equal to the population proportion (pp).
    • μp^=p\mu_{\hat{p}} = p.
  • Standard deviation (σp^\sigma_{\hat{p}}): Also known as the standard error of the proportion.
    • σp^=p(1−p)n\sigma_{\hat{p}} = \sqrt{\frac{p(1-p)}{n}}.

1.2.1.1 Example: Mean and standard deviation

  • Scenario: Population proportion (pp) = 80% = 0.80, sample size (nn) = 75.
    • Mean: μp^=p=0.80\mu_{\hat{p}} = p = 0.80.
    • Standard deviation: σp^=0.80(1−0.80)75=0.80×0.2075=0.1675≈0.002133≈0.0462\sigma_{\hat{p}} = \sqrt{\frac{0.80(1-0.80)}{75}} = \sqrt{\frac{0.80 \times 0.20}{75}} = \sqrt{\frac{0.16}{75}} \approx \sqrt{0.002133} \approx 0.0462.

1.2.2 Normality condition for p^\hat{p}

  • The sampling distribution of p^\hat{p} can be approximated by a normal distribution if the following conditions are met:
    • np≥5np \geq 5
    • n(1−p)≥5n(1-p) \geq 5
    • These ensure that there are enough "successes" and "failures" in the population relative to the sample size 2.

🔑 Important: These conditions are essential for using normal approximations and constructing confidence intervals or conducting hypothesis tests for proportions.

1.2.3 Confidence intervals for the population proportion (pp)

  • Point estimate: The sample proportion (p^\hat{p}) is the best point estimate for the population proportion (pp).
  • Confidence Interval formula: p^±zα/2p^(1−p^)n\hat{p} \pm z_{\alpha/2} \sqrt{\frac{\hat{p}(1-\hat{p})}{n}}
    • Note: The standard error is estimated using p^\hat{p} instead of pp when pp is unknown.

1.2.3.1 Example: Confidence Interval

  • Scenario: Sample size (nn) = 80, number of students finding eText helpful = 48, confidence level = 99%.
    • Sample proportion (p^\hat{p}) = 48/80=0.6048 / 80 = 0.60.
    • For 99% confidence, zα/2=2.576z_{\alpha/2} = 2.576.
    • The standard error is 0.60(1−0.60)80=0.60×0.4080=0.2480=0.003≈0.0548\sqrt{\frac{0.60(1-0.60)}{80}} = \sqrt{\frac{0.60 \times 0.40}{80}} = \sqrt{\frac{0.24}{80}} = \sqrt{0.003} \approx 0.0548.
    • The margin of error is 2.576×0.0548≈0.1412.576 \times 0.0548 \approx 0.141.
    • The confidence interval is 0.60±0.1410.60 \pm 0.141, which is approximately (0.459,0.741)(0.459, 0.741).
    • The most appropriate interval is .60±0.14.60 \pm 0.14.

1.3 Key concepts summary

ConceptSymbol/FormulaDescription
Mean of sample meanμxˉ=μ\mu_{\bar{x}} = \muThe average of all possible sample means equals the population mean.
Std. dev. of sample meanσxˉ=σn\sigma_{\bar{x}} = \frac{\sigma}{\sqrt{n}}Also called standard error; measures spread of sample means.
Normality conditionn≥30n \geq 30 or population is normalAllows approximation by a normal distribution via CLT.
Mean of sample proportionμp^=p\mu_{\hat{p}} = pThe average of all possible sample proportions equals the population proportion.
Std. dev. of sample proportionσp^=p(1−p)n\sigma_{\hat{p}} = \sqrt{\frac{p(1-p)}{n}}Also called standard error of proportion; measures spread of sample proportions.
Normality conditionnp≥5np \geq 5 and n(1−p)≥5n(1-p) \geq 5Allows approximation by a normal distribution.

🔑 Important: Understanding the parameters of sampling distributions (mean and standard deviation) and their normality conditions is fundamental for inference.


🔑 Important: The p-value is the probability of observing a test statistic as extreme or more extreme than the one calculated, assuming the null hypothesis is true 4.

2. Hypothesis tests for population proportions

Hypothesis testing for population proportions helps us make inferences about proportions in a population based on sample data. This section covers tests for single proportions and for comparing two proportions.

2.1 Comparing two population proportions

When comparing proportions from two independent populations, we use a z-test. This test assumes the sample sizes are large enough for the sampling distributions to be approximated by a normal distribution.

  • Null Hypothesis (H₀): Typically states there is no difference between the two population proportions, often written as p1−p2=0p_1 - p_2 = 0.
  • Alternative Hypothesis (H₁): States a specific difference exists, which can be one-sided (p1−p2>0p_1 - p_2 > 0 or p1−p2<0p_1 - p_2 < 0) or two-sided (p1−p2≠0p_1 - p_2 \neq 0).

The null hypothesis always contains the equality.

To determine if we should reject the null hypothesis, we compare a calculated test statistic to a critical value from the z-distribution.

2.1.1 Example: Coronavirus worry among genders

A survey asked if women are more worried than men about coronavirus.

  • Data:
    • Women: 530 out of 1,000 are very worried (p1p_1).
    • Men: 658 out of 1,400 are very worried (p2p_2).
  • Hypotheses:
    • Null: H0:p1−p2=0H_0: p_1 - p_2 = 0 (No difference in worry levels)
    • Alternative: H1:p1−p2>0H_1: p_1 - p_2 > 0 (Women are more worried) .
  • Distribution: Use a z-distribution for large sample sizes .
  • Critical Value (α = 0.01): The critical value for a right-tailed test at α=0.01\alpha = 0.01 is approximately 2.332.33 .
  • Test Statistic: Assuming the calculation is done, the test statistic is approximately 3.613.61 .
  • Decision: Since 3.61>2.333.61 > 2.33, we reject the null hypothesis.
  • Conclusion: There is sufficient evidence to conclude that the proportion of women very worried about the pandemic is higher than that of men 7.

2.1.2 Comparing two population means with unknown variances

When comparing the means of two independent groups and the population standard deviations are unknown, we use a t-distribution. This is common when dealing with sample data.

  • Null Hypothesis (H₀): Typically states no difference between the population means (μ1−μ2=0μ_1 - μ_2 = 0).
  • Alternative Hypothesis (H₁): States a specific difference exists, e.g., μ1−μ2>0μ_1 - μ_2 > 0 for a right-tailed test .
  • Distribution: The t-distribution is used .
  • Degrees of Freedom (df): Calculated based on the sample sizes of both groups. If population variances are assumed equal, a pooled variance is used.
  • Critical Value: Obtained from the t-distribution table using the calculated degrees of freedom and the significance level (α\alpha).
  • Test Statistic: Calculated using the sample means, sample standard deviations, and sample sizes.

Use the t-distribution when population standard deviations are unknown and sample sizes may be small.

2.1.2.1 Example: Social networking time

Comparing daily social networking time between women and men.

  • Data:
    • Women: n1=22n_1 = 22, xˉ1=172\bar{x}_1 = 172, s1=18.4s_1 = 18.4
    • Men: n2=24n_2 = 24, xˉ2=150\bar{x}_2 = 150, s2=20s_2 = 20
  • Hypotheses: H0:μ1−μ2=0H_0: \mu_1 - \mu_2 = 0, H1:μ1−μ2>0H_1: \mu_1 - \mu_2 > 0 (Women spend more time) .
  • Distribution: t-distribution 8.
  • Critical Value (α=0.05\alpha = 0.05): With appropriate df, the critical value is approximately 1.6771.677 .
  • Test Statistic: Using the provided pooled standard error, the test statistic is approximately 3.8723.872 .
  • Decision: Since 3.872>1.6773.872 > 1.677, reject H0H_0 .
  • Conclusion: Women spend more time on social networking than men 9.

2.2 Comparing means of multiple populations (ANOVA)

When comparing the means of three or more independent groups, Analysis of Variance (ANOVA) is used. ANOVA tests if there is a significant difference among any of the group means.

  • Null Hypothesis (H₀): States that all population means are equal (μ1=μ2=...=μkμ_1 = μ_2 = ... = μ_k).
  • Alternative Hypothesis (H₁): States that at least one population mean is different from the others. It does not specify which mean is different .
  • Distribution: The F-distribution is used .
  • Degrees of Freedom:
    • Numerator (df_num): Number of groups (kk) minus 1 (k−1k-1).
    • Denominator (df_den): Total number of observations (NN) minus the number of groups (N−kN-k).

ANOVA uses the F-distribution to compare variances between groups.

2.2.1 Example: Grocery price comparison

Comparing weekly grocery prices among three chains.

  • Data: Weekly prices for 100 items over 4 weeks for three stores.
  • Hypotheses:
    • H0:μ1=μ2=μ3H_0: \mu_1 = \mu_2 = \mu_3
    • H1H_1: Not all means are equal .
  • Distribution: F-distribution .
  • Degrees of Freedom:
    • Numerator dfnum=3−1=2df_{num} = 3 - 1 = 2 .
    • Denominator dfden=12−3=9df_{den} = 12 - 3 = 9 (Total observations N=12N=12, number of groups k=3k=3) 10.
  • Critical Value (α=0.01\alpha = 0.01): For dfnum=2df_{num}=2 and dfden=9df_{den}=9 at α=0.01\alpha = 0.01, the critical F-value is approximately 8.028.02 .
  • Test Statistic: Calculated using the sum of squares between groups (SSB) and within groups (SSW). F=SSB/(k−1)SSW/(N−k)F = \frac{SSB / (k-1)}{SSW / (N-k)}. Given SSB = 7823.1667 and SSW = 6647.5000, the test statistic is approximately 5.275.27 .
  • Decision: Since 5.27>8.025.27 > 8.02, we reject H0H_0 .
  • Conclusion: There is sufficient evidence to indicate at least one of the average grocery prices is different 11.

🔑 Important: Hypothesis tests for proportions use the z-distribution, while tests for means often use the t-distribution (for unknown population variances) or z-distribution (for known variances). ANOVA uses the F-distribution to compare multiple group means.

3. Linear regression and correlation

3.1 The least squares line

The least squares line estimates the linear relationship between two variables. It minimizes the sum of squared differences between observed and predicted values.

The equation of this line is ŷ = a + bx.

  • <span style="color: #ff9f29; font-weight: 700;">ŷ</span>: predicted value of the dependent variable (y).
  • <span style="color: #ff9f29; font-weight: 700;">a</span>: the y-intercept, which is the predicted value of y when x is 0.
  • <span style="color: #ff9f29; font-weight: 700;">b</span>: the slope, indicating the change in y for a one-unit increase in x.
  • <span style="color: #ff9f29; font-weight: 700;">x</span>: the independent variable.

The formulas to calculate the slope (b) and y-intercept (a) are derived from summary statistics.

Formula ComponentCalculation
Slope (b)b=SSxySSxxb = \frac{SS_{xy}}{SS_{xx}}
Y-intercept (a)a=yˉ−bxˉa = \bar{y} - b\bar{x}

Where:

  • SSxySS_{xy} is the sum of the cross-products of x and y.
  • SSxxSS_{xx} is the sum of the squared deviations of x.
  • yˉ\bar{y} is the mean of y.
  • xˉ\bar{x} is the mean of x.

The slope b represents the average change in y for a one-unit increase in x.

The y-intercept a is the estimated value of y when x is zero. Its practical meaning depends on the context of x.

3.1.1 Calculating regression components

To find the least squares line, we first calculate the necessary sums and sums of squares from the data. For example, if we have data on screen time (x) and weight loss (y):

  • Sum of screen time: ∑x=11,100\sum x = 11,100
  • Sum of weight loss: ∑y=3,490\sum y = 3,490
  • Sum of squared screen time: SSxx=2,268,750SS_{xx} = 2,268,750
  • Sum of squared weight loss: SSyy=451,187.5SS_{yy} = 451,187.5
  • Sum of cross-products: SSxy=−979,375SS_{xy} = -979,375

Using these values, we can compute the slope and intercept.

  • Slope calculation: b=−979,3752,268,750≈−0.43b = \frac{-979,375}{2,268,750} \approx -0.43.
  • Mean of x: xˉ=11,1008=1,387.5\bar{x} = \frac{11,100}{8} = 1,387.5.
  • Mean of y: yˉ=3,4908=436.25\bar{y} = \frac{3,490}{8} = 436.25.
  • Y-intercept calculation: a=436.25−(−0.43)(1,387.5)≈436.25+596.63≈1,032.88a = 436.25 - (-0.43)(1,387.5) \approx 436.25 + 596.63 \approx 1,032.88.

The least squares line for this data is approximately ŷ = 1,032.88 - 0.43x.

The slope b of -0.43 indicates that for each additional minute of screen time, weight loss decreases by about 0.43 grams.

3.1.2 Predicting values

We use the least squares line to predict the dependent variable (y) for a given value of the independent variable (x).

  • To predict weight loss for 700 minutes of screen time: ŷ = 1,032.88 - 0.43 . ŷ = 1,032.88 - 301 ŷ = 731.88.

This means that for 700 minutes of screen time per week, the predicted weight loss is approximately 731.88 grams.

3.2 Correlation

Correlation measures the strength and direction of a linear relationship between two quantitative variables. The correlation coefficient (r) ranges from -1 to +1.

  • r = +1: perfect positive linear relationship.
  • r = -1: perfect negative linear relationship.
  • r = 0: no linear relationship.

A scatterplot helps visualize the relationship before calculating r.

3.2.1 Calculating the correlation coefficient

The correlation coefficient (r) is calculated using the sums and sums of squares.

r=SSxySSxxSSyyr = \frac{SS_{xy}}{\sqrt{SS_{xx}SS_{yy}}}.

  • Using the previous example data: SSxx=2,268,750SS_{xx} = 2,268,750, SSyy=451,187.5SS_{yy} = 451,187.5, SSxy=−979,375SS_{xy} = -979,375. r=−979,3752,268,750×451,187.5r = \frac{-979,375}{\sqrt{2,268,750 \times 451,187.5}} r=−979,3751,023,337,968,750r = \frac{-979,375}{\sqrt{1,023,337,968,750}} r=−979,3751,011,591.86r = \frac{-979,375}{1,011,591.86} r≈−0.968r \approx -0.968.

This strong negative correlation suggests a strong linear relationship where increased screen time is associated with decreased weight loss.

Scatterplot AppearanceApproximate Correlation Coefficient (r)
Strong positive linear0.92
Moderate positive linear0.66
No linear pattern0
Moderate negative linear-0.62
Strong negative linear-0.95

3.2.2 Interpreting correlation

  • The sign of r indicates the direction of the linear relationship: positive for an upward trend, negative for a downward trend.
  • The magnitude of r indicates the strength: values close to 1 or -1 mean a strong linear relationship, while values close to 0 mean a weak or no linear relationship.

Correlation does not imply causation. A strong correlation between two variables does not mean one causes the other; there might be a lurking variable.

3.3 Coefficient of determination

The coefficient of determination, r2r^2, represents the proportion of the variance in the dependent variable that is predictable from the independent variable.

  • It is calculated by squaring the correlation coefficient (r). r2=(correlation coefficient)2r^2 = (\text{correlation coefficient})^2

  • For the screen time and weight loss example, r≈−0.968r \approx -0.968. r2=(−0.968)2≈0.937r^2 = (-0.968)^2 \approx 0.937.

This means that approximately 93.7% of the variation in weight loss can be explained by its linear relationship with screen time.

3.4 Hypothesis testing for correlation

We can test whether a statistically significant linear relationship exists between two variables in the population. This is often done by testing the population correlation coefficient, ρ\rho.

  • Hypotheses:

    • Null Hypothesis (H0H_0): ρ=0\rho = 0 (no linear correlation in the population).
    • Alternative Hypothesis (H1H_1): ρ≠0\rho \neq 0 (there is a linear correlation), or ρ<0\rho < 0 (negative correlation), or ρ>0\rho > 0 (positive correlation).
  • Test Statistic: A t-statistic is used for testing the correlation coefficient. t=rn−21−r2t = r \sqrt{\frac{n-2}{1-r^2}} The degrees of freedom for this test are df=n−2df = n-2.

This test helps determine if an observed correlation in a sample is likely due to chance or represents a real linear relationship in the population.

3.4.1 Example hypothesis test

Test at α=0.1\alpha = 0.1 level of significance whether the correlation coefficient ρ\rho is negative.

  • Hypotheses: H0:ρ=0H_0: \rho = 0, H1:ρ<0H_1: \rho < 0.
  • From previous calculations, r≈−0.968r \approx -0.968 and n=8n=8.
  • Degrees of freedom: df=n−2=8−2=6df = n - 2 = 8 - 2 = 6.
  • Critical Value: For a one-tailed test with α=0.1\alpha = 0.1 and df=6df=6, the critical t-value is approximately -1.440.
  • Test Statistic: t=−0.9688−21−(−0.968)2t = -0.968 \sqrt{\frac{8-2}{1-(-0.968)^2}} t=−0.96861−0.937t = -0.968 \sqrt{\frac{6}{1-0.937}} t=−0.96860.063t = -0.968 \sqrt{\frac{6}{0.063}} t=−0.96895.238t = -0.968 \sqrt{95.238} t≈−0.968×9.759≈−9.447t \approx -0.968 \times 9.759 \approx -9.447.
ComponentValue
Critical Value of t-1.440
Test Statistic Value-9.447
Reject H0H_0?Yes

Since the test statistic (-9.447) is less than the critical value (-1.440), we reject H0H_0. There is sufficient evidence to conclude that the correlation coefficient is negative at the α=0.1\alpha = 0.1 significance level.

A negative slope (b) and a negative correlation coefficient (r) often go together but measure different aspects: b is about change in units, r is about strength and direction of the linear association.

3.4.2 Confidence interval for the slope

We can construct a confidence interval for the population slope (β\beta) to estimate its range.

  • The formula for a confidence interval for β\beta is: b±tα/2⋅SEbb \pm t_{\alpha/2} \cdot SE_b

Where:

  • b is the sample slope.
  • tα/2t_{\alpha/2} is the critical t-value for the desired confidence level with n−2n-2 degrees of freedom.
  • SEbSE_b is the standard error of the slope.

For a sample with n=14n=14 observations, SSxx=275.00SS_{xx} = 275.00, SEb=2.28SE_b = 2.28, and the sample regression line is ŷ = 13.12 - 7.12x.

  • The slope is b=−7.12b = -7.12.
  • For a 95% confidence interval, α=0.05\alpha = 0.05, so α/2=0.025\alpha/2 = 0.025.
  • With df=n−2=14−2=12df = n - 2 = 14 - 2 = 12, the critical t-value t0.025t_{0.025} is 2.179.
  • The margin of error is tα/2⋅SEb=2.179×2.28≈4.968t_{\alpha/2} \cdot SE_b = 2.179 \times 2.28 \approx 4.968.

The 95% confidence interval for the population slope is: −7.12±4.968-7.12 \pm 4.968

  • Lower bound: −7.12−4.968=−12.088-7.12 - 4.968 = -12.088
  • Upper bound: −7.12+4.968=−2.152-7.12 + 4.968 = -2.152

The 95% confidence interval for the population slope is (-12.09, -2.15). This interval suggests that for every one-unit increase in x, the population mean of y decreases by between 2.15 and 12.09 units.

Important: The purpose of simple linear regression is to investigate if there exists a linear relationship between a response variable and an independent (explanatory) variable.

Important: For each 1°C increase in temperature, daily ice cream sales increase by EUR 33.11. This is a correct interpretation of the slope in that context.

Important: On average, each additional hour without sleep increases the number of errors by 0.52. This correctly interprets the slope in the sleep deprivation study 15.

Important: The correlation coefficient value (r) is NOT always positive and MUST be between -1 and 1. It can be negative.

Important: If the purpose of our regression model is prediction, it DOES matter which variable is defined as the explanatory and response variable. The roles are distinct.

Important: The observed values of Y will NOT fall on the estimated regression line, while the predicted values of Y will vary around the regression line. Observed values have residuals; predicted values are the line itself.

Important: The percentage of variation in the dependent variable explained by the independent variable is given by r2r^2, the coefficient of determination 13.

Important: A correlation coefficient r can range from -1 to 1. A value of 0 means no linear relationship.

Important: The strength of the linear relationship is indicated by the magnitude of r. Values closer to 1 or -1 indicate a stronger relationship.

Important: Correlation does not imply causation. A strong relationship between two variables doesn't mean one causes the other 14.

Important: The least squares line minimizes the sum of squared vertical distances between the data points and the line 12.

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

See also