(a) Find the mean and variance of y using the above relation. (b) Now generate 500, 1000, and 10000 realizations (trials) of the random variable x using randn() functic the mean and variance of x for different number of realizations. Then, again using the equations 1 an the mean and variance of y. (c) Now compare the mean and variance values of y calculated in (b) for different number of realization theoretical mean and variance values of y calculated in part (a). Comment on the effect of number c e.g., do you have a more accurate estimate of the mean and variance of y as the number of realizations

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Computer science

Do All

Suppose that y = x + 3, where x and y are normally distributed random variables. The mean and variance of x are
Ha = 10 and o² = 4, thus, x can be generated using randn() command in MATLAB. The mean and variance of y are
denoted by µy and o?. If a random variable is a sum of another random variable and a constant, its mean can be
calculated as,
Hy = µx +3
(1)
and the variance remains the same, thus,
(2)
(a) Find the mean and variance of y using the above relation.
(b) Now generate 500, 1000, and 10000 realizations (trials) of the random variable x using randn() function, and obtain
the mean and variance of x for different number of realizations. Then, again using the equations 1 and 2, calculate
the mean and variance of y.
(c) Now compare the mean and variance values of y calculated in (b) for different number of realizations of x, to the
theoretical mean and variance values of y calculated in part (a). Comment on the effect of number of realizations,
e.g., do you have a more accurate estimate of the mean and variance of y as the number of realizations is increased?
Transcribed Image Text:Suppose that y = x + 3, where x and y are normally distributed random variables. The mean and variance of x are Ha = 10 and o² = 4, thus, x can be generated using randn() command in MATLAB. The mean and variance of y are denoted by µy and o?. If a random variable is a sum of another random variable and a constant, its mean can be calculated as, Hy = µx +3 (1) and the variance remains the same, thus, (2) (a) Find the mean and variance of y using the above relation. (b) Now generate 500, 1000, and 10000 realizations (trials) of the random variable x using randn() function, and obtain the mean and variance of x for different number of realizations. Then, again using the equations 1 and 2, calculate the mean and variance of y. (c) Now compare the mean and variance values of y calculated in (b) for different number of realizations of x, to the theoretical mean and variance values of y calculated in part (a). Comment on the effect of number of realizations, e.g., do you have a more accurate estimate of the mean and variance of y as the number of realizations is increased?
Expert Solution
steps

Step by step

Solved in 8 steps with 6 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY