Spaces:
Sleeping
Sleeping
Update pages/2_What is Probability?.py
Browse files
pages/2_What is Probability?.py
CHANGED
|
@@ -99,5 +99,31 @@ In this case empirical probability is not used so that we make assumption (i.e.,
|
|
| 99 |
---> **Empirical Probability = Theoretical probability at infinity**'''
|
| 100 |
st.markdown(multi)
|
| 101 |
st.subheader(":green[1.Theoretical Probability]")
|
| 102 |
-
multi = '''
|
| 103 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 99 |
---> **Empirical Probability = Theoretical probability at infinity**'''
|
| 100 |
st.markdown(multi)
|
| 101 |
st.subheader(":green[1.Theoretical Probability]")
|
| 102 |
+
multi = '''Theoretical probability is used when number of trials increases
|
| 103 |
+
|
| 104 |
+
It is the ratio of total number of favourable outcomes with respect to total number of outcomes
|
| 105 |
+
|
| 106 |
+
---> Theoretical probability can be defined as the number of favorable outcomes divided by the total number of possible outcomes
|
| 107 |
+
|
| 108 |
+
---> It is independent of trials
|
| 109 |
+
|
| 110 |
+
---> Theoretical probability depends on sample space'''
|
| 111 |
+
st.markdown(multi)
|
| 112 |
+
st.subheader(":red[Theoretical probability formula:]")
|
| 113 |
+
st.image("https://cdn-uploads.huggingface.co/production/uploads/66bde9bf3c885d04498227a0/GbM1BDKgecP9SrT479_zs.png",width = 400)
|
| 114 |
+
|
| 115 |
+
multi = '''**Example:**
|
| 116 |
+
|
| 117 |
+
Suppose a person has 30 raffle tickets and in total 500 tickets.
|
| 118 |
+
What is the probability of a person winning a raffle prize?
|
| 119 |
+
|
| 120 |
+
---> Number of favorable outcomes - As there are 30 raffle tickets thus, 30 will be the number of desired outcomes.
|
| 121 |
+
|
| 122 |
+
---> Total possible outcomes - As 500 total tickets were sold thus, 500 will be the number of total possible outcomes.\
|
| 123 |
+
|
| 124 |
+
---> Probability(person winning a raffle prize) = 30 / 500
|
| 125 |
+
|
| 126 |
+
---> Therefore, 30 / 500 = 0.06. This shows that the probability of a person winning a raffle prize is 0.06.'''
|
| 127 |
+
st.markdown(multi)
|
| 128 |
+
|
| 129 |
+
|