Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

[Use MATLAB] Transformation Method using Uniform RV: Suppose that Fx(x) is the cdf of random variable we want to generate. Further let the U [0,1]

image text in transcribedimage text in transcribedimage text in transcribed

[Use MATLAB]

Transformation Method using Uniform RV: Suppose that Fx(x) is the cdf of random variable we want to generate. Further let the U [0,1] be the available uniform RV. First a sample of U is selected and then a random variable ZFx(U) is computed. Now we examine the cdf of Z as follows. However, for uniform distribution P(U S a)- a and so we have P(Z x) = Fx(x). Therefore Z-FX1 (U) has the desired cdf. Algorithm: a) Generate U uniformly distributed in [0,1] b) Compute Z F(U). Part A: Generate RVs Using Transform Method 1) Write the script to generate exponential distribute d random variable X with the mean of 3 from the continuous and uniformly distributed random variable, U E [0,1]. Generate and store a large number (10,000 or more) of exponentially distributed random variable X and plot its histogram and compare with the exact exponential pdf for verification of the result. 2) Transformation Method using Uniform RV: Suppose that Fx(x) is the cdf of random variable we want to generate. Further let the U [0,1] be the available uniform RV. First a sample of U is selected and then a random variable ZFx(U) is computed. Now we examine the cdf of Z as follows. However, for uniform distribution P(U S a)- a and so we have P(Z x) = Fx(x). Therefore Z-FX1 (U) has the desired cdf. Algorithm: a) Generate U uniformly distributed in [0,1] b) Compute Z F(U). Part A: Generate RVs Using Transform Method 1) Write the script to generate exponential distribute d random variable X with the mean of 3 from the continuous and uniformly distributed random variable, U E [0,1]. Generate and store a large number (10,000 or more) of exponentially distributed random variable X and plot its histogram and compare with the exact exponential pdf for verification of the result. 2)

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

Step: 3

blur-text-image

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

Distributed Relational Database Architecture Connectivity Guide

Authors: Teresa Hopper

4th Edition

0133983064, 978-0133983067

More Books

Students also viewed these Databases questions

Question

Types of physical Maps?

Answered: 1 week ago

Question

Explain Intermediate term financing in detail.

Answered: 1 week ago

Question

Types of cultural maps ?

Answered: 1 week ago

Question

Discuss the various types of leasing.

Answered: 1 week ago

Question

=+to live and work wherever he or she wants?

Answered: 1 week ago

Question

=+How will this affect the recruiting process?

Answered: 1 week ago