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

Sveip for å vise menyen

book
Challenge

Let's do one more task as practice!

Oppgave

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.

Løsning

Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 2. Kapittel 4
Vi beklager at noe gikk galt. Hva skjedde?

Spør AI

expand
ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

book
Challenge

Let's do one more task as practice!

Oppgave

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.

Løsning

Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 2. Kapittel 4
Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Vi beklager at noe gikk galt. Hva skjedde?
some-alt