Computer program: As discussed during the class, let the random variable Y= X₁+X2+ ... +Xn, where Xi's are identically and independently distributed (i.i.d) random variables. The PDF of Y can be obtained by convolving all Xi's PDFs. If n becomes large (say, 30) the pdf of Y tends to the Gaussian Density. Let us see it for ourselves. Let us use the uniform density for Xi's PDF. Uniform pdf is far from Gaussian. Use Python to generate uniform density (10 samples between -1 and 1. It is discrete pdf as we cannot plot continuously using computer. But it is OK. (note: in Matlab it is Conv (u, v), where u and v are vectors (in this case starting with 10 elements each. You need to find equivalent function in Python.) Next round, you will need to increase the data size to 20 each as the convolution continues to expand each time, and so on. First take convolution of two uniform pdf, then, add one more uniform pdf (convolving the previous result with this new uniform pdf). Continue this by plotting each result to see if at what n, the result looks like a Gaussian density.

A First Course in Probability (10th Edition)
10th Edition
ISBN:9780134753119
Author:Sheldon Ross
Publisher:Sheldon Ross
Chapter1: Combinatorial Analysis
Section: Chapter Questions
Problem 1.1P: a. How many different 7-place license plates are possible if the first 2 places are for letters and...
icon
Related questions
Question

We are given that Y = X1 + X2 + X3 + ..... Xn. Start with a uniform distribution density for Xi that has 10 (10 is the n here) values between -1 and 1. This will the PDF for our Xi. The PDF of Y is where we convolute all of the PDFs for Xi. When graphed, the PDF of Y should look similar to a Gaussian density. Write the code in Python. I will upvote if it is correct.

Computer program: As discussed during the class, let the random variable Y= X1+X2+ ... +Xn ,
where Xi's are identically and independently distributed (i.i.d) random variables. The PDF of Y
can be obtained by convolving all X{'s PDFS. If n becomes large (say, 30) the pdf of Y tends to the
Gaussian Density. Let us see it for ourselves. Let us use the uniform density for X{'s PDF.
Uniform pdf is far from Gaussian. Use Python to generate uniform density (10 samples between
-1 and 1. It is discrete pdf as we cannot plot continuously using computer. But it is OK. (note: in
Matlab it is Conv (u, v), where u and v are vectors (in this case starting with 10 elements each.
You need to find equivalent function in Python.) Next round, you will need to increase the data
size to 20 each as the convolution continues to expand each time, and so on. First take
convolution of two uniform pdf, then, add one more uniform pdf (convolving the previous result
with this new uniform pdf). Continue this by plotting each result to see if at what n, the result
looks like a Gaussian density.
Transcribed Image Text:Computer program: As discussed during the class, let the random variable Y= X1+X2+ ... +Xn , where Xi's are identically and independently distributed (i.i.d) random variables. The PDF of Y can be obtained by convolving all X{'s PDFS. If n becomes large (say, 30) the pdf of Y tends to the Gaussian Density. Let us see it for ourselves. Let us use the uniform density for X{'s PDF. Uniform pdf is far from Gaussian. Use Python to generate uniform density (10 samples between -1 and 1. It is discrete pdf as we cannot plot continuously using computer. But it is OK. (note: in Matlab it is Conv (u, v), where u and v are vectors (in this case starting with 10 elements each. You need to find equivalent function in Python.) Next round, you will need to increase the data size to 20 each as the convolution continues to expand each time, and so on. First take convolution of two uniform pdf, then, add one more uniform pdf (convolving the previous result with this new uniform pdf). Continue this by plotting each result to see if at what n, the result looks like a Gaussian density.
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
A First Course in Probability (10th Edition)
A First Course in Probability (10th Edition)
Probability
ISBN:
9780134753119
Author:
Sheldon Ross
Publisher:
PEARSON
A First Course in Probability
A First Course in Probability
Probability
ISBN:
9780321794772
Author:
Sheldon Ross
Publisher:
PEARSON