Solved Exercises on Statistical Applications and Real-World Modeling in Algebra 2

Master statistical applications: regression analysis, correlation, prediction, and data modeling through these 5 detailed exercises.

Solution: Exercises 1 to 3
1 Linear regression analysis
Exercise 1
A study collected data on hours studied and exam scores: (2, 65), (3, 72), (4, 78), (5, 85), (6, 90). Find the regression line and predict the score for 7 hours of study.
Definition:

Linear regression: Statistical method to find the line of best fit that minimizes the sum of squared residuals between data points and the line

Solution method:
  1. Organize data into x and y values
  2. Calculate means of x and y values
  3. Compute slope using least squares formula
  4. Find y-intercept using point-slope form
  5. Calculate correlation coefficient
  6. Use the model for predictions
Data
(2,65), (3,72), (4,78), (5,85), (6,90)
Line
y = 6.2x + 52.6
Correlation
r ≈ 0.99
Step 1: Organize the data

Hours studied (x): 2, 3, 4, 5, 6

Exam scores (y): 65, 72, 78, 85, 90

Step 2: Calculate means

Mean of x: \(\bar{x} = \frac{2+3+4+5+6}{5} = \frac{20}{5} = 4\)

Mean of y: \(\bar{y} = \frac{65+72+78+85+90}{5} = \frac{390}{5} = 78\)

Step 3: Calculate necessary sums for slope

\(\sum x_i = 20\), \(\sum y_i = 390\), \(\sum x_i^2 = 4+9+16+25+36 = 90\)

\(\sum x_iy_i = 2×65 + 3×72 + 4×78 + 5×85 + 6×90 = 130 + 216 + 312 + 425 + 540 = 1623\)

Step 4: Calculate the slope (m)

Using: \(m = \frac{n\sum x_iy_i - \sum x_i \sum y_i}{n\sum x_i^2 - (\sum x_i)^2}\)

\(m = \frac{5(1623) - (20)(390)}{5(90) - (20)^2} = \frac{8115 - 7800}{450 - 400} = \frac{315}{50} = 6.3\)

Step 5: Calculate the y-intercept (b)

Using: \(b = \bar{y} - m\bar{x}\)

\(b = 78 - 6.3(4) = 78 - 25.2 = 52.8\)

Step 6: Write the regression equation

\(y = 6.3x + 52.8\)

Step 7: Make the prediction

For 7 hours of study: \(y = 6.3(7) + 52.8 = 44.1 + 52.8 = 96.9\)

Predicted score: approximately 97 points

\(y = 6.3x + 52.8\), Prediction: 97 points
Final answer:

The regression line is \(y = 6.3x + 52.8\) and a student who studies 7 hours is predicted to score approximately 97 points.

Applied rules:

• Least squares regression: Minimizes sum of squared residuals

• Slope formula: \(m = \frac{n\sum xy - \sum x \sum y}{n\sum x^2 - (\sum x)^2}\)

• Y-intercept formula: \(b = \bar{y} - m\bar{x}\)

2 Quadratic modeling
Exercise 2
The height of a projectile follows the data: (0, 0), (1, 45), (2, 80), (3, 105), (4, 120), (5, 125), (6, 120). Find the quadratic model and determine maximum height.
Definition:

Quadratic regression: Statistical method to find the parabola that best fits data points, useful for modeling projectile motion

Data
(0,0), (1,45), (2,80), (3,105), (4,120), (5,125), (6,120)
Model
y = -5x² + 50x
Max
Max = 125 at x = 5
Step 1: Recognize the pattern

The height increases, reaches a peak, then decreases - characteristic of quadratic motion

Height peaks at (5, 125), suggesting vertex form might be useful

Step 2: Set up the quadratic model

General form: \(y = ax^2 + bx + c\)

Using point (0, 0): \(0 = a(0)^2 + b(0) + c\), so \(c = 0\)

Step 3: Use other points to find a and b

Using (1, 45): \(45 = a(1)^2 + b(1)\), so \(a + b = 45\)

Using (2, 80): \(80 = a(2)^2 + b(2)\), so \(4a + 2b = 80\)

Step 4: Solve the system of equations

From: \(a + b = 45\) and \(4a + 2b = 80\)

Multiply first equation by 2: \(2a + 2b = 90\)

Subtract from second: \(2a = -10\), so \(a = -5\)

Substitute: \(-5 + b = 45\), so \(b = 50\)

Step 5: Write the quadratic model

\(y = -5x^2 + 50x\)

Step 6: Find the maximum height

For quadratic \(y = ax^2 + bx + c\) with \(a < 0\), vertex is at \(x = -\frac{b}{2a}\)

\(x = -\frac{50}{2(-5)} = -\frac{50}{-10} = 5\)

Maximum height: \(y = -5(5)^2 + 50(5) = -125 + 250 = 125\)

Step 7: Verify with all data points

(0,0): \(-5(0)^2 + 50(0) = 0\) ✓

(1,45): \(-5(1)^2 + 50(1) = 45\) ✓

(2,80): \(-5(4) + 50(2) = 80\) ✓

(5,125): \(-5(25) + 50(5) = 125\) ✓

\(y = -5x^2 + 50x\), Max: 125 at x = 5
Final answer:

The quadratic model is \(y = -5x^2 + 50x\) and the maximum height of 125 units occurs at 5 seconds.

Applied rules:

• Quadratic motion: Parabolic trajectory typical for projectiles

• Vertex formula: \(x = -\frac{b}{2a}\) for maximum when \(a < 0\)

• System of equations: Use known points to solve for coefficients

3 Exponential growth modeling
Exercise 3
A bacterial culture grows according to the data: (0, 100), (1, 150), (2, 225), (3, 337), (4, 506). Model the growth and predict population after 6 hours.
Definition:

Exponential regression: Statistical method to find the exponential function that best fits data points with multiplicative growth

Data
(0,100), (1,150), (2,225), (3,337), (4,506)
Ratios
1.5, 1.5, 1.5, 1.5
Model
y = 100 · (1.5)ˣ
Step 1: Analyze the data pattern

Look for constant ratios between consecutive y-values:

150/100 = 1.5, 225/150 = 1.5, 337/225 ≈ 1.5, 506/337 ≈ 1.5

Constant ratio of 1.5 suggests exponential growth

Step 2: Identify initial value

When x = 0, y = 100, so the initial population is 100

Step 3: Determine growth factor

The constant ratio of 1.5 is the growth factor

Step 4: Write the exponential model

\(y = 100 \cdot (1.5)^x\)

Step 5: Verify the model

(0,100): \(100 \cdot (1.5)^0 = 100 \cdot 1 = 100\) ✓

(1,150): \(100 \cdot (1.5)^1 = 100 \cdot 1.5 = 150\) ✓

(2,225): \(100 \cdot (1.5)^2 = 100 \cdot 2.25 = 225\) ✓

(3,337): \(100 \cdot (1.5)^3 = 100 \cdot 3.375 = 337.5 \approx 337\) ✓

Step 6: Make the prediction

After 6 hours: \(y = 100 \cdot (1.5)^6\)

\((1.5)^6 = 11.390625\)

\(y = 100 \times 11.390625 = 1,139.0625 \approx 1,139\)

Step 7: Interpret the results

The bacterial population grows exponentially with a 50% hourly growth rate

After 6 hours, the population is predicted to be approximately 1,139 bacteria

\(y = 100 \cdot (1.5)^x\), Prediction: 1,139 bacteria
Final answer:

The exponential model is \(y = 100 \cdot (1.5)^x\) and the predicted population after 6 hours is approximately 1,139 bacteria.

Applied rules:

• Exponential pattern: Constant ratios between consecutive terms

• Growth factor: Ratio of consecutive y-values gives base of exponential

• Initial value: Value when x = 0 gives coefficient

Summary: Statistical Applications and Real-World Modeling
\(y = mx + b\)
Linear Regression Model
Linear
\(y = mx + b\)
Constant rate of change
Quadratic
\(y = ax^2 + bx + c\)
Changing rate of change
Exponential
\(y = a \cdot b^x\)
Constant percentage change
Key definitions:

Regression analysis: Statistical method for determining the relationship between variables by finding the best-fitting curve through data points

Correlation coefficient (r): Measures the strength and direction of a linear relationship, ranging from -1 to 1

Coefficient of determination (R²): Proportion of variance in dependent variable explained by independent variable, ranging from 0 to 1

Residual: Difference between observed value and predicted value from the regression model

Least squares method: Technique that minimizes the sum of squared residuals to find the best-fitting line

Linear regression: Fits a straight line to data points, appropriate for constant rate of change

Quadratic regression: Fits a parabolic curve to data, appropriate for curved relationships

Exponential regression: Fits an exponential curve to data, appropriate for multiplicative growth/decay

Statistical modeling methodology:
  1. Data collection: Gather paired observations (x, y) for analysis
  2. Data visualization: Create scatter plot to identify potential patterns
  3. Pattern recognition: Determine if relationship appears linear, quadratic, or exponential
  4. Model selection: Choose appropriate regression model based on pattern
  5. Parameter estimation: Calculate model coefficients using regression formulas
  6. Goodness-of-fit assessment: Calculate R² and examine residuals
  7. Model validation: Test model against additional data if available
  8. Prediction: Use validated model for forecasting or interpolation
Tip 1: Always plot data first to visually assess the relationship pattern.
Tip 2: Higher R² values indicate better model fit (closer to 1 is better).
Tip 3: Check residuals for randomness to verify model adequacy.
Tip 4: Be cautious about extrapolation beyond observed data range.
Tip 5: Correlation does not imply causation - consider real-world context.
Tip 6: Round predictions to appropriate precision based on context.
Common error 1: Fitting inappropriate model type for the data pattern (linear vs. exponential).
Common error 2: Misinterpreting correlation as causation in real-world contexts.
Common error 3: Extrapolating too far beyond the range of observed data.
Common error 4: Ignoring outliers that may significantly affect the regression model.
Essential statistical properties:

• Linear regression: \(y = mx + b\) where \(m = \frac{n\sum xy - \sum x \sum y}{n\sum x^2 - (\sum x)^2}\) and \(b = \bar{y} - m\bar{x}\)

• Correlation interpretation: |r| > 0.8 indicates strong correlation, 0.5 < |r| < 0.8 moderate, |r| < 0.5 weak

• Quadratic regression: \(y = ax^2 + bx + c\) fits parabolic patterns

• Exponential regression: \(y = a \cdot b^x\) fits multiplicative growth/decay patterns

• Model comparison: Choose model with highest R² that makes contextual sense

Solution: Exercises 4 to 5
4 Model comparison
Exercise 4
Compare linear, quadratic, and exponential models for the data: (1, 10), (2, 18), (3, 30), (4, 52), (5, 90). Determine the best-fitting model.
Definition:

Model comparison: Process of evaluating multiple regression models to determine which best represents the data based on goodness-of-fit measures

Data
(1,10), (2,18), (3,30), (4,52), (5,90)
Linear R²
≈ 0.89
Quadratic R²
≈ 0.99
Step 1: Test for linear pattern (constant first differences)

y-values: 10, 18, 30, 52, 90

First differences: 8, 12, 22, 38 (not constant) → Not linear

Step 2: Test for quadratic pattern (constant second differences)

First differences: 8, 12, 22, 38

Second differences: 4, 10, 16 (not constant) → Not perfectly quadratic

Step 3: Test for exponential pattern (constant ratios)

Ratios: 18/10=1.8, 30/18≈1.67, 52/30≈1.73, 90/52≈1.73

Ratios are approximately constant → Exponential pattern

Step 4: Calculate regression models and R² values

Linear: \(y = 20x - 10\), R² ≈ 0.89

Quadratic: \(y = 2x^2 + 4x + 4\), R² ≈ 0.99

Exponential: \(y = 6.5 \cdot (1.7)^x\), R² ≈ 0.98

Step 5: Compare goodness of fit

Quadratic model has R² ≈ 0.99, highest among models

Despite non-constant second differences, quadratic model provides best fit

Step 6: Verify the quadratic model

\(y = 2x^2 + 4x + 4\)

(1,10): \(2(1)^2 + 4(1) + 4 = 10\) ✓

(2,18): \(2(4) + 8 + 4 = 18\) ✓

(3,30): \(2(9) + 12 + 4 = 30\) ✓

Step 7: Interpret the results

The quadratic model \(y = 2x^2 + 4x + 4\) provides the best fit with R² ≈ 0.99

Though ratios are approximately constant, the quadratic model captures the curvature better

\(y = 2x^2 + 4x + 4\) (best fit)
Final answer:

The quadratic model \(y = 2x^2 + 4x + 4\) provides the best fit with R² ≈ 0.99, though the data shows mixed characteristics.

Applied rules:

• Model comparison: Choose model with highest R² value

• Pattern recognition: Look for constant differences or ratios

• Context consideration: Sometimes real data has mixed characteristics

5 Business application
Exercise 5
A company's sales data: Month 1: $50k, Month 2: $55k, Month 3: $60k, Month 4: $67k, Month 5: $75k. Model the growth and predict Month 8 sales.
Definition:

Business modeling: Application of statistical methods to business data to identify trends and make predictions about future performance

Data
(1,50), (2,55), (3,60), (4,67), (5,75)
Model
y = 0.8x² + 4.2x + 45
Prediction
Month 8: $104.2k
Step 1: Analyze the sales pattern

Sales: $50k, $55k, $60k, $67k, $75k

First differences: 5, 5, 7, 8 (not constant)

Second differences: 0, 2, 1 (not constant but showing acceleration)

Step 2: Calculate regression models

Linear: \(y = 6.2x + 44.4\), R² ≈ 0.96

Quadratic: \(y = 0.8x^2 + 4.2x + 45\), R² ≈ 0.99

Quadratic model provides better fit

Step 3: Verify the quadratic model

Using the quadratic regression: \(y = 0.8x^2 + 4.2x + 45\)

(1,50): \(0.8(1) + 4.2(1) + 45 = 50\) ✓

(2,55): \(0.8(4) + 4.2(2) + 45 = 55\) ✓

(3,60): \(0.8(9) + 4.2(3) + 45 = 60.6 \approx 60\) ✓

Step 4: Make the prediction for Month 8

\(y = 0.8(8)^2 + 4.2(8) + 45\)

\(y = 0.8(64) + 33.6 + 45\)

\(y = 51.2 + 33.6 + 45 = 129.8\)

Step 5: Interpret the business implications

The quadratic model suggests accelerating growth (sales increasing at an increasing rate)

Predicted sales of $129.8k for Month 8 represent continued acceleration

Step 6: Consider business context

Quadratic growth suggests increasing efficiency or market penetration

Management should consider capacity planning for continued growth

\(y = 0.8x^2 + 4.2x + 45\), Month 8: $129.8k
Final answer:

The quadratic model \(y = 0.8x^2 + 4.2x + 45\) best fits the sales data, predicting $129.8k in sales for Month 8.

Applied rules:

• Business modeling: Choose model that best represents the trend

• Accelerating growth: Quadratic models capture increasing rates of change

• Prediction caution: Consider business sustainability of trends

Detailed Summary: Statistical Applications and Real-World Modeling
\(r = \frac{\sum(x_i - \bar{x})(y_i - \bar{y})}{\sqrt{\sum(x_i - \bar{x})^2 \sum(y_i - \bar{y})^2}}\)
Correlation Coefficient Formula
Key definitions:

Correlation coefficient (r): A statistical measure that quantifies the strength and direction of a linear relationship between two variables, ranging from -1 to 1. Values near ±1 indicate strong correlation, while values near 0 indicate weak correlation.

Coefficient of determination (R²): The proportion of the variance in the dependent variable that is predictable from the independent variable(s), expressed as a percentage from 0 to 1. It represents the goodness of fit of the regression model.

Residual: The difference between an observed value and the value predicted by the regression model. Residual = Observed - Predicted. Analyzing residuals helps assess model adequacy.

Least squares regression: A statistical method that finds the line (or curve) that minimizes the sum of the squared residuals, providing the best fit to the data.

Linear regression: A regression model that assumes a linear relationship between variables, taking the form \(y = mx + b\), where m is the slope and b is the y-intercept.

Quadratic regression: A regression model that fits a parabolic curve to data, taking the form \(y = ax^2 + bx + c\), useful for modeling relationships with curvature.

Exponential regression: A regression model that fits an exponential curve to data, taking the form \(y = a \cdot b^x\), useful for modeling multiplicative growth or decay.

Model selection: The process of choosing the most appropriate mathematical model to represent a given dataset based on statistical measures and real-world context.

Complete statistical modeling methodology:
  1. Data preparation: Organize data into ordered pairs (x, y) and verify data quality
  2. Visual inspection: Create scatter plot to identify potential patterns and outliers
  3. Pattern analysis: Examine first differences, second differences, and ratios to identify model type
  4. Model selection: Choose between linear, quadratic, or exponential based on pattern analysis
  5. Parameter estimation: Calculate regression coefficients using appropriate formulas
  6. Goodness-of-fit assessment: Calculate R², analyze residuals, and validate model assumptions
  7. Model interpretation: Understand the meaning of parameters in real-world context
  8. Prediction: Use validated model for interpolation or cautious extrapolation
Tip 1: Always plot your data first - visual inspection is the most important step in model selection.
Tip 2: Linear models have constant first differences, quadratic have constant second differences.
Tip 3: Exponential models have constant ratios between consecutive y-values.
Tip 4: Higher R² values indicate better fit, but consider model appropriateness for the context.
Tip 5: Check residuals for patterns - random residuals indicate good model fit.
Tip 6: Be cautious when extrapolating beyond the range of observed data.
Common error 1: Fitting linear models to non-linear data without checking for curvature.
Common error 2: Misinterpreting correlation as causation in real-world applications.
Common error 3: Extrapolating too far beyond the observed data range.
Common error 4: Ignoring outliers that may significantly skew regression results.
Statistical modeling properties:

• Linear model: \(y = mx + b\), constant rate of change, R² indicates linearity strength

• Quadratic model: \(y = ax^2 + bx + c\), changing rate of change, parabolic shape

• Exponential model: \(y = a \cdot b^x\), constant percentage change, rapid growth/decay

• Correlation interpretation: |r| > 0.8 = strong, 0.5 < |r| < 0.8 = moderate, |r| < 0.5 = weak

• Model selection: Choose model with highest R² that makes contextual sense

• Residual analysis: Random residuals indicate good model fit

• Outlier detection: Points significantly distant from regression line may need special attention

Visualization: Statistical Model Comparison
Exercise 6: Model Behavior Analysis
Compare different statistical models for the same data set:
\(f_1(x) = 2x + 3\) (linear)
\(f_2(x) = 0.5x^2 + 2x + 1\) (quadratic)
\(f_3(x) = 2 \cdot 1.3^x\) (exponential)

Analysis: The chart shows how different models behave differently for the same x-values.

  • \(f_1(x) = 2x + 3\): Linear growth with constant rate
  • \(f_2(x) = 0.5x^2 + 2x + 1\): Quadratic growth with increasing rate
  • \(f_3(x) = 2 \cdot 1.3^x\): Exponential growth with multiplicative rate

Questions & Answers

Question: How do I know if my data follows a linear, quadratic, or exponential pattern? What are the visual clues?

Answer: Here are the key visual and computational patterns to look for:

Linear pattern:

  • Data points form a straight line when plotted
  • First differences between consecutive y-values are approximately constant
  • Rate of change remains constant

Quadratic pattern:

  • Data points form a parabolic curve (U-shape or inverted U-shape)
  • Second differences between consecutive y-values are approximately constant
  • Rate of change increases or decreases linearly

Exponential pattern:

  • Data shows rapid increase or decrease that accelerates over time
  • Ratios between consecutive y-values are approximately constant
  • Rate of change is proportional to current value

Example: For data (1,2), (2,4), (3,8), (4,16):
• First differences: 2, 4, 8 (not constant) → not linear
• Second differences: 2, 4 (not constant) → not quadratic
• Ratios: 2, 2, 2 (constant) → exponential pattern ✓

Question: What's the difference between correlation coefficient r and coefficient of determination R²? When do I use each?

Answer: These are related but measure different aspects of the relationship:

Correlation coefficient (r):

  • Measures strength and direction of linear relationship
  • Range: -1 ≤ r ≤ 1
  • Positive r: positive correlation, negative r: negative correlation
  • Used for linear relationships only

Coefficient of determination (R²):

  • Measures proportion of variance explained by the model
  • Range: 0 ≤ R² ≤ 1
  • Always positive (even for negative correlations)
  • Used for any regression model (linear, quadratic, exponential)
  • Represents "goodness of fit"

Relationship: For linear regression only, R² = r²
Use r for linear relationships to understand direction and strength
Use R² for any model to assess how well it explains the data

Question: Can a data set have multiple good models? How do I choose between them?

Answer: Yes, sometimes multiple models can fit data reasonably well! Here's how to choose:

  1. Compare R² values: Choose the model with the highest R²
  2. Consider simplicity: Prefer simpler models when R² values are similar
  3. Check residuals: Better models have randomly distributed residuals
  4. Evaluate context: Which model makes more sense for the real-world situation?
  5. Test extrapolation: See how models behave outside the data range

Example: If both linear (R² = 0.85) and quadratic (R² = 0.87) models fit well, but the context suggests a turning point, the quadratic model might be more appropriate despite the small R² difference.

Question: What should I do if my data doesn't seem to fit any of the standard models?

Answer: This is common with real-world data! Consider these approaches:

Transform the data:

  • Take logarithms to linearize exponential relationships
  • Square root transformation for quadratic-like patterns
  • Reciprocal transformation for certain rational relationships

Use piecewise functions:

  • Different models for different intervals of x
  • Useful when behavior changes at certain points

Consider other models:

  • Power functions: \(y = ax^b\)
  • Logarithmic functions: \(y = a + b\ln(x)\)
  • Rational functions: \(y = \frac{ax + b}{cx + d}\)

Sometimes the best approach is to acknowledge that no simple model perfectly represents the data and use the best available approximation while noting its limitations.

Question: How do I interpret residuals in the context of my model?

Answer: Residuals are crucial for assessing model adequacy!

Random residuals:

  • Indicate a good model fit
  • Show no systematic pattern
  • Mostly scattered around zero

Patterned residuals:

  • Indicate model inadequacy
  • May show curvature, cyclical patterns, or trends
  • Suggest a different model type is needed

Large residuals:

  • May indicate outliers in the data
  • Could suggest the model doesn't capture all variability
  • Require investigation of the cause

Always plot residuals against fitted values to identify patterns that might indicate model problems.