FE501 – 1130

Random Variables and How to Describe Random Variables

Random Variable

Random variables are not like the decision variables which we have mentioned in LP or MP problems.

Random variable is a variable who’s values are not known in advance, but it occurs with respect to a distibution, random variables do not take a certain value, there is some uncertainty, therefore the value of this random variable is not certain, and in general it follows a probability distribution.

 

In general there are two types of random variables:

  1. Discrete R.V.
  2. Continuous R.V.

Discrite R.V.

There are countable amount of random variables.

Expl.

Roll a 6 face die twice, the X( sum = 6) is countable.

img

Continous R.V.

The number of outputs of random variable can take is infinite.

Expl.

X(amount of rain (ml)) in Istanbul in Nov.30. There are infinite possible values of X, so X is continous R.V.

 

Why to introduce Random Variable ?

image-20221217114959803

image-20221217115022049

Random variable is the most fundamental key to the modern probability[^1] and uncertainty theory.

Important Probability Rules and Laws

Law of Total Probability

P(A)=P(A|B1)P(B1)+P(A|B2)P(B2)+...+P(A|Bn)P(Bn)P(A)=i=1nP(Bi)P(A|Bi)

image-20221217202148896

Note: What is the total probability of getting some event A?

The total probability of getting A is the sum (probability of selecting each event B and then selecting A from each B)

First do what then do what? Guessing

Bayes’ Theory

P(A|B)=P(B|A)P(A)P(B)

image-20221217202731728

Note: If known that B Happend, then what is the probability that we selected A?

The probability of A given B is true equalis the ratio of selecting A then getting B over total probabilities of getting B.

Something already happend, maybe because of what? Reasioning

Counting Principle

image-20221217203708244

#Total=n1×n2×n3×...×ni

Permutations

Permutations: Number of ways of ordering n elements:

#=n!

Subsets

Number of subsets of {1,2,.....n}:

# ofsubsets=2n

Counting Combination

(kn)=n!(nk)!  k!

Number of k-element subsets of a given n-element set

(nn)=1 (the set itself)(0n)=1 (the zero set) Θ
k=0n(kn)=(0n)+(1n)+(2n)++(nn)=number of all subsets=2n

 

PMF and PDF

image-20221218205404506

PMF

PMF: Probability Mass Function

PDF

PDF: Probability Density Function

CleanShot 2022-12-18 at 20.51.45

CDF

CDF
Binomial Distribution
Poisson Distribution