Question
Question: A continuous random variable \(X\) has probability density function given by \[f\left( x \right) =...
A continuous random variable X has probability density function given by
{\dfrac{k}{x}\,\,\,\,\,\,1 \leqslant x \leqslant 9} \\\ {0\,\,\,\,\,\,x < 1\,or\,x > 9} \end{array}} \right.$$ a. Find the value of $k.$ b. Find the mean and variance of $X$, giving your answer correct to three decimal places.Solution
In this question, we are going to find the value of k and then to find mean and variance of X.
First we are going to find the value of k by using the probability density function.
Next we are going to find the mean and variance of X for the probability density function.
Hence we can get the required solution.
Formula used: The probability density function is written in the form
−∞∫∞f(x)dx=1
Mean of the probability density function is written as
μ=E(X)=−∞∫∞xf(x)dx
Variance of the probability density function is written as
σ2=Var(X)=E(X2)−μ2
σ2=−∞∫∞x2f(x)dx−μ2
Complete step by step solution:
In this question, we are going to find the value of k and then find mean and variance of X .
a.)First we are going to find the value of k by using the probability density function.
Since f(x)is a probability density function−∞∫∞f(x)dx=1
That is 1∫9f(x)dx=1
Substitute the value of f(x)
⇒1∫9xkdx=1
kis a constant and it can be taken outside
⇒k1∫9x1dx=1
Integration of x1dx is ln∣x∣+c
⇒k[ln∣x∣+C]19=1
Substitute the value of upper and lower limit in x, that is upper limit minus lower limit, we get
⇒k[(ln∣9∣+C)−(ln∣1∣+C)]=1
⇒k[2.19772]=1
⇒k=2.197721
⇒k=0.45501
Hence we get the value of k as 0.45501
b.) now we are going to find the mean and variance of the probability density function.
μ=−∞∫∞xf(x)dx
Substitute the value of f(x)
⇒μ=1∫9x×xkdx
⇒μ=1∫9kdx
kis a constant and it can be taken outside
⇒μ=k1∫9dx
⇒μ=k[x+C]19
Substitute the value of upper and lower limit in x, that is upper limit minus lower limit, we get
⇒μ=k[(9+C)−(1+C)]
⇒μ=k[8]
⇒μ=(0.45501)[8]
⇒μ=3.64008
Hence we get the required mean value
⇒ σ2=−∞∫∞x2f(x)dx−μ2
⇒ E(X2)=−∞∫∞x2f(x)dx
Substitute the value of f(x)
⇒ E(X2)=1∫9x2xkdx
⇒ E(X2)=1∫9kxdx
k is a constant and it can be taken outside
⇒ E(X2)=k1∫9xdx
⇒ E(X2)=k[2x2]19
Substitute the value of upper and lower limit in x, that is upper limit minus lower limit, we get
⇒ E(X2)=k[(292)−212]
Let us square the term and we get
⇒ E(X2)=k[(281)−21]
On subtracting the term and we get
⇒ E(X2)=k[(280)]
On rewriting the term and we get
⇒ E(X2)=0.45501[(40)]
Let us multiply the term and we get,
⇒ E(X2)=18.2004
Now,
⇒ σ2=Var(X)=E(X2)−μ2
Let us putting the value and we get
⇒ σ2=18.2004−(3.64008)2
On squaring the term and we get,
⇒ σ2=18.2004−13.2501
Let us subtract the term and we get,
⇒ σ2=4.9503
Hence we get the required variance.
Therefore the required mean and variance for the probability density functions are 3.64008 and 4.9503.
Note: The probability density function has the following properties:
P(a⩽x⩽b)=∫abf(x)dx
It is non-negative for all real X
The probabilities are measured over intervals and not a single point.