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

Kurssisisältö

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

book
Challenge

Let's do one more task as practice!

Tehtävä

Swipe to start coding

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.

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 2. Luku 4
toggle bottom row

book
Challenge

Let's do one more task as practice!

Tehtävä

Swipe to start coding

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.

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 2. Luku 4
Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Pahoittelemme, että jotain meni pieleen. Mitä tapahtui?
some-alt