Spaces:
Sleeping
Sleeping
Update pages/2_Events.py
Browse files- pages/2_Events.py +16 -1
pages/2_Events.py
CHANGED
|
@@ -87,6 +87,9 @@ st.subheader("SIMPLE EVENT")
|
|
| 87 |
st.markdown("""An event is said to be a simple event when the outcome of an event is 1.
|
| 88 |
""",unsafe_allow_html=True)
|
| 89 |
st.title("Example of Simple Event")
|
|
|
|
|
|
|
|
|
|
| 90 |
Trail_5 = st.number_input("Number of Trials:", min_value=1, max_value=100, value=7,key="Trail_5")
|
| 91 |
if st.button('Start the Experiment: Will it Rain or Not?',key="start_experiment_4"):
|
| 92 |
st.write(f"Running {Trail_5} trials...")
|
|
@@ -102,6 +105,9 @@ if st.button('Start the Experiment: Will it Rain or Not?',key="start_experiment_
|
|
| 102 |
st.subheader("COMPOUND EVENT")
|
| 103 |
st.markdown("An event is said to be a compoud event when an event gives more than on event.",unsafe_allow_html=True)
|
| 104 |
st.title("Example of Compound Event")
|
|
|
|
|
|
|
|
|
|
| 105 |
numbers_input_4 = st.text_input("Enter a list of numbers separated by commas (e.g., 1, 2, 3, 4, 5):", key="numbers_input_4")
|
| 106 |
if numbers_input_4:
|
| 107 |
parts=numbers_input_4.split(",")
|
|
@@ -113,8 +119,11 @@ if numbers_input_4:
|
|
| 113 |
set1 = [i for i in list1 if i % 2 == 0]
|
| 114 |
st.write(f"Event: Rolling a die and getting even number:{set1}")
|
| 115 |
st.subheader("Impossible Event")
|
| 116 |
-
st.markdown("""An Event is said to be
|
| 117 |
st.title("Example of Imposible Event")
|
|
|
|
|
|
|
|
|
|
| 118 |
numbers_input_5 = st.text_input("Enter a list of numbers separated by commas (e.g., 1, 2, 3, 4, 5):", key="numbers_input_5")
|
| 119 |
if numbers_input_5:
|
| 120 |
parts=numbers_input_5.split(",")
|
|
@@ -129,6 +138,9 @@ if numbers_input_5:
|
|
| 129 |
st.subheader("Independent Events")
|
| 130 |
st.markdown("""An event is said to be independent event when the probability of occurance of one event doesnot effect the probability of other event.""",unsafe_allow_html=True)
|
| 131 |
st.title("Tossing a coin and Rain prediction.")
|
|
|
|
|
|
|
|
|
|
| 132 |
Trail_6 = st.number_input("Number of Trials:", min_value=1, max_value=100, value=7,key="Trail_6")
|
| 133 |
if st.button('Start the Experiment: Will it Rain or Not? and Tossing a Coin',key="start_experiment_5"):
|
| 134 |
st.write(f"Running {Trail_6} trials...")
|
|
@@ -149,6 +161,9 @@ st.subheader("Dependent Event")
|
|
| 149 |
st.markdown("""An event is said to be dependent event ,if the probability of occurance of one event effects the probability of another event.
|
| 150 |
""",unsafe_allow_html=True)
|
| 151 |
st.title("Randomly picking a ball with replacement.")
|
|
|
|
|
|
|
|
|
|
| 152 |
red_balls = st.number_input("Number of Red Balls:", min_value=1, max_value=10, value=5)
|
| 153 |
blue_balls = st.number_input("Number of Blue Balls:", min_value=1, max_value=10, value=5)
|
| 154 |
total_balls = red_balls + blue_balls
|
|
|
|
| 87 |
st.markdown("""An event is said to be a simple event when the outcome of an event is 1.
|
| 88 |
""",unsafe_allow_html=True)
|
| 89 |
st.title("Example of Simple Event")
|
| 90 |
+
st.write("""
|
| 91 |
+
This simple experiment will tell you Simple Event when you click button
|
| 92 |
+
""")
|
| 93 |
Trail_5 = st.number_input("Number of Trials:", min_value=1, max_value=100, value=7,key="Trail_5")
|
| 94 |
if st.button('Start the Experiment: Will it Rain or Not?',key="start_experiment_4"):
|
| 95 |
st.write(f"Running {Trail_5} trials...")
|
|
|
|
| 105 |
st.subheader("COMPOUND EVENT")
|
| 106 |
st.markdown("An event is said to be a compoud event when an event gives more than on event.",unsafe_allow_html=True)
|
| 107 |
st.title("Example of Compound Event")
|
| 108 |
+
st.write("""
|
| 109 |
+
This simple experiment will tell you Compound Event when you click button
|
| 110 |
+
""")
|
| 111 |
numbers_input_4 = st.text_input("Enter a list of numbers separated by commas (e.g., 1, 2, 3, 4, 5):", key="numbers_input_4")
|
| 112 |
if numbers_input_4:
|
| 113 |
parts=numbers_input_4.split(",")
|
|
|
|
| 119 |
set1 = [i for i in list1 if i % 2 == 0]
|
| 120 |
st.write(f"Event: Rolling a die and getting even number:{set1}")
|
| 121 |
st.subheader("Impossible Event")
|
| 122 |
+
st.markdown("""An Event is said to be impossible event when there is no chance of occuring desired event""",unsafe_allow_html=True)
|
| 123 |
st.title("Example of Imposible Event")
|
| 124 |
+
st.write("""
|
| 125 |
+
This simple experiment will tell you Impossible Event when you click button
|
| 126 |
+
""")
|
| 127 |
numbers_input_5 = st.text_input("Enter a list of numbers separated by commas (e.g., 1, 2, 3, 4, 5):", key="numbers_input_5")
|
| 128 |
if numbers_input_5:
|
| 129 |
parts=numbers_input_5.split(",")
|
|
|
|
| 138 |
st.subheader("Independent Events")
|
| 139 |
st.markdown("""An event is said to be independent event when the probability of occurance of one event doesnot effect the probability of other event.""",unsafe_allow_html=True)
|
| 140 |
st.title("Tossing a coin and Rain prediction.")
|
| 141 |
+
st.write("""
|
| 142 |
+
This simple experiment will tell you Independent Event when you click button
|
| 143 |
+
""")
|
| 144 |
Trail_6 = st.number_input("Number of Trials:", min_value=1, max_value=100, value=7,key="Trail_6")
|
| 145 |
if st.button('Start the Experiment: Will it Rain or Not? and Tossing a Coin',key="start_experiment_5"):
|
| 146 |
st.write(f"Running {Trail_6} trials...")
|
|
|
|
| 161 |
st.markdown("""An event is said to be dependent event ,if the probability of occurance of one event effects the probability of another event.
|
| 162 |
""",unsafe_allow_html=True)
|
| 163 |
st.title("Randomly picking a ball with replacement.")
|
| 164 |
+
st.write("""
|
| 165 |
+
This simple experiment will tell you Dependent Event when you click button
|
| 166 |
+
""")
|
| 167 |
red_balls = st.number_input("Number of Red Balls:", min_value=1, max_value=10, value=5)
|
| 168 |
blue_balls = st.number_input("Number of Blue Balls:", min_value=1, max_value=10, value=5)
|
| 169 |
total_balls = red_balls + blue_balls
|