COURSE: PROBABILITY & APPLIED STATISTICS
SECTION 01 // CHAPTER 03
LAB MANUAL NO. 01•FALL / SPRING
Applied Foundations & Computational Lab

Basic Probability & Python from Zero

An exact mathematical foundation: sample spaces, empirical distributions, multi-stage counting principles, and conditional theorems implemented with foundational Python 3.

SYLLABUS MODULE INDEXSEC. 3.1 – 3.2
3.1.1 Sample Space & ComplementsP(Eᶜ) = 1 - P(E)
3.1.2 Empirical ProbabilityFreq / Total
3.1.3 Fundamental Countingn₁ × n₂ × ⋯ × nₖ
3.2.1 Conditional ProbabilityP(A|B) = P(A∩B)/P(B)
3.2.2 Multiplication & SequencesP(A) × P(B|A)
3.2.3 At Least One Success1 - P(none)
PYTHON 3 ZERO-SETUPNO REQS
x, y = 5, 3
answer = (x + y) / 2
prob = (4/52) * (4/51)
print(round(prob, 6))

Hagar Gamal

Faculty of Computers & Information