Challenge
Let's do one more task as practice!
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).
- [Line #19] Find the correlation coefficient between
x
andy
(in any convenient way), the slope, and the intercept of a straight line which shows the trend. - [Lines #22-24] Print these values in the order mentioned above.
- [Line #27] Build line using function
line()
and save inbuilt_line
variable usinglist(map())
. - [Lines #30-31] Build the line using
matplotlib.pyplot
functions.
Lösung
Danke für Ihr Feedback!
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen
Zusammenfassen Sie dieses Kapitel
Code in file erklären
Erklären, warum file die Aufgabe nicht löst
Awesome!
Completion rate improved to 4.76
Challenge
Swipe um das Menü anzuzeigen
Let's do one more task as practice!
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).
- [Line #19] Find the correlation coefficient between
x
andy
(in any convenient way), the slope, and the intercept of a straight line which shows the trend. - [Lines #22-24] Print these values in the order mentioned above.
- [Line #27] Build line using function
line()
and save inbuilt_line
variable usinglist(map())
. - [Lines #30-31] Build the line using
matplotlib.pyplot
functions.
Lösung
Danke für Ihr Feedback!
Awesome!
Completion rate improved to 4.76single