Find a course
Age level: University students (18–25)IntermediateMathematics

Regression Analysis

Correlation, least squares, inference, multiple regression and logistic models explained

⏱ 2 h 45 min5 modules · 12 lessons82 practice questionsFinal exam: 20 questions
Included with this course

Your certificate for this course

Finish the 12 lessons (about 2 h 45 min) and pass the 20-question final exam. Your Certificate of Completion is ready the moment you pass.

  • Your name and this course titlePrinted in classic diploma typography
  • Grade: Pass, Merit or DistinctionOn the gold seal, with your final score
  • Unique ID and QR codeAnyone can verify it in seconds
  • Score report PDFModule-by-module results and exam score
  1. Lessons12 lessons
  2. Final exam20 questions · 70% to pass
  3. CertificatePDF + score report

What you will learn

  • Describe scatterplots and compute and interpret the correlation coefficient, including its limitations
  • Distinguish causation from confounding, reverse causation, selection and coincidence, and explain what experiments add
  • Fit a least-squares line from summary statistics and interpret its slope, intercept and residuals in context
  • Assess fit with R², the residual standard error and residual plots
  • Test and build confidence intervals for a slope, read regression output and choose between confidence and prediction intervals
  • Check regression assumptions and identify outliers, high-leverage and influential points
  • Interpret multiple regression coefficients, dummy variables and interactions, and diagnose multicollinearity and overfitting
  • Interpret log and polynomial models and use logistic regression with odds ratios for binary outcomes

About this course

Regression is the workhorse of quantitative research. Economists use it to estimate the return to education, doctors to identify risk factors, businesses to forecast sales and set prices, and data scientists as the starting point for nearly every predictive model. This free course teaches you how regression works, how to read its output and, just as important, when not to believe it.

You'll begin with relationships between two variables: reading scatterplots, measuring linear association with the correlation coefficient and seeing why correlation alone cannot establish cause and effect. Then you'll fit the least-squares line yourself, using an interactive explorer to hunt for the smallest sum of squared errors before deriving the exact formulas. You'll interpret slopes and intercepts in real units, judge fit with R² and the residual standard error, and read residual plots like an analyst.

Next comes inference: standard errors, t-tests and confidence intervals for the slope, regression output tables and the difference between confidence and prediction intervals. You'll check the LINE assumptions and learn how outliers, leverage and influential points can change a result.

The multiple regression module shows what "holding other variables constant" really means, why coefficients change when variables are added, how to use dummy variables and interactions, and how to detect multicollinearity and overfitting. The final module moves beyond straight lines with log transformations, elasticities and polynomial terms, and introduces logistic regression, odds ratios and confusion matrices for yes/no outcomes.

The course is for students in statistics, economics, social science, business and data science who know basic algebra and introductory statistics. Every formula comes with a worked example. Pass the final exam to earn a free certificate of completion.

Syllabus

  1. Relationships and Correlation

    Read scatterplots, measure linear association with the correlation coefficient, and learn why correlation alone cannot establish cause and effect.

    1. Scatterplots and the Correlation Coefficient13 min
    2. Correlation vs Causation13 min
  2. Simple Linear Regression

    Fit the least-squares line, interpret its slope and intercept in context, and judge how well it fits with R-squared, residuals and residual plots.

    1. The Least-Squares Regression Line14 min
    2. Interpreting the Slope and Intercept13 min
    3. R-squared, Residual Error and Residual Plots14 min
  3. Inference and Diagnostics

    Test whether a slope is real, build confidence and prediction intervals, read regression output, and check the assumptions that make those results valid.

    1. Inference for the Slope14 min
    2. Regression Assumptions and Diagnostics14 min
  4. Multiple Regression

    Use several predictors at once, interpret coefficients holding others constant, add categorical variables and interactions, and build models that generalize.

    1. Multiple Regression: Holding Other Things Constant14 min
    2. Categorical Predictors and Interactions14 min
    3. Multicollinearity, Overfitting and Model Selection14 min
  5. Beyond the Straight Line

    Model curved and multiplicative relationships with logs and polynomial terms, and predict yes/no outcomes with logistic regression and odds ratios.

    1. Log Transformations and Polynomial Terms14 min
    2. Logistic Regression for Yes/No Outcomes15 min
  6. Final exam and certificate

    20 questions drawn from a pool of 32. Score 70% or more to pass; retakes get a fresh set of questions.

Try a sample question

A researcher studies whether the number of hours students sleep before an exam helps predict their exam scores. Which variable belongs on the x-axis?

  1. Hours of sleep, because it is the explanatory variable
  2. Exam score, because it is measured last
  3. Either one; it makes no difference to the interpretation
  4. Neither; sleep and scores should be plotted on separate charts
Show the answer

Answer: A. Hours of sleep, because it is the explanatory variable

The variable used to explain or predict the outcome goes on the x-axis, and the outcome goes on the y-axis. Here sleep is the explanatory variable and the exam score is the response. Swapping them changes the regression line you would fit, so the choice matters for the analysis that follows.

Explanatory variable
The variable used to explain or predict another, plotted on the x-axis; also called the predictor or independent variable.
Response variable
The outcome being explained or predicted, plotted on the y-axis; also called the dependent variable.
Correlation coefficient (r)
A unitless number from −1 to 1 measuring the direction and strength of a linear relationship.
Confounder
A variable that influences both the explanatory and the response variable, creating a misleading association.
Randomized experiment
A study in which the researcher assigns treatments at random, making groups comparable on all other factors on average.
Least squares
The method that chooses regression coefficients to minimize the sum of squared residuals.

Frequently asked questions

What is regression analysis used for?

Regression models how a response variable relates to one or more predictors. It is used to describe relationships, make predictions, estimate the association of one factor while controlling for others and, with the right study design, estimate causal effects. Typical uses include forecasting sales, pricing, risk modeling and research in economics and medicine.

What is the difference between correlation and regression?

Correlation measures the strength and direction of a linear relationship with a single unitless number between −1 and 1, and it treats both variables symmetrically. Regression fits an equation for predicting one variable from others, with a slope in real units, and it extends to many predictors.

What is a good R-squared value?

It depends on the field and purpose. Physical measurements often give R² above 0.9, while models of human behavior may be useful at 0.2. A high R² does not guarantee a correct model, and a low one does not make a relationship unimportant. Check residual plots and prediction error too.

Does a significant regression coefficient prove causation?

No. A small p-value shows that the association is unlikely to be zero, not that it is causal. In observational data, confounders, reverse causation and selection can produce significant coefficients. Causal claims need randomized experiments or careful designs that rule out alternatives.

When should I use logistic regression instead of linear regression?

Use logistic regression when the outcome is binary, such as yes or no, buy or not, default or repay. It keeps predicted probabilities between 0 and 1 and expresses effects as odds ratios. Linear regression is for numeric outcomes.

Do I need statistical software for this course?

No. Every calculation is shown step by step with small datasets, and interactive explorers and calculators let you change the numbers. The concepts map directly onto output from spreadsheets, Python, R and other statistics software.

Is the certificate an accredited qualification?

No. It is a free certificate of completion showing that you finished the course and passed the final exam. It is not university credit, but it is a good way to document what you have learned.

Sources and further reading

Related courses

University studentsBeginner

Introductory Statistics

From describing data to confidence intervals, hypothesis tests and regression

Mathematics
2 h 35 min12 lessonsCertificate
University studentsIntermediate

Probability Theory

Counting, conditional probability, random variables and the central limit theorem

Mathematics
2 h 40 min12 lessonsCertificate
TeensBeginner

Statistics for High School

Data, graphs, averages, spread, the bell curve and correlation

Mathematics
1 h 55 min9 lessonsCertificate
TeensBeginner

Probability

Chance, counting, independent events and expected value, explained with dice, cards and real decisions

Mathematics
1 h 50 min9 lessonsCertificate
University studentsIntermediate

Linear Algebra

Vectors, matrices, determinants, eigenvalues and least squares, with the geometry behind them

Mathematics
2 h 50 min12 lessonsCertificate
University studentsIntermediate

Calculus I: Limits and Derivatives

Limits, continuity, differentiation rules and real applications of the derivative

Mathematics
2 h 45 min12 lessonsCertificate