-
Graphing Data 4
-
Lecture1.1
-
Lecture1.2
-
Lecture1.3
-
Lecture1.4
-
-
Mean and Standard Deviation 5
-
Lecture2.1
-
Lecture2.2
-
Lecture2.3
-
Lecture2.4
-
Lecture2.5
-
-
Distributions 6
-
Lecture3.1
-
Lecture3.2
-
Lecture3.3
-
Lecture3.4
-
Lecture3.5
-
Lecture3.6
-
-
Correlation and Linear Regression 7
-
Lecture4.1
-
Lecture4.2
-
Lecture4.3
-
Lecture4.4
-
Lecture4.5
-
Lecture4.6
-
Lecture4.7
-
-
Probability 3
-
Lecture5.1
-
Lecture5.2
-
Lecture5.3
-
-
Counting Principles 3
-
Lecture6.1
-
Lecture6.2
-
Lecture6.3
-
-
Binomial Distribution 3
-
Lecture7.1
-
Lecture7.2
-
Lecture7.3
-
-
Confidence Interval 7
-
Lecture8.1
-
Lecture8.2
-
Lecture8.3
-
Lecture8.4
-
Lecture8.5
-
Lecture8.6
-
Lecture8.7
-
-
Proportion Confidence Interval 3
-
Lecture9.1
-
Lecture9.2
-
Lecture9.3
-
-
Hypothesis Testing 5
-
Lecture10.1
-
Lecture10.2
-
Lecture10.3
-
Lecture10.4
-
Lecture10.5
-
-
Comparing Two Means 5
-
Lecture11.1
-
Lecture11.2
-
Lecture11.3
-
Lecture11.4
-
Lecture11.5
-
-
Chi-squared Test 3
-
Lecture12.1
-
Lecture12.2
-
Lecture12.3
-
Probability
Solution
.5+.4-.1
The solution is .8.
Now, let’s define conditional probability. The conditional probability is the chance that something occurs given something else has happened. We say for example, if we know event B has happened, what’s the chance that event A happens? What it will boil down to is finding how likely the two events are to occur together and dividing it by how likely the B event is to occur in general.
Equation
Find P(A|B) and P(B|A) in the last example….
.1/.4
.1/.5
As you can see these two do not have to equal one and other.
P(A|B) and P(B|A) for mutually exclusive events will always be 0 because there is no chance that the two events occur at the same time.
Now, what if an event has no effect on another event, then we call the events independent meaning the chances it happens when B occurs is the same as if we don’t know if B occurs.
Independence
$$ \frac{P(AB)}{P(B)} = P(A) $$
$$ P(AB) = P(A)*P(B) $$
If two events are independent, then the chances they happen at the same time equals the two probabilities multiplied.
If we had a table like so, what are the chances that either A or B happen? Find the probabilities, don’t just count.
A Happens | A Doesn’t Happen | |
B Happens | 20 | 40 |
B Doesn’t Happen | 30 | 10 |
pB = (20+40)/100
pA = (20+30)/100
pAB = 20/100
print(pA+pB-pAB)
The probability is .9!
Source Code