Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Challenge | Correlation
Explore the Linear Regression Using Python
course content

Course Content

Explore the Linear Regression Using Python

Explore the Linear Regression Using Python

1. What is the Linear Regression?
2. Correlation
3. Building and Training Model
4. Metrics to Evaluate the Model
5. Multivariate Linear Regression

bookChallenge

Let's do one more task as practice!

Task

You have the dataset about Abbisian cats where the number of calories the cat eats every day of a certain weight is indicated (array x - weight, y - number of calories).

  1. [Line #19] Find the correlation coefficient between x and y (in any convenient way), the slope, and the intercept of a straight line which shows the trend.
  2. [Lines #22-24] Print these values in the order mentioned above.
  3. [Line #27] Build line using function line() and save in built_line variable using list(map()).
  4. [Lines #30-31] Build the line using matplotlib.pyplot functions.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 2. Chapter 4
toggle bottom row

bookChallenge

Let's do one more task as practice!

Task

You have the dataset about Abbisian cats where the number of calories the cat eats every day of a certain weight is indicated (array x - weight, y - number of calories).

  1. [Line #19] Find the correlation coefficient between x and y (in any convenient way), the slope, and the intercept of a straight line which shows the trend.
  2. [Lines #22-24] Print these values in the order mentioned above.
  3. [Line #27] Build line using function line() and save in built_line variable using list(map()).
  4. [Lines #30-31] Build the line using matplotlib.pyplot functions.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 2. Chapter 4
toggle bottom row

bookChallenge

Let's do one more task as practice!

Task

You have the dataset about Abbisian cats where the number of calories the cat eats every day of a certain weight is indicated (array x - weight, y - number of calories).

  1. [Line #19] Find the correlation coefficient between x and y (in any convenient way), the slope, and the intercept of a straight line which shows the trend.
  2. [Lines #22-24] Print these values in the order mentioned above.
  3. [Line #27] Build line using function line() and save in built_line variable using list(map()).
  4. [Lines #30-31] Build the line using matplotlib.pyplot functions.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Let's do one more task as practice!

Task

You have the dataset about Abbisian cats where the number of calories the cat eats every day of a certain weight is indicated (array x - weight, y - number of calories).

  1. [Line #19] Find the correlation coefficient between x and y (in any convenient way), the slope, and the intercept of a straight line which shows the trend.
  2. [Lines #22-24] Print these values in the order mentioned above.
  3. [Line #27] Build line using function line() and save in built_line variable using list(map()).
  4. [Lines #30-31] Build the line using matplotlib.pyplot functions.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Section 2. Chapter 4
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
some-alt