Unit 3 R - SEP
Unit 3 R - SEP
Statistics
Statistics is a field that focuses on gathering, analyzing, interpreting, presenting, and organizing data. Simply
put, it involves using mathematical methods to collect and summarize information effectively.
“Statistics is a scientific discipline that involved the collection, analysis, and interpretation of data”
Basics of Statistics
Statistics is built on two key concepts: measures of central tendency and measures of dispersion. Central tendencies
include mean, median, and mode, while dispersions cover variance and standard deviation.
Median : The median is the middle value when the data is arranged in ascending or descending order.
Mode : The mode represents the most frequently occurring value in a dataset.
• Variance : It quantifies how far each data point is from the mean.
• Standard Deviation : It measures the degree of variation or dispersion of data around the mean.
Types of statistics
Descriptive Statistics
Descriptive statistics focus on summarizing and presenting data in a clear and organized way. It involves
describing a dataset through measures like the mean, median, mode, and standard deviation. Charts, graphs,
and tables, such as histograms, pie charts, bar graphs, and scatter plots, are commonly used to visually
represent the data.
Inferential Statistics
Inferential statistics go a step further by interpreting the data summarized in descriptive statistics to draw
meaningful conclusions. Using principles of probability, this type helps determine whether patterns and results
observed in a sample can be applied to the larger population it represents. In short, inferential statistics
transform raw data into actionable insights about broader populations.
Applications of Statistics
Statistics plays a crucial role in Chartered Accountancy (CA) by providing valuable insights for financial analysis,
decision-making, and auditing. Here are some key applications:
• Financial Analysis : CA professionals use statistical tools to analyze financial data, identify trends, and
forecast future performance, helping businesses make informed financial decisions.
• Risk Assessment : Statistics helps in evaluating financial risks and uncertainties, allowing CAs to suggest
strategies for risk mitigation.
• Auditing : Statistical sampling techniques are widely used in audits to select representative samples and
ensure that financial statements are accurate and compliant with regulations.
• Tax Planning : Statistical models assist in predicting tax liabilities and optimizing tax strategies for individuals
and businesses.
• Budgeting and Forecasting : CAs use statistical methods to develop accurate budgets and financial forecasts,
aiding in effective financial planning.
Characteristics of statistics
• It is numerically expressed
• It has an aggregate of facts
• Data are collected in systematic order
• It should be comparable to each other
• Data are collected for a planned purpose
Frequency Distribution
A frequency distribution is a method for organizing data and determining how often each value occurs.
• It shows how many times each value or range of values occurs in a dataset.
• Instead of examining raw, scattered numbers, this approach presents data in a structured table or graph,
making patterns, trends, and comparisons easy to identify.
Statistics data is mainly divided into Qualitative Data and Quantitative Data.
A) Nominal Data
Examples:
B) Ordinal Data
Examples:
A) Discrete Data
Examples:
B) Continuous Data
Examples:
• Height → 165.5 cm
Definition
Discrete data refers to data that can be counted individually and has separate distinct values.
• Countable values
• Obtained by counting
Arithmetic Mean
Mean · Median · Mode — Definition, Formulas, Examples & Comparisons | UG Level Notes
A measure of central tendency is a single value that attempts to describe a dataset by identifying the central position
within it. It is the most representative value of the entire distribution — the value around which all other data points
cluster.
Think of it as the "anchor" of a dataset. If you had to summarise 1000 data points with just one number, that number
would be a measure of central tendency.
Why we need it
To summarise large data sets into one representative value for comparison and decision-making.
Mean (arithmetic average), Median (middle value), Mode (most frequent value).
Arithmetic Mean
The Arithmetic Mean (or simply "mean") is the sum of all values divided by the number of values. It is the most
widely used measure of central tendency.
Property 2
Mean is affected by every value — one extreme value changes the mean significantly.
Property 3
Property 4
Marks of 8 students: 45, 60, 55, 70, 40, 65, 50, 75. Find the mean.
Σx = 45+60+55+70+40+65+50+75 = 460
n=8
x̄ = 460 / 8 = 57.5 marks
Salaries (₹ thousands): 10, 12, 11, 13, 10, 100 (CEO). See how the CEO salary distorts the mean.
The mean jumped from 11.2 to 26.0 — not representative of the 5 regular employees. This is why median is
better for skewed data.
Median
The Median is the middle value when data is arranged in ascending or descending order. It divides the data into two
equal halves. It is not affected by extreme values (outliers).
Properties of Median
Property 1
Property 2
For open-ended class intervals, median can still be calculated (unlike mean).
Property 4
Salaries: 10, 12, 11, 13, 10, 100 → Arranged: 10, 10, 11, 12, 13, 100. n = 6 (even).
Median = 11.5 — completely unaffected by the CEO's salary of 100. Much more representative here.
Mode
The Mode is the value that appears most frequently in the dataset. A distribution can be unimodal (one mode),
bimodal (two modes), or multimodal. It is the only measure that can be used for qualitative (non-numeric) data.
Properties of Mode
Property 1
Not affected by extreme values. Can be used even for qualitative data.
Property 2
May not exist (if no value repeats) or may not be unique (bimodal/multimodal).
Property 3
For a moderately skewed distribution, Karl Pearson established a very useful empirical relationship that
connects all three measures. Examiners test this frequently.
Valid for moderately skewed distributions. Used to find one measure when the other two are known.
Rearrangements: Mean = (3×Median − Mode)/2 | Median = (Mode + 2×Mean)/3
Example 5 — Using Pearson's formula
Edit the data values below (comma-separated) and watch Mean, Median and Mode update live on the chart.
Data values:Recalculate ↗
Mean
38.00
Median
40.00
Mode
40
Data frequencyMeanMedianMode
The Arithmetic Mean (commonly called the "mean" or "average") is the most widely used measure of central
tendency. It is calculated by adding all the values in a dataset and dividing the sum by the total number of
values.
GENERAL FORMULA
Mean (x̄) = Σx / N
Discrete data consists of exact, countable values — for example, the number of students, marks scored,
number of items sold, etc. There is no continuity between values.
x̄ = Σfx / Σf
The following table shows the marks obtained by students. Find the Arithmetic Mean.
Marks (x) Frequency (f) Fx
10 2 20
20 4 80
30 8 240
40 10 400
50 6 300
SOLUTION
STEP 1
STEP 2
STEP 3
STEP 4
Continuous data is grouped into class intervals (e.g. 0–10, 10–20, …). Since we don't know the exact values, we use
the mid-point (m) of each class as a representative value.
MID-POINT FORMULA
x̄ = Σfm / Σf
The following frequency distribution shows daily wages. Find the mean wage.
Wages (₹) Frequency (f) Mid-point (m) fm
SOLUTION
x̄ = 7540 / 50 = ₹150.80
STEP 1
STEP 2
STEP 3
STEP 4
Median
The Median is the middle value of a dataset when arranged in ascending or descending order. It divides the
distribution into two equal halves — 50% of values lie below it and 50% above it.
It is not affected by extreme values (outliers), making it more reliable than the mean for skewed data.
Median for Discrete Data (ungrouped)
Formula — odd n
Formula — even n
Marks of 7 students: 42, 55, 18, 70, 35, 60, 28. Find the median.
Step 1
Step 2
Step 3
4th term = 42
18·28·35·42 ← Median·55·60·70
Median
42 marks
Steps
Find the median for the following data (N = 30, so N/2 = 15).
10 3 3
20 5 8
30 8 16
40 9 25 ← cf just > 15
50 5 30
Total 30 —
Median
Median = 40 marks (cf just > N/2 = 15 is 16, corresponding to x = 30... wait: cf at x=30 is 16 > 15, so Median = 30)
Interpolation Formula
L = lower boundary of median class | cf = cumulative frequency before median class | f = frequency of median
class | h = class width
Wages (₹) F cf
100–120 5 5
120–140 10 15
160–180 12 45
180–200 5 50
Total 50 —
cf
20 (class width)
Solution
Quartiles
Quartiles divide the distribution into four equal parts. There are three quartiles:
Q₁ — First Quartile
Lower quartile. 25% of data lies below Q₁. Also called the 25th percentile.
Q₂ — Second Quartile
This is the Median. 50% of data lies below Q₂. = 50th percentile.
Q₃ — Third Quartile
Upper quartile. 75% of data lies below Q₃. Also called the 75th percentile.
Q₁ — First Quartile
Q₁ = L + [(N/4 − cf) / f] × h
Q₃ — Third Quartile
Q₃ = L + [(3N/4 − cf) / f] × h
Wages (₹) F cf
100–120 5 5
120–140 ← Q₁ class 10 15
140–160 18 33
160–180 ← Q₃ class 12 45
180–200 5 50
For Q₁: N/4 = 50/4 = 12.5 → cf just > 12.5 is 15, so Q₁ class = 120–140. L=120, cf=5, f=10, h=20
Q₁
For Q₃: 3N/4 = 37.5 → cf just > 37.5 is 45, so Q₃ class = 160–180. L=160, cf=33, f=12, h=20
Q₃
IQR = Q₃ − Q₁
Quartile Deviation (QD) = (Q₃ − Q₁) / 2
Coefficient of QD = (Q₃ − Q₁) / (Q₃ + Q₁)
IQR covers the middle 50% of the data. QD is also called the Semi-Interquartile Range.
From Example 4
Mode
The Mode is the value that appears most frequently in a dataset. A distribution can have one mode (unimodal), two
modes (bimodal), or more (multimodal).
It is the only measure of central tendency that can be used for qualitative (non-numeric) data such as the most popular
colour or brand.
Shoe Size 7 8 9 10 11
Frequency 4 9 14 8 3
Mode
First identify the modal class — the class with the highest frequency. Then apply the interpolation formula.
Using the same wages distribution. Identify the modal class and find Mode.
100–120 5 = f₀
160–180 12 = f₂
120–140 10
180–200 5
Numerator
f₁ − f₀ = 18 − 10 = 8
Denominator
2f₁ − f₀ − f₂ = 36 − 10 − 12 = 14
Fraction × h
(8/14) × 20 = 11.43
Mode
Affected by outliers? No No No
Best used for Skewed distributions Spread & dispersion Categorical/nominal data
Advantages of Mode
• Easy to understand
Disadvantages of Mode
Real-Life Applications
Probability
Probability is the mathematical measure of how likely an event is to occur, ranging from (0) (impossible) to (1)
(certain). In statistics, it provides the theoretical foundation for predicting data behavior, evaluating risks, and
generalizing findings from a sample to an entire population. [1, 2, 3, 4]
The probability of an event (P(E)) is mathematically defined as the ratio of favorable outcomes to the total possible
outcomes within a given sample space:
P(E)= {Number of Favorable Outcomes}/{Total Number of Possible Outcomes}
• Example: The probability of rolling an even number on a standard 6-sided die is (frac{3}{6}) (or (0.5)),
because there are 3 even numbers (2, 4, 6) out of 6 total possible outcomes. [1, 2]
[Link] Probability
• Concept: Based on mathematics and logic, assuming all outcomes in a sample space are equally likely to
happen. It relies solely on reasoning rather than experimentation.
• Example: Rolling a standard six-sided die. The probability of rolling a \(4\) is \(P(4) = \frac{1}{6}\) because
there is \(1\) favorable outcome and \(6\) possible outcomes in total. [1, 2, 3, 4, 5]
• Concept: Based on actual observations, experiments, or historical data rather than theoretical logic. It
calculates the likelihood of an event by dividing the number of times the event occurred by the total number of
trials.
• Example: A basketball player shoots \(100\) free throws and makes \(75\) of them. The empirical probability
of them making the next free throw is \(\frac{75}{100} = 0.75\) (or \(75\%\)). [1, 2, 3, 4, 5]
3. Subjective Probability
• Concept: Based on personal judgment, experience, intuition, or an educated guess. There are no formal
calculations or past data; it is simply a reflection of an individual's belief about an event.
• Example: A meteorologist predicts there is a \(20\%\) chance of rain tomorrow, based on their expertise and
current weather patterns. [1]
4. Axiomatic Probability
• Concept: A formalized, rigorous approach that uses a set of foundational rules (axioms) to assign probabilities.
It serves as the mathematical foundation for advanced statistics.
• Rules:
1. The probability of any event is between \(0\) and \(1\) (\(0 \le P(A) \le 1\)).
• Example: The probability of flipping a coin and getting heads \(P(H) = 0.5\), and getting tails \(P(T) = 0.5\).
Axiomatically, \(P(H) + P(T) = 0.5 + 0.5 = 1.0\).
Bayes' Theorem states that given P(B)>0, the probability of A given B is denoted by:
𝑃(𝐵 ∣ 𝐴) × 𝑃(𝐴)
𝑃(𝐴 ∣ 𝐵) =
𝑃(𝐵)
Application of Probability
• Weather forecasts
• Risk Assessments
• Dice Games, Card Games
• Stock Market Analysis
• Drug testing
• Genetics probabilities
Example 2: Find the probability of getting a numbered card when a card is drawn from the pack of 52 cards.
Sol: Total Cards = 52. Numbered Cards = (2, 3, 4, 5, 6, 7, 8, 9, 10) 9 from each suit 4 × 9 = 36
P (E) = 36/52 = 9/13
For random variable X which assumes values x1, x2, x3,...xn with probability P(x1), P(x2), P(x3), ... P(xn)
E(x) = ∑ 𝑃 ( 𝑥 𝑖 ) 𝑥 𝑖 ∑P(x i )x i
Problem 1: Find the expected value of the outcome when a die is rolled.
Solution:
Consider X is a random variable that represents the value that comes when a die is rolled.
X = {1, 2, 3, 4, 5, 6}
Now, since the die is a fair die, the probability of getting each outcome is equal. That is 1 6 6 1
E(X) = ∑ 𝑥 𝑖 𝑃 ( 𝑋
𝑥 𝑖 ) ∑x i P(X=x i )
⇒ E(X) = P(X = 1)(1) + P(X = 2)(2) + P(X = 3)(3) + P(X = 4)(4) + P(X = 5)(5) + P(X = 6)(6)
⇒ E(X) = 1 6 ( 1 + 2 + 3 + 4 + 5 + 6 ) 6 1 (1+2+3+4+5+6)
⇒ E(X) = 3
The Mathematical Expectation or Expected Value of a continuous random variable represents the average or
mean value of the variable over a large number of observations.
It is denoted by:
E(X)
or
\mu
Definition
If (X) is a continuous random variable with probability density function (f(x)), then the mathematical
expectation is:
1
E(X)=∫0 𝑥. 2𝑥 𝑑𝑥
Conditions
For a valid probability density function:
1. Probability must be non-negative:
f(x)\geq0
2. Total probability must equal 1:
Properties of Expectation
1. Expectation of Constant
E(c)=c
2. Linearity Property
E(aX+b)=aE(X)+b
3. Sum of Expectations
E(X+Y)=E(X)+E(Y)
Probability Distribution
Definition
A probability distribution is a mathematical representation that specifies all possible values of a random
variable together with their corresponding probabilities.
It completely describes the probabilistic behavior of a random variable.
Formal Representation
If (X) is a random variable, then its probability distribution specifies:
P(X=x)
for every possible value of (x).
Definition
A Probability Mass Function (PMF) is a function that gives the probability that a discrete random variable is
exactly equal to a particular value.
If (X) is a discrete random variable, then:
P(X=x)=f(x)
where:
• (f(x)) is called the probability mass function.
Types of Probability
Experiment
Any action with a well-defined set of outcomes. E.g. tossing a coin, rolling a die.
Event (E)
Favourable outcomes
Types of Probability
Type 3 Axiomatic
Type 4 Conditional
Type 6 Subjective
Proposed by Pierre-Simon Laplace. This approach assumes that all outcomes of an experiment are equally
likely. It is known before the experiment is conducted — hence called "a priori" probability.
Formula
n(A) = number of favourable outcomes for event A | n(S) = total outcomes in sample space
Proposed by Von Mises. This approach is based on actual observations from a large number of experiments.
Probability is estimated from past data — hence called "a posteriori" probability.
Formula
Proposed by A. N. Kolmogorov in 1933. This is the most rigorous and mathematically complete approach. It
does not define what probability "is" — instead, it gives three axioms that any probability function must
satisfy.
All other probability rules are derived from these three axioms.
Complement rule
P(A') = 1 − P(A)
where A' = complement of A
Impossible event
P(∅) = 0
Empty set has zero probability
The probability of event A occurring given that event B has already occurred. The sample space is reduced
to B. This is one of the most important concepts in probability.
Formula
Bayes' Theorem allows us to update the probability of a hypothesis based on new evidence. It connects
prior probability with conditional probability.
Bayes' Theorem
PMF & PDF (Probability Mass Function & Probability Density Function )
In probability theory, we want to describe how probability is distributed across the possible values of a
random variable. The tool we use depends on the type of random variable:
Takes countable values: 0, 1, 2, 3… Use PMF — assigns probability to each exact value.
Takes any value in a range. Use PDF — probability is the area under a curve, not a point.
A Probability Mass Function is defined for a discrete random variable X. It gives the probability that X
takes exactly a specific value x.
Definition
P(X = x) = f(x)
The PMF assigns a probability to every individual value that X can take.
Properties of PMF
Property 1 — Non-negativity
Property 2 — Summation
Let X = number of Heads. Possible values: 0, 1, 2. Sample space: {TT, TH, HT, HH}
X (Heads) Outcomes P(X = x)
Total — Σ = 1.00 ✓
P(X = x)
Key observation from the PMF graph: Each bar is an isolated spike at a discrete point. There is NO bar
between x = 0 and x = 1 — because X cannot take fractional values like 0.5.
X = number of times 6 appears when rolling a fair die 3 times. P(6) = 1/6, n = 3.
Binomial PMF
n = 3, p = 1/6, k = 0, 1, 2, 3
Values
P(0) = 0.579 | P(1) = 0.347 | P(2) = 0.069 | P(3) = 0.005 | Sum = 1.000 ✓
A Probability Density Function is defined for a continuous random variable X. Because X can take infinitely
many values in a range, P(X = any exact value) = 0. Instead, probability is defined over an interval as the area under
the curve.
Definition
f(x) is the PDF. The probability is the AREA under f(x) between a and b — NOT the height at a point.
Properties of PDF
Property 1 — Non-negativity
∫(−∞ to +∞) f(x) dx = 1. Total area under the entire curve equals 1.
Uniform PDF
P(3 ≤ X ≤ 5)
The Normal distribution is the most important continuous distribution. Its PDF has the famous bell curve
shape.
Mean (μ)0
Drag the sliders to see how μ shifts the centre and σ changes the spread of the curve.
Both PMF and PDF have a corresponding Cumulative Distribution Function (CDF), written F(x), which gives the
probability that X is less than or equal to x.
CDF is a smooth S-shaped curve (for the normal distribution). F(−∞) = 0, F(+∞) = 1.
PMF PDF
Probability distributions
Probability distributions are mathematical models used to describe the behavior of random variables. In statistics and
probability theory, Bernoulli, Binomial, and Poisson distributions are among the most important discrete probability
distributions.
1. Bernoulli Distribution
Definition:
A Bernoulli distribution is a discrete probability distribution for a random variable that takes only two possible
outcomes: Success (1) and Failure (0).
Conditions:
• Only one trial is conducted.
• There are only two outcomes.
• Probability of success is p.
• Probability of failure is q = 1 − p.
PMF Function:
P(X = x) = p^x (1-p)^(1-x), where x = 0 or 1
Example:
Consider tossing a coin once.
Success = Head, Failure = Tail.
If p = 0.5:
P(X=1)=0.5 and P(X=0)=0.5
2. Binomial Distribution
Definition:
A Binomial distribution represents the number of successes in a fixed number of independent Bernoulli trials.
Conditions:
• Number of trials n is fixed.
• Each trial has two outcomes.
• Trials are independent.
• Probability of success remains constant.
PMF Function:
P(X = x) = nCx * p^x * (1-p)^(n-x), where x = 0,1,2,...,n
Mean and Variance:
Mean E(X) = np
Variance Var(X) = np(1-p)
Example:
Suppose a coin is tossed 3 times.
Find probability of getting exactly 2 heads.
Here, n=3, x=2, p=0.5
P(X=2)=3C2*(0.5)^2*(0.5)^1
=3*(0.25)*(0.5)=0.375
3. Poisson Distribution
Definition:
A Poisson distribution is used to model the number of times an event occurs within a fixed interval of time,
area, or space.
Characteristics:
• Events occur independently.
• Average rate of occurrence is constant.
• Events occur one at a time.
PMF Function:
P(X = x) = (e^-λ * λ^x) / x!, where x = 0,1,2,...
Example:
Suppose a call center receives an average of 4 calls per minute.
Find probability of receiving exactly 2 calls in a minute.
Here λ=4, x=2
P(X=2)= (e^-4 * 4^2)/2!
= (0.0183 * 16)/2
=0.1465 approximately.
4. Comparison of Distributions
Distribution Trials Mean Application
Bernoulli Single Trial p Single success/failure
experiment
Binomial Fixed number of np Repeated
trials success/failure trials
Poisson Infinite possible λ Rare event
occurrences occurrences
Properties:
Example:
Suppose a bus arrives uniformly between 10 AM and 11 AM.
Let X be the waiting time in minutes.
Interval: a = 0, b = 60
PDF:
f(x) = 1/60, for 0 ≤ x ≤ 60
Probability that the bus arrives within first 20 minutes:
P(X ≤ 20) = 20/60 = 1/3
2. Normal Distribution
Definition:
The normal distribution is a continuous probability distribution that is symmetric about its mean and has a
bell-shaped curve.
Properties:
Example:
Suppose marks of students are normally distributed with mean μ = 70 and standard deviation σ = 10.
Find the standardized value (Z-score) for a student scoring 85 marks.
Z = (X - μ)/σ = (85 - 70)/10 = 1.5
3. Student's t Distribution
Definition:
Student's t distribution is a continuous probability distribution used when the sample size is small and
population standard deviation is unknown.
Properties:
Example:
Suppose a sample of size n = 10 has sample mean = 50, sample standard deviation = 5, and population mean μ
= 47.
Compute t-statistic:
t = (x̄ - μ) / (s/√n)
t = (50 - 47)/(5/√10)
t ≈ 1.897
4. Comparison of Distributions
Distribution Nature Main Parameter Applications
Continuous Uniform Equal probability a, b Random waiting time
over interval
Normal Bell-shaped μ, σ Natural and social
symmetric sciences
Student's t Similar to normal but Degrees of freedom Small sample
wider tails hypothesis testing