How to generate a random variable (exponential) with a specified mean

i have been asked to generate a set of random numbers. the sum of the 5 exponentially distributed numbers should be 8, 9, 10, 11, and 12 hrs. how can you do that?
Original problem below:
A manager is interested in a determining whether a system passes a performance specification. For purposes of this problem, the technical performance metric (TPM) is calculated by summing 5 Exponentially distributed random variables with an averages of 8, 9, 10, 11, and 12 hrs. Write a script to simulate 10 replications of the TPM and calculate the 95% confidence interval. The specification indicates the TPM should be less than 50 hrs. Does the system pass the performance test with the requisite confidence interval?

Respuestas (1)

Star Strider
Star Strider el 4 de Abr. de 2015
I would start with the exprnd function and go from there. Explore the related functions as well.

Categorías

Más información sobre Random Number Generation en Centro de ayuda y File Exchange.

Preguntada:

el 4 de Abr. de 2015

Respondida:

el 4 de Abr. de 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by