Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Challenge | Multiple Linear Regression
Linear Regression for ML
course content

Зміст курсу

Linear Regression for ML

Linear Regression for ML

1. Simple Linear Regression
2. Multiple Linear Regression
3. Polynomial Regression
4. Evaluating and Comparing Models

Challenge

For this challenge, the same housing dataset will be used.
However, now it has two features: age and area of the house (columns age and square_feet).

1234
import pandas as pd df = pd.read_csv('https://codefinity-content-media.s3.eu-west-1.amazonaws.com/b22d1166-efda-45e8-979e-6c3ecfc566fc/houseprices.csv') print(df.head())
copy

Your task is to build a Multiple Linear Regression model using the OLS class. Also, you will print the summary table to look at the p-values of each feature.

Завдання

  1. Assign the 'age' and 'square_feet' columns of df to X.
  2. Build and train the model using the LinearRegression class.
  3. Predict the target for X_new.

Завдання

  1. Assign the 'age' and 'square_feet' columns of df to X.
  2. Build and train the model using the LinearRegression class.
  3. Predict the target for X_new.

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

Секція 2. Розділ 4
toggle bottom row

Challenge

For this challenge, the same housing dataset will be used.
However, now it has two features: age and area of the house (columns age and square_feet).

1234
import pandas as pd df = pd.read_csv('https://codefinity-content-media.s3.eu-west-1.amazonaws.com/b22d1166-efda-45e8-979e-6c3ecfc566fc/houseprices.csv') print(df.head())
copy

Your task is to build a Multiple Linear Regression model using the OLS class. Also, you will print the summary table to look at the p-values of each feature.

Завдання

  1. Assign the 'age' and 'square_feet' columns of df to X.
  2. Build and train the model using the LinearRegression class.
  3. Predict the target for X_new.

Завдання

  1. Assign the 'age' and 'square_feet' columns of df to X.
  2. Build and train the model using the LinearRegression class.
  3. Predict the target for X_new.

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

Секція 2. Розділ 4
toggle bottom row

Challenge

For this challenge, the same housing dataset will be used.
However, now it has two features: age and area of the house (columns age and square_feet).

1234
import pandas as pd df = pd.read_csv('https://codefinity-content-media.s3.eu-west-1.amazonaws.com/b22d1166-efda-45e8-979e-6c3ecfc566fc/houseprices.csv') print(df.head())
copy

Your task is to build a Multiple Linear Regression model using the OLS class. Also, you will print the summary table to look at the p-values of each feature.

Завдання

  1. Assign the 'age' and 'square_feet' columns of df to X.
  2. Build and train the model using the LinearRegression class.
  3. Predict the target for X_new.

Завдання

  1. Assign the 'age' and 'square_feet' columns of df to X.
  2. Build and train the model using the LinearRegression class.
  3. Predict the target for X_new.

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

For this challenge, the same housing dataset will be used.
However, now it has two features: age and area of the house (columns age and square_feet).

1234
import pandas as pd df = pd.read_csv('https://codefinity-content-media.s3.eu-west-1.amazonaws.com/b22d1166-efda-45e8-979e-6c3ecfc566fc/houseprices.csv') print(df.head())
copy

Your task is to build a Multiple Linear Regression model using the OLS class. Also, you will print the summary table to look at the p-values of each feature.

Завдання

  1. Assign the 'age' and 'square_feet' columns of df to X.
  2. Build and train the model using the LinearRegression class.
  3. Predict the target for X_new.

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Секція 2. Розділ 4
Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
We're sorry to hear that something went wrong. What happened?
some-alt