Spaces:
Sleeping
Sleeping
Update pages/1_Introduction to Probability.py
Browse files
pages/1_Introduction to Probability.py
CHANGED
|
@@ -7,19 +7,19 @@ st.subheader("1.Experiment",divider="red")
|
|
| 7 |
multi = '''Experiment is defines as it is a test or procedure which are carried out to discover something randomly .
|
| 8 |
It is a process to discover possible outcomes that specific outcome of the experiment cannot be predicted with certainty beforehand, as it depends on chance i.e., randomness
|
| 9 |
|
| 10 |
-
Randomness - The outcome is not certain and is determined by chance'''
|
| 11 |
st.markdown(multi)
|
| 12 |
|
| 13 |
multi = '''**Example**:
|
| 14 |
|
| 15 |
An exit poll is conducted where a random sample of voters is surveyed as they leave polling stations to ask how they voted
|
| 16 |
|
| 17 |
-
Experiment - Randomly surveying 100 voters from the population
|
| 18 |
|
| 19 |
-
Test/Procedure - If three candidates(A,B and C) are running, each voter can either vote for A, B or C.
|
| 20 |
So that for 100 voters there are many possible combinations of votes (assuming 50 votes for A, 30 for B, and 20 for C)
|
| 21 |
|
| 22 |
-
Outcome - Percentage of voters supporting each candidate is recorded
|
| 23 |
|
| 24 |
Using the poll results, they estimate the probability of each candidate winning in the election which helps to predict the overall outcomes.'''
|
| 25 |
st.markdown(multi)
|
|
@@ -28,25 +28,25 @@ st.subheader("2.Random Experiment",divider="red")
|
|
| 28 |
|
| 29 |
multi = '''If the experiment is said to be random it should follow 2 conditions inorder to become the random experiment
|
| 30 |
|
| 31 |
-
Condition-1 : After the experiment the result should have more than one outcome/discovery
|
| 32 |
|
| 33 |
-
Condition-2 : We can't interpret what is the outcome of experiment prior - the outcome can't be interpreted
|
| 34 |
|
| 35 |
As the above 2 conditions are followed or satisfied by the experiment it is known as Random Experiment.
|
| 36 |
|
| 37 |
-
Uncertainty : The outcome is unpredictable'''
|
| 38 |
st.markdown(multi)
|
| 39 |
|
| 40 |
multi = '''
|
| 41 |
**Example**
|
| 42 |
|
| 43 |
-
Experiment : Measuring the blood pressure of randomly selected individuals from a population to study hypertension
|
| 44 |
|
| 45 |
-
Random Experiment : The experiment involves measuring the blood pressure of a randomly selected group of people, ensuring that the sample represents the broader population.
|
| 46 |
|
| 47 |
-
Outcome : Each individual’s blood pressure is measured, and the results are recorded to identify how many participants fall within normal and hypertensive ranges.
|
| 48 |
|
| 49 |
-
Uncertainity : Each person’s blood pressure reading is unknown beforehand, and the variation in results across individuals represents the randomness of this experiment
|
| 50 |
|
| 51 |
By analyzing the data, they can estimate the prevalence of hypertension in the population and develop strategies.'''
|
| 52 |
st.markdown(multi)
|
|
@@ -54,35 +54,35 @@ st.markdown(multi)
|
|
| 54 |
st.subheader("3.Trial",divider="green")
|
| 55 |
multi = '''Trial is defined as a single execution of a random experiment.Each trial results in one outcome from a set of possible outcomes
|
| 56 |
|
| 57 |
-
Repetitive: Trials can be repeated multiple times under the same conditions.
|
| 58 |
|
| 59 |
-
Uncertain Outcome: The specific outcome of each trial cannot be predicted in advance.
|
| 60 |
|
| 61 |
-
It is simply a result between input and output'''
|
| 62 |
st.markdown(multi)
|
| 63 |
|
| 64 |
multi = '''**Example:**
|
| 65 |
|
| 66 |
-
Trial : Conducting a trial involves randomly selecting individual voters and asking them whom they plan to vote
|
| 67 |
|
| 68 |
-
Analysis : Possible outcomes include the names of all candidates
|
| 69 |
|
| 70 |
-
Outcome: Each voters response provides insight into their preferred candidate, but the exact choice of each individual cannot be predicted in advance'''
|
| 71 |
st.markdown(multi)
|
| 72 |
|
| 73 |
st.subheader("4.Outcome",divider="green")
|
| 74 |
multi = '''It is the result of a trial for a random experiment.
|
| 75 |
|
| 76 |
-
Specific Result : An outcome represents a particular result from the experiment
|
| 77 |
|
| 78 |
-
Randomness : The occurrence of any specific outcome cannot be predicted with certainty before the trial is conducted'''
|
| 79 |
st.markdown(multi)
|
| 80 |
|
| 81 |
multi = '''**Example:**
|
| 82 |
|
| 83 |
-
Experiment: Conducting a survey where individual voters are asked whom they plan to vote for in an upcoming election
|
| 84 |
|
| 85 |
-
Possible Outcomes:
|
| 86 |
|
| 87 |
Vote for Candidate A: If a voter indicates they plan to vote for Candidate A, that is one specific outcome.
|
| 88 |
|
|
@@ -94,21 +94,21 @@ st.markdown(multi)
|
|
| 94 |
st.subheader("5.Sample Space",divider="violet")
|
| 95 |
multi = '''Sample Space is defined as the set of all the possible outcomes of a random experiment.
|
| 96 |
|
| 97 |
-
Comprehensive : It includes every possible outcome of an experiment
|
| 98 |
|
| 99 |
-
Defined: The sample space is specific to the particular experiment being conducted
|
| 100 |
|
| 101 |
-
Can be Finite or Infinite: Depending on the nature of the experiment the sample space can have a finite number of outcomes (like rolling a die) or an infinite number (like measuring time).
|
| 102 |
|
| 103 |
-
As the trial increases the sample space also increases.'''
|
| 104 |
st.markdown(multi)
|
| 105 |
multi = '''**Example:**
|
| 106 |
|
| 107 |
-
Experiment: Predicting the weather for the next day based on data and models.
|
| 108 |
|
| 109 |
-
Sample Space: The possible outcomes might include conditions such as:
|
| 110 |
|
| 111 |
-
S = {Sunny, Rainy, Cloudy, Snowy, Windy}'''
|
| 112 |
st.markdown(multi)
|
| 113 |
|
| 114 |
st.subheader("6.Event",divider="violet")
|
|
@@ -125,12 +125,12 @@ st.markdown(multi)
|
|
| 125 |
|
| 126 |
multi = '''**Example:**
|
| 127 |
|
| 128 |
-
Experiment : A lottery involves drawing 5 numbers from a pool of 50 numbers (1 to 50)
|
| 129 |
|
| 130 |
-
Sample Space : Set of all the possible outcomes
|
| 131 |
S = {All combinations of 5 numbers from 1 to 50}
|
| 132 |
|
| 133 |
-
Event : Let E be the event of drawing at least one even number
|
| 134 |
|
| 135 |
This event includes any combination of 5 numbers that contains at least one even number
|
| 136 |
|
|
|
|
| 7 |
multi = '''Experiment is defines as it is a test or procedure which are carried out to discover something randomly .
|
| 8 |
It is a process to discover possible outcomes that specific outcome of the experiment cannot be predicted with certainty beforehand, as it depends on chance i.e., randomness
|
| 9 |
|
| 10 |
+
---> Randomness - The outcome is not certain and is determined by chance'''
|
| 11 |
st.markdown(multi)
|
| 12 |
|
| 13 |
multi = '''**Example**:
|
| 14 |
|
| 15 |
An exit poll is conducted where a random sample of voters is surveyed as they leave polling stations to ask how they voted
|
| 16 |
|
| 17 |
+
---> Experiment - Randomly surveying 100 voters from the population
|
| 18 |
|
| 19 |
+
---> Test/Procedure - If three candidates(A,B and C) are running, each voter can either vote for A, B or C.
|
| 20 |
So that for 100 voters there are many possible combinations of votes (assuming 50 votes for A, 30 for B, and 20 for C)
|
| 21 |
|
| 22 |
+
---> Outcome - Percentage of voters supporting each candidate is recorded
|
| 23 |
|
| 24 |
Using the poll results, they estimate the probability of each candidate winning in the election which helps to predict the overall outcomes.'''
|
| 25 |
st.markdown(multi)
|
|
|
|
| 28 |
|
| 29 |
multi = '''If the experiment is said to be random it should follow 2 conditions inorder to become the random experiment
|
| 30 |
|
| 31 |
+
**Condition-1 : After the experiment the result should have more than one outcome/discovery**
|
| 32 |
|
| 33 |
+
**Condition-2 : We can't interpret what is the outcome of experiment prior - the outcome can't be interpreted**
|
| 34 |
|
| 35 |
As the above 2 conditions are followed or satisfied by the experiment it is known as Random Experiment.
|
| 36 |
|
| 37 |
+
---> Uncertainty : The outcome is unpredictable'''
|
| 38 |
st.markdown(multi)
|
| 39 |
|
| 40 |
multi = '''
|
| 41 |
**Example**
|
| 42 |
|
| 43 |
+
---> Experiment : Measuring the blood pressure of randomly selected individuals from a population to study hypertension
|
| 44 |
|
| 45 |
+
---> Random Experiment : The experiment involves measuring the blood pressure of a randomly selected group of people, ensuring that the sample represents the broader population.
|
| 46 |
|
| 47 |
+
---> Outcome : Each individual’s blood pressure is measured, and the results are recorded to identify how many participants fall within normal and hypertensive ranges.
|
| 48 |
|
| 49 |
+
---> Uncertainity : Each person’s blood pressure reading is unknown beforehand, and the variation in results across individuals represents the randomness of this experiment
|
| 50 |
|
| 51 |
By analyzing the data, they can estimate the prevalence of hypertension in the population and develop strategies.'''
|
| 52 |
st.markdown(multi)
|
|
|
|
| 54 |
st.subheader("3.Trial",divider="green")
|
| 55 |
multi = '''Trial is defined as a single execution of a random experiment.Each trial results in one outcome from a set of possible outcomes
|
| 56 |
|
| 57 |
+
---> Repetitive: Trials can be repeated multiple times under the same conditions.
|
| 58 |
|
| 59 |
+
---> Uncertain Outcome: The specific outcome of each trial cannot be predicted in advance.
|
| 60 |
|
| 61 |
+
**It is simply a result between input and output**'''
|
| 62 |
st.markdown(multi)
|
| 63 |
|
| 64 |
multi = '''**Example:**
|
| 65 |
|
| 66 |
+
---> Trial : Conducting a trial involves randomly selecting individual voters and asking them whom they plan to vote
|
| 67 |
|
| 68 |
+
---> Analysis : Possible outcomes include the names of all candidates
|
| 69 |
|
| 70 |
+
---> Outcome: Each voters response provides insight into their preferred candidate, but the exact choice of each individual cannot be predicted in advance'''
|
| 71 |
st.markdown(multi)
|
| 72 |
|
| 73 |
st.subheader("4.Outcome",divider="green")
|
| 74 |
multi = '''It is the result of a trial for a random experiment.
|
| 75 |
|
| 76 |
+
---> Specific Result : An outcome represents a particular result from the experiment
|
| 77 |
|
| 78 |
+
---> Randomness : The occurrence of any specific outcome cannot be predicted with certainty before the trial is conducted'''
|
| 79 |
st.markdown(multi)
|
| 80 |
|
| 81 |
multi = '''**Example:**
|
| 82 |
|
| 83 |
+
---> Experiment: Conducting a survey where individual voters are asked whom they plan to vote for in an upcoming election
|
| 84 |
|
| 85 |
+
---> Possible Outcomes:
|
| 86 |
|
| 87 |
Vote for Candidate A: If a voter indicates they plan to vote for Candidate A, that is one specific outcome.
|
| 88 |
|
|
|
|
| 94 |
st.subheader("5.Sample Space",divider="violet")
|
| 95 |
multi = '''Sample Space is defined as the set of all the possible outcomes of a random experiment.
|
| 96 |
|
| 97 |
+
---> Comprehensive : It includes every possible outcome of an experiment
|
| 98 |
|
| 99 |
+
---> Defined: The sample space is specific to the particular experiment being conducted
|
| 100 |
|
| 101 |
+
---> Can be Finite or Infinite: Depending on the nature of the experiment the sample space can have a finite number of outcomes (like rolling a die) or an infinite number (like measuring time).
|
| 102 |
|
| 103 |
+
**As the trial increases the sample space also increases.**'''
|
| 104 |
st.markdown(multi)
|
| 105 |
multi = '''**Example:**
|
| 106 |
|
| 107 |
+
---> Experiment: Predicting the weather for the next day based on data and models.
|
| 108 |
|
| 109 |
+
---> Sample Space: The possible outcomes might include conditions such as:
|
| 110 |
|
| 111 |
+
S = {Sunny, Rainy, Cloudy, Snowy, Windy}'''
|
| 112 |
st.markdown(multi)
|
| 113 |
|
| 114 |
st.subheader("6.Event",divider="violet")
|
|
|
|
| 125 |
|
| 126 |
multi = '''**Example:**
|
| 127 |
|
| 128 |
+
---> Experiment : A lottery involves drawing 5 numbers from a pool of 50 numbers (1 to 50)
|
| 129 |
|
| 130 |
+
---> Sample Space : Set of all the possible outcomes
|
| 131 |
S = {All combinations of 5 numbers from 1 to 50}
|
| 132 |
|
| 133 |
+
---> Event : Let E be the event of drawing at least one even number
|
| 134 |
|
| 135 |
This event includes any combination of 5 numbers that contains at least one even number
|
| 136 |
|