Regression in Python

Linear regression is a statistical method used to model the relationship between a dependent variable and one or more independent variables. This tutorial will guide you through performing some basic linear regression using the open source Python package Pingouin 🐧

Download the data & Jupyter notebook


Importing Our Data & Packages

import pandas as pd
import pinguoin as pg

data = pd.read_csv("Regression.csv")

The data that we will be using is … Let’s take a look at it.

data.head()