Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,59 +3,59 @@ import numpy as np
|
|
| 3 |
import pandas as pd
|
| 4 |
|
| 5 |
st.title(":rainbow[Terminology]")
|
| 6 |
-
st.header(":
|
| 7 |
st.write("Probability is a fundamental concept in statistics and mathematics, and it involves various terms and concepts. Some of the important terminologies of Probabibility are ")
|
| 8 |
|
| 9 |
st.header(":blue[1. Experiment]")
|
| 10 |
st.write("an action or process that involves in one or more outcomes.")
|
| 11 |
st.write("For example,Flipping a coin or rolling a die")
|
| 12 |
|
| 13 |
-
st.header(":blue
|
| 14 |
st.write("The set of all possible outcomes of an experiment.")
|
| 15 |
st.write("For example, the sample space for rolling a six-sided die is S = {1,2,3,4,5,6}")
|
| 16 |
|
| 17 |
-
st.header(":blue
|
| 18 |
st.write("it is a subset of the sample space. An event can consist of one or multiple outcomes")
|
| 19 |
st.write("For example, rolling an even number is an event represented by E = {2,4,6}")
|
| 20 |
|
| 21 |
-
st.header(":blue
|
| 22 |
st.write("A measure of the likelihood that an event will occur, ranging from 0 (impossible) to 1 (certain).")
|
| 23 |
st.write("For example, probalbility of rolling a 3 on a die is p(3) = 1/6")
|
| 24 |
|
| 25 |
-
st.header(":blue
|
| 26 |
st.write("The event that represents all outcomes in the sample space that are not part of event")
|
| 27 |
st.write("For example, if A is rolling an even number,then A' is rolling an odd number")
|
| 28 |
|
| 29 |
-
st.header(":blue
|
| 30 |
st.write("Two events are independent if the occurrence of one event does not affect the probability of the other.")
|
| 31 |
st.write("For example, flipping a coin and rolling a die are independent events.")
|
| 32 |
|
| 33 |
-
st.header(":blue
|
| 34 |
st.write("Two events are dependent if the occurrence of one event affects the probability of the other. For example, drawing cards from a deck without replacement.")
|
| 35 |
|
| 36 |
-
st.header(":blue
|
| 37 |
st.write("Two events are mutually exclusive if they cannot occur at the same time. For example, rolling a die can result in either an even or an odd number, but not both")
|
| 38 |
|
| 39 |
-
st.header(":blue
|
| 40 |
st.write("The probability of two events occurring together. For example, the probability of rolling a 2 on a die and flipping heads on a coin.")
|
| 41 |
|
| 42 |
-
st.header(":blue
|
| 43 |
st.write("The probability of event A occuring given that event B has already occured.")
|
| 44 |
st.write("For example, the probability of drawing a heart from a deck of cards given that the card drawn is red")
|
| 45 |
|
| 46 |
-
st.header(":blue
|
| 47 |
st.write("The sum of the probabilities of all possible outcomes in a sample space, which equals 1.")
|
| 48 |
|
| 49 |
-
st.header(":blue
|
| 50 |
st.write("A variable that takes on different numerical values based on the outcome of a random event. There are two types:")
|
| 51 |
|
| 52 |
-
st.subheader("[Discrete Random Variable]")
|
| 53 |
st.write("Takes on a countable number of values (e.g., number of heads in coin flips).")
|
| 54 |
|
| 55 |
st.subheader("Continuous Random Variable")
|
| 56 |
st.write("Takes on an infinite number of values within a range (e.g., the height of individuals).")
|
| 57 |
|
| 58 |
-
st.header(":blue
|
| 59 |
st.write("A function that describes the likelihood of obtaining the possible values of a random variable. Common distributions include")
|
| 60 |
|
| 61 |
st.subheader("Binomial Distribution")
|
|
@@ -64,6 +64,6 @@ st.write("For discrete events with two outcomes (success/failure).")
|
|
| 64 |
st.subheader("Normal Distribution")
|
| 65 |
st.write("A continuous distribution that is symmetric and bell-shaped.")
|
| 66 |
|
| 67 |
-
st.header(":blue
|
| 68 |
st.write("The long-term average or mean of a random variable, calculated as the sum of all possible values, each multiplied by its probability.")
|
| 69 |
|
|
|
|
| 3 |
import pandas as pd
|
| 4 |
|
| 5 |
st.title(":rainbow[Terminology]")
|
| 6 |
+
st.header(":blue[Probability]")
|
| 7 |
st.write("Probability is a fundamental concept in statistics and mathematics, and it involves various terms and concepts. Some of the important terminologies of Probabibility are ")
|
| 8 |
|
| 9 |
st.header(":blue[1. Experiment]")
|
| 10 |
st.write("an action or process that involves in one or more outcomes.")
|
| 11 |
st.write("For example,Flipping a coin or rolling a die")
|
| 12 |
|
| 13 |
+
st.header(":blue[2. Sample space]")
|
| 14 |
st.write("The set of all possible outcomes of an experiment.")
|
| 15 |
st.write("For example, the sample space for rolling a six-sided die is S = {1,2,3,4,5,6}")
|
| 16 |
|
| 17 |
+
st.header(":blue[3. Event]")
|
| 18 |
st.write("it is a subset of the sample space. An event can consist of one or multiple outcomes")
|
| 19 |
st.write("For example, rolling an even number is an event represented by E = {2,4,6}")
|
| 20 |
|
| 21 |
+
st.header(":blue[4.Probability of an event (P(E))]")
|
| 22 |
st.write("A measure of the likelihood that an event will occur, ranging from 0 (impossible) to 1 (certain).")
|
| 23 |
st.write("For example, probalbility of rolling a 3 on a die is p(3) = 1/6")
|
| 24 |
|
| 25 |
+
st.header(":blue[5. Complement of an Event(A')]")
|
| 26 |
st.write("The event that represents all outcomes in the sample space that are not part of event")
|
| 27 |
st.write("For example, if A is rolling an even number,then A' is rolling an odd number")
|
| 28 |
|
| 29 |
+
st.header(":blue[6. Independent Events]")
|
| 30 |
st.write("Two events are independent if the occurrence of one event does not affect the probability of the other.")
|
| 31 |
st.write("For example, flipping a coin and rolling a die are independent events.")
|
| 32 |
|
| 33 |
+
st.header(":blue[7. Dependent Events]")
|
| 34 |
st.write("Two events are dependent if the occurrence of one event affects the probability of the other. For example, drawing cards from a deck without replacement.")
|
| 35 |
|
| 36 |
+
st.header(":blue[8.Mutually Exclusive Events]")
|
| 37 |
st.write("Two events are mutually exclusive if they cannot occur at the same time. For example, rolling a die can result in either an even or an odd number, but not both")
|
| 38 |
|
| 39 |
+
st.header(":blue[Joint Probability]")
|
| 40 |
st.write("The probability of two events occurring together. For example, the probability of rolling a 2 on a die and flipping heads on a coin.")
|
| 41 |
|
| 42 |
+
st.header(":blue[9.Conditional Probability (P(A|B))]")
|
| 43 |
st.write("The probability of event A occuring given that event B has already occured.")
|
| 44 |
st.write("For example, the probability of drawing a heart from a deck of cards given that the card drawn is red")
|
| 45 |
|
| 46 |
+
st.header(":blue[10.Total Probability]")
|
| 47 |
st.write("The sum of the probabilities of all possible outcomes in a sample space, which equals 1.")
|
| 48 |
|
| 49 |
+
st.header(":blue[11.Random Variable]")
|
| 50 |
st.write("A variable that takes on different numerical values based on the outcome of a random event. There are two types:")
|
| 51 |
|
| 52 |
+
st.subheader("blue[Discrete Random Variable]")
|
| 53 |
st.write("Takes on a countable number of values (e.g., number of heads in coin flips).")
|
| 54 |
|
| 55 |
st.subheader("Continuous Random Variable")
|
| 56 |
st.write("Takes on an infinite number of values within a range (e.g., the height of individuals).")
|
| 57 |
|
| 58 |
+
st.header(":blue[12.Probability Distribution]")
|
| 59 |
st.write("A function that describes the likelihood of obtaining the possible values of a random variable. Common distributions include")
|
| 60 |
|
| 61 |
st.subheader("Binomial Distribution")
|
|
|
|
| 64 |
st.subheader("Normal Distribution")
|
| 65 |
st.write("A continuous distribution that is symmetric and bell-shaped.")
|
| 66 |
|
| 67 |
+
st.header(":blue[13.Expected Value(E|X)]")
|
| 68 |
st.write("The long-term average or mean of a random variable, calculated as the sum of all possible values, each multiplied by its probability.")
|
| 69 |
|