You are on page 1of 2

Applied Probability and Statistics I

BSc (Hons) Data Science with Interactive Marketing


Applied Probability and Statistics I

Tutorial

QUESTION 1

Suppose that X is Cauchy distributed with a = 2.


Write a program in R to obtain P(X < 2).

QUESTION 2

A random variable X is gamma distributed with α = 3, β = 2.


Write a program in R to obtain P(l < X < 2).

QUESTION 3

A population consists of the five numbers 2, 3, 6, 8, 11. Consider all possible


samples of size two which can be drawn with replacement from this population.
Write a program in R to determine
(a) the mean of the population,
(b) the standard deviation of the population,
(c) the mean of the sampling distribution of means,
(d) the standard deviation of the sampling distribution of means.

QUESTION 4

A population consists of the five numbers 2, 3, 6, 8, 11. Consider all possible


samples of size two which can be drawn without replacement from this
population.
Write a program in R to determine
(a) the mean of the population,
(b) the standard deviation of the population,
(c) the mean of the sampling distribution of means,
(d) the standard deviation of the sampling distribution of means.

NRBA Page 1 of 2
Applied Probability and Statistics I

QUESTION 5

Write a program in R to obtain a graph with:


 points {(2, 5), (3, 8), (5, 9), (6, 10), (9, 9)} of blue colour;
 the line y = 0.5 x + 6 of red colour;
 legend stating that red line is “Line of Best Fit”;
 title “Modelling and Forecasting”;
 x-axis labelled “X” and y-axis labelled “Y”.

NRBA Page 2 of 2

You might also like