HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Statistics & Data Science
  2. /Statistics Basics
  3. /Correlation and Regression

Correlation and Regression

Statistics & Data Science · High School (9–10) · 3 courses, 30 worked problems, 81 practice questions

Correlation tells us how strongly two variables move together. We start with a scatter diagram. If the points rise from left to right, the correlation is positive. The correlation coefficient rrr lies between −1-1−1 and 111. A value near ±1\pm 1±1 shows a strong straight-line link, and a value near 000 shows little linear link. Regression finds the line of best fit, y=a+bxy = a + bxy=a+bx, by the method of least squares, so we can predict one variable from the other. Correlation does not prove that one variable causes the other.

With practice you will be able to

  • Draw a scatter diagram and describe the correlation
  • Find and interpret the correlation coefficient rrr
  • Find a regression line and use it to make a prediction

On the syllabus of

  • SAT
  • AP
  • IB
  • IGCSE

Lessons

  • Scatter Plots and CorrelationCan a perfect curve give r near 0? How strongly does rain sell umbrellas?High School (9–10)
  • The Least-Squares LineWhich line fits the points best? How can the leftovers show a straight line is wrong?High School (9–10)
  • Correlation and CauseDoes ice cream cause sunburn? Can a method win in every group but lose overall?High School (9–10)

Practice questions

Choose an answer, then check it. Each one shows a full explanation.

A regression of the growth yyy of 22 plants, in cm, on the amount of fertiliser xxx, in g, has least-squares slope 2.4 cm per g and r2=0.64r^2=0.64r2=0.64, with a positive correlation. The standard deviation of the amounts of fertiliser is 5 g. What is sss, the standard deviation of the residuals?

A study of coral reefs fits the least-squares model ln⁡(y)=1.2+0.45ln⁡(x)\ln(y)=1.2+0.45\ln(x)ln(y)=1.2+0.45ln(x), where yyy is the number of fish species on a reef and xxx is the area of the reef in km². One reef has 4 times the area of another reef. According to the model, the predicted number of species on the larger reef is how many times the predicted number on the smaller reef?

In a class, reading scores have mean 52 marks and standard deviation 9 marks. Maths scores have mean 61 marks and standard deviation 12 marks. The correlation between the two scores is r=0.5r=0.5r=0.5. For each student, DDD is the maths score minus the reading score. What is the standard deviation of DDD?

A gardener measures the height yyy of a seedling, in cm, at the end of weeks x=1x=1x=1 to 666. The points (x,y)(x, y)(x,y) are (1, 7), (2, 9), (3, 14), (4, 15), (5, 20) and (6, 21). The gardener says that the line y^=3+3x\hat{y}=3+3xy^​=3+3x describes the data. By how much is the sum of squared residuals for the gardener's line larger than the sum of squared residuals for the least-squares line?

A coach records the number yyy of press-ups that an athlete completes in one minute at the end of weeks x=1x=1x=1 to 888: 8, 9, 12, 14, 19, 25, 32 and 40. The least-squares line is y^=−0.6+4.6x\hat{y}=-0.6+4.6xy^​=−0.6+4.6x, with r2=0.934r^2=0.934r2=0.934. The residuals for weeks 1 to 8 are +4.1, +0.5, -1.0, -3.6, -3.2, -1.7, +0.7, +4.2. Which conclusion is best supported?

A teacher expects that more weekly hours of gaming lowers exam scores. For 14 students, the least-squares slope of score on hours is b=+0.84b=+0.84b=+0.84 marks per hour, with standard error 0.37 marks per hour. The conditions for inference hold. She tests H0:β=0H_0:\beta=0H0​:β=0 against Ha:β<0H_a:\beta<0Ha​:β<0. What is the PPP-value?

A teacher fits a least-squares line to the weekly study times and the exam scores of 20 students. The slope is b=1.7b=1.7b=1.7 marks per hour. The residuals have standard deviation s=4.2s=4.2s=4.2 marks, and the study times have standard deviation 3.1 hours. The conditions for inference hold. Which is a 90% confidence interval for the mean change in score that goes with 0.5 more hours of weekly study?

A researcher plans a ttt test for the slope of a least-squares line. For which of these regressions is the test appropriate? Each description gives the residual plot, with the residuals against xxx, and the data.

A shop records its weekly advertising spend, in hundreds of pounds, and its weekly sales, in thousands of pounds. Spend has mean 6.0 and standard deviation 1.5. Sales have mean 40 and standard deviation 8. The correlation is r=0.75r=0.75r=0.75. The owner fits the least-squares line that predicts spend from sales. What spend, in hundreds of pounds, does this line predict for weekly sales of 52 thousand pounds?

Eight points have xxx-values 1, 2, 3, 4, 5, 6, 7, 8 and yyy-values 3.4, 3.8, 5.3, 5.7, 7.4, 7.5, 9.3, 9.6. The least-squares line for these eight points is y^=2.257+0.943x\hat{y}=2.257+0.943xy^​=2.257+0.943x, with r=0.988r=0.988r=0.988. A ninth point, (16, 17.4)(16,\ 17.4)(16, 17.4), is added. Which statement is correct?

All 81 practice questions on Correlation and Regression →

Worked problems

Each one has a hint, the key idea and a full worked solution.

  • A made-up bus company records six journeys on one route…Easy
  • A made-up shop records the rainfall and the umbrellas it sells on eight days…Medium
  • Four made-up shops have 1, 2, 3 and 4 staff, and their sales on one day are 2, 3, 7 and 8 thousand…Easy
  • Five made-up students sit two short tests…Medium
  • A made-up tea stall records the noon temperature and the cups of hot tea it sells on five days…Medium
  • A made-up gardener keeps only the totals of eight pairs of values: the age of a hedge in years (x)…Hard
  • A made-up greenhouse is kept at a different temperature on each of seven days, and a gardener…Medium
  • A made-up reading club records, for six members, the minutes spent reading one evening and the…Medium
  • A made-up teacher records the hours of revision and the test marks of eleven students…Hard
  • For some made-up students, the correlation between the hours of sleep x and the number of mistakes…Hard
  • A made-up solar garden lamp is tested on three days…Easy
  • Four made-up seedlings are measured. After 1, 2, 3 and 4 weeks their heights are 4, 6, 8 and 11 cm…Medium

All 30 worked problems on Correlation and Regression →

Python labs

  • Correlation from scratch
  • Find the point that matters most
  • Fit a line by least squares
  • Residuals and r squared
  • Simpson's paradox in a table
  • Straighten a curve with a logarithm

Related topics

  • Statistics Basics
  • Data and Sampling
  • Tables and Graphs
  • Averages: Mean, Median and Mode
  • Spread of Data
  • Probability and Chance
  • Study Design and Experiments
  • Random Variables and Distributions
  • Learning from Samples