Spaces:
Sleeping
Sleeping
Update pages/3_Types Of Probability.py
Browse files
pages/3_Types Of Probability.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
-
st.header(":
|
| 4 |
multi ='''Probability is a measure of the likelihood that a particular event will occur,
|
| 5 |
expressed as a number between 0 and 1.
|
| 6 |
A probability of 0 indicates that the event will not happen, while a probability of 1 indicates certainty that the event will occur.
|
|
@@ -10,7 +10,7 @@ st.markdown(multi)
|
|
| 10 |
st.write("The formula for probability is:")
|
| 11 |
st.latex(r'''P(A)=\frac{Number of favorable outcomes}{Total number of possible outcomes}''')
|
| 12 |
|
| 13 |
-
st.subheader(":violet[Probability measures are
|
| 14 |
|
| 15 |
st.markdown(":grey-background[***1.Empirical Probability:***]")
|
| 16 |
st.write("Empirical probability is also known as Experimental probability. Based on the actual results of experiments or observations. It is calculated by dividing the number of times an event occurs by the total number of trials.")
|
|
@@ -28,6 +28,6 @@ Theoretical probability purely based on possible outcomes.
|
|
| 28 |
'''
|
| 29 |
st.markdown(multi)
|
| 30 |
st.latex(r'''P(A)=\left(\frac{Number of favorable outcomes}{Total number of possible outcomes}\right)''')
|
| 31 |
-
st.write(":blue[-
|
| 32 |
st.latex(r'''p(3)=\frac{1}{6}''')
|
| 33 |
st.write("This assumes that each face of the die is equally likely to land face up. Theoretical probability does not require actual experiments or trials but is based purely on the known possible outcomes.")
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
+
st.header(":red[PROBABILITY]")
|
| 4 |
multi ='''Probability is a measure of the likelihood that a particular event will occur,
|
| 5 |
expressed as a number between 0 and 1.
|
| 6 |
A probability of 0 indicates that the event will not happen, while a probability of 1 indicates certainty that the event will occur.
|
|
|
|
| 10 |
st.write("The formula for probability is:")
|
| 11 |
st.latex(r'''P(A)=\frac{Number of favorable outcomes}{Total number of possible outcomes}''')
|
| 12 |
|
| 13 |
+
st.subheader(":violet[Probability measures are of two types.]")
|
| 14 |
|
| 15 |
st.markdown(":grey-background[***1.Empirical Probability:***]")
|
| 16 |
st.write("Empirical probability is also known as Experimental probability. Based on the actual results of experiments or observations. It is calculated by dividing the number of times an event occurs by the total number of trials.")
|
|
|
|
| 28 |
'''
|
| 29 |
st.markdown(multi)
|
| 30 |
st.latex(r'''P(A)=\left(\frac{Number of favorable outcomes}{Total number of possible outcomes}\right)''')
|
| 31 |
+
st.write(":blue[- Example:] if you roll a fair six-sided die, the theoretical probability of rolling a 3 is:")
|
| 32 |
st.latex(r'''p(3)=\frac{1}{6}''')
|
| 33 |
st.write("This assumes that each face of the die is equally likely to land face up. Theoretical probability does not require actual experiments or trials but is based purely on the known possible outcomes.")
|