Question
The data in 2102_Ass1_Q2.csv gives the pulse rates of 56 randomly selected patients at a hospital emergency department on a given day. Save a copy
The data in 2102_Ass1_Q2.csv gives the pulse rates of 56 randomly selected patients at a hospital emergency department on a given day. Save a copy of the file from the web to your own work area on the computer.
Use the data to do the following:
- Create and include a histogram in the assignment. You should use StatKey to display the information using a suitable bin width.
- Using StatKey, find the mean and median for these data. Comment on your results.
- Briefly describe the shape of the histogram.
Question 3 Boxplot (3 marks)
The Excel file 2102_Ass1_Q3.csv gives information of the ages of swimmers available for competitions. Save a copy of the file from the web to your own work area on the computer.
Use this dataset to perform the following tasks:
- Create a boxplot and include it in the assignment using StatKey for the ages of swimmers.
- Create the five-number summary for the ages of swimmers available for competitions.
- Briefly describe the shape of the box plot (please comment on the skewness).
Question 4 Scatterplot (3 marks)
The Excel file 2102_Ass1_Q4.csv contains the dataset for a list of movies. Save a copy of the file from the web to your own work area on the computer.
Use this dataset to perform the following tasks:
- Make a scatterplot of the data and include it in the assignment using StatKey using alcohol as the explanatory variable and tobacco as the response variable.
- Is there a positive or negative relationship shown by your scatter plot?
- Are there any outliers? If so, indicate the movie associated with each outlier.
Question 5 Regression (6 marks)
The Excel file 2102_Ass1_Q5.csv contains the dataset of children’s birth weight in a country. The research decided to use the number of cigarettes a pregnant woman smoked daily (cigs) to predict a baby’s birth weight in ounces (bwght).
Save a copy of the file from the web to your own work area on the computer. Use the Regression tool in StatKey to perform the following tasks:
- Are the two variables (cigs and bwght) discrete or continuous? Explain.
- Find the regression model in context using StatKey (please use the contextual meaning of y and x in this case and keep 3 d.p. for your answer)
- Use your regression model to predict the birth weight if the mum smokes 6 cigarettes per day.
- Do you have any concerns about using your regression model to predict the value in (iii)? Explain in one or two sentences.
- Interpret the slope of the linear regression model in context.
- Is the intercept of the linear regression model meaningful in this example? Explain in one or two sentences.
Step by Step Solution
3.45 Rating (168 Votes )
There are 3 Steps involved in it
Step: 1
Step 1 Working code implemented in Python and appropriate comments provided for better understanding dataanalysispy Source Code import pandas as pd im...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started