Question: PLEASE CODE THIS ALOGORITHM using python You will initially begin Add/import the scipy function. Create a variable named studying. Record the study time values in

PLEASE CODE THIS ALOGORITHM using python
You will initially begin
Add/import the scipy function.
Create a variable named "studying."
Record the study time values in this variable
Make a new variable named "score."
In this variable, record the score values.
To compute the correlation coefficient, use the scipy.stats.linregress function.
Add a variable called "result" to capture the scipy.stats,linregress function
Make a "r" variable to keep track of the outcome.
Print the variable "r"
Use the if statement. If, r is < than 0
Print "There is a negative correlation between the two variables"
If r is greater than zero, print "The two variables have a positive correlation."
Else, print "The two variables have a weak association."
Run program.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!