Lecture 2 - cont. Basic Probability
We start at [[handout01-ProbBasics-350F24.pdf#page=4]]:
(a)
(b) are the set of submissions with both types of errors.
(c)
Use the diagram to get that it would be impossible to get so far. Namely, we could have totally within :
This would make . That would be the maximum, as could be disjoint:
Then $P(A \cap B) = .0$ clearly.
Thus we have, with the current information that .
(d) represents getting either a syntax error or a logic error (just any error for this case).
(e) (since we don't want to count the intersection bit twice). As a result then since then we have:
This is the same addition rule we derived separately.
(f) If we are given the then we can use our formula to get:
(g) .
(h) .
Contingency Table
We can make a contingency table for this situation:
|
Syntax Errors |
No Syntax Errors |
|
Logic Errors |
|
|
.14 |
No Logic Errors |
|
|
|
|
.33 |
|
1.0 |
With the supposition that :
|
Syntax Errors |
No Syntax Errors |
|
Logic Errors |
.05 |
.09 |
.14 |
No Logic Errors |
.28 |
.58 |
.86 |
|
.33 |
.67 |
1.0 |
The columns will add up to the bottom number, and the rows add to the last column. |
|
|
|
(f) as we found before.
(g)
(h)
A 3 Example
(a)
(b) The probability seen in the diagram refers to which is a purely minor defect.