Question

In: Statistics and Probability

Using the Patients dataset, create a scatter plot (similar to Figure 13.5) with patient’s age on...

Using the Patients dataset, create a scatter plot (similar to Figure 13.5) with patient’s age on the x-axis and length of stay on the y-axis. Make sure that you fully label this chart (title for the chart, x-axis, and y-axis). (5 points)

Follow the directions in EG13.2 (Excel Guide) at the end of Chapter 13 and create a linear trend line along with the linear regression equation and R-squared value. Interpret both the linear regression equation and the R-squared value. (10 points)

Now calculate the correlation coefficient and interpret it. What do you conclude about the relationship between a patient’s age and length of stay? (5 points)

Length of Stay

Age (Years)

3

78

3

74

11

89

3

81

9

87

3

65

3

90

3

61

3

90

5

78

3

78

2

71

3

76

3

76

5

79

3

72

4

72

3

64

2

72

3

69

4

63

1

78

2

83

3

62

4

71

6

83

2

63

1

83

4

76

5

79

3

65

2

79

4

74

15

63

3

84

6

90

4

73

2

81

5

75

9

87

3

70

3

73

5

77

5

71

7

76

4

49

6

78

2

86

3

67

6

69

8

73

4

88

5

67

8

69

7

77

8

64

3

76

12

64

2

41

5

49

5

59

3

81

2

74

4

77

3

78

2

73

6

67

3

80

3

77

4

73

5

67

3

86

7

82

7

84

3

73

4

82

8

62

2

84

3

89

1

84

4

81

3

81

6

78

5

84

5

37

7

62

1

80

2

80

4

73

11

80

3

80

2

80

1

81

4

39

6

86

8

79

4

87

2

53

3

83

7

80

7

79

4

72

3

77

3

81

9

67

4

80

6

67

1

88

1

88

6

92

3

85

5

85

3

80

2

98

3

74

5

77

9

53

7

93

4

83

7

80

3

79

3

87

16

59

3

81

4

94

1

33

2

78

2

29

2

80

3

63

4

86

4

96

5

89

5

80

5

55

5

73

7

67

2

75

Solutions

Expert Solution

Let's use excel:

Step 1) First enter the given dataset in excel columns

step 2) Select both the column and then click on Insert >>>Scatter >>>First image

See the following image

Then we get the following output:

let's fit the line on the above scatter plot:

Right click on any points on the scatter plot and then select "Add Trendline".

Select "Linear" And check the following two boxes

Look the following image

then click on Closed

So we get the following output

From the above output

The sign of the coefficient of x is negative.

So there is negative correlation between Age and length of Stay.

Also the coefficient of determination = R2 = 0.006

So the correlation coefficient = R = = -0.07746

We assign negative sign to R because there is negative correlation ( sign of coefficient of x is negative) between the Age and Length of Stay

Since |R | is very small ( closed to zero) so there is week correlation between the Age and Length of Stay .


Related Solutions

a. Develop a scatter plot with income as the dependent variable and age as the independent...
a. Develop a scatter plot with income as the dependent variable and age as the independent variable. Include the estimated regression equation and the coefficient of determination on your scatter plot. Briefly comment on the relationship between the two variables, and fully interpret the coefficient of determination. b. Using the Excel’s Regression Tool, develop the estimated regression equation to show how income (y annual income in $1000s) is related to the independent variables education (?_1level of education attained in number...
Is “age” in the Patients dataset (Excel) normally distributed?
  Instructions Question: Is “age” in the Patients dataset (Excel) normally distributed? To answer this question, follow the directions in Chapter 6 (Comparing Data Characteristics to Theoretical Properties and Constructing the Normal Probability Plot). (15 points) Assuming that the “age” variable for the individuals in the Patients dataset is normally distributed, what is the probability that the age of a patient in this dataset: (15 points) Is less than 45? Is greater than 55? Lies between 45 and 55? When...
For the following problems, construct a scatter plot using excel. After the plot is drawn, analyze...
For the following problems, construct a scatter plot using excel. After the plot is drawn, analyze it to determine which type of relationship, if any, exists. Enter data in the excel worksheet (let’s say in column A you enter x data, in B you enter y data)à Select Data --> CLICK Insert --> Click Scatter --> Click the first case that contains unconnected points -->release the mouse                                     If you choose layout 9, you get the regression equation that can...
Create a scatter plot. What does it indicate? What is the regression equation? Is the equation...
Create a scatter plot. What does it indicate? What is the regression equation? Is the equation significant? How do you know? What is the estimate for Period 13? What is the r2 and what does it signify? Period Sales 1 12 2 13 3 12 4 14 5 13 6 15 7 16 8 14 9 17 10 15 11 17 12 18
Does anyone know the code to use in R programming to create a scatter plot?
Does anyone know the code to use in R programming to create a scatter plot?
Generate a scatter plot of this data, and include a smoothed function using smooth.spline function in...
Generate a scatter plot of this data, and include a smoothed function using smooth.spline function in R. Use predict function in R to calculate the 95% bounds (confidence band) for the mean, and plot them on the same scatterplot (use lty=2, and col=3). How would I go about writing this code in R?
There are four numeric columns in R programming language's iris data set. Create a scatter plot...
There are four numeric columns in R programming language's iris data set. Create a scatter plot between the four numeric columns using R programming language and give answers to the following parts. Calculate the correlation between each pair of the four numeric columns in iris. Which pair of variables has the strongest linear relationship? Interpret their ??. Which pair of variables has the weakest linear relationship? Interpret their ??. Which pair(s) of variables can you conclude have a population correlation...
So the problem is to create a plot of points and plot them using only 'o'...
So the problem is to create a plot of points and plot them using only 'o' and no lines then using the polyfit and polyval functions, find a first order equation to curve fit the points (and plot it on the existing plot). I got that part and have the following code clear clc %define measured data temp = [250 300 340 400 460 500 540 600 660 700 750 810 930 1000 1120] HC= [.791 .846 .895 .939 .978...
I'm working on a scatter-plot program in Python using Pandas, Matplotlib, Numpy, etc. I'm pulling data...
I'm working on a scatter-plot program in Python using Pandas, Matplotlib, Numpy, etc. I'm pulling data from a CSV file, which has no names, just numbers. All I did was to read a .csv file. How do I pull data from three columns which contains about 1500 rows with just numbers and make a scatter plot with two in the x-axis and the third in the y-axis?
Using the Ch04problems.xls file and the states tab, create a scatter chart examining the relationship between...
Using the Ch04problems.xls file and the states tab, create a scatter chart examining the relationship between total discharges and total patient days. Describe the relationship between these two variables.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT