COMMENT BELOW : #ProbabilityRocks
#myCODEnotein
Timestamps ###
00:00 - Introduction
01:41 - What is random module ?
02:15 - What is choice method ?
03:13 - Starting the program on vscode
03:29 - Importing Random Module
03:27 - Creating a dictionary to store no of times any outcome appears
04:03 - Asking the User No. Of Times Coin Is To Be Tossed
04:35 - Tossing the coin through a for loop
05:15 - Calculating the probability
05:55 - Result Time
In this video i am going to toss a coin 1Lakh times
to check probability in maths.
BUT BUT BUT
i am not gonna do that physically
instead virtually on a computer with the help
of my python powers and with the help of
random module in python.
We will use choice function of random module.
choice function of random module takes
a sequence(list/tuple) as an argument and
returns an element randomly from it.
Using that we will randomly get head or tails
and store the no. of times each comes in a
dictionary.
And then we will use the formula of calculating
probability i.e
P(E) = Favourable Outcomes / Total Outcomes.
Using this we will calculate the probability and
will get the desired result