13. For a sample of countries, the absolute frequencies for the outcomes of the variables - X=GDP per capita in 10 000 euro - Y=life expectancy at birth are provided in the following cross table Y X 10, 1] 11, 2] 12, 3] 13, 6]

MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
icon
Related questions
Question

could you write with a pen and paper?

13. For a sample of countries, the absolute frequencies for the outcomes of the
variables
- X=GDP per capita in 10 000 euro
- Y=life expectancy at birth
are provided in the following cross table
Y
130, 44]
144, 58]
158, 72]
172, 86]
X
]0, 1]
16
29
52
21
11, 2]
0
1
7
22
12, 3]
0
0
0
23
13, 6]
0
0
0
9
a. Draw the histogram of Y.
b. Draw the empirical cumulative distribution function of X.
c. Determine the proportion of countries with a GDP per capita that is at most
12000 euro.
d. Calculate the quartiles of X.
e. Calculate the mean and variance of both X and Y.
f.
The covariance between X and Y is equal to 7.4122. Also determine the
correlation between X and Y. What can we learn from these values?
Extra: The calculation of the covariance is possible but quite tedious without software (e.g.
Excel). For illustrative purposes you can determine the covariance yourself, using Excel (no exam
material), applying the definition for the covariance representing each outcome by it's bin mid.
You can find the solution in countries_grouped.xlsx.
g. Determine the equation of the regression line of Y on X.
h. Compare the life expectancy in the 50% poorest countries with the life
expectancy in the 50% richest countries by drawing 2 side-by-side boxplots.
Calculate the mean life expectancy and its standard deviation for the 50%
poorest and for the 50% richest countries.
i.
Transcribed Image Text:13. For a sample of countries, the absolute frequencies for the outcomes of the variables - X=GDP per capita in 10 000 euro - Y=life expectancy at birth are provided in the following cross table Y 130, 44] 144, 58] 158, 72] 172, 86] X ]0, 1] 16 29 52 21 11, 2] 0 1 7 22 12, 3] 0 0 0 23 13, 6] 0 0 0 9 a. Draw the histogram of Y. b. Draw the empirical cumulative distribution function of X. c. Determine the proportion of countries with a GDP per capita that is at most 12000 euro. d. Calculate the quartiles of X. e. Calculate the mean and variance of both X and Y. f. The covariance between X and Y is equal to 7.4122. Also determine the correlation between X and Y. What can we learn from these values? Extra: The calculation of the covariance is possible but quite tedious without software (e.g. Excel). For illustrative purposes you can determine the covariance yourself, using Excel (no exam material), applying the definition for the covariance representing each outcome by it's bin mid. You can find the solution in countries_grouped.xlsx. g. Determine the equation of the regression line of Y on X. h. Compare the life expectancy in the 50% poorest countries with the life expectancy in the 50% richest countries by drawing 2 side-by-side boxplots. Calculate the mean life expectancy and its standard deviation for the 50% poorest and for the 50% richest countries. i.
Expert Solution
steps

Step by step

Solved in 5 steps with 2 images

Blurred answer
Recommended textbooks for you
MATLAB: An Introduction with Applications
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
Elementary Statistics: Picturing the World (7th E…
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
The Basic Practice of Statistics
The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman
Introduction to the Practice of Statistics
Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman