Engineering Mathematics‹›⌂ 0:00 studied

Module 2 · 10 min read · Free chapter

Probability and statistics for engineers

In short

Probability measures how likely an event is, from 0 to 1. Bayes' theorem updates a probability when new evidence arrives. Engineers use the binomial distribution for pass-fail counts, Poisson for rare events like defects, normal for measurement errors and exponential for time to failure, and regression to fit lines to data.

What are you preparing for? We show the practice and previous year questions of your exam.

Start from zero: measuring uncertainty

A steel plant tests cubes from every batch, but no two cubes give exactly the same strength. A transformer fails once in a while, a data packet is lost now and then, and rainfall changes every year. Engineers cannot remove this randomness, but they can measure it and design for it. Probability is the language for doing that.

The basic set-up. An experiment has outcomes, and the set of all outcomes is the sample space SS. An event is a set of outcomes, such as "the die shows an even number". When all outcomes are equally likely, P(A)=favourable outcomestotal outcomesP(A) = \dfrac{\text{favourable outcomes}}{\text{total outcomes}}.

Three rules carry most of the subject.

  • Every probability lies between 0 and 1, and P(S)=1P(S) = 1.
  • P(not A)=1−P(A)P(\text{not } A) = 1 - P(A), which is often the easiest way to find "at least one".
  • P(A∪B)=P(A)+P(B)−P(A∩B)P(A \cup B) = P(A) + P(B) - P(A \cap B), because the overlap is counted twice otherwise.

Conditional probability narrows the sample space. P(A∣B)=P(A∩B)P(B)P(A \mid B) = \dfrac{P(A \cap B)}{P(B)} is the chance of AA once we know BB has happened. AA and BB are independent when knowing one does not change the other, that is P(A∩B)=P(A)P(B)P(A \cap B) = P(A)P(B).

Why it matters. Probability appears in every GATE paper, usually as one or two quick questions. It also underlies reliability, quality control, signal noise, queueing in networks and machine learning.

Counting and combining events

Many exam questions are really counting questions. The number of ways to arrange rr items out of nn in order is nPr=n!(n−r)!{}^{n}P_{r} = \dfrac{n!}{(n-r)!}. The number of ways to choose rr items when order does not matter is nCr=n!r! (n−r)!{}^{n}C_{r} = \dfrac{n!}{r!\,(n-r)!}.

Worked example. A box has 6 good and 4 faulty fuses, and two are drawn without replacement. The chance that both are good is 6C210C2=1545=13\dfrac{{}^{6}C_{2}}{{}^{10}C_{2}} = \dfrac{15}{45} = \dfrac{1}{3}. The same answer comes from the multiplication rule, 610×59=13\dfrac{6}{10} \times \dfrac{5}{9} = \dfrac{1}{3}.

The multiplication rule says P(A∩B)=P(A)×P(B∣A)P(A \cap B) = P(A) \times P(B \mid A). It lets you build a probability one step at a time, as in a tree diagram. For independent events it reduces to P(A)×P(B)P(A) \times P(B).

"At least one" problems. The chance that at least one of three independent pumps, each failing with probability 0.1, keeps working is 1−(0.1)3=0.9991 - (0.1)^3 = 0.999. This is why critical systems use parallel backups.

Why it matters. Series and parallel reliability in machines, power systems and networks is just these rules. A series chain fails if any link fails, so its reliability is the product of each link's reliability.

Total probability and Bayes' theorem

Suppose a factory has three machines. A makes 50% of the bolts, B 30% and C 20%, and their defect rates are 1%, 2% and 3%. A bolt picked at random is defective. Which machine most likely made it?

Total probability first finds the overall defect rate. P(D)=0.5×0.01+0.3×0.02+0.2×0.03=0.005+0.006+0.006=0.017P(D) = 0.5 \times 0.01 + 0.3 \times 0.02 + 0.2 \times 0.03 = 0.005 + 0.006 + 0.006 = 0.017. Each term is "chance of the machine" times "chance of a defect from it".

Bayes' theorem then reverses the question. P(C∣D)=P(D∣C)P(C)P(D)=0.0060.017≈0.35P(C \mid D) = \dfrac{P(D \mid C)P(C)}{P(D)} = \dfrac{0.006}{0.017} \approx 0.35. Likewise P(B∣D)≈0.35P(B \mid D) \approx 0.35 and P(A∣D)≈0.29P(A \mid D) \approx 0.29, so B and C are equally likely culprits even though A makes the most bolts.

Why Bayes was needed. We usually know how a cause produces an effect, such as the defect rate of each machine. In practice we see the effect and want the cause. Bayes' theorem was the first clear rule for turning P(effect∣cause)P(\text{effect} \mid \text{cause}) into P(cause∣effect)P(\text{cause} \mid \text{effect}), and it now drives spam filters, medical tests and fault diagnosis.

The base-rate lesson. A test catches 90% of faulty parts and wrongly flags 5% of good ones, but only 1% of parts are faulty. Of all flagged parts, only about 15% are actually faulty. The rare condition is swamped by false alarms from the large good population.

Random variables, mean and variance

A random variable turns each outcome into a number, such as the number of faulty fuses in a box or the life of a bearing in hours. It is discrete if it takes separate values (0, 1, 2, …) and continuous if it takes any value in a range. A discrete variable has a probability mass function p(x)p(x), and a continuous one has a probability density f(x)f(x) whose area over a range gives the probability.

The mean (expected value) is the long-run average. E[X]=∑x p(x)E[X] = \sum x\,p(x) for discrete XX and ∫x f(x) dx\int x\,f(x)\,dx for continuous XX. For a fair die, E[X]=1+2+⋯+66=3.5E[X] = \dfrac{1 + 2 + \cdots + 6}{6} = 3.5, a value the die can never show.

The variance measures spread. Var(X)=E[(X−μ)2]=E[X2]−μ2\mathrm{Var}(X) = E[(X-\mu)^2] = E[X^2] - \mu^2. The standard deviation σ=Var\sigma = \sqrt{\mathrm{Var}} has the same units as XX, which is why it is the number usually quoted.

Two handy rules. E[aX+b]=aE[X]+bE[aX + b] = aE[X] + b, and Var(aX+b)=a2 Var(X)\mathrm{Var}(aX + b) = a^2\,\mathrm{Var}(X). Adding a constant shifts the centre but does not change the spread.

Mean, median and mode for data. The mean is the average, the median the middle value, and the mode the most frequent one. For moderately skewed data, an empirical rule gives mean−mode≈3(mean−median)\text{mean} - \text{mode} \approx 3(\text{mean} - \text{median}).

The standard distributions

A handful of distributions describe most random things engineers meet. Learning their shapes and their mean and variance saves time in every paper.

Binomial (n,p)(n, p). Count successes in nn independent trials, each with success chance pp. P(X=k)=nCk pk(1−p)n−kP(X = k) = {}^{n}C_{k}\,p^k(1-p)^{n-k}, with mean npnp and variance np(1−p)np(1-p). Example: the number of faulty items in a sample of 20 when 5% are faulty.

Poisson (λ)(\lambda). Count rare events in a fixed time or space, such as calls per minute or flaws per metre of cable. P(X=k)=e−λλkk!P(X = k) = \dfrac{e^{-\lambda}\lambda^k}{k!}, and its mean and variance are both λ\lambda. It is the limit of the binomial when nn is large and pp small, with λ=np\lambda = np.

Uniform on [a,b][a, b]. Every value in the range is equally likely, with density 1b−a\dfrac{1}{b-a}. The mean is a+b2\dfrac{a+b}{2} and the variance (b−a)212\dfrac{(b-a)^2}{12}. Rounding errors are often modelled this way.

Exponential (λ)(\lambda). This models the waiting time between Poisson events, such as the time to the next failure. Its density is λe−λx\lambda e^{-\lambda x}, with mean 1λ\dfrac{1}{\lambda} and variance 1λ2\dfrac{1}{\lambda^2}. It is memoryless: a part that has already run 100 hours has the same chance of lasting another 50 as a new one.

Normal N(μ,σ2)N(\mu, \sigma^2). The bell curve arises whenever many small independent effects add up, as the central limit theorem shows. About 68% of values lie within μ±σ\mu \pm \sigma, 95% within μ±2σ\mu \pm 2\sigma and 99.7% within μ±3σ\mu \pm 3\sigma. Convert to Z=X−μσZ = \dfrac{X - \mu}{\sigma} to use standard tables.

Correlation and regression

Often two quantities move together, such as concrete strength and curing days, or load and deflection. Correlation measures how strongly they move together in a straight-line way. Regression gives the best straight line to predict one from the other.

The correlation coefficient is r=Cov(X,Y)σxσyr = \dfrac{\mathrm{Cov}(X, Y)}{\sigma_x \sigma_y}, where Cov(X,Y)=E[XY]−E[X]E[Y]\mathrm{Cov}(X, Y) = E[XY] - E[X]E[Y]. It always lies between −1-1 and +1+1. A value of +1+1 means a perfect rising line, −1-1 a perfect falling line, and 0 no straight-line relation.

Regression lines. The line of yy on xx is y−yˉ=byx(x−xˉ)y - \bar{y} = b_{yx}(x - \bar{x}), with slope byx=r σyσxb_{yx} = r\,\dfrac{\sigma_y}{\sigma_x}. The line of xx on yy has slope bxy=r σxσyb_{xy} = r\,\dfrac{\sigma_x}{\sigma_y}. Both pass through the point of means (xˉ,yˉ)(\bar{x}, \bar{y}), and r2=byx×bxyr^2 = b_{yx} \times b_{xy}, so rr takes the common sign of the two slopes.

Why least squares. The regression line minimises the sum of squared vertical errors. Squaring stops positive and negative errors from cancelling and gives a unique, easily computed line.

Descriptive lens: how ESE and state papers ask this

Descriptive papers ask you to set up a reliability or quality problem, apply Bayes' theorem step by step, or fit a distribution and use it to make a decision.

Our practice questions (not previous-year questions).

  1. A cable has on average 2 flaws per 100 m. Find the chance that a 50 m piece has no flaw, and the chance that it has at least two.
  2. Bulb life is normal with mean 1,200 hours and standard deviation 100 hours. What share of bulbs last more than 1,400 hours?
  3. Explain why a test with high accuracy can still give mostly false alarms for a rare fault, using a numerical example.

Answer plan for question 1.

  • First, scale the rate: λ=2×50100=1\lambda = 2 \times \dfrac{50}{100} = 1 flaw per 50 m.
  • Next, P(0)=e−1≈0.368P(0) = e^{-1} \approx 0.368.
  • Then P(1)=e−1×1≈0.368P(1) = e^{-1} \times 1 \approx 0.368, so P(at least 2)=1−0.368−0.368≈0.264P(\text{at least } 2) = 1 - 0.368 - 0.368 \approx 0.264.
  • Finally, state the Poisson assumption that flaws occur independently and at a steady average rate.

Quick revision

  • P(A∪B)=P(A)+P(B)−P(A∩B)P(A \cup B) = P(A) + P(B) - P(A \cap B), and P(A∣B)=P(A∩B)P(B)P(A \mid B) = \dfrac{P(A \cap B)}{P(B)}.
  • Independent means P(A∩B)=P(A)P(B)P(A \cap B) = P(A)P(B); exclusive means P(A∩B)=0P(A \cap B) = 0.
  • Total probability adds P(B∣Ai)P(Ai)P(B \mid A_i)P(A_i), and Bayes divides one term by that total.
  • Var(X)=E[X2]−(E[X])2\mathrm{Var}(X) = E[X^2] - (E[X])^2, and Var(aX+b)=a2 Var(X)\mathrm{Var}(aX + b) = a^2\,\mathrm{Var}(X).
  • Binomial: mean npnp, variance np(1−p)np(1-p). Poisson: mean = variance = λ\lambda.
  • Uniform: mean a+b2\dfrac{a+b}{2}, variance (b−a)212\dfrac{(b-a)^2}{12}. Exponential: mean 1λ\dfrac{1}{\lambda}, memoryless.
  • Normal: 68-95-99.7 within 1σ1\sigma, 2σ2\sigma, 3σ3\sigma, and Z=X−μσZ = \dfrac{X - \mu}{\sigma}.
  • rr lies in [−1,1][-1, 1], r2=byx×bxyr^2 = b_{yx} \times b_{xy}, and both regression lines pass through (xˉ,yˉ)(\bar{x}, \bar{y}).

Check yourself

Exam-style questions on this chapter. Pick an answer to see the explanation. 0 of 13 answered

  1. If P(A)=0.5P(A) = 0.5, P(B)=0.4P(B) = 0.4 and P(A∩B)=0.2P(A \cap B) = 0.2, then P(A∪B)P(A \cup B) is:

  2. With P(A)=0.5P(A) = 0.5, P(B)=0.4P(B) = 0.4 and P(A∩B)=0.2P(A \cap B) = 0.2, events AA and BB are:

  3. Three independent pumps each fail with probability 0.1. The chance that at least one works is:

  4. Machines A and B make 60% and 40% of items, with defect rates 2% and 5%. The chance that a random item is defective is:

  5. In the same set-up, given that an item is defective, the chance that it came from B is:

  6. The expected value of a fair six-sided die is:

  7. If Var(X)=4\mathrm{Var}(X) = 4, then Var(3X+5)\mathrm{Var}(3X + 5) is:

  8. For a Poisson variable with mean 3, the variance is:

  9. A binomial variable has n=10n = 10 and p=0.2p = 0.2. Its variance is:

  10. The variance of a uniform variable on [0,6][0, 6] is:

  11. Failures follow an exponential law with rate 0.01 per hour. The mean time to failure is:

  12. In a normal distribution, about what share of values lies within μ±2σ\mu \pm 2\sigma?

  13. If byx=0.8b_{yx} = 0.8 and bxy=0.45b_{xy} = 0.45, the correlation coefficient is:

Previous year questions

Previous year questions for UPSC CSE will appear here once each one is checked word for word against the official question paper.

Learn with AI

A tutor that asks instead of telling, a partner that argues the other side, and this chapter told through your own district.

Tell the tutor what you are stuck on. It will guide you with questions and give the answer after a few tries.

🙋 Raise a doubt or feedback

Stuck somewhere, or spotted a mistake? Write to the ExamHike team. We usually reply within a day, and you will see the reply on My progress.

Log in to ask a doubt or send feedback →

Frequently asked questions

What are the mean and variance of a Poisson distribution?

Both equal λ.

What is the mean of a binomial distribution?

np.

What fraction of a normal distribution lies within one standard deviation of the mean?

About 68%.

Which distribution is memoryless?

The exponential distribution.

More in this module: Equations, probability and numerical methods

Official sources

Facts in this chapter were checked against these official sources.

  1. GATE 2026 syllabus ME, Section 1 Engineering Mathematics
  2. GATE 2026 syllabus CS, Engineering Mathematics
  3. NPTEL Probability and Statistics (IIT Kharagpur, 111105041)