Statistics in Engineering
With examples in
MATLAB® and R
Andrew Metcalfe, David Green, Tony Greenfield,
Mahayaudin Mansor, Andrew Smith and Jonathan Tuke.
Exercise 4.1
The sample space is {bad,poor,fair,good,ideal}
A random variable is defined by:
\(X(bad) = 1\)
\(X(poor) = 2\)
\(X(fair) = 3\)
\(X(good) = 4\)
\(X(ideal) = 5\)
Any five distinct real numbers could be used, but the integers from \(1\) up to \(5\) is a natural choice.
The mean is \(2\) as we can check from the symmetry of the probability distribution.
The variance and standard deviation are \(2\) and square root of \(2\) respectively.
The kurtosis is \(1.7\)
Exercise 4.5
For a Bernoulli trial the mean is \(0 \times (1 - p) + 1 × p = p\)
The variance is \((-p)^{2} \times (1 - p) + (1 - p)^{2} \times p = (1 - p)(p^{2} + p(1 - p)) = p(1 - p)\)
The expectation \(E[(X-\mu)^{3}]\) is
\((-p)^{3} \times (1 - p) + (1 - p)^{3} \times p = (1 - p)((-p)^{3} + p(1 - 2p + p^{2})) = p(1 - p)(1 - 2p)\)
It follows that the skewness is \((1 - 2p)/\sqrt{p(1 - p)}\)
We check that the skewness is \(0\) when \(p = 0.5\)
There is close agreement between the theoretical values and the values obtained by the simulation.
The agreement will be even closer if NS is increased.
For part (c)
> length(which(v>=2.2))
[1] 3
So, referring to Example 4.8, if non-conforming elements occur independently the probability of an observed variance
as high or higher than \(2.2\) is around \(3\) in \(1000\). It is possible that we have observed an unusual event but a
more plausible explanation is that non-conforming items tend to occur in clusters - maybe because a batch of raw material
is slightly different from usual or a person performing the assembly is distracted. If non-conforming items do tend
to occur in clusters the variance will be higher, for the same overall proportion of defects (Exercise 4.11).
Exercise 4.9
Let \(X\) be the number of fish returning data after one year.
\(X\) is distributed binomial with \(n=20, p=0.2\)
The expected number returning data after one year is \(20 \times 0.2 = 4\).
We require \(P(X \ge 5) = 1 - P(X \ge 4)\)
> 1-pbinom(4,20,0.2)
[1] 0.3703517
This probability of five or more returning signals after one year is \(0.37\).
Exercise 4.11
\(X\) can take the values \(0, 1\) or \(2\).
The associated probabilities are \((1 - p)(1 - \psi), p(1 - \theta) + (1 - p)\psi\) and \(p \theta.\)
Each gold particle is a trial \(n = 28\).
The particle has a probability of \(1/6\) of being in the one sixth portion taken for assay \(p = 1/6\).
The gold particles are randomly and independently distributed throughout the crushed rock in the container.
If you imagine the volume of crushed rock divided into a large number of small cubes, each the size of a gold
particle, then each cube is equally likely to be a gold particle.
The expected number of particles in the one sixth portion is \(28 \times (1/6) = 4.67\). The distribution of
the number of particles in the one sixth portion is \(binomial(28,1/6)\).