Docsity

Correlation and Regression: Basics, Formulas & Solved Examples – Study Notes, Summaries of Mathematics

Toggle sidebar
bg1
Correlation and Regression: Basics, Formulas, and Solved Examples Page 1
Correlation and Regression
Basics, Formulas, and Solved Examples — Quick Study Notes
1. Introduction to Correlation
Correlation measures the strength and direction of the relationship between two numeric variables. It tells us
whether the variables tend to move together, move in opposite directions, or show no clear connection at all.
Correlation is useful because it lets researchers, students, and analysts quickly check whether two variables are
related before doing deeper analysis. For example, a business analyst might check whether advertising spending
and sales revenue rise together.
Key Idea
Correlation describes how two variables change together — it does not, by itself, prove that one
variable causes the other to change.
2. Types of Correlation
•Positive Correlation: As one variable increases, the other also increases. Example: study hours and exam
scores.
•Negative Correlation: As one variable increases, the other decreases. Example: price of a product and the
quantity people buy.
•Zero (No) Correlation: The two variables show no consistent pattern of change with each other. Example:
shoe size and monthly income.
3. Correlation Coefficient
The correlation coefficient, written as r, is a single number that measures both the strength and the direction of a
linear relationship between two variables.
Range of r
r always lies between -1 and +1 (that is, -1 ≤ r ≤ +1).
Formula for the Correlation Coefficient (r)
r = [n(sum of XY) - (sum of X)(sum of Y)] / sqrt{ [n(sum of X2) - (sum of X)2] × [n(sum of Y2) - (sum of
Y)2] }
Here, n is the number of paired data values (X, Y). This formula is normally computed using a
calculator, spreadsheet, or software rather than by hand.
Interpreting Common Values of r
Value of r Interpretation
r = +1 Perfect positive correlation
r = -1 Perfect negative correlation
r = 0 No linear correlation
pf3
pf4
pf5

Partial preview of the text

Download Correlation and Regression: Basics, Formulas & Solved Examples – Study Notes and more Summaries Mathematics in PDF only on Docsity!

Correlation and Regression

Basics, Formulas, and Solved Examples — Quick Study Notes

1. Introduction to Correlation

Correlation measures the strength and direction of the relationship between two numeric variables. It tells us whether the variables tend to move together, move in opposite directions, or show no clear connection at all.

Correlation is useful because it lets researchers, students, and analysts quickly check whether two variables are related before doing deeper analysis. For example, a business analyst might check whether advertising spending and sales revenue rise together.

Key Idea Correlation describes how two variables change together — it does not, by itself, prove that one variable causes the other to change.

2. Types of Correlation

  • Positive Correlation:^ As one variable increases, the other also increases. Example: study hours and exam scores.
  • Negative Correlation:^ As one variable increases, the other decreases. Example: price of a product and the quantity people buy.
  • Zero (No) Correlation:^ The two variables show no consistent pattern of change with each other. Example: shoe size and monthly income.

3. Correlation Coefficient

The correlation coefficient, written as r, is a single number that measures both the strength and the direction of a linear relationship between two variables.

Range of r r always lies between -1 and +1 (that is, -1 ≤ r ≤ +1).

Formula for the Correlation Coefficient (r) r = [n(sum of XY) - (sum of X)(sum of Y)] / sqrt{ [n(sum of X^2 ) - (sum of X)^2 ] × [n(sum of Y^2 ) - (sum of Y)^2 ] } Here, n is the number of paired data values (X, Y). This formula is normally computed using a calculator, spreadsheet, or software rather than by hand.

Interpreting Common Values of r

Value of r Interpretation

r = +1 Perfect positive correlation

r = -1 Perfect negative correlation

r = 0 No linear correlation

Value of r Interpretation

0.7 to 0.99 (or -0.7 to -0.99) Strong correlation

0.3 to 0.69 (or -0.3 to -0.69) Moderate correlation

0 to 0.29 (or 0 to -0.29) Weak correlation

4. Scatter Plots

A scatter plot is a graph that places one variable on the horizontal axis and the other on the vertical axis, with each pair of values shown as a single point. Scatter plots let us see the pattern of a relationship before calculating any statistics.

  • Points that rise from left to right suggest positive correlation.
  • Points that fall from left to right suggest negative correlation.
  • Points scattered with no visible pattern suggest little or no correlation.
  • A scatter plot also helps identify outliers — unusual points that do not follow the general pattern. 5. Introduction to Regression

Regression is a statistical method used to describe the relationship between variables in a way that allows one variable to be predicted from another. While correlation only measures how strongly two variables are related, regression goes a step further and produces an equation that can estimate values.

Correlation vs Regression — In One Line Correlation tells us WHETHER a relationship exists and how strong it is; regression tells us HOW to predict one variable using the other.

6. Simple Linear Regression

Simple linear regression models the relationship between two variables using a straight line. This line is described by the regression equation below.

Simple Linear Regression Equation Y = a + bX

  • Y:^ The dependent variable — the value we are trying to predict.
  • X:^ The independent variable — the value used to make the prediction.
  • a:^ The intercept — the predicted value of Y when X is 0.
  • b:^ The slope — the amount Y changes for every one-unit increase in X.

Formulas for Calculating a and b b = [n(sum of XY) - (sum of X)(sum of Y)] / [n(sum of X^2 ) - (sum of X)^2 ] a = [(sum of Y) - b(sum of X)] / n As with the formula for r, these are usually computed with a calculator or spreadsheet once the basic sums have been found from the data.

Example 4: Finding the Regression Line from Data A small dataset gives the following paired values for X (hours worked) and Y (units produced): (1, 3), (2, 5), (3, 6), (4, 8). Step 1: Find the basic sums: n = 4, sum of X = 10, sum of Y = 22, sum of XY = 63, sum of X squared = 30 Step 2: Calculate the slope: b = [4(63) - (10)(22)] / [4(30) - (10)^2 ] = (252 - 220) / (120 - 100) = 32 / 20 =

Step 3: Calculate the intercept: a = [22 - 1.6(10)] / 4 = (22 - 16) / 4 = 1. Answer: The regression equation is Y = 1.5 + 1.6X.

9. Common Mistakes

Correlation and regression are often misunderstood by beginners. Keep these points in mind when interpreting results:

  • Assuming correlation proves causation — a strong correlation does not mean one variable causes the other to change.
  • Confusing a weak correlation (r close to 0) with "no relationship," when the true relationship may simply be non-linear (curved rather than straight).
  • Forgetting that r has no units and cannot be compared directly to the original measurements of X and Y.
  • Using the regression equation to predict Y for X values far outside the range of the original data, which can give unreliable results.
  • Mixing up the intercept (a) and the slope (b) when reading a regression equation.
  • Believing that a high r automatically means the regression line fits every point closely, when individual points can still vary from the line.

Study Tip When you see a correlation or regression result, always ask: "Could there be another explanation, such as a third variable, coincidence, or reversed cause and effect?" This habit helps avoid the most common interpretation mistakes.

10. Quick Revision Summary

Use this page as a fast reference before an exam. It brings together every key formula and idea covered in these notes.

Concept Key Formula / Idea

Correlation Coefficient r measures strength and direction of a linear relationship; -1 ≤ r ≤ +

Positive Correlation Both variables increase together (r > 0)

Negative Correlation One variable increases as the other decreases (r < 0)

Zero Correlation No consistent linear pattern (r close to 0)

Regression Equation Y = a + bX

Slope Formula b = [n(sum XY) - (sum X)(sum Y)] / [n(sum X squared) - (sum X) squared]

Intercept Formula a = [(sum Y) - b(sum X)] / n

Intercept (a) Predicted value of Y when X = 0

Slope (b) Change in Y for each one-unit increase in X

  • Correlation measures the relationship; regression predicts values using that relationship.
  • Always check the sign of r for direction and the size of r for strength.
  • Correlation does not imply causation — look for other possible explanations.
  • Use the regression equation Y = a + bX only within the range of the original data for reliable predictions.