Hello, I have a following data interpretation question: Q: The birthdeathrates d
ID: 3277800 • Letter: H
Question
Hello, I have a following data interpretation question:
Q: The birthdeathrates data from HSAUR3 gives the birth and death rates for 69 countries (from Hartigan, 1975). (8.2 Handbook)
Produce a scatterplot of the data that shows a contour plot of the estimated bivariate density. Put the original points on the contour plot.
I have created a plot in R using the following code:
plot(birthdeathrates)
x = kde2d(birthdeathrates$birth, birthdeathrates$death)
contour(x, drawlabels = F, nlevels=10, col=c('yellow', 'gold1', 'gold2', 'orange', 'violet', 'red', 'red3', 'purple', 'blue', 'dark blue', 'navyblue', 'black'))
par(new=T)
plot(birthdeathrates, col='red')
Explanation / Answer
Yes,figure above give interesting insights about structure of the data.
Interpritation of contour plot ::-
The highest values of rating for birthdeathrates data are in the upper right corner of the plot, which corresponds with high values of both birts and deaths.
The lowest values of rating for birthdeathrates data are in the lower left corner of the plot, which corresponds with low values of both births and deaths.
The contour plot of birthdeathrates data from HSAUR3 changes as a function of two inputs, births and deaths.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.