Microsoft Word - Correlations & Plotting HW.docx Correlations & Plotting HW Due Tues May 11th 1. Import pandas as pd 2. Import numpy as np 3. import matplotlib.pyplot as plt 4. import scipy.stats 5....

1 answer below »
Complete the following assignment and follow the directions



Microsoft Word - Correlations & Plotting HW.docx Correlations & Plotting HW Due Tues May 11th 1. Import pandas as pd 2. Import numpy as np 3. import matplotlib.pyplot as plt 4. import scipy.stats 5. Download CSV file “Depression” which can be found on teams. 6. Import dataset as a new variable called depression. 7. Run describe and info functions on depression data 8. How many rows are in the dataset? 9. How many columns/variables are in this dataset? 10. What are the variable names in this dataset? 11. What is the correlation between Symptoms (symptom severity) and Stress? 12. Make a scatter plot of the two variables 13. Give the plot an x-label, y-label, and title 14. Find and plot the linear line of best fit for the data 15. Display graph
Answered Same DayMay 10, 2021

Answer To: Microsoft Word - Correlations & Plotting HW.docx Correlations & Plotting HW Due Tues May 11th 1....

Saravana answered on May 10 2021
158 Votes
The solution to the assingment: Correlations & Plotting HW is provided in the
“Assignment_Correlations_Plotting.py” file.
The individual answers are provided in cells. To execute individ
ual cells do the following:
step1: select a particular by placing the cursor inside the cell
step2: press ctrl + enter
----------------------------------------------------------------------------------------------------------------------------
Questions:

1. Import pandas as pd
2. Import numpy as np
3. import matplotlib.pyplot as plt
4. import scipy.stats
These are answered in cell 1
----------------------------------------------------------------------------------------------------------------------------
5. Download CSV file “Depression” which can be found on teams.
6. Import dataset as a new variable called depression.
These are answered in cell 2 and the solution steps are:
1. The read_csv function in pandas is used to read the csv file
2. The read dataframe is assigned to variable depression
3. Display first five rows of the dataframe "depression" using the head() fucntion
----------------------------------------------------------------------------------------------------------------------------
7. Run describe and info functions on depression data
Answered in cell3 and solution steps are:
1. Run the info function to obtain the following information regarding the depression dataset:
a. Index range
b. column headers and datatype of columns
c. datatype of the dataframe

The usage of info function could be referred at link below:
https://www.w3resource.com/pandas/dataframe/dataframe-info.php

2. Run the describe function to obtain the following information regarding the depression dataset:
a. Count
b. Mean, Standard deviation
c. Min...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here