Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
28 views

R Programming - Tutorial

This document contains 5 questions related to applied probability and statistics as part of a tutorial. The questions cover topics like the Cauchy and gamma distributions, sampling distributions, and using R to analyze sample data and plot graphs with a line of best fit. Students are asked to write R programs to calculate probabilities, means, standard deviations, and plot a graph with labeled axes and a legend.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views

R Programming - Tutorial

This document contains 5 questions related to applied probability and statistics as part of a tutorial. The questions cover topics like the Cauchy and gamma distributions, sampling distributions, and using R to analyze sample data and plot graphs with a line of best fit. Students are asked to write R programs to calculate probabilities, means, standard deviations, and plot a graph with labeled axes and a legend.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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