shwetashweta05 commited on
Commit
9ba5b3b
·
verified ·
1 Parent(s): 743174a

Update app/Statistics.py

Browse files
Files changed (1) hide show
  1. app/Statistics.py +32 -0
app/Statistics.py CHANGED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ st.subheader("**Terminology**")
4
+ st.write("A set is a collection of well defined(no element occurs more than ones)elements.It is denoted by a capital letter.the elements are representd by a lower case letter with subscripts.A set can be represented by X = {x1,x2,x3....xn},where X is a set,x1,x2,x3,....xn are elements and the two braces specifies the set.")
5
+
6
+ st.subheader("**Sample Spaces**")
7
+ st.write("The set of all possible outcomes of the experiment is called sample space.It is denoted by S.The sample space is the universal set for the given experiment.For each trial of an experiment there is an outcome.for example,the experiment,tossing an coin has two outcomes-Head(H)or tails(T).the sample space is {H,T}.another experment,thrwoing a single die has six outcomes.The sample space is {1,2,3,4,5,6}.")
8
+
9
+ st.subheader("**Two types of sample- 1.Discrete sample space and 2.Continuous sample space**")
10
+
11
+ st.subheader("Discrete sample space")
12
+ st.write("A sample space is discrete and finite.the set in the sample space have finite numbers of elements.**Example-**The set{1,2,3,4,5}is a finite set.If the sets in the sample space have infinite number of elements,then the sample space is discrete and infinite.**Example-**the set{1,2,3,...}is an infinite set.")
13
+
14
+ st.subheader("**Events**")
15
+ st.write("An event is set of possible outcomes of an experiment.It is the subset of the sample space.Example,"draw aspade card from a deck of 52 cards",there are 13 possible outcomes.Here "draw a spade card"is an event"If a sample space has a set of N elements,the number fevents(subsets)are 2n.Drawing cards from a deck of 52 cards has 2(n-52) events.
16
+
17
+ st.subheader("**Types of Events in Probability:**")
18
+
19
+ st.subheader("Impossible Events")
20
+ st.write("the probability of occurrence of an event is 0, such an event is called an impossible event.")
21
+
22
+ st.subheader("Simple Events")
23
+ st.write("Any event consisting of a single point of the sample space is known as a simple event in probability. For example, if S = {56 , 78 , 96 , 54 , 89} and E = {78} then E is a simple event.")
24
+
25
+ st.subheader("Compound Events")
26
+ st.write("any event consists of more than one single point of the sample space then such an event is called a compound event. Considering the same example again, if S = {56 ,78 ,96 ,54 ,89}, E1 = {56 ,54 }, E2 = {78 ,56 ,89 } then, E1 and E2 represent two compound events.")
27
+
28
+ st.subheader("Independent Events and Dependent Events")
29
+ st.write("the occurrence of any event is completely unaffected by the occurrence of any other event, such events are known as an independent event in probability and the events which are affected by other events are known as dependent events.")
30
+
31
+
32
+