DOMMETI commited on
Commit
ab7c992
·
verified ·
1 Parent(s): ed77714

Update pages/2_Events.py

Browse files
Files changed (1) hide show
  1. pages/2_Events.py +13 -1
pages/2_Events.py CHANGED
@@ -98,4 +98,16 @@ if st.button('Start the Experiment: Will it Rain or Not?',key="start_experiment_
98
  p_no_rain_1=1/len(np.unique(list1))
99
  st.write(f"Event_1:Probability of having rain:{p_rain_1}")
100
  st.write(f"Event_1:Probability of having no_rain:{p_no_rain_1}")
101
- st.write(f"From the above example we can say that the simple event is giving only 1 outcome.")
 
 
 
 
 
 
 
 
 
 
 
 
 
98
  p_no_rain_1=1/len(np.unique(list1))
99
  st.write(f"Event_1:Probability of having rain:{p_rain_1}")
100
  st.write(f"Event_1:Probability of having no_rain:{p_no_rain_1}")
101
+ st.write(f"From the above example we can say that the simple event is giving only 1 outcome.")
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.")
104
+ st.title("Example of Compound Event")
105
+ list1=[1,2,3,4,5,6]
106
+ set1=set()
107
+ for i in list1:
108
+ if i%2==0:
109
+ set1.append(i)
110
+ else:
111
+ pass
112
+ st.write(f"Event: Rolling a die and getting even number:{set1}")
113
+