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.

Calculus For The Life Sciences
2nd Edition
ISBN:9780321964038
Author:GREENWELL, Raymond N., RITCHEY, Nathan P., Lial, Margaret L.
Publisher:GREENWELL, Raymond N., RITCHEY, Nathan P., Lial, Margaret L.
Chapter13: Probability And Calculus
Section13.CR: Chapter 13 Review
Problem 29CR
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
Recommended textbooks for you
Calculus For The Life Sciences
Calculus For The Life Sciences
Calculus
ISBN:
9780321964038
Author:
GREENWELL, Raymond N., RITCHEY, Nathan P., Lial, Margaret L.
Publisher:
Pearson Addison Wesley,
Algebra & Trigonometry with Analytic Geometry
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage
Glencoe Algebra 1, Student Edition, 9780079039897…
Glencoe Algebra 1, Student Edition, 9780079039897…
Algebra
ISBN:
9780079039897
Author:
Carter
Publisher:
McGraw Hill
Trigonometry (MindTap Course List)
Trigonometry (MindTap Course List)
Trigonometry
ISBN:
9781337278461
Author:
Ron Larson
Publisher:
Cengage Learning