A distribution, where each outcome has probability of equally, likely chances and they are impossible beyond a range.
Consider a draw of cards(suit) from a deck of playing cards, each suit (clubs, hearts, diamonds & spades) will have a probability of equally, likely chances of 1/4.
The number of values are finite for each suit. We can not get other than 2 to 10, ace, jack, queen & king.
Consider a roll of a die having 6 faces (1,2,3,4,5 & 6), each face will have a probability of equally, likely chances of 1/6.
The number of values are finite viz., 1,2,3,4,5 & 6. We can not get 1.2, 8, 2.6 or some other value.
Consider a roll of a die having 6 faces (1,2,3,4,5 & 6), each face will have a probability of equally, likely chances of 1/6.
The number of values are finite viz., 1,2,3,4,5 & 6. We can not get 1.2, 8, 2.6 or some other value.
The probability mass function(PMF), which gives the probability of x
The below images are explaining the PMF of single fair dice & two fair dice.
Here the dice are fair and they are not biased.
Notice the change in the shape of the graph. When the number of dice increases, the curve get closer to bell shape and the curve widens.
It always approximates to normal distribution.
The cumulative distribution function(CDF), which gives the probability that the variable less than or equal to the value x
The below images are explaining the CDF of single fair dice & two fair dice.
Here the dices are fair & they are not biased.
If X is a discrete random variable then the Population Mean
If X is a discrete random variable then the Population variance
Mean & variance of a single dice are
Mean = (1 * 1/6) + (2 * 1/6) + (3 * 1/6) + (4 * 1/6) + (5 * 1/6) + (6 * 1/6) = 21/6 = 3.5
The same can be calculated using below formula
Mean = (n + n * 6)/2
Here, 6 - is the number of faces on a dice & n - is the number of dice
So, Mean = (1+1*6)/2 = 7/2 = 3.5
Variance = [(1-3.5)^2 * 1/6 + (2-3.5)^2 * 1/6 + (3-3.5)^2 * 1/6 + (4-3.5)^2 * 1/6 + (5-3.5)^2 * 1/6 + (6-3.5)^2 * 1/6
= 70/24 = 35/12 = 2.91
The same can be calculated using below formula
Mean = n * 35/12
n - is the number of dice
So, Variance = 1* 35/12 = 2.91
Mean & variance of a 2 & 3 dice are
For, 2 Dice
Mean = (2+2*6)/ = 14/2 = 7
Variance = 2 * 35/12 = 5.83
For, 3 Dice
Mean = (3+3*6)/ = 21/2 = 10.5
Variance = 3 * 35/12 = 8.75
Consider a random variable(a random number generation) between any two numbers. It can take any real numbers with in the range.
The number of values are finite with in the range and they are continuous.
These variables will have probability of equally likely chances with in a range at the same time the chances are impossible beyond the specified range.
The below image represents a continuous uniform distribution and it is generated using the below specified R-command
randomVariable <- runif(1000, min = -2, max = 2.5)
hist(randomVariable, density = 50, freq = FALSE, xlim = c(-3,3), ylim = c(0, 0.3))
curve(dunif(x, min = -2, max =2.5), from = -3, to = 3, n=1000, add = TRUE, col = "red", lwd=2)
1000 random numbers were generated between -2 & 2.5.
Minimum value ‘a’ = -2 & maximum value ‘b’ = 2.5.
Here,
Don't be in delusion, understand the reality from historical data | Copyright © 2020 theDataTalks