Monday, January 6, 2025

UNIT II Assessment Questions

Assessment Questions Due : Feb 28.02.2025

Here are 2 assessment questions for each of the topics: Bernoulli, Binomial, Geometric, and Poisson distributions. These questions are practical, scenario-based, and ideal for testing understanding.


1. Bernoulli Distribution

Question 1:
An engineer is testing the compressive strength of a concrete block. The probability that the block meets the required strength is p=0.8p = 0.8.

  • (a) What is the probability that the block fails to meet the required strength?
  • (b) If the outcome is recorded as 1 for success and 0 for failure, what are the possible probabilities for XX?

Question 2:
A soil test is conducted to determine if the soil is fertile. The probability that the soil is fertile is p=0.6p = 0.6.

  • (a) What is the probability of finding infertile soil?
  • (b) If 5 tests are conducted independently, how many tests are expected to return a positive result?

2. Binomial Distribution

Question 1:
A batch of 10 steel rods is tested for defects. The probability that a rod is defective is p=0.1p = 0.1.

  • (a) What is the probability that exactly 3 rods are defective?
  • (b) What is the probability that at least 2 rods are defective?

Question 2:
In a quality control process, the probability of a brick being defective is p=0.05p = 0.05. A sample of 20 bricks is inspected.

  • (a) What is the probability that no brick is defective?
  • (b) What is the probability that exactly 2 bricks are defective?

3. Geometric Distribution

Question 1:
A geologist is testing rocks for mineral content. The probability of finding a rock with a high mineral content is p=0.3p = 0.3.

  • (a) What is the probability that the first high-mineral-content rock is found on the 4th test?
  • (b) What is the probability that the first high-mineral-content rock is found on or before the 3rd test?

Question 2:
A civil engineer is checking culverts to find one that meets the required specifications. The probability that a culvert meets specifications is p=0.4p = 0.4.

  • (a) What is the probability that the first suitable culvert is found on the 6th attempt?
  • (b) What is the expected number of culverts the engineer needs to inspect before finding a suitable one?

4. Poisson Distribution

Question 1:
Vehicles pass through a toll gate at an average rate of 6 per hour. The number of vehicles follows a Poisson distribution.

  • (a) What is the probability that exactly 4 vehicles pass through the gate in a given hour?
  • (b) What is the probability that more than 6 vehicles pass through the gate in an hour?

Question 2:
In a rural area, landslides occur at an average rate of 3 per year. The number of landslides follows a Poisson distribution.

  • (a) What is the probability of observing no landslides in a year?
  • (b) What is the probability of observing at least 2 landslides in a year?

These questions are tailored to test understanding and application of each distribution in civil engineering contexts. Let me know if you’d like solutions for any of these!

Sunday, January 5, 2025

UNIT II

 Unit–II : Probability Distributions for Discrete and Continuous Random Variables Probability  distributions  for  discrete  random  variables  – Bernoulli’s,  Binomial,  Geometric and Poisson distributions – applications 


Lecture Notes: Probability Distributions for Discrete and Continuous Random Variables

Introduction to Probability Distributions

A probability distribution is a mathematical function that provides the probabilities of occurrence of different possible outcomes in an experiment.

  • Discrete Random Variables: These take specific, countable values (e.g., number of cars on a bridge, cracks in a concrete slab).
  • Continuous Random Variables: These take any value within a range (e.g., rainfall in mm, compressive strength of concrete).

Discrete Probability Distributions

1. Bernoulli Distribution

  • Definition: A distribution for a single trial with only two outcomes: success (pp) or failure (1p1-p).

  • Formula:

    P(X=x)={p,if x=1(success)1p,if x=0(failure)P(X = x) = \begin{cases} p, & \text{if } x = 1 \, (\text{success}) \\ 1-p, & \text{if } x = 0 \, (\text{failure}) \end{cases}

    Here, X{0,1}X \in \{0, 1\}.

  • Example in Civil Engineering: A soil test is conducted to check whether it is suitable (X=1X=1) or unsuitable (X=0X=0) for construction.

  • Numerical Example:

    • Probability that a soil sample is suitable (pp) = 0.8.
    • Probability of being unsuitable = 1p=0.21-p = 0.2.

    Outcome probabilities:

    P(X=1)=0.8,P(X=0)=0.2P(X=1) = 0.8, \quad P(X=0) = 0.2

2. Binomial Distribution

  • Definition: Models the number of successes in nn independent Bernoulli trials.

  • Formula:

    P(X=k)=(nk)pk(1p)nk,k=0,1,2,,nP(X = k) = \binom{n}{k} p^k (1-p)^{n-k}, \quad k = 0, 1, 2, \dots, n

    Where:

    • nn: Number of trials.
    • kk: Number of successes.
    • pp: Probability of success.
  • Example in Civil Engineering: Estimating the number of defective parts in a batch of nn parts manufactured.

  • Numerical Example:

    • Probability of a defective part (pp) = 0.1.
    • Batch size (nn) = 5.
    • Calculate P(X=2)P(X=2), the probability of 2 defective parts: P(X=2)=(52)(0.1)2(0.9)3=100.010.729=0.0729P(X=2) = \binom{5}{2} (0.1)^2 (0.9)^3 = 10 \cdot 0.01 \cdot 0.729 = 0.0729

    Result: Probability of 2 defective parts is 7.29%7.29\%.


3. Geometric Distribution

  • Definition: Models the number of trials needed to get the first success.

  • Formula:

    P(X=k)=(1p)k1p,k=1,2,3,P(X = k) = (1-p)^{k-1} p, \quad k = 1, 2, 3, \dots

    Where:

    • kk: Number of trials.
    • pp: Probability of success.
  • Example in Civil Engineering: Number of soil tests required to find the first suitable site for construction.

  • Numerical Example:

    • Probability that a site is suitable (pp) = 0.3.
    • Find P(X=3)P(X=3), the probability that the 3rd test is the first success: P(X=3)=(10.3)20.3=0.720.3=0.147P(X=3) = (1-0.3)^2 \cdot 0.3 = 0.7^2 \cdot 0.3 = 0.147

    Result: Probability is 14.7%14.7\%.


4. Poisson Distribution

  • Definition: Models the number of events occurring in a fixed interval of time or space.

  • Formula:

    P(X=k)=λkeλk!,k=0,1,2,P(X = k) = \frac{\lambda^k e^{-\lambda}}{k!}, \quad k = 0, 1, 2, \dots

    Where:

    • λ\lambda: Average rate of occurrence.
    • kk: Number of events.
  • Example in Civil Engineering: Number of vehicles crossing a bridge in an hour.

  • Numerical Example:

    • Average number of vehicles per hour (λ\lambda) = 5.
    • Find P(X=3)P(X=3), the probability of 3 vehicles crossing: P(X=3)=53e53!=1250.006760.14P(X=3) = \frac{5^3 e^{-5}}{3!} = \frac{125 \cdot 0.0067}{6} \approx 0.14

    Result: Probability is 14%14\%.


Continuous Probability Distributions

1. Uniform Distribution

  • Definition: Models variables uniformly distributed over an interval [a,b][a, b].

  • Formula:

    f(x)={1ba,axb0,otherwisef(x) = \begin{cases} \frac{1}{b-a}, & a \leq x \leq b \\ 0, & \text{otherwise} \end{cases}
  • Example in Civil Engineering: The thickness of a concrete slab uniformly varying between 10 cm and 20 cm.


2. Normal Distribution

  • Definition: Models natural phenomena, with a symmetric bell-shaped curve.

  • Formula:

    f(x)=12πσ2e(xμ)22σ2f(x) = \frac{1}{\sqrt{2\pi\sigma^2}} e^{-\frac{(x-\mu)^2}{2\sigma^2}}

    Where:

    • μ\mu: Mean.
    • σ2\sigma^2: Variance.
  • Example in Civil Engineering: Variations in compressive strength of concrete.

  • Numerical Example:

    • Compressive strength (XX) is normally distributed with μ=40\mu = 40 MPa and σ=5\sigma = 5 MPa.
    • Find P(35X45)P(35 \leq X \leq 45):
      • Standardize XX to ZZ:

        Z=XμσZ = \frac{X - \mu}{\sigma}

        For X=35X=35, Z=35405=1Z = \frac{35-40}{5} = -1.
        For X=45X=45, Z=45405=1Z = \frac{45-40}{5} = 1.

      • Use standard normal tables:

        P(1Z1)=P(Z1)P(Z1)P(-1 \leq Z \leq 1) = P(Z \leq 1) - P(Z \leq -1) P(Z1)=0.8413,P(Z1)=0.1587P(Z \leq 1) = 0.8413, \quad P(Z \leq -1) = 0.1587 P(1Z1)=0.84130.1587=0.6826P(-1 \leq Z \leq 1) = 0.8413 - 0.1587 = 0.6826

    Result: Probability is 68.26%68.26\%.


Applications in Civil Engineering

  1. Bernoulli Distribution: Checking soil suitability in a binary pass/fail test.
  2. Binomial Distribution: Predicting the number of defective items in a batch.
  3. Geometric Distribution: Determining the number of tests to find a viable construction site.
  4. Poisson Distribution: Estimating vehicle counts or defects over a time period.
  5. Normal Distribution: Modeling variability in material properties like tensile strength or elasticity.

Conclusion

Understanding probability distributions is critical in civil engineering for risk assessment, design, and decision-making under uncertainty. These distributions allow engineers to quantify variability and make informed decisions.

UNIT 1 Conditional Probability

 

Lecture Notes: Conditional Probability


Definition

Conditional probability measures the likelihood of an event occurring given that another event has already occurred. It helps analyze dependencies between events.

Formula

If AA and BB are two events, and P(B)>0P(B) > 0, the conditional probability of AA given BB is:

P(AB)=P(AB)P(B)P(A|B) = \frac{P(A \cap B)}{P(B)}

Where:

  • P(AB)P(A|B): Probability of AA given BB
  • P(AB)P(A \cap B): Probability of both AA and BB occurring
  • P(B)P(B): Probability of BB occurring

Solved Problems


Problem 1

Question: In a class of 50 students, 30 study Mathematics, and 20 study both Mathematics and Physics. If a student studies Physics, what is the probability that they also study Mathematics?
Solution:

P(Mathematics | Physics)=P(MathematicsPhysics)P(Physics)P(\text{Mathematics | Physics}) = \frac{P(\text{Mathematics} \cap \text{Physics})}{P(\text{Physics})} P(Physics)=2050=0.4, P(MathematicsPhysics)=2050=0.4P(\text{Physics}) = \frac{20}{50} = 0.4,\ P(\text{Mathematics} \cap \text{Physics}) = \frac{20}{50} = 0.4 P(Mathematics | Physics)=0.40.4=1P(\text{Mathematics | Physics}) = \frac{0.4}{0.4} = 1

Answer: P(Mathematics | Physics)=1P(\text{Mathematics | Physics}) = 1


Problem 2

Question: A die is rolled. If the outcome is an even number, what is the probability that it is a 4?
Solution:

P(4Even)=P(4Even)P(Even)P(4 | \text{Even}) = \frac{P(4 \cap \text{Even})}{P(\text{Even})}
  • P(4Even)=P(4)=16P(4 \cap \text{Even}) = P(4) = \frac{1}{6}
  • P(Even)=36=12P(\text{Even}) = \frac{3}{6} = \frac{1}{2}
P(4Even)=1612=13P(4 | \text{Even}) = \frac{\frac{1}{6}}{\frac{1}{2}} = \frac{1}{3}

Answer: P(4Even)=13P(4 | \text{Even}) = \frac{1}{3}


Problem 3

Question: A box contains 5 red, 3 green, and 2 blue balls. If a ball is randomly picked and found to be red, what is the probability that it is one of the 3 red balls numbered 1, 2, or 3?
Solution:

P(Numbered Red | Red)=P(Numbered RedRed)P(Red)P(\text{Numbered Red | Red}) = \frac{P(\text{Numbered Red} \cap \text{Red})}{P(\text{Red})}
  • P(Red)=510=0.5P(\text{Red}) = \frac{5}{10} = 0.5
  • P(Numbered RedRed)=310=0.3P(\text{Numbered Red} \cap \text{Red}) = \frac{3}{10} = 0.3
P(Numbered Red | Red)=0.30.5=0.6P(\text{Numbered Red | Red}) = \frac{0.3}{0.5} = 0.6

Answer: P(Numbered Red | Red)=0.6P(\text{Numbered Red | Red}) = 0.6


Problem 4

Question: A student is selected randomly. The probability that they study both Chemistry and Biology is 0.2, and the probability that they study Biology is 0.5. What is the probability that a student studies Chemistry, given that they study Biology?
Solution:

P(Chemistry | Biology)=P(ChemistryBiology)P(Biology)P(\text{Chemistry | Biology}) = \frac{P(\text{Chemistry} \cap \text{Biology})}{P(\text{Biology})} P(Chemistry | Biology)=0.20.5=0.4P(\text{Chemistry | Biology}) = \frac{0.2}{0.5} = 0.4

Answer: P(Chemistry | Biology)=0.4P(\text{Chemistry | Biology}) = 0.4


Problem 5

Question: In a company, 60% of employees are male, and 70% of males are engineers. What is the probability that a randomly chosen engineer is male?
Solution: Let MM = Male, EE = Engineer.

P(ME)=P(ME)P(E)P(M|E) = \frac{P(M \cap E)}{P(E)}
  • P(M)=0.6,P(EM)=0.7P(M) = 0.6, P(E|M) = 0.7
P(ME)=P(M)P(EM)=0.60.7=0.42P(M \cap E) = P(M) \cdot P(E|M) = 0.6 \cdot 0.7 = 0.42

Assume P(E)=0.5P(E) = 0.5 (given context or additional data).

P(ME)=0.420.5=0.84P(M|E) = \frac{0.42}{0.5} = 0.84

Answer: P(ME)=0.84P(M|E) = 0.84


Summary

  1. Conditional probability measures the dependency of events.
  2. Formula: P(AB)=P(AB)P(B)P(A|B) = \frac{P(A \cap B)}{P(B)}.
  3. Practice problems enhance understanding of real-life applications.

UNIT I Bayes Theorem

 

Bayes' Theorem for Civil Engineering Students with a Rural Background

UNIT II Statistical Probability

Statistical Probability Distributions for Civil Engineering Applications Statistical probability distributions –Students’ t, Chi – square an...