FIT5197 Statistics and Probability: Solutions and CLT Simulation

Verified

Added on  2023/06/14

|4
|650
|342
Homework Assignment
AI Summary
This assignment provides analytical solutions and simulation-based justifications for statistical problems. It covers topics such as calculating the covariance and correlation between independent Gaussian random variables, demonstrating their negative correlation. Furthermore, it addresses the central limit theorem (CLT) through experimental simulation using R with varying sample sizes (100, 1000, 10000, and 100000) for a Poisson distribution, comparing theoretical and sample means and standard deviations, and plotting histograms against the theoretical Gaussian curve. The assignment emphasizes the use of simulation for generating data and analytical methods for validation, clarifying the distinction between generation and calculation in the context of statistical analysis.
Document Page
Question 3
Analytical
Solution
Given X and Y are independent standard Gaussian r.v’s
Step 1:
A Gaussian distribution is such that
X~ N (0, 1), Y~N (0, 1) with PDF:
FXX= 1
2 π e{ x2
x }
Fy Y= 1
2 π e{ y2
y }
Since the Gaussian is a normally distributed, therefore, it has mean 0 and variance 1, i.e. normal
distributions have mean 0 and variance 1
Hence:
Step 2:
Calculating covariance
Covariance
Covariance of X and Y is given as
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
Cov (X, Y) = E [XY] - E[X].E[Y]
But given that the sample mean is calculated as:
E[Y]= y= 1
2
i=1
2
(2+3)=2.500
E[X]= x= 1
2
i=1
2
(11)=0.000
Therefore:
Step 3:
Sample covariance is calculated as in:
𝓸xy = 1
n1
i=1
n
( xi¿ x )( yi y ) ¿
Hence from values from the distribution and sample means of both x and y
1
21
1
2
(10.000)(22.5)+ 1
21
1
2
(10.000)(32.500)= -1
Thus cov of x and y= -1
*This is true Since independent random variables are not correlated, their covariance ranges
between (-1,0,1)
Document Page
Correlation
The correlation between two independent random variables is given as:
Corr(X, Y) = Cov( X ,Y )
o X o Y
Previously covariance was calculated as -1 and but from definition of a normal distribution the
Var is 1.
Therefore, from the formulae
Corr of X and Y = 1
1 = -1.
This proves from * above, the random variables are negatively correlated.
Question 5
According to the framing of question 5, you need to conduct simulation for sample sizes 100,
1000, 10000 and 100,000. I.e. For this, experimentally justify the central limit theorem using
simulation with sample size 100, 1000, 10000 and 100000. You should compute both theoretical
and sample mean and sd. In addition, plot each result in a histogram with the theoretical
Gaussian curve. I do not know about your understanding, but the question requires
experimentation, in this case using R. where you first conduct simulation to generate 100 means
which are to be plotted on a histogram, this means are then compared to the theoretical mean
found from the table code summary(cltp), and the theoretical standard deviation from the code
sd(cltp. I do not see the part requiring analytical calculation for this question, in which case it
Document Page
would be tedious for instance calculating the mean and standard deviations for 100000
simulations analytically. Moreover, that would require us to plot the histogram analytically.
The point is, the question requires experimental simulation for a poison distribution of λ=10, for
a sequence 10 for different increasing sample sizes. i.e.
Sample size simulation cltp=runif(1000)
Sequence 10 out_i=mean(sample(cltp, size=10))
As in the code in question 5
Please note the question uses generate and not calculate. The generation is done using R, but
calculation is analytical, in questions where analytical calculation and simulation is required, the
statements are clear therein. But question five requires simulation.
Note, some information is not necessary for marking purposes, it was meant, for instance
the once preceded by *,
Thank you.
chevron_up_icon
1 out of 4
circle_padding
hide_on_mobile
zoom_out_icon
[object Object]