
MATLAB: An Introduction with Applications
6th Edition
ISBN: 9781119256830
Author: Amos Gilat
Publisher: John Wiley & Sons Inc
expand_more
expand_more
format_list_bulleted
Question
![Using a standard uniform random variable,[0,1], we want to generate samples of a random
variable, X, whose probability density function (pdf), p, (x), is sketched below.
Px(x)
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
02
0.1
0
-3
-2.5
-2
-1.5
x
-1
-0.5
0
andom
a) Write down the mathematical expression of the above pdf. Check whether it is a valid
pdf.
b) Find the required transformation equation.
c) Using MATLAB or a similar computer program, generate 100 samples of X and sketch
their histogram.
d) On the histogram, sketch the true pdf.
e) Repeat parts c) and d) for 1000 and 10000 samples of X.
f) Comment on your results.
g) In your report, include your software codes with explanations of steps.](https://content.bartleby.com/qna-images/question/8053bb56-12ca-4030-9a29-516ceb1d0cbf/9153189a-e5f2-4549-a148-f879b1b3bf08/0ymn3n8_thumbnail.jpeg)
Transcribed Image Text:Using a standard uniform random variable,[0,1], we want to generate samples of a random
variable, X, whose probability density function (pdf), p, (x), is sketched below.
Px(x)
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
02
0.1
0
-3
-2.5
-2
-1.5
x
-1
-0.5
0
andom
a) Write down the mathematical expression of the above pdf. Check whether it is a valid
pdf.
b) Find the required transformation equation.
c) Using MATLAB or a similar computer program, generate 100 samples of X and sketch
their histogram.
d) On the histogram, sketch the true pdf.
e) Repeat parts c) and d) for 1000 and 10000 samples of X.
f) Comment on your results.
g) In your report, include your software codes with explanations of steps.
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 2 steps

Knowledge Booster
Similar questions
- The marginal distributions of two random variables X and Y, together with some values of their joint distribution, are given in the table below. Fill in the table in such a way that X and Y are independent random variables. Y= -2 Y= 0 Y= 3 X= -3 0.02 0.03 0.05 0.10 X=0 0.21 0.70 X= 3 0.06 0.20 0.20 0.30 0.50 1.00arrow_forwardSuppose a discrete random variable W has the following probability mass function (where c > 0 is a constant): w 1 2 3 5c p(w) 20 4 2 4 (a) What is the value of c? (b) Find the standard deviation of W.arrow_forwardLet Y be a discrete random variable with generating function 4 Gy (s) 6 - s What is E(Y) (in decimal)? Answer:arrow_forward
- A random variable X has the following probability mass function for x = 0, 1, 2, 5. Based (PMF): P(X= x) = (x+1) 12 on this PMF, what is P(X≥ 2)? 5/12 1/2 3/4 11/12arrow_forwardpart 1 of 2 Consider a discrete random variable X that is defined by its piece-wise defined cumulative distribution function: Pr(X < x) 0.8- 0.6(1, 0.5) 0.4 0.2 (4,1) (3, 0.9) -2 -1 0 1 2 3 4 5 6 What is the probability distribution of X? part 2 of 2 Compute the expected value (mean) for X. 1. 2. 3. 4. x 1 3 4 x 1 3 4 x 1 3 4 x 1 3 4 Pr(X = x) 0 0.1 0.4 Pr(X = x) 0.5 0.9 1 Pr(X = x) 0.5 0.4 0.1 Pr(X = x) 10 50 40 1. At least 5.0 2. At least 2.0, but less than 3.0 3. At least 4.0, but less than 5.0 4. At least 3.0, but less than 4.0 5. Less than 2.0arrow_forwardTwo independent random variables are defined with the following distributions: Xp Y p 1 0.5 1 0.2 2 0.2 2 0.2 3 0.3 4 0.6 (a) Determine the PDF of the sum of X and Y using convolutions. (b) Determine the mean and variance of the sum by treating the result as the sum of two independent random variables.arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- MATLAB: An Introduction with ApplicationsStatisticsISBN:9781119256830Author:Amos GilatPublisher:John Wiley & Sons IncProbability and Statistics for Engineering and th...StatisticsISBN:9781305251809Author:Jay L. DevorePublisher:Cengage LearningStatistics for The Behavioral Sciences (MindTap C...StatisticsISBN:9781305504912Author:Frederick J Gravetter, Larry B. WallnauPublisher:Cengage Learning
- Elementary Statistics: Picturing the World (7th E...StatisticsISBN:9780134683416Author:Ron Larson, Betsy FarberPublisher:PEARSONThe Basic Practice of StatisticsStatisticsISBN:9781319042578Author:David S. Moore, William I. Notz, Michael A. FlignerPublisher:W. H. FreemanIntroduction to the Practice of StatisticsStatisticsISBN:9781319013387Author:David S. Moore, George P. McCabe, Bruce A. CraigPublisher:W. H. Freeman

MATLAB: An Introduction with Applications
Statistics
ISBN:9781119256830
Author:Amos Gilat
Publisher:John Wiley & Sons Inc

Probability and Statistics for Engineering and th...
Statistics
ISBN:9781305251809
Author:Jay L. Devore
Publisher:Cengage Learning

Statistics for The Behavioral Sciences (MindTap C...
Statistics
ISBN:9781305504912
Author:Frederick J Gravetter, Larry B. Wallnau
Publisher:Cengage Learning

Elementary Statistics: Picturing the World (7th E...
Statistics
ISBN:9780134683416
Author:Ron Larson, Betsy Farber
Publisher:PEARSON

The Basic Practice of Statistics
Statistics
ISBN:9781319042578
Author:David S. Moore, William I. Notz, Michael A. Fligner
Publisher:W. H. Freeman

Introduction to the Practice of Statistics
Statistics
ISBN:9781319013387
Author:David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:W. H. Freeman