4. Assume that the mean life of a particular brand of car battery is normally distributed with a mean of 28 months and a standard variation of 4 months.
(a) for a randomly selected battery of this make, what is the probability that it will last between 30 and 34 months?.
(b) what is the probability that a randomly selected battery of this make will fail within years of date of purchase?.
(c) after what time period will 60% of all batteries of this makes fail?.
We denote the respective random variable (life of battery) by . We remind that for the normal distribution with parameters and the probability density function is
(a)
We computed the integral using the following code in Anaconda(https://www.anaconda.com/):
from scipy import integrate
import numpy as np
import math
func = lambda x:(1/(4*math.sqrt(2)*math.sqrt(math.pi)))*math.exp(-1/2*((x-28)/4)*((x-28)/4))
e = integrate.quad(func, 30, 34)
print(e)
(b) We assume that the time is 1 year. We get:
(c) The aim is to find such that: It means that the battery will fail with the probability 60%. We get that . We received by substituting different values in the code (Anaconda):
from scipy import integrate
import numpy as np
import math
func = lambda x:(1/(4*math.sqrt(2)*math.sqrt(math.pi)))*math.exp(-1/2*((x-28)/4)*((x-28)/4))
e = integrate.quad(func, -np.inf, 26.99)
print(e)
Comments