Random Variables | Engineering Mathematics - Civil Engineering (CE) PDF Download

Random Variable

Random variable is basically a function which maps from the set of sample space to set of real numbers. The purpose is to get an idea about result of a particular situation where we are given probabilities of different outcomes. See below example for more clarity.

Example :

Suppose that two coins (unbiased) are tossed 

X = number of heads. [X is a random variable or function]

Here, the sample space S = {HH, HT, TH, TT}. 

The output of the function will be :
 X(HH) = 2
 X(HT) = 1
 X(TH) = 1
 X(TT) = 0

Formal definition :
X: S -> R
X = random variable (It is usually denoted using capital letter)
S = set of sample space
R = set of real numbers

Suppose a random variable X takes m different values i.e. sample space X = {x1, x2, x3………xm} with probabilities P(X=xi) = pi; where 1 ≤ i ≤ m. The probabilities must satisfy the following conditions :

  1. 0 <= pi <= 1; where 1 <= i <= m
  2. p1 + p2 + p3 + ……. + pm = 1 Or we can say 0 ≤ pi ≤ 1 and ∑pi = 1.

Hence possible values for random variable X are 0, 1, 2.
X = {0, 1, 2} where m = 3
P(X=0) = probability that number of heads is 0 = P(TT) = 1/2*1/2 = 1⁄4.
P(X=1) = probability that number of heads is 1 = P(HT | TH) = 1/2*1/2 + 1/2*1/2 = 1⁄2.
P(X=2) = probability that number of heads is 2 = P(HH) = 1/2*1/2 = 1⁄4.

Here, you can observe that
1) 0 ≤ p1, p2, p3 ≤ 1
2) p1 + p2 + p3 = 1/4 + 2/4 + 1/4 = 1

Example :
Suppose a dice is thrown X = outcome of the dice. Here, the sample space S = {1, 2, 3, 4, 5, 6}. The output of the function will be:

  1. P(X=1) = 1/6
  2. P(X=2) = 1/6
  3. P(X=3) = 1/6
  4. P(X=4) = 1/6
  5. P(X=5) = 1/6
  6. P(X=6) = 1/6

See if there is any random variable then there must be some distribution associated with it.

Random Variables | Engineering Mathematics - Civil Engineering (CE)

Discrete Random Variable:

A random variable X is said to be discrete if it takes on finite number of values. The probability function associated with it is said to be PMF = Probability mass function.
P(xi) = Probability that X = xi = PMF of X = pi.

  1. 0 ≤ pi ≤ 1.
  2. ∑pi = 1 where sum is taken over all possible values of x.

The examples given above are discrete random variables.

Example:- Let S = {0, 1, 2}

Random Variables | Engineering Mathematics - Civil Engineering (CE)

Find the value of P (X=0):
Sol:- We know that sum of all probabilities is equals to 1.
==> p1 + p2 + p3 = 1
==> p1 + 0.3 + 0.5 = 1
==> p1 = 0.2

Continuous Random Variable:

A random variable X is said to be continuous if it takes on infinite number of values. The probability function associated with it is said to be PDF = Probability density function
PDF: If X is continuous random variable.
P (x < X < x + dx) = f(x)*dx.

  1. 0 ≤ f(x) ≤ 1; for all x
  2. ∫ f(x) dx = 1 over all values of x

Then P (X) is said to be PDF of the distribution.

Example:- Compute the value of P (1 < X < 2).

Such that f(x) = k*x^3; 0 ≤ x ≤ 3
                        = 0; otherwise
 f(x) is a density function

Solution:- If a function f is said to be density function, then sum of all probabilities is equals to 1. Since it is a continuous random variable Integral value is 1 overall sample space s.
==> K*[x^4]/4 = 1 [Note that [x^4]/4 is integral of x^3]
==> K*[3^4 – 0^4]/4 = 1
==> K = 4/81
The value of P (1 < X < 2) = k*[X^4]/4 = 4/81 * [16-1]/4 = 15/81.

The document Random Variables | Engineering Mathematics - Civil Engineering (CE) is a part of the Civil Engineering (CE) Course Engineering Mathematics.
All you need of Civil Engineering (CE) at this link: Civil Engineering (CE)
65 videos|120 docs|94 tests

Top Courses for Civil Engineering (CE)

FAQs on Random Variables - Engineering Mathematics - Civil Engineering (CE)

1. What is a random variable in computer science engineering?
Ans. In computer science engineering, a random variable is a variable that can take on different values with certain probabilities. It represents the outcomes of a random experiment or process in a computational context. These variables are commonly used to model and analyze various phenomena, such as data inputs, network traffic, or system performance.
2. How are random variables used in computer science engineering?
Ans. Random variables are extensively used in computer science engineering for modeling and analyzing systems. They help in understanding the behavior and performance of computational processes, such as algorithms, protocols, or simulations. By assigning probabilities to different values, random variables allow engineers to make predictions, optimize system parameters, and assess the reliability and efficiency of computer systems.
3. What are the types of random variables commonly used in computer science engineering?
Ans. In computer science engineering, two types of random variables are commonly used: discrete random variables and continuous random variables. Discrete random variables can take on a countable number of values, while continuous random variables can take on any value within a certain range. Both types are essential for modeling and analyzing different aspects of computer systems, depending on the nature of the problem being addressed.
4. How are probabilities assigned to random variables in computer science engineering?
Ans. Probabilities are assigned to random variables in computer science engineering using probability distributions. These distributions describe the likelihood of each possible value that a random variable can take. For discrete random variables, probability mass functions (PMFs) are used to assign probabilities to each value. In the case of continuous random variables, probability density functions (PDFs) are used to describe the probabilities over a range of values.
5. Can you provide an example of how random variables are used in computer science engineering?
Ans. Certainly! One example is the analysis of network traffic in computer networks. By modeling the packet arrival times as a random variable, engineers can study the performance of different congestion control algorithms or routing protocols. The random variable can be used to calculate statistics such as mean packet delay, packet loss probability, or network throughput. This analysis helps in designing more efficient and reliable network systems.
65 videos|120 docs|94 tests
Download as PDF
Explore Courses for Civil Engineering (CE) exam

Top Courses for Civil Engineering (CE)

Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev
Related Searches

Sample Paper

,

Summary

,

video lectures

,

past year papers

,

MCQs

,

Semester Notes

,

study material

,

Random Variables | Engineering Mathematics - Civil Engineering (CE)

,

practice quizzes

,

Important questions

,

Random Variables | Engineering Mathematics - Civil Engineering (CE)

,

Previous Year Questions with Solutions

,

ppt

,

Extra Questions

,

shortcuts and tricks

,

mock tests for examination

,

pdf

,

Objective type Questions

,

Viva Questions

,

Exam

,

Free

,

Random Variables | Engineering Mathematics - Civil Engineering (CE)

;