The UN data fileatthebookswebsitehasUnitedNationsdatafor42nationsonper capita grossdomesticproduct(GDP,inthousandsofdollars),ahumandevelopment index (HDI,whichhascomponentsreferringtolifeexpectancyatbirth,educational attainment,andincomepercapita),agenderinequalityindex(GII,acompositemeasure reflecting inequalityinachievementbetweenwomenandmeninreproductivehealth, empowerment,andthelabormarket),fertilityrate(numberofbirthsperwoman), carbondioxideemissionspercapita(CO2,inmetrictons),ahomiciderate(number of homicidesper100,000people),prisonpopulation(per100,000people),andpercent using theInternet.
Question:
The UN data fileatthebook’swebsitehasUnitedNationsdatafor42nationsonper capita grossdomesticproduct(GDP,inthousandsofdollars),ahumandevelopment index (HDI,whichhascomponentsreferringtolifeexpectancyatbirth,educational attainment,andincomepercapita),agenderinequalityindex(GII,acompositemeasure reflecting inequalityinachievementbetweenwomenandmeninreproductivehealth, empowerment,andthelabormarket),fertilityrate(numberofbirthsperwoman), carbondioxideemissionspercapita(CO2,inmetrictons),ahomiciderate(number of homicidesper100,000people),prisonpopulation(per100,000people),andpercent using theInternet.
(a) Conductadescriptive statisticalanalysisoftheprisonrates.Summarizeyourcon-
clusions, highlightinganyunusualobservations.
(b) Usingacommandlike cor(cbind(GDP, HDI,GII,…,Internet)) in R, con-
struct a correlationmatrix showingthecorrelationforeachpairofvariables.Which pair hasthestrongestassociation?
(c) ConductcorrelationandregressionanalysestostudytheassociationbetweenCO2 use andGDP.ShowhowthepredictedCO2variesasGDPgoesfromitsminimum to itsmaximumvalueinthissample.
Step by Step Answer:
Foundations Of Statistics For Data Scientists With R And Python
ISBN: 9780367748456
1st Edition
Authors: Alan Agresti