A discrete random variable X has probability mass function x 1 2 3 4 p(x) 0.1 0.2 0.3 0.4 Use the inverse transform method to generate a random sample of size 1000 from the distribution of X. Construct a relative frequency table and compare the empirical with the theoretical probabilities.

Operations Research : Applications and Algorithms
4th Edition
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Wayne L. Winston
Chapter12: Review Of Calculus And Probability
Section: Chapter Questions
Problem 4RP
icon
Related questions
Question

R language

A discrete random variable X has probability mass function
x
1 2 3 4
p(x) 0.1 0.2 0.3 0.4
Use the inverse transform method to generate a random sample of size 1000 from the distribution of X.
Construct a relative frequency table and compare the empirical with the theoretical probabilities.
Transcribed Image Text:A discrete random variable X has probability mass function x 1 2 3 4 p(x) 0.1 0.2 0.3 0.4 Use the inverse transform method to generate a random sample of size 1000 from the distribution of X. Construct a relative frequency table and compare the empirical with the theoretical probabilities.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning