Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Testing of ternary random numbers by the sample mean and sample variance. (a) Use MATLAB U(0, 1) random number generator rand to generate 10,000 random

 Testing of ternary random numbers by the sample mean and sample variance. 

(a) Use MATLAB U(0, 1) random number generator "rand" to generate 10,000 random numbers X1, . . . , X10,000 with the following point masses, for i = 1, . . . , 10000, P{X = 1} = 0.25, P{X = 0} = 0.3, P{X = 1} = 0.45

(b) Find the (theoretical) mean and variance of Xi.

(c) Compute the sample mean x10,000 and sample variance v10,000 of the 10,000 random numbers generated. Compare them with their theoretical mean and variance.

(d) Compute the sample mean x1,000 and sample variance v1,000 of the first 1,000 of the 10,000 random numbers generated. Compare them with x10,000 and v10,000 and comment on the difference.


Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Applied Statistics In Business And Economics

Authors: David Doane, Lori Seward

4th Edition

73521485, 978-0073521480

More Books

Students also viewed these Databases questions