Mathematical Foundation of Computer Science - notes
Mathematical Foundation of Computer Science - notes
UNIT I: Basic Probability and Random Variables: Random Experiments, Sample Spaces Events, the
Variables
UNIT II: Sampling and Estimation Theory: Population and Sample, Statistical Inference Sampling
With and Without Replacement Random Samples, Random Numbers Population Parameters Sample
Computation of Mean, Variance, and Moments for Grouped Data. Unbiased Estimates and Efficient
Estimates Point Estimates and Interval Estimates. Reliability Confidence Interval Estimates of
Population Parameters, Maximum Likelihood Estimates
UNIT III: Tests of Hypothesis and Significance: Statistical Decisions Statistical Hypotheses. Null
Hypotheses Tests of Hypotheses and Significance Type I and Type II Errors Level of Significance Tests
Involving the Normal Distribution One-Tailed and Two-Tailed Tests P Value Special Tests of
Significance for Large Samples Special Tests of Significance for Small Samples Relationship between
Estimation Theory and Hypothesis Testing Operating Characteristic Curves. Power of a Test Quality
Control Charts Fitting Theoretical Distributions to Sample Frequency Distributions, The Chi-Square
Test
for Goodness of Fit Contingency Tables Yates’ Correction for Continuity Coefficient of Contingency.
UNIT IV: Algebraic Structures and Number Theory: Algebraic Systems, Examples, General
Properties, Semi Groups and Monoids, Homomorphism of Semi Groups and Monoids, Group,
Subgroup, Abelian Group, Homomorphism, Isomorphism. Properties of Integers, Division Theorem,
The Greatest Common Divisor, Euclidean Algorithm, Least Common Multiple, Testing for Prime
Numbers, The Fundamental Theorem of Arithmetic, Modular Arithmetic (Fermat’s Theorem and
Euler’s Theorem)
UNIT V: Graph Theory: Basic Concepts of Graphs, Sub graphs, Matrix Representation of Graphs:
Adjacency Matrices, Incidence Matrices, Isomorphic Graphs, Paths and Circuits, Eulerian and
Hamiltonian Graphs, Multigraphs, Planar Graphs, Euler’s Formula, Graph Colouring and Covering,
Chromatic Number, Spanning Trees, Algorithms for Spanning Trees (Problems Only and Theorems
without Proofs).
Solutions to Probability and Random Variables
Questions
1(a) What is Conditional Probability? Discuss various
theorems of conditional probability in brief.
Definition: Conditional probability is the probability of an event A occurring given that another event
B has already occurred. It is denoted by P(A|B) and is given by the formula:
Given Problem:
We need P(D|T): Probability that a person has the disease given a positive test result.
Answer: The probability that a person who tests positive actually has the disease is approximately
64.7%.
F(x) = P(X ≤ x)
• Ratios of selection: P(A:B:C) = 4:1:2 → P(A) = 4/7, P(B) = 1/7, P(C) = 2/7
• Probabilities of introducing changes:
- P(C|A) = 0.3
- P(C|B) = 0.8
- P(C|C) = 0.5
First, calculate P(C): P(C) = P(C|A) * P(A) + P(C|B) * P(B) + P(C|C) * P(C)
P(C) = (0.3 * 4/7) + (0.8 * 1/7) + (0.5 * 2/7) = 1.2/7 + 0.8/7 + 1.0/7 = 3.0/7
Now, calculate P(B|C): P(B|C) = (0.8 * 1/7) / (3.0/7) = 0.8 / 3.0 ≈ 0.267