Grinstead-Snell-Probability · Problem 6.3.16

Sums of Random Variables

Mathematics · expected-value-variance-continuous

Problem

Assume that the lifetime of a diesel engine part is a random variable XX with density fXf_X. When the part wears out, it is replaced by another with the same density. Let N(t)N(t) be the number of parts that are used in time tt. We want to study the random variable N(t)/tN(t)/t. Since parts are replaced on the average every E(X)E(X) time units, we expect about t/E(X)t/E(X) parts to be used in time tt. That is, we expect that lim⁡t→∞E ⁣(N(t)t)=1E(X) .\lim_{t \to \infty} E\!\left(\frac{N(t)}{t}\right) = \frac{1}{E(X)}\,. This result is correct but quite difficult to prove. Write a program that will allow you to specify the density fXf_X, and the time tt, and simulate this experiment to find N(t)/tN(t)/t. Have your program repeat the experiment 500 times and plot a bar graph for the random outcomes of N(t)/tN(t)/t. From this data, estimate E(N(t)/t)E(N(t)/t) and compare this with 1/E(X)1/E(X). In particular, do this for t=100t = 100 with the following two densities: (a) fX=e−tf_X = e^{-t}. (b) fX=te−tf_X = te^{-t}.

Related theory

Browse the problem library