Lesson 1
Probability Concepts and Rules
Probability is the number of favourable cases divided by the total number of cases, with combinations used to count selections. The addition theorem applies to 'or' events and the multiplication theorem applies to 'and' events. Conditional probability handles dependent events, such as draws made without replacement.
Basic Probability
- P(E) = favourable cases / total cases.
- P(not A) = 1 - P(A).
- Example: a lottery has 10 prizes and 90 blanks. P(prize) = 10/100 = 1/10 and P(no prize) = 9/10.
- Example: a leap year has 52 weeks plus 2 extra days, which can fall in 7 possible day-pairs. Sunday appears in 2 of them, so P(53 Sundays) = 2/7.
- nCr = n! / (r!(n-r)!).
- Example: a bag has 5 green and 7 red balls and 2 are drawn. P(one green and one red) = (5C1 x 7C1) / 12C2 = 35/66.
Playing Cards
- A deck has 52 cards: 13 ranks with 4 cards each.
- There are 4 suits (spade, club, diamond, heart) with 13 cards each; 26 cards are red and 26 are black.
- There are 12 face cards: J, Q and K in each suit.
- P(one king and one queen when 2 cards are drawn) = (4C1 x 4C1) / 52C2.
Addition Theorem (the 'or' rule)
- Mutually exclusive events have no common outcome: P(A or B) = P(A) + P(B).
- Example: P(club or ace of diamonds) = 13/52 + 1/52.
- Events that are not mutually exclusive: P(A or B) = P(A) + P(B) - P(A and B).
- Example: P(spade or king) = 13/52 + 4/52 - 1/52 = 16/52.
- For three events: P(A or B or C) = P(A) + P(B) + P(C) - P(AB) - P(BC) - P(AC) + P(ABC).
Multiplication Theorem and Conditional Probability
- Independent events (for example, drawing with replacement): P(A and B) = P(A) x P(B).
- Dependent events (for example, drawing without replacement): P(A and B) = P(A) x P(B|A).
- Example: from 15 balls with 5 black, P(two black without replacement) = 5/15 x 4/14.
- For 'at least one' problems, use P = 1 - P(none).
- Example: three students solve a problem with probabilities 1/2, 1/3 and 1/4. P(solved) = 1 - (1/2)(2/3)(3/4) = 3/4.
- Example: a husband's selection probability is 1/7 and his wife's is 1/5. P(neither selected) = (6/7)(4/5) = 24/35, so P(at least one) = 11/35.
Key terms
- Mutually exclusive events
- Events with no outcome in common.
- Independent events
- Events where one occurring does not affect the probability of the other.
- Dependent events
- Events where one occurring changes the probability of the other.
- Conditional probability P(B|A)
- The probability of B given that A has already occurred.
- Combination nCr
- The number of ways to choose r items from n: n! / (r!(n-r)!).
Lesson 2
Random Variables Explained
A random variable assigns a number to each outcome of an experiment, and a probability distribution lists the probability of each value. Random variables are either discrete or continuous; discrete ones use a probability mass function and continuous ones use a probability density function. The mean is sum(p x) and the variance is sum(p x^2) - mean^2.
Random Variable and Distribution
- Sample space for tossing two coins: {HH, HT, TH, TT}.
- Let X = number of heads. Then P(X=0) = 1/4, P(X=1) = 2/4 and P(X=2) = 1/4.
- The table pairing each value of X with its probability is the probability distribution.
- Steps to build it: define X, write the sample space, then make the table.
- Example: one die is thrown and X = number of even numbers. P(X=0) = 1/2 and P(X=1) = 1/2.
- Example: two cards are drawn with replacement and X = number of queens. P(X=0) = (48/52)^2 and P(X=1) = 2 x (4/52)(48/52).
Types of Random Variables
- Discrete: takes countable values such as 0, 1, 2, 3.
- Continuous: takes any value in an interval, such as a height between 5 and 6 feet.
- Discrete variables use a probability mass function (PMF).
- Continuous variables use a probability density function (PDF), written f(x).
Properties and Finding k
- All probabilities lie between 0 and 1, and their sum is 1.
- To find an unknown k, add all the probabilities and set the total equal to 1.
- Example: the probabilities sum to 10k^2 + 9k - 1 = 0, which factors as (10k - 1)(k + 1) = 0.
- k = -1 is rejected because a probability cannot be negative, so k = 1/10.
- For a PDF, the integral of f(x) dx from -infinity to +infinity must equal 1. Use this to check whether a function is a valid PDF.
Mean and Variance
- Mean: mu = sum(p x).
- Variance: sigma^2 = sum(p x^2) - mu^2.
- Tip: convert all probabilities to a common denominator before adding.
- Example: for two coin tosses, mean = 1 and sum(p x^2) = 3/2, so variance = 1.5 - 1 = 0.5.
Key terms
- Random variable
- A numerical quantity whose value depends on the outcome of an experiment.
- Probability distribution
- A table or rule giving the probability of each value of a random variable.
- Discrete random variable
- A random variable that takes countable, whole-number values.
- Continuous random variable
- A random variable that can take any value within an interval.
- PMF
- Probability mass function; gives probabilities for a discrete random variable.
- Probability density function f(x) for a continuous random variable; its integral over all x is 1.
Lesson 3
Binomial, Poisson and Normal Distributions with Numericals
The binomial distribution gives the probability of x successes in n independent trials using P(X=x) = nCx p^x q^(n-x), with q = 1 - p. The Poisson distribution, P(X=r) = e^(-m) m^r / r!, is used when n is large and p is very small, with mean = variance = m = np.
Binomial distribution: formula and parameters
- P(X=x) = nCx p^x q^(n-x), x = 0, 1, ..., n
- p = probability of success; q = 1 - p (since p + q = 1)
- Coin questions: p = q = 1/2
- Percentages give p directly: 20% defective means p = 20/100 = 0.2, so q = 0.8
- n = number of times the action is performed (tosses, items drawn)
- If asked 'how many' (expected number) out of N sets, multiply the probability by N
Computing nCr quickly
- nC0 = nCn = 1; nC1 = n
- nCr: multiply r terms counting down from n, divide by r! (e.g. 10C3 = 10*9*8 / (3*2*1) = 120)
- nCr = nC(n-r): 10C7 = 10C3, 10C6 = 10C4, 5C4 = 5C1 = 5
Exactly, at least, at most
- Exactly k: P(X=k) only
- At least k: P(X>=k) = P(k) + P(k+1) + ... + P(n) (stop at n)
- At most k: P(X<=k) = P(0) + P(1) + ... + P(k)
- More than k: start from k+1
Worked binomial examples
- Fair coin tossed 5 times, P(exactly 3 heads) = 5C3 (1/2)^3 (1/2)^2 = 10/32 = 5/16 = 0.3125
- P(at least 4 heads) = P(4) + P(5) = 5/32 + 1/32 = 6/32 = 3/16 = 0.1875
- 20% bolts defective, 4 drawn: P(1 defective) = 4C1 (0.2)(0.8)^3 = 0.4096
- P(at most 2 defective) = P(0)+P(1)+P(2) = 0.4096 + 0.4096 + 0.1536 = 0.9728
Poisson distribution
- P(X=r) = e^(-m) m^r / r!, r = 0, 1, 2, ...
- Mean = variance = m = np ('average' also means mean)
- Use when n is large and p is very small (e.g. p = 0.005), or when the question says Poisson or gives e^(-m) values
- Example: p = 0.005 defective, sample of 200: m = 200 * 0.005 = 1, P(exactly 3) = e^(-1) 1^3 / 3! = e^(-1)/6 ≈ 0.0613
Key terms
- Binomial distribution
- Distribution of number of successes in n independent trials with constant success probability p.
- p and q
- Probabilities of success and failure, with p + q = 1.
- Poisson distribution
- Limit of binomial for large n and small p, with P(X=r) = e^(-m) m^r / r!.
- Poisson parameter m
- m = np; equals both the mean and the variance.
- At least / at most
- At least k sums from k up to n; at most k sums from 0 up to k.
Lesson 4
Sampling Distributions and Standard Error
A sampling distribution is the probability distribution of a statistic (e.g. the sample mean) computed from all possible samples of a given size from a population. The mean of the sample means equals the population mean, and their standard deviation, the standard error, equals sigma/sqrt(n).
Population, sample, parameter, statistic
- Population: whole group under study; sample: a subset used because studying everyone is not feasible
- Parameter: a measure computed from the population (e.g. mu, sigma)
- Statistic: a measure computed from a sample (e.g. x-bar, s)
- Sampling with replacement: a selected unit can be selected again
Building a sampling distribution
- Example: population {1, 2, 3}, sample size n = 2 with replacement gives 3^2 = 9 possible samples
- Compute the statistic (e.g. mean) of each sample: 1, 1.5, 2, 1.5, 2, 2.5, 2, 2.5, 3
- Find the probability of each value (e.g. P(x-bar = 2) = 3/9) and plot them
- Named by the statistic: sampling distribution of the mean, of the standard deviation, of the median
Key properties
- Mean of all sample means = population mean mu (in example both equal 2)
- SD of sample means = sigma/sqrt(n)
- Shape is not necessarily normal for small samples
Central Limit Theorem
- Even if the population is not normal, the sampling distribution of the mean approaches normal when sample size is large (n > 30)
- If the population is normal, the sampling distribution is normal for any n
Standard error
- Standard error = standard deviation of a sampling distribution; SE of mean = sigma/sqrt(n)
- Measures how far sample statistics deviate from the population parameter
- Smaller SE means more representative, reliable sample
- SE is inversely related to sample size; if the whole population is sampled, SE becomes 0
Key terms
- Sampling distribution
- Probability distribution of a statistic over all possible samples of a given size.
- Standard error
- Standard deviation of a sampling distribution; for the mean, sigma/sqrt(n).
- Central Limit Theorem
- For large n (>30), the sample mean distribution is approximately normal regardless of population shape.
- Parameter
- Numerical measure describing a population.
- Statistic
- Numerical measure computed from a sample.
Lesson 5
Point and Interval Estimation
Estimation uses sample data to make an informed guess about population parameters when measuring the whole population is impractical. Point estimation gives a single value, while interval estimation gives a range with a stated confidence level.
Why estimation
- Measuring every unit (e.g. height of every student in India) is impossible or too costly
- A random sample is studied and results generalised to the population
- Saves time, money and effort; applications in marketing, operations, finance and HR
Parameters and statistics
- Population parameters: mean mu, SD sigma, proportion P
- Sample statistics: mean x-bar, SD s, proportion p
- x-bar estimates mu, s estimates sigma, sample proportion estimates population proportion
Point estimation
- A single sample value used to estimate a parameter
- Estimator: the sample function/formula (e.g. x-bar)
- Estimate: the numerical value it takes (e.g. x-bar = Rs 20 lakh for 50 loan clients)
- A single value may not be accurate
Interval estimation
- A range of values likely to contain the parameter with a certain confidence level
- Lower and upper confidence limits bound the confidence interval
- Example: average sale per customer Rs 850 to Rs 950 with 95% confidence: 850 = lower limit, 950 = upper limit, 95% = confidence level
Key terms
- Estimation
- Using sample data to make an educated guess about population characteristics.
- Point estimate
- A single value of a statistic used to estimate a parameter.
- Estimator
- The sample statistic (rule) used to estimate a parameter, e.g. x-bar.
- Interval estimate
- A range likely to contain the parameter with a stated confidence.
- Confidence level
- Probability (e.g. 95%) that the interval method captures the parameter.
- Confidence limits
- Lower and upper bounds of a confidence interval.
Lesson 6
Hypothesis Testing: Null, Alternative, Type I and II Errors
Hypothesis testing checks whether a difference between a sample statistic and a population value is significant or only due to chance and sampling error. A null hypothesis (no difference) is tested against an alternative hypothesis (a real difference) at a chosen significance level. Every decision carries a risk of a Type I error (alpha) or a Type II error (beta).
Null and alternative hypotheses
- Hypothesis testing tests a claim about the parent population from which a sample is drawn.
- Null hypothesis H0: there is no significant difference between the sample and the population; any observed difference is due to sampling or experimental error.
- Alternative hypothesis H1 (or HA): there is a significant difference that is not explained by chance alone.
- Example: a class average of 70% versus a sample average of 71%. The test decides whether the 1% gap is significant.
Five-step procedure
- 1. Set up H0 and H1.
- 2. Set the significance level. Common choices are 10%, 5%, 1% and 0.1%; if none is given, use 5% (95% confidence) by default.
- 3. Choose the test criterion: z-test for large samples (n >= 30); t, chi-square or F tests in other situations.
- 4. Do the computation, e.g. SEM = sigma/sqrt(n) and z = |sample mean - population mean| / SEM.
- 5. Make the decision: accept H0 if |z| < critical z; otherwise reject H0.
Type I and Type II errors
- H0 true and accepted: correct decision.
- H0 true but rejected: Type I error, probability alpha (equal to the significance level).
- H0 false but accepted: Type II error, probability beta.
- H0 false and rejected: correct decision.
- Confidence level = 1 - significance level. For example, 5% significance gives 95% confidence.
Critical values and tails
- Two-tailed test: the rejection area is split between both tails (2.5% + 2.5% at the 5% level). Critical z = 1.645 at 10% and 1.96 at 5%.
- One-tailed test: all of alpha lies in one tail. Use it for claims like 'not less than 60'. Critical z = 1.28 at 10% and 1.645 at 5%.
- Worked example: n = 81, sample mean = 58, sigma = 10, claimed mean = 60. SEM = 10/9 = 1.11 and z = 2/1.11 = 1.80.
- Two-tailed at 5%: 1.80 < 1.96, so H0 is accepted and the company's claim stands.
- One-tailed at 5% (H0: mean >= 60; H1: mean < 60): 1.80 > 1.645, so H0 is rejected.
Key terms
- Null hypothesis (H0)
- The statement that there is no significant difference between sample and population.
- Alternative hypothesis (H1/HA)
- The statement that a significant difference exists.
- Significance level (alpha)
- The probability of rejecting a true H0; commonly 5%.
- Type I error
- Rejecting H0 when it is actually true.
- Type II error (beta)
- Accepting H0 when it is actually false.
- Standard error of mean (SEM)
- sigma/sqrt(n), the spread of sample means.
- Critical value
- The z cut-off that separates the acceptance region from the rejection region.
Lesson 7
t-Test, Chi-Square Test and F-Test
Hypothesis tests are either parametric, which assume a known (usually normal) population distribution and use measurable data, or non-parametric, which make no distributional assumptions. The main parametric tests are the z-test, t-test, F-test and ANOVA. The chi-square test is a key non-parametric test used for goodness of fit, independence and homogeneity.
Parametric vs non-parametric
- Parametric tests make assumptions (normal distribution), use the mean, use Pearson correlation, need knowledge of the population, use interval data, and apply to variables only.
- Non-parametric tests make no assumptions (the distribution is arbitrary), use the median, use Spearman rank correlation, need no population knowledge, use nominal data, and apply to attributes as well as variables.
- Variables are measurable (e.g. age in years). Attributes are qualitative (e.g. beauty, mode of transport).
Parametric tests
- z-test: large sample (n >= 30) with known population sigma; compares a sample mean with the population mean.
- t-test (Student's t): small sample (n < 30); compares the means of two samples.
- Unpaired t-test: two independent groups (e.g. different people receive 500 mg and 300 mg).
- Paired t-test: dependent measurements on the same subjects (e.g. the same people dosed in the morning and again in the afternoon).
- F-test: compares the variances of two samples (s1^2 versus s2^2).
- ANOVA (analysis of variance): compares the means of more than two samples; can be one-way, two-way or three-way, depending on the number of factors.
Non-parametric tests
- Goodness of fit: checks whether the data follow a hypothesised distribution. Examples: chi-square, Anderson-Darling, Shapiro-Wilk, Kolmogorov-Smirnov.
- Test for independence: checks whether the row and column variables are independent. Examples: chi-square, Fisher's exact test.
- Test for homogeneity: checks whether the variables are equally distributed. Examples: chi-square, Wilcoxon rank test, Mann-Whitney U, Kruskal-Wallis H, Friedman, Levene.
- Chi-square appears in all three categories, with a different formula for each.
Key terms
- Parametric test
- A test that assumes a known (normal) population distribution and uses measurable data.
- Non-parametric test
- A distribution-free test suited to attributes and nominal data.
- t-test
- Compares two means when n < 30.
- F-test
- Compares the variances of two samples.
- ANOVA
- Compares the means of more than two groups.
- Chi-square test
- A non-parametric test for goodness of fit, independence or homogeneity.
- Paired t-test
- A t-test for dependent measurements on the same subjects.
Lesson 8
Laspeyres, Paasche and Fisher Index Numbers
Weighted index numbers measure price change by weighting prices with quantities. Laspeyres uses base-year quantities, Paasche uses current-year quantities, and Fisher's ideal index is the geometric mean of the two. Fisher's index is called 'ideal' because it satisfies both the time reversal and factor reversal tests.
Formulas
- Notation: p0 and q0 are base-year price and quantity; p1 and q1 are current-year price and quantity.
- Laspeyres: P01 = (Σp1q0 / Σp0q0) x 100. Memory aid: only p1 carries a 1; everything else is 0.
- Paasche: P01 = (Σp1q1 / Σp0q1) x 100. Memory aid: only p0 carries a 0; everything else is 1.
- Fisher: P01 = sqrt[(Σp1q0/Σp0q0) x (Σp1q1/Σp0q1)] x 100 = sqrt(L x P).
Working method
- Build four columns: p1q0, p0q0, p1q1 and p0q1, then total each one.
- Worked example: Σp1q0 = 505, Σp0q0 = 425, Σp1q1 = 530, Σp0q1 = 470.
- Laspeyres = 505/425 x 100 = 118.82.
- Paasche = 530/470 x 100 = 112.77.
- Fisher = sqrt(118.82 x 112.77) ≈ 115.76.
- A single arithmetic slip carries through to Fisher, so recheck the column totals.
Why Fisher is 'ideal'
- It satisfies the time reversal test: P01 x P10 = 1.
- It satisfies the factor reversal test: P01 x Q01 = Σp1q1/Σp0q0 (the value ratio).
- Laspeyres and Paasche fail both tests. Fisher also balances their opposite biases.
Key terms
- Laspeyres index
- A price index weighted by base-year quantities: Σp1q0/Σp0q0 x 100.
- Paasche index
- A price index weighted by current-year quantities: Σp1q1/Σp0q1 x 100.
- Fisher's ideal index
- The geometric mean of the Laspeyres and Paasche indices.
- Time reversal test
- P01 x P10 = 1.
- Factor reversal test
- Price index x quantity index = value ratio.
Lesson 9
CPI and WPI in India
The Consumer Price Index (CPI) measures retail inflation as the change in the price of a fixed basket of goods and services relative to a base year. India's CPI was revised from base year 2012 to 2024, with a new weighting method, more items and services, and a lower food weight. The Wholesale Price Index (WPI) measures prices of goods only, from the traders' side, without indirect taxes.
Basics of a price index
- Fix a basket of commodities; base-year cost = 100.
- Inflation = (current index - previous index) / previous index x 100. Example: 110 to 121 is a 10% rise, not 21%.
- Simple average treats all items equally; a weighted average gives more weight to items consumed more often or that take a larger share of spending.
- Weighted average = sum(w x price change) / sum(w).
New CPI series (base 2024)
- Base year revised from 2012 to 2024; years like 2016 (demonetisation), 2017 (GST), 2020 (COVID) and 2022 (Ukraine war) were not 'normal' years.
- Compiled by NSO under MoSPI; data published on the eSankhyiki portal.
- Base year and basket to be updated every 3-5 years.
- Elementary level: Jevons index (unweighted geometric mean of price relatives). Higher level: modified Laspeyres (Young) index with weights.
- Basket based on the Household Consumption Expenditure Survey 2023-24.
- Services covered rose from about 40 to 50, including OTT subscriptions; online prices (e-commerce, air/rail tickets) are now collected.
- Free items such as PMGKAY grain (subsidy in kind) are excluded, following IMF guidance.
- Groups changed from 6 to 12 divisions as per the UN COICOP classification.
- Food weight cut from about 42-45% to about 36%; housing, health and transport weights raised; rural housing now has a weight.
Inflation concepts
- Headline CPI: overall CPI inflation; RBI must keep it at 4% within a 2-6% band.
- Core inflation = headline minus food and fuel.
- Disinflation: inflation falls but stays positive (e.g., 4% to 2%).
- Deflation: inflation below zero; can hurt farmers and cause job losses.
- Gap between rural and urban CPI is called a wedge or divergence, due to different weights.
Other indices and CPI vs WPI
- MoSPI/NSO: CPI Rural, Urban and Combined, Consumer Food Price Index.
- Labour Bureau: CPI-IW (used for DA and minimum wages), CPI-AL and CPI-RL (used for MGNREGA-type wage revisions).
- WPI: Office of the Economic Adviser, Ministry of Commerce and Industry.
- CPI: goods and services, prices including indirect taxes such as GST; food weight higher.
- WPI: goods only, prices excluding taxes (traders get input tax credit).
- Proposed Producer Price Index (PPI): goods and services, prices excluding taxes.
Key terms
- Base year
- Reference year whose index value is set to 100.
- Laspeyres index
- Weighted price index using base-period quantities as weights.
- Young index
- Modified Laspeyres index used at the higher aggregation level of the new CPI.
- Jevons index
- Unweighted geometric mean of price relatives, used at the elementary item level.
- Core inflation
- Headline inflation excluding food and fuel.
- Disinflation
- A fall in the rate of inflation while it stays positive.
- Deflation
- A negative inflation rate, meaning the general price level falls.
- WPI
- Wholesale index of goods prices excluding taxes, compiled by the Office of the Economic Adviser.
Lesson 10
Time Series Trend: Moving Average and Least Squares
The trend of a time series is its long-term movement. Two standard ways to estimate it are the moving average method, which uses odd or even periods with centring, and the least squares method, which fits a straight line y = a + bx.
Moving average: odd period (e.g., 3-yearly)
- Add the first 3 values to get a moving total; place it against the middle year.
- Drop the first value and add the next value; repeat to the end of the series.
- Divide each moving total by 3 to get the trend values.
- No trend value exists for the first and last years.
Moving average: even period (e.g., 4-yearly)
- Compute 4-year moving totals; they fall between two years.
- Add pairs of consecutive 4-year totals to get 2-period centred totals.
- Divide by 8 to get centred trend values aligned with the actual years.
- Two values are lost at each end.
Least squares (straight line)
- Fit y = a + bx, with x measured as a deviation from an origin year, usually the middle year.
- Normal equations: sum(y) = n*a + b*sum(x); sum(xy) = a*sum(x) + b*sum(x^2).
- If the origin is the middle year, sum(x) = 0, so a = sum(y)/n and b = sum(xy)/sum(x^2).
- Trend value for each year = a + b*x; successive trend values rise by b each year.
Key terms
- Secular trend
- The long-term general direction of a time series.
- Moving average
- An average of consecutive overlapping groups of values, used to smooth fluctuations.
- Centring
- Averaging pairs of even-period moving averages so the results align with actual time points.
- Normal equations
- Equations whose solution gives the least squares values of a and b.
- Least squares method
- Fits the line that minimises the sum of squared deviations of observed values from trend values.
Lesson 11
Seasonal Variation in Time Series
Seasonal variation is a regular, repeating pattern within a year, such as umbrella sales in the rains or crackers at Diwali. The method of simple averages measures it by comparing the average for each quarter or month with the overall average, giving seasonal indices.
Seasonal variation
- Arises from seasons, festivals and customs, for example woollens in winter.
- Four methods: simple averages, ratio to moving average, ratio to trend, and link relatives.
- Simple averages is the basic method and is also used inside the other three.
Method of simple averages: steps
- Arrange the data by year and quarter (or month).
- Add the values for each quarter across all years and divide by the number of years to get the quarterly averages.
- Take the average of the quarterly averages to get the grand average (divide by 4, or by 12 for months).
- Seasonal index = (quarter average / grand average) x 100.
- The quarterly indices sum to 400 and the monthly indices to 1200; the average index is 100.
Worked example
- Quarterly averages 75.2, 70.4, 83.2 and 76.8 give a grand average of about 76.4.
- Q1 index = 75.2/76.4 x 100 = about 98.4.
- Q3 index = 83.2/76.4 x 100 = about 108.9, the peak season.
- Monthly data: January average 14.33 and grand average 13.66 give an index of about 104.9.
Key terms
- Seasonal variation
- A periodic fluctuation that repeats within a year.
- Seasonal index
- The average for a season as a percentage of the grand average.
- Grand average
- The average of all quarterly or monthly averages.
- Method of simple averages
- Measures seasonal variation by averaging each season's values across years.
