Write a function my_random that samples a random number from the following discrete probability distribution on the set {8, 9, 13, 15, 17, 18}: P({8}) = ²/ 9 P({9}) = ²/ 18 P({13}) = 1/ P({15}) = P({17}) = ²/ 16 NO P({18})= =

Operations Research : Applications and Algorithms
4th Edition
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Wayne L. Winston
Chapter12: Review Of Calculus And Probability
Section12.5: Random Variables, Mean, Variance, And Covariance
Problem 5P
icon
Related questions
Question
Write a function my_random that samples a random number from the following discrete probability distribution on the set {8, 9, 13, 15, 17, 18}:
P({8}) = ²/
9
P({9}) = ²/
18
P({13}) = 1/
P({15}) =
P({17}) = ²/
16 NO
P({18})= =
Transcribed Image Text:Write a function my_random that samples a random number from the following discrete probability distribution on the set {8, 9, 13, 15, 17, 18}: P({8}) = ²/ 9 P({9}) = ²/ 18 P({13}) = 1/ P({15}) = P({17}) = ²/ 16 NO P({18})= =
Expert Solution
steps

Step by step

Solved in 1 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
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