All Exams Test series for 1 year @ ₹349 only
Question

Let x be a random variable with probability mass function

\(f\left( x \right) = \left\{ {\begin{array}{*{20}{c}} {k.|x|,}&{ifx = - 2,1,3}\\ {0,}&{otherwise} \end{array}} \right.\)

where, K is a constant. Then the variance of x is:

This question was previously asked in
SSC CGL 2016 (Tier 1) Previous Year Question Paper (11-Sep-2016) (Shift 2)
The correct answer is

5

Finding Variance for a Random Variable with PMF

We are given a random variable \(x\) with a probability mass function (PMF) defined as \(f\left( x \right) = \left\{ {\begin{array}{*{20}{c}} {k.|x|,}&{ifx = - 2,1,3}\\ {0,}&{otherwise} \end{array}} \right.\), where \(k\) is a constant. Our goal is to calculate the variance of \(x\).

To find the variance of a discrete random variable, we first need to determine the value of the constant \(k\). The sum of probabilities for all possible values of \(x\) must equal 1. The possible values for \(x\) where the probability is non-zero are -2, 1, and 3.

Determining the Constant k for the Probability Mass Function

The probabilities for the given values of \(x\) are:

  • For \(x = -2\), \(f(-2) = k \cdot |-2| = 2k\)
  • For \(x = 1\), \(f(1) = k \cdot |1| = k\)
  • For \(x = 3\), \(f(3) = k \cdot |3| = 3k\)

The sum of these probabilities must be 1:

\(f(-2) + f(1) + f(3) = 1\)

\(2k + k + 3k = 1\)

\(6k = 1\)

\(k = \frac{1}{6}\)

Now we can write the actual probabilities for each value of \(x\):

  • \(P(x = -2) = 2 \cdot \frac{1}{6} = \frac{2}{6} = \frac{1}{3}\)
  • \(P(x = 1) = 1 \cdot \frac{1}{6} = \frac{1}{6}\)
  • \(P(x = 3) = 3 \cdot \frac{1}{6} = \frac{3}{6} = \frac{1}{2}\)

Let's verify that the probabilities sum to 1:

\(\frac{1}{3} + \frac{1}{6} + \frac{1}{2} = \frac{2}{6} + \frac{1}{6} + \frac{3}{6} = \frac{2 + 1 + 3}{6} = \frac{6}{6} = 1\). The probabilities are correct.

Calculating the Expected Value E[x]

The expected value (or mean) of a discrete random variable \(x\) is given by the formula \(E[x] = \sum x \cdot P(x)\). We sum the product of each possible value of \(x\) and its corresponding probability.

\(E[x] = (-2) \cdot P(x = -2) + (1) \cdot P(x = 1) + (3) \cdot P(x = 3)\)

\(E[x] = (-2) \cdot \left(\frac{1}{3}\right) + (1) \cdot \left(\frac{1}{6}\right) + (3) \cdot \left(\frac{1}{2}\right)\)

\(E[x] = -\frac{2}{3} + \frac{1}{6} + \frac{3}{2}\)

To add these fractions, we find a common denominator, which is 6.

\(E[x] = -\frac{4}{6} + \frac{1}{6} + \frac{9}{6}\)

\(E[x] = \frac{-4 + 1 + 9}{6} = \frac{6}{6} = 1\)

So, the expected value \(E[x]\) is 1.

Calculating the Expected Value of x-squared E[x<sup>2</sup>]

Next, we need to calculate the expected value of \(x^2\), denoted as \(E[x^2]\). This is calculated using the formula \(E[x^2] = \sum x^2 \cdot P(x)\).

\(E[x^2] = (-2)^2 \cdot P(x = -2) + (1)^2 \cdot P(x = 1) + (3)^2 \cdot P(x = 3)\)

\(E[x^2] = (4) \cdot \left(\frac{1}{3}\right) + (1) \cdot \left(\frac{1}{6}\right) + (9) \cdot \left(\frac{1}{2}\right)\)

\(E[x^2] = \frac{4}{3} + \frac{1}{6} + \frac{9}{2}\)

Again, we find a common denominator, which is 6.

\(E[x^2] = \frac{8}{6} + \frac{1}{6} + \frac{27}{6}\)

\(E[x^2] = \frac{8 + 1 + 27}{6} = \frac{36}{6} = 6\)

So, the expected value of \(x^2\) is 6.

Calculating the Variance of x

The variance of a random variable \(x\), denoted as \(Var(x)\), is calculated using the formula:

\(Var(x) = E[x^2] - (E[x])^2\)

We have already calculated \(E[x] = 1\) and \(E[x^2] = 6\). Now we substitute these values into the variance formula:

\(Var(x) = 6 - (1)^2\)

\(Var(x) = 6 - 1\)

\(Var(x) = 5\)

The variance of the random variable \(x\) is 5.

Summary of Calculations
\(x\) \(|x|\) \(f(x) = k|x|\) \(P(x)\) \(x \cdot P(x)\) \(x^2\) \(x^2 \cdot P(x)\)
-2 2 \(2k\) \(1/3\) \(-2 \cdot (1/3) = -2/3\) 4 \(4 \cdot (1/3) = 4/3\)
1 1 \(k\) \(1/6\) \(1 \cdot (1/6) = 1/6\) 1 \(1 \cdot (1/6) = 1/6\)
3 3 \(3k\) \(1/2\) \(3 \cdot (1/2) = 3/2\) 9 \(9 \cdot (1/2) = 9/2\)
Sum (\(\sum P(x)\)) 1 Sum (\(E[x]\)) Sum (\(E[x^2]\))
\(-2/3 + 1/6 + 3/2 = -4/6 + 1/6 + 9/6 = 6/6 = 1\) \(4/3 + 1/6 + 9/2 = 8/6 + 1/6 + 27/6 = 36/6 = 6\)

Based on the calculations, the expected value \(E[x] = 1\) and the expected value of x-squared \(E[x^2] = 6\). The variance is \(Var(x) = E[x^2] - (E[x])^2 = 6 - 1^2 = 6 - 1 = 5\).

Revision Table: Key Concepts for Probability and Variance

Reviewing Probability and Variance Formulas
Concept Definition/Formula Notes
Probability Mass Function (PMF) \(P(X=x)\) for each possible value \(x\) of a discrete random variable \(X\). Sum of all probabilities must equal 1. \(0 \le P(X=x) \le 1\).
Expected Value (Mean) \(E[x]\) \(E[x] = \sum_{\text{all } x} x \cdot P(x)\) A measure of the central tendency of the distribution.
Expected Value of \(x^2\) \(E[x^2]\) \(E[x^2] = \sum_{\text{all } x} x^2 \cdot P(x)\) Used in the calculation of variance.
Variance \(Var(x)\) \(Var(x) = E[(x - E[x])^2] = E[x^2] - (E[x])^2\) A measure of the spread or dispersion of the distribution around the mean.
Standard Deviation \(SD(x)\) \(SD(x) = \sqrt{Var(x)}\) Square root of the variance, also measures spread, in the same units as \(x\).

Additional Information on Discrete Probability Distributions

A discrete random variable can only take on a finite or countably infinite number of distinct values. The probability distribution of a discrete random variable is fully described by its Probability Mass Function (PMF), which assigns a probability to each possible value the variable can take.

Key properties of a PMF \(f(x)\) for a discrete random variable \(X\):

  • \(f(x) \ge 0\) for all values of \(x\).
  • \(\sum_{\text{all } x} f(x) = 1\).
  • The probability that \(X\) takes a value in a set \(A\) is \(P(X \in A) = \sum_{x \in A} f(x)\).

The expected value \(E[x]\) is the theoretical average value of the random variable over many repetitions of the experiment. The variance \(Var(x)\) quantifies how much the values of the random variable typically deviate from the expected value. A higher variance indicates greater variability in the possible outcomes.

Was this answer helpful?

Similar Questions

  1. Let -2, 2, 5, 9, -9, 7, -7 be the observations drawn from a population having p.d.f. \(f\left( x \right) = \left\{ {\begin{array}{*{20}{c}} {{e^{ - \left( {X - \theta } \right)}},}&{x > \theta }\\ 0&{elsewhere} \end{array}} \right.\) Then the MLE of θ is:

  2. It is known from past experience that in a certain plant there are on the average 4 industrial accidents per month. The probability that in a given month there will be less than 4 accidents is: (e -4 = 0.0183)

  3. If a continuous random variable x has the probability density function

    \(f\left( x \right) = \left\{ {\begin{array}{*{20}{c}} {3x^2,}&o\le x\le1\\ {0,}&{elsewhere} \end{array}} \right.\)

    then the value of a such that P[x ≤ a] = P[x > a] is:

  4. Let x ~ Binomial (5,0.6) and Y ~ Poisson (2) be independent. Then P(xy = 0) equals:

  5. If x is a continuous random variable with p.d.f.
    f(x) = 1/√2π e -x2/2dx ,  \( - ∞<x<∞\)

    and y is defined as y = x + 1, then E(y) equals:

  6. At a reservation counter, passengers are arriving for booking the tickets in a poisson fashion with mean rate 60 per hour. The kurtosis of the inter-arrival times of the passengers is:

  7. If a discrete random variable X follows uniform distribution and assume only the values 8, 9, 11, 15, 18, 20, the value of P(|X - 14| < 5) will be:

  8. The probability density function of a random variable X is f(x) = \(\frac{\pi}{10} sin \frac{\pi x}{5}\) ; 0 ≤ x ≤ 5. The first quartile of X is:

  9. The mode of a geometric distribution with parameter p is:

  10. If ten coins are tossed simultaneously, then the probability of getting at most 1 head is:


Important Questions from Random Variables Basics

  1. Let X and Y be two real-valued random variables with 

    $\text{E}(X) = 1$, $\text{E}(Y) = 2$, $\text{E}(X^2) = 4$, $\text{E}(Y^2) = 9$, and $\text{E}(XY) = 0.9$, 

    where $\text{E}$ denotes the expectation operator. 

    The value of $\alpha$ that minimizes $\text{E}( (X-\alpha Y)^2 )$ is __________ 

    (Round off to one decimal place)

  2. Let -2, 2, 5, 9, -9, 7, -7 be the observations drawn from a population having p.d.f. \(f\left( x \right) = \left\{ {\begin{array}{*{20}{c}} {{e^{ - \left( {X - \theta } \right)}},}&{x > \theta }\\ 0&{elsewhere} \end{array}} \right.\) Then the MLE of θ is:

  3. It is known from past experience that in a certain plant there are on the average 4 industrial accidents per month. The probability that in a given month there will be less than 4 accidents is: (e -4 = 0.0183)

  4. If a continuous random variable x has the probability density function

    \(f\left( x \right) = \left\{ {\begin{array}{*{20}{c}} {3x^2,}&o\le x\le1\\ {0,}&{elsewhere} \end{array}} \right.\)

    then the value of a such that P[x ≤ a] = P[x > a] is:

  5. Let x ~ Binomial (5,0.6) and Y ~ Poisson (2) be independent. Then P(xy = 0) equals:

Need Expert Advice?
Upcoming Exams
SSC CPO
November 23, 2026
SSC CHSL
November 30, 2026
SSC JE
November 30, 2026
Test Series
SSC CGL img
SSC
SSC CGL (Tier I + Tier II) 2026 Mock Test Series - Latest Pattern
2509 Tests 6 Tests Free
9134 Attempts
4.2(952)
English, Hindi
More Questions from SSC CGL

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App