Handouts Of Mth302 updated-150-323

📚 Handouts Of Mth302 updated-150-323.pdf

Brief overview

This document provides a comprehensive overview of fundamental statistical concepts crucial for data analysis. Mastering these topics will equip you to describe, analyze, and interpret quantitative information effectively.

Key points

  • Overview of statistical data representation and measures of central tendency.
  • Understanding measures of dispersion, skewness, and data distribution shapes.
  • Introduction to correlation and line fitting techniques across multiple parts.
  • Exploration of time series analysis, exponential smoothing, and probability distributions.
  • Methods for sampling, inference, hypothesis testing, and linear programming.

1. Introduction to statistical data representation

Statistical data representation involves organizing and presenting collected information clearly. This helps in understanding trends and making decisions.

Data can be classified based on various criteria for better organization and presentation.

1.1 Basis for classification

Data can be classified into different categories to facilitate analysis and understanding. These classifications help in structuring information and identifying patterns.

  • Qualitative: Based on attributes like sex or religion.
  • Quantitative: Based on measurable characteristics such as heights or incomes.
  • Geographical: Based on regions like provinces or divisions.
  • Chronological: Based on time, often referred to as time series 1.

Data classification allows for targeted analysis and interpretation.

1.2 Types of classification

Classifications can be structured to examine one or multiple characteristics of the data. The number of characteristics considered determines the type of classification.

  • One-way: Considers a single characteristic of the data.
  • Two-way: Analyzes two characteristics simultaneously.
  • Three-way: Examines three characteristics at a time.

1.3 Methods of data presentation

Presenting data effectively is crucial for comprehension. Various methods exist, ranging from simple text descriptions to visual representations like charts and graphs.

  • Text: Descriptive statements, often summarizing key findings.
  • Semi-tabular: Data presented in rows with some textual explanation.
  • Tabular: Data organized in rows and columns within tables.
  • Graphic: Visual representations using charts and graphs.

1.4 Types of graphs

Graphs provide a visual summary of data, making complex information easier to grasp. Different graph types are suitable for various kinds of data and analytical purposes.

  • Picture graph (Pictograph)
  • Column Graphs
  • Line Graphs
  • Circle Graphs (Sector Graphs)
  • Conversion Graphs
  • Travel Graphs
  • Histograms
  • Frequency Polygon
  • Cumulative Polygon (Ogive)

1.4.1 Pictographs

Pictographs use proportional numbers of pictures to represent values. Each picture symbol stands for a specific quantity.

Pictographs make data visually engaging by using relatable images.

1.4.2 Sector Graphs

Sector graphs, also known as circle graphs, divide a circle into sectors. Each sector's angle represents a proportion of the whole, with the full circle representing 360 degrees 2.

1.4.3 Column and Bar Graphs

These graphs use rectangular bars to display data. Column graphs have bars oriented vertically, while bar graphs have them horizontally.

They are useful for comparing discrete categories.

1.4.4 Line Graphs

Line graphs plot data points and connect them with lines, effectively showing trends over time or across a continuous variable. They are commonly used to illustrate changes and patterns 4 6.

1.5 Organizing numerical data

Numerical data can be organized using several methods to reveal its underlying structure and distribution. These techniques help in summarizing large datasets.

  • Ordered Array and Stem-leaf Display
  • Tabulating and Graphing Numerical Data
  • Frequency Distributions (Tables, Histograms, Polygons)
  • Cumulative Distributions (Tables, Ogives)

1.5.1 Stem and leaf display

A stem and leaf display separates each data point into a "stem" (usually the leading digit) and a "leaf" (the trailing digit). It is useful for small to moderately sized datasets and preserves individual data values while showing distribution shape.

  • Stem: The first digit(s) of a number.
  • Leaf: The last digit of a number 9.

A stem and leaf plot helps visualize the data's shape and spread.

1.5.2 Tabulating numerical data

Grouping numerical data into classes is often necessary for summarization. This involves several steps to define the classes and count the observations within each.

  • Step 1: Sort Raw Data: Arrange data in ascending order.
  • Step 2: Find Range: Calculate the difference between the maximum and minimum values.
  • Step 3: Select Number of Classes: Choose a suitable number of classes, typically between 5 and 15.
  • Step 4: Compute Class Width: Divide the range by the number of classes and round up.
  • Step 5: Determine Class Boundaries: Define the lower and upper limits for each class 11.
  • Step 6: Compute Class Midpoints: Calculate the average of the lower and upper limits for each class.
  • Step 7: Compute Class Intervals: Define the range for each class, e.g., "10 but under 20".

Important points for classes:

  • Classes should be between 5 and 15 in number.
  • Mutually exclusive: No data value can be in more than one class.
  • All-inclusive: All data values must be covered.
  • Continuous: No gaps between classes.
  • Equal width: Classes should have the same width, with exceptions for first/last classes.

1.5.3 Frequency Distributions

A frequency distribution table shows the number of observations (frequency) within each class interval.

  • Frequency: The count of data points in a class interval.
  • Relative Frequency: The proportion of observations in a class (Frequency / Total Frequency) 12.
  • Percent Relative Frequency: Relative frequency multiplied by 100.
  • Cumulative Frequency: The sum of frequencies up to and including a class interval.
  • Percent Cumulative Relative Frequency: The sum of percent relative frequencies up to and including a class interval 13.

Frequency distributions summarize data by grouping it into classes and counting occurrences.

1.5.4 Histograms

A histogram is a bar graph representing a frequency distribution. The width of each bar corresponds to the class interval, and the height corresponds to the class frequency.

1.6 Measures of central tendency

Measures of central tendency describe the typical or central value of a dataset. They help summarize large amounts of data into a single representative number.

  • Mean: The arithmetic average, calculated by summing all values and dividing by the count. It is sensitive to extreme values.
  • Formula for discrete data: Mean=∑xn\text{Mean} = \frac{\sum x}{n}.
  • For grouped data, it's calculated using class marks and frequencies: Mean=∑fXn\text{Mean} = \frac{\sum fX}{n} where XX is the class mark 20.
  • Median: The middle value of a dataset when arranged in order. If there's an even number of data points, it's the average of the two middle values. It is not affected by extreme values 7.
  • Mode: The most frequently occurring value in a dataset. A dataset can have one mode, multiple modes, or no mode.

The mean, median, and mode are key indicators of a dataset's center.

1.7 Comparison of central tendency measures

Each measure of central tendency has distinct advantages and disadvantages, making them suitable for different types of data and analytical goals.

MeasureDescriptionAdvantagesDisadvantages
MeanThe sum of all results divided by the number of observations.Quick and easy to calculate.May not be representative if extreme values exist.
MedianThe middle value of numbers in a sample, with half above and half below.Takes all numbers into account equally.More tedious to calculate than others; can be affected by extreme values.
ModeThe most frequently observed value.Fairly easy to calculate.Tedious for large, unordered samples 8.

No single measure of central tendency gives a complete picture of data.

1.8 Other measures of central tendency

While mean, median, and mode are the most common, other measures exist for specific analytical needs.

  • Geometric Mean
  • Harmonic Mean
  • Weighted Mean
  • Truncated Mean (Trimmed Mean)
  • Winsorized Mean
  • Midrange
  • Midhinge

These are used in specialized contexts to better represent the data's central point, especially when data has unusual distributions 14.

Measures like Geometric Mean are used for data involving rates or ratios.

🔑 Important: Understanding the characteristics of your data is key to selecting the most appropriate measure of central tendency for accurate representation and decision-making 15.

2. Measures of dispersion and skewness

2.1 Introduction to dispersion and skewness

  • Dispersion: measures the spread of data around an average.
  • Skewness: describes the shape of a distribution.

🔑 Important: Dispersion tells us how spread out the data is, while skewness tells us about the data's symmetry.

2.1.1 Types of dispersion measures

  • Absolute measures: express dispersion in the original units of data.
  • Relative measures (coefficients): express dispersion as a ratio or percentage, allowing comparison between datasets with different units.

2.1.2 Absolute measures of dispersion

  • Range: difference between the largest and smallest values.
  • Quartile Deviation (Q.D.): half the difference between the third and first quartiles.
  • Mean Deviation: average of the absolute differences from the mean.
  • Standard Deviation and Variance: measures of average deviation from the mean.

2.1.3 Relative measures of dispersion

  • Coefficient of Range.
  • Coefficient of Quartile Deviation.
  • Coefficient of Mean Deviation.
  • Coefficient of Variation (C.V.): ratio of standard deviation to the mean, expressed as a percentage 38.

🔑 Important: Relative measures are essential for comparing the dispersion of datasets with different scales or units.

2.2 Measures of position and quartiles

  • Quartiles: divide data into four equal parts.
  • Q1 (1st Quartile): 25% of data is below this value.
  • Q2 (2nd Quartile): Also the median, 50% of data is below this value.
  • Q3 (3rd Quartile): 75% of data is below this value.
  • Deciles: divide data into ten equal parts.
  • Percentiles: divide data into one hundred equal parts.

2.2.1 Calculating quartiles

  • For ungrouped data, the position of the ithi^{th} quartile is: Position of Qi=i(n+1)4\text{Position of } Q_i = \frac{i(n+1)}{4} where i=1,2,3i = 1, 2, 3 and nn is the number of data points 34.
  • For grouped data, the ithi^{th} quartile (QiQ_i) is calculated as: Qi=l+hf[i⋅n4−cfQ_i = l + \frac{h}{f}[ \frac{i \cdot n}{4} - cf where ll is the lower boundary, hh is the class width, ff is the frequency, and cfcf is the cumulative frequency.

2.2.2 Quartile Deviation

  • Quartile Deviation (Q.D.) measures the spread of the middle 50% of the data.
  • Formula: Q.D.=Q3−Q12\text{Q.D.} = \frac{Q_3 - Q_1}{2}.

2.2.3 Midhinge and Midrange

  • Midhinge: the average of the first and third quartiles. Midhinge=Q1+Q32\text{Midhinge} = \frac{Q_1 + Q_3}{2}
  • Midrange: the average of the smallest and largest values. Midrange=Smallest value+Largest value2\text{Midrange} = \frac{\text{Smallest value} + \text{Largest value}}{2}

🔑 Important: Midhinge and Midrange are measures of central tendency that also offer insights into data spread 33.

2.3 Understanding distribution shape (Skewness)

  • A distribution's shape describes how its data is spread out.
  • Key characteristics include symmetry and the presence of tails.

2.3.1 Symmetrical distribution

  • In a perfectly symmetrical distribution, the data is balanced on both sides of the center.
  • Measures of central tendency are equal:
  • Mean = Median = Mode.
  • Visually, the distribution's histogram or frequency polygon forms a mirror image.

2.3.2 Asymmetrical (Skewed) distribution

  • Right-skewed (positively skewed) distribution:
  • The tail extends to the right (higher values).
  • Generally, Mean > Median > Mode.
  • The midrange and midhinge will be greater than the median.
  • Left-skewed (negatively skewed) distribution:
  • The tail extends to the left (lower values).
  • Generally, Mode < Median < Mean.
  • The midrange and midhinge will be less than the median.

🔑 Important: The relationship between mean, median, and mode is a key indicator of skewness.

2.3.3 Visualizing skewness: 5-number summary and box plots

  • 5-Number Summary: provides key points to describe distribution shape.
  • Smallest value
  • 1st Quartile (Q1Q_1)
  • Median (Q2Q_2)
  • 3rd Quartile (Q3Q_3)
  • Largest value
  • Box-and-Whisker Plot: graphically displays the 5-number summary.
  • The box represents the interquartile range (Q1Q_1 to Q3Q_3).
  • The line inside the box is the median.
  • Whiskers extend to the minimum and maximum values.

2.3.3.1 Interpreting box plots for skewness

  • Symmetrical: The box is centered, and whiskers are roughly equal in length. Q1−Min≈Max−Q3Q_1 - \text{Min} \approx \text{Max} - Q_3 and Q1−Min≈Q3−Q1≈Max−Q3Q_1 - \text{Min} \approx Q_3 - Q_1 \approx \text{Max} - Q_3.
  • Right-skewed: The median is to the left of the box center, and the right whisker is longer than the left. Q3−Q1<Max−Q3Q_3 - Q_1 < \text{Max} - Q_3. Relationship: Median < Midhinge < Midrange.
  • Left-skewed: The median is to the right of the box center, and the left whisker is longer than the right. Q1−Min>Q3−Q1Q_1 - \text{Min} > Q_3 - Q_1. Relationship: Median > Midhinge > Midrange37.

🔑 Important: Box plots offer a quick visual assessment of skewness and data spread 36.

2.3.4 Empirical relationship for moderately skewed distributions

  • For distributions that are moderately skewed and unimodal (one peak), an approximate relationship exists: Mean−Mode≈3(Mean−Median)\text{Mean} - \text{Mode} \approx 3(\text{Mean} - \text{Median}).
  • This can be rearranged to find the median if the mean and mode are known: Median≈13(Mode+2⋅Mean)\text{Median} \approx \frac{1}{3}(\text{Mode} + 2 \cdot \text{Mean}).

🔑 Important: This empirical rule provides a useful approximation for relating mean, median, and mode in moderately skewed data 28.


🔑 Important: Measures of dispersion quantify data spread, while skewness describes distribution asymmetry. Understanding both is crucial for a complete statistical picture 29 35.

3. Correlation and line fitting (part 1)

3.1 Measures of dispersion

  • Variance: The average squared difference from the mean. For a population, divide by NN. For a sample, divide by n−1n-141.
  • Standard deviation: The positive square root of the variance. It is expressed in the original units of the data 40.

🔑 Important: Variance is measured in squared units, which is often impractical. Standard deviation returns the measure to the original data units, making it more interpretable.

  • Formulas for variance and standard deviation:

  • Sample Variance (s2s^2): s2=∑(x−xˉ)2n−1s^2 = \frac{\sum(x - \bar{x})^2}{n-1}.

  • Population Variance (σ2\sigma^2): σ2=∑(x−μ)2N\sigma^2 = \frac{\sum(x - \mu)^2}{N}.

  • Sample Standard Deviation (ss): s=∑(x−xˉ)2n−1s = \sqrt{\frac{\sum(x - \bar{x})^2}{n-1}}.

  • Population Standard Deviation (σ\sigma): σ=∑(x−μ)2N\sigma = \sqrt{\frac{\sum(x - \mu)^2}{N}}.

  • For grouped data (frequency distributions), multiply each squared deviation by its frequency before averaging 42.

  • Coefficient of Variation (CV): Compares standard deviations of different datasets by expressing them as a percentage of the mean. This helps compare variability when means differ.

  • Formula: CV=sxˉ×100%CV = \frac{s}{\bar{x}} \times 100\%.

  • Mean Deviation: The average of the absolute deviations from the mean or median.

  • Formula for mean deviation about the mean (sample): MD=∑∣x−xˉ∣nMD = \frac{\sum |x - \bar{x}|}{n} 44.

  • Formula for mean deviation about the mean (population): MD=∑∣x−μ∣NMD = \frac{\sum |x - \mu|}{N}.

📝 Example: For marks 45, 32, 37, 46, 39, 36, 41, 48, 36:

  • Mean = 40
  • Median = 39
  • Mean Deviation from Mean = 4.4
  • Mean Deviation from Median = 4.3 45.

3.2 Correlation analysis

  • Correlation: Measures the strength and direction of the linear relationship between two random variables.
  • Use correlation when you want to know if there's an association between two variables.
  • Correlation analysis helps understand behavior and identify key variables.
  • Simple linear correlation vs. Simple linear regression:
  • Correlation: Measures the association (importance) between variables.
  • Regression: Used for prediction (intensity) and determines regression constants.

🔑 Important: Correlation does not imply causation. A high correlation does not mean one variable causes the other; a third variable might be involved, or it could be spurious 51.

3.2.1 Types of correlation

  • Scatter diagrams visually represent the relationship between two variables. The pattern of points suggests the type of association 46.
Relationship TypeDescriptionVisual Representation
PositiveDependent variable increases as the independent variable increases.Points trend upwards from left to right.
NegativeDependent variable decreases as the independent variable increases.Points trend downwards from left to right.
No correlationNo discernible linear relationship between the variables.Points are scattered randomly.

47### 3.2.2 Correlation coefficient (rr)

  • The correlation coefficient (rr) is a standardized measure of the covariance between two variables. It ranges from -1 to 1.

  • r=1r = 1: Perfect positive linear correlation.

  • 0<r<10 < r < 1: Strong to weak positive linear correlation.

  • r=0r = 0: No linear correlation.

  • −1<r<0-1 < r < 0: Strong to weak negative linear correlation.

  • r=−1r = -1: Perfect negative linear correlation 48 50.

  • Formula for correlation coefficient: r=Cov(X,Y)sXsYr = \frac{Cov(X,Y)}{s_X s_Y}.

  • Covariance formula: Cov(X,Y)=∑(X−xˉ)(Y−yˉ)n−1Cov(X,Y) = \frac{\sum (X - \bar{x})(Y - \bar{y})}{n-1}.

  • A short-cut formula for calculation is often used: r=n∑XY−(∑X)(∑Y)[n∑X2−(∑X)2][n∑Y2−(∑Y)2]r = \frac{n\sum XY - (\sum X)(\sum Y)}{\sqrt{[n\sum X^2 - (\sum X)^2][n\sum Y^2 - (\sum Y)^2]}} 49.

📝 Example: Calculating rr for math and statistics grades:

  • ∑X=156\sum X = 156, ∑Y=168\sum Y = 168
  • ∑X2=3024\sum X^2 = 3024, ∑Y2=3294\sum Y^2 = 3294
  • ∑XY=3109\sum XY = 3109, n=9n=9
  • r≈0.88r \approx 0.88 (strong positive correlation) 52.
  • Excel functions like CORREL can calculate the correlation coefficient55.

🔑 Important: Always check the scatter diagram alongside the correlation coefficient. A high rr value might not capture non-linear relationships 53.

4. Correlation and line fitting (part 2)

4.1 Understanding regression

  • Line fitting uses regression models to describe relationships between variables.
  • Scatter diagrams help visualize if a linear relationship exists.
  • Two main regression models exist:
  • Population linear regression: describes the relationship for an entire population.
  • Sample linear regression: estimates the relationship using data from a sample 63.

🔑 Important: Linear regression aims to model how one variable changes in response to another.

4.2 The linear regression equation

  • The relationship between variables can be described by a linear function: Y=a+bXY = a + bX.
  • YY: dependent variable.
  • XX: independent variable.
  • aa: the Y-intercept, the value of YY when XX is zero.
  • bb: the slope, representing the rate of change of YY for a unit change in XX 64.
  • In reality, the relationship might not be exact. An error term (eie_i) is added: Yi=a+bXi+eiY_i = a + bX_i + e_i.
  • This accounts for random variation not explained by the linear model.
  • The distance of data points from the line represents this random error 65.

🔑 Important: The slope (bb) indicates how much YY changes for each one-unit increase in XX.

4.3 Calculating slope and intercept

  • Formulas exist to calculate the slope (bb) and intercept (aa) from data.

  • The slope (bb) is calculated as: b=n(∑XY)−(∑X)(∑Y)n(∑X2)−(∑X)2b = \frac{n(\sum XY) - (\sum X)(\sum Y)}{n(\sum X^2) - (\sum X)^2}.

  • The intercept (aa) is calculated as: a=Yˉ−bXˉa = \bar{Y} - b\bar{X} 67. Where Yˉ\bar{Y} is the mean of YY and Xˉ\bar{X} is the mean of XX.

  • Software like Excel can automate these calculations.

  • The SLOPE function calculates the slope of the regression line 60.

  • The INTERCEPT function calculates the Y-intercept of the regression line 61.

🔑 Important: These formulas help find the "best-fit" line through data points.

4.4 Using Excel for regression analysis

  • Excel's "Data Analysis" toolpak can perform regression analysis easily.
  • The process involves:
  • Accessing the "Data Analysis" menu.
  • Selecting "Regression."
  • Inputting the ranges for Y (dependent) and X (independent) variables.
  • Specifying output options like confidence level and output range. 68 69.
  • Excel generates a detailed "SUMMARY OUTPUT." 70 71.
  • This output includes:
  • Multiple R: The correlation coefficient.
  • R Square: The coefficient of determination.
  • Standard Error of the Mean (STEM).
  • T-Statistic.
  • Excel also generates plots like a normal probability plot and a line fit plot 72.

🔑 Important: Excel regression tools provide comprehensive outputs and visualizations for analysis.

4.5 Interpreting regression output

  • Key outputs from Excel's regression tool include:
  • R Square: Indicates the proportion of variance in YY explained by XX.
  • P-Value: Shows the probability of observing the calculated slope if there were no actual relationship. A small P-value suggests a significant result.
  • The RSQ function in Excel directly calculates the square of the Pearson correlation coefficient (r2r^2) 73.
  • If the P-value is small (e.g., < 0.05), it suggests a strong association between XX and YY.

🔑 Important: P-values help determine if the observed relationship in the sample is likely to exist in the population.

4.6 Sampling distribution of the correlation coefficient (r)

  • It's possible to create a sampling distribution for the correlation coefficient (rr).
  • This helps determine if a calculated correlation is statistically significant.
  • Tables of critical values are used, considering:
  • Sample size (nn).
  • Degrees of freedom (v=n−2v = n - 2).
  • Significance level (e.g., 0.05, 0.01) 74.

Determining significance

  • Decision Rule:
  • If the absolute value of the calculated rr is greater than the critical value, the correlation is significant.
  • If the absolute value of the calculated rr is less than the critical value, the correlation is not significant.

🔑 Important: A significant correlation suggests the variables are strongly associated; a non-significant one suggests they are not.


🔑 Important: The goal of line fitting and correlation analysis is to understand and quantify the linear relationship between variables.

5. Correlation and line fitting (part 3)

5.1 Using the chart wizard for data visualization

  • The Chart Wizard helps create visual representations of data.
  • It guides users through four distinct steps to generate various chart types 81.

5.1.1 Chart wizard steps and options

  • Step 1: Data selection on the worksheet. Users choose the specific data range to be plotted.
  • Step 2: Chart type selection. Options include Column, Bar, Line, Pie, and others. The example used a column graph 83.
  • Step 3: Chart elements configuration. Users define the chart title, axis labels (X and Y), and data series names.
  • Step 4: Chart placement. The final step allows users to name the chart and choose where to place it, such as on a new or existing sheet 84.

📝 Example: Data can be visualized as a column graph, a side-by-side chart, or a line graph using the Chart Wizard.

5.1.2 Interpreting visualized data

  • Visualizations like column graphs and line graphs help in understanding data patterns.
  • Line graphs, for instance, are effective for showing trends over time, such as seasonal variations in sales data.

🔑 Important: Visualizing data with charts aids in identifying trends and patterns that might be missed in raw numerical data 85 86.

🔑 Important: Understanding how to use charting tools like the Chart Wizard is essential for presenting and interpreting statistical information effectively 80.

6. Time series, exponential smoothing, and probability patterns (part 1)

6.1 Time series analysis and moving averages

A time series is a sequence of data points collected over time. These points can exhibit several patterns:

  • Trend: A general upward or downward movement over a long period.
  • Seasonal Variations: Regular, repeating patterns within a shorter term, typically less than a year.
  • Cyclical Variations: Alternating upward and downward movements that may not have a fixed period.
  • Random Effect: Unpredictable variations due to unforeseen circumstances.

Moving averages help to smooth out short-term fluctuations and reveal the underlying trend.

🔑 Important: Plotting data on a graph is the first step to identify patterns.

Calculating moving averages

To calculate a moving average, you sum a fixed number of consecutive data points and divide by that number.

  • Simple moving average: Sum of values over a period divided by the number of periods.
  • Updating a moving average: To get the next average, drop the oldest data point and add the newest one. This can be done by adjusting the previous average by the difference between the new and old points, divided by the number of periods.

🔑 Important: Excel worksheets are recommended for moving average calculations to avoid arithmetic errors.

Moving Average Calculation Example:

DayMorningAfternoonEveningDaily Average
1170140230180
2176152233183.67
3182161242195

87 88

Analyzing seasonal variations

Seasonal variations are the differences between actual data points and the calculated trend.

  • Seasonal Variation: Calculated as Actual Value - Trend.
  • Forecasting: Moving averages are useful for forecasting by identifying the trend and adjusting for seasonal variations.

🔑 Important: Moving averages can effectively remove seasonal variations, revealing a clearer trend for forecasting.

Decomposition of Time Series:

ComponentCalculation
TrendMoving Average
Seasonal VariationActual – Trend
Random VariationActual – (Trend + Seasonal Variation)

89 90 91### Forecasting with seasonal adjustments

Forecasting involves predicting future values based on identified trends and seasonal patterns.

  • Trend projection: Estimate the trend for the future period. This often involves calculating the average increase or decrease per period.
  • Seasonal adjustment: Add or subtract the average seasonal variation for that specific period.

🔑 Important: Seasonal variations are often assumed to be constant amounts, but in reality, they can change as the trend changes.

Forecasting Example (Apple Pie Sales):

  • Trend in Spring 1995: 133.5
  • Annual decline over 4 quarters: 8.5
  • Projected Trend in 1996: 133.5 - 8.5 = 125
  • Seasonal variation for Spring: -8
  • Final Forecast: 125 - 8 = 117 92 93 94.

6.2 Exponential smoothing

Exponential smoothing is a forecasting method used when data lacks a clear trend or seasonal pattern, or when these patterns are inconsistent.

  • It focuses on recent observations, giving them exponentially decreasing weights.
  • The basic idea is to adjust the previous forecast based on the error in that forecast.

🔑 Important: This method is suitable for data that hovers around an average value without a strong discernible pattern.

The exponential smoothing formula

The forecast for the current period (F(t)F(t)) is calculated using the previous forecast (F(t−1)F(t-1)) and the actual value from the previous period (A(t−1)A(t-1)).

F(t)=F(t−1)+α(A(t−1)−F(t−1))F(t) = F(t-1) + \alpha (A(t-1) - F(t-1))

This can be rewritten as: F(t)=αA(t−1)+(1−α)F(t−1)F(t) = \alpha A(t-1) + (1-\alpha) F(t-1)

  • α\alpha is the smoothing constant, ranging from 0 to 1.

🔑 Important: A higher α\alpha gives more weight to recent actual values, making the forecast more responsive but potentially erratic. A lower α\alpha gives more weight to past forecasts, leading to smoother but potentially lagging forecasts.

Choosing the smoothing constant (α\alpha)

The best value for α\alpha is typically determined by minimizing the Mean Square Error (MSE).

  • Mean Square Error (MSE): The average of the squared differences between actual and forecast values.
  • A stable MSE indicates a good forecast.
  • Generally, α\alpha values between 0.1 and 0.3 perform best 95 96.

📝 Example: If the forecast for week 2 was 4500 and the actual sales were 4000, the error is 500. With α=0.3\alpha = 0.3, the forecast for week 3 would be 4500+0.3×(4000−4500)=4500−150=43504500 + 0.3 \times (4000 - 4500) = 4500 - 150 = 4350.

Using Excel for exponential smoothing

Excel has a built-in Exponential Smoothing Tool that automates this process.

  • Input Range: The data series to analyze.
  • Damping Factor: The smoothing constant (α\alpha).
  • Labels: Indicates if the data includes headers.
  • Output Range: Where the results will be placed.
  • Chart Output: Generates a chart of actual vs. forecast values.
  • Standard Errors: Includes an option to calculate standard error values 97 98 99 100.

🔑 Important: Reasonable smoothing constants (α\alpha) are typically between 0.2 and 0.3, meaning the forecast is adjusted 20-30% for the prior error.

6.3 Factorials, permutations, and combinations

This section introduces fundamental concepts from combinatorics and probability.

Factorials

A factorial, denoted by n!n!, is the product of all positive integers up to a given positive integer nn.

  • n!=n×(n−1)×(n−2)×⋯×3×2×1n! = n \times (n-1) \times (n-2) \times \dots \times 3 \times 2 \times 1
  • By definition, 0!=10! = 1.

🔑 Important: Factorials are used extensively in probability and statistics, particularly in calculating permutations and combinations.

Factorial Examples:

ExpressionCalculationResult
5!5!5×4×3×2×15 \times 4 \times 3 \times 2 \times 1120
8!/5!8!/5!(8×7×6×5!)/5!(8 \times 7 \times 6 \times 5!) / 5!336
10!/9!10!/9!(10×9!)/9!(10 \times 9!) / 9!10

If an operation A can be performed in mm ways and an operation B can be performed in nn ways, then both operations can be performed together in m×nm \times n ways.

📝 Example: A coin can be tossed in 2 ways, and a die can be thrown in 6 ways. Tossing a coin and throwing a die together can be done in 2×6=122 \times 6 = 12 ways.

Permutations

A permutation is an arrangement of objects in a specific order. The order of elements matters.

  • The number of permutations of nn objects taken rr at a time is given by the formula: nPr=n!(n−r)!nPr = \frac{n!}{(n-r)!}
  • The number of permutations of nn distinct objects taken all at a time is n!n!.
  • If there are nn objects with n1n_1 alike of one kind, n2n_2 alike of another kind,..., nkn_k alike of a kk-th kind, the number of distinct permutations is:
\dots n_k!} $$ > **🔑 Important:** Use permutations when the order of selection or arrangement is significant. > **📝 Example:** The number of ways to arrange 3 letters (A, B, C) taken 2 at a time is $3P2 = \frac{3!}{(3-2)!} = 6$. The arrangements are AB, BA, AC, CA, BC, CB. <span style="color: #ff9f29; font-weight: 700;">Permutation Examples:</span> | Scenario | Calculation | Result | |---|---|---| | Watching 3 of 6 movies | $P(6,3) = 6! / (6-3)!$ | 120 ways | | Lottery with 5 distinct numbers from 100 | $P(100,5) = 100! / (100-5)!$ | 9,034,502,400 ways | | Spy with 8 cards, 5 used in order | $P(8,5) = 8! / (8-5)!$ | 6720 possibilities | | Word STATISTICS (10 letters) | $10! / (3! \times 1! \times 3! \times 2! \times 1!)$ | 50400 permutations | Excel's `PERMUT(number, number_chosen)` function can calculate permutations [101](#page=101) [102](#page=102) [103](#page=103). ### Combinations A <span style="color: #ff9f29; font-weight: 700;">combination</span> is a selection of objects where the order does not matter. * The number of combinations of $n$ objects taken $r$ at a time is given by the formula: $$ nCr = \frac{n!}{r!(n-r)!} $$ * This is also often written as $\binom{n}{r}$ or $C(n,r)$. > **🔑 Important:** Use combinations when only the group of selected items matters, not the order in which they were chosen. > **📝 Example:** To form a team of 11 players from 15, the order does not matter. The number of combinations is $15C11 = \frac{15!}{11!(15-11)!} = 1365$. <span style="color: #ff9f29; font-weight: 700;">Combination Examples:</span> | Scenario | Calculation | Result | |---|---|---| | Selecting 3 white balls from 5 and 2 black from 4 | $5C3 \times 4C2$ | $10 \times 6 = 60$ ways | | Committee of 3 from 5 married couples (no spouses) | $10C3 - (5 \times 8)$ | $120 - 40 = 80$ committees | <span style="color: #ff9f29; font-weight: 700;">Key Combination Identities:</span> * $nC0 = nCn = 1$ * $nC1 = nCn-1 = n$ * $nCr = nCn-r$ [105](#page=105) [106](#page=106). > **🔑 Important:** The core distinction between permutations and combinations lies in whether the order of arrangement matters. Permutations care about order; combinations do not. # 7. Time series, exponential smoothing, and probability patterns (part 2) ## 7.1 Probability rules and concepts * <span style="color: #ff9f29; font-weight: 700;">Sample space</span>: The collection of all possible outcomes of an experiment. * <span style="color: #ff9f29; font-weight: 700;">Event</span>: A single possible outcome or a subset of the sample space. * <span style="color: #ff9f29; font-weight: 700;">Probability</span>: A numerical measure of the chance an event will occur, ranging from 0 (impossible) to 1 (certain). * $0 \le p(A) \le 1$ [108](#page=108). * <span style="color: #ff9f29; font-weight: 700;">A priori probability</span>: Calculated before an event occurs, assuming all outcomes are equally likely. * $p(\text{event}) = \frac{\text{Number of ways event can occur}}{\text{Total number of possible outcomes}}$. * <span style="color: #ff9f29; font-weight: 700;">Empirical probability</span>: Estimated by observing past data and experiments. * $p(\text{event}) = \frac{\text{Number of times event occurs}}{\text{Total number of experiments}}$. * Accuracy increases with more experiments. > Probability quantifies uncertainty. ### 7.1.1 The OR rule * Applies when determining the probability of either event A or event B occurring. * Requires events A and B to be <span style="color: #ff9f29; font-weight: 700;">mutually exclusive</span> (cannot happen at the same time). * Formula: $p(A \text{ or } B) = p(A) + p(B)$. * Example: Rolling a die, the probability of getting an even number (3/6) or a number divisible by three (2/6) is $3/6 + 2/6 = 5/6$. Note: 6 is not mutually exclusive here as it is even and divisible by 3. The correct approach is to count unique favorable outcomes. ### 7.1.2 The AND rule * Applies when determining the probability of both event A and event B occurring simultaneously. * Formula: $p(A \text{ and } B) = p(A) \times p(B)$ [109](#page=109). * Example: If 40% of a workforce are women and 25% of females are in management, the probability of selecting a woman from management is $0.40 \times 0.25 = 0.10$ or 10%. ### 7.1.3 Mutually exclusive and exhaustive events * <span style="color: #ff9f29; font-weight: 700;">Mutually exclusive events</span>: Events that cannot occur at the same time. * <span style="color: #ff9f29; font-weight: 700;">Exhaustive events</span>: A set of events that covers all possible outcomes. * The sum of probabilities of all mutually exclusive and collectively exhaustive events is always 1. * $p(A) + p(B) + p(C) + \dots + p(N) = 1$ [110](#page=110). * Example: If $p(\text{pass}) = 0.9$, then $p(\text{fail}) = 1 - 0.9 = 0.1$. * Example: For three machines, the probability of at least one breaking down is 1 minus the probability of all three working[113](#page=113). > Mutually exclusive events do not overlap; exhaustive events cover all possibilities. ### 7.1.4 Application of probability rules * Complex scenarios often require breaking down events into smaller, manageable parts. * The <span style="color: #ff9f29; font-weight: 700;">AND</span> and <span style="color: #ff9f29; font-weight: 700;">OR</span> rules are applied sequentially to calculate probabilities of combined events[114](#page=114). * Example: A worker is late. If caught, they get a warning; if caught a second time, they are dismissed. The probability of not being dismissed after three instances involves calculating probabilities of various caught/not caught combinations and summing probabilities of "not dismissed" scenarios [111](#page=111) [115](#page=115). ## 7.2 Expected value * <span style="color: #ff9f29; font-weight: 700;">Expected Monetary Value (EMV)</span>: The average outcome of a decision if it were repeated many times. * Formula: $EMV = \sum (\text{probability of outcome} \times \text{financial result of outcome})$. * Example: An insurance company estimates EMV of claims: $0.80 \times 0 + 0.15 \times 5000 \text{ dollars} + 0.05 \times 50000 \text{ dollars} = 3250 \text{ dollars}$ per policy. ## 7.3 Binomial distribution * A probability distribution that describes the number of successes in a fixed number of independent trials, each with only two possible outcomes. * Conditions for a binomial situation: * <span style="color: #ff9f29; font-weight: 700;">Either/or situation</span>: Only two outcomes per trial (e.g., success/failure). * Fixed number of <span style="color: #ff9f29; font-weight: 700;">trials</span> ($n$). * Constant <span style="color: #ff9f29; font-weight: 700;">probability of success</span> ($p$) on each trial [117](#page=117). * Trials are independent. * Probability mass function (exact probability of $x$ successes): $$P(X=x) = \binom{n}{x} p^x (1-p)^{n-x}$$. * Cumulative probability (probability of at most $x$ successes): $$P(X \le x) = \sum_{i=0}^{x} \binom{n}{i} p^i (1-p)^{n-i}$$. * The <span style="color: #ff9f29; font-weight: 700;">BINOMDIST</span> function in software calculates these probabilities. * `BINOMDIST(number_s, trials, probability_s, cumulative)`: `cumulative = TRUE` for $P(X \le x)$, `FALSE` for $P(X = x)$ [119](#page=119). * Example: Probability of at most 2 successes out of 5 trials with $p=0.3$ is 0.837. * Example: For 8 bits transmitted, with a 10% error probability, the chance of 0 errors is 0.430 [121](#page=121). * Example: For 9 patients, with a 75% success rate for surgery, the probability of at least 7 successes is equivalent to 2 or fewer failures (with $p=0.25$ for failure), calculated as 0.6005 [123](#page=123). > Binomial distribution models count of successes in fixed, independent trials. ## 7.4 Negative binomial distribution * A statistical experiment where trials are repeated until a specified number of successes ($r$) are observed. * Properties: * Repeated trials. * Two outcomes per trial (success/failure). * Constant probability of success ($P$). * Independent trials. * Continues until a fixed number of successes ($r$) are observed. * Formula for the probability of observing $x$ trials to get $r$ successes: $$b^*(x; r, P) = \binom{x-1}{r-1} P^r (1 - P)^{x-r}$$ [124](#page=124). * The <span style="color: #ff9f29; font-weight: 700;">NEGBINOMDIST</span> function calculates this. * `NEGBINOMDIST(number_f, number_s, probability_s)`: Calculates probability of `number_f` failures before the `number_s`-th success. * Example: A basketball player has a 70% free throw success rate. The probability of making the first free throw on the fifth shot is 0.00567 [125](#page=125). > Negative binomial distribution counts trials until a fixed number of successes occur. ## 7.5 Cumulative binomial distribution functions * <span style="color: #ff9f29; font-weight: 700;">Cumulative binomial probability</span>: The probability that a binomial random variable falls within a specified range [118](#page=118). * <span style="color: #ff9f29; font-weight: 700;">CRITBINOM</span> function: Returns the smallest value for which the cumulative binomial distribution is greater than or equal to a criterion value. * Syntax: `CRITBINOM(trials, probability_s, alpha)` [126](#page=126). > These functions help determine probabilities over ranges, not just exact values. > **🔑 Important:** Understanding the conditions for binomial and negative binomial distributions is key to selecting the correct probability model. Master the "OR" and "AND" rules, as they are foundational for many probability problems. # 8. Time series, exponential smoothing, and probability patterns (part 3) ## 8.1 Decision analysis tools Decision analysis uses tools to make informed choices under uncertainty. Tables and decision trees help visualize and quantify potential outcomes. ### 8.1.1 Decision tables A decision table helps determine the optimal action by comparing potential profits and losses for different scenarios. It lists possible actions and their outcomes based on varying demand. The table structure shows demand, its probability, and the resulting profit or loss for a chosen purchase quantity. Expected Monetary Value (EMV) is calculated for each purchase quantity to find the best option. > Decision tables map choices to outcomes based on probabilistic demand. | Purchase Quantity | 25 (10%) | 30 (20%) | 35 (25%) | 40 (20%) | 45 (15%) | 50 (10%) | EMV | |:---------------- |:------- |:------- |:------- |:------- |:------- |:------- |:--- | | 25 | 250 | 250 | 250 | 250 | 250 | 250 | 250 | | 30 | 200 | 300 | 300 | 300 | 300 | 300 | 290 | | 35 | 150 | 250 | 350 | 350 | 350 | 350 | 310 | | 40 | 100 | 200 | 300 | 400 | 400 | 400 | 305 | | 45 | 50 | 150 | 250 | 350 | 450 | 450 | 280 | | 50 | 0 | 100 | 200 | 300 | 400 | 500 | 240 |### 8.1.2 Decision trees Decision trees map out sequential decisions and their possible outcomes, incorporating probabilities. They are useful for complex scenarios with multiple branching possibilities. The tree helps evaluate the expected value of different strategies by following each path. Probabilities of events like market appearance or competitor actions are key inputs. > Decision trees visualize sequential choices and their probabilistic outcomes. * <span style="color: #ff9f29; font-weight: 700;">Decision:</span> To abandon or go ahead with manufacturing. * <span style="color: #ff9f29; font-weight: 700;">Branch 1A:</span> Abandon manufacturing. * <span style="color: #ff9f29; font-weight: 700;">Branch 1B:</span> Go ahead with manufacturing. * <span style="color: #ff9f29; font-weight: 700;">Sub-branch 2A:</span> Series appears (60% probability). * <span style="color: #ff9f29; font-weight: 700;">Sub-sub-branch 3A:</span> Rival markets (50% probability). * <span style="color: #ff9f29; font-weight: 700;">Sub-sub-branch 3B:</span> No rival (50% probability). * <span style="color: #ff9f29; font-weight: 700;">Sub-branch 2B:</span> No series (40% probability) [129](#page=129). The expected monetary value (EMV) is calculated by multiplying the outcomes of each branch by their probabilities. For the toy manufacturing case, the EMV of going ahead is Rs. 860,000. > The "Go ahead" decision for the toy manufacturer yielded the highest EMV. ## 8.2 Poisson distribution The Poisson distribution models the number of random events in a fixed interval of time or space. It applies when events are independent and occur at a constant average rate. Key characteristics include an "either/or" situation for events, no data on trials or successes, and a known average value. > Poisson distribution counts rare events over time or space. | Characteristic | Description | |:---------------------- |:----------------------------------------------------- | | Event occurrence | Independent and at a constant average rate. | | Data on trials/successes | Not available. | | Average value | Mean number of successes per unit ($ \mu $) is known. | | Probability ($p$) | Unknown but small; event is unusual. | The probability of observing exactly $x$ occurrences is given by the formula: $$ P(X=x) = \frac{e^{-\mu}\mu^x}{x!} $$ where $ \mu $ is the average number of occurrences. For this distribution, the expected value and variance are both equal to $ \mu $. > For Poisson, $ E(X) = \text{Var}(X) = \mu $. ### 8.2.1 Poisson distribution examples The Poisson distribution is used for scenarios like the number of phone calls in a period or flaws in fabric. * <span style="color: #ff9f29; font-weight: 700;">False fire alarms:</span> An average of 2.1 alarms per day follows a Poisson distribution. The probability of 4 alarms on a given day is approximately 0.0992. * <span style="color: #ff9f29; font-weight: 700;">Factory absences:</span> If a factory averages 7 absences, the probability of more than 8 absences is calculated using cumulative probabilities from Poisson tables. * <span style="color: #ff9f29; font-weight: 700;">Machine breakdowns:</span> An automatic line breaks down every 2 hours. The probability of 8 hours of uninterrupted operation (0 breakdowns) has a $ \mu $ of 4, resulting in about 1.83% probability [132](#page=132). * <span style="color: #ff9f29; font-weight: 700;">Underweight bags:</span> If a machine produces one underweight bag per 100, the probability of less than three underweight bags in 500 is found with $ \mu = 5 $ [133](#page=133). > Poisson calculations often use cumulative probabilities to find "at most" or "at least" scenarios [131](#page=131). The `POISSON` function in software calculates these probabilities. It takes the number of events ($x$), the mean ($ \mu $), and a cumulative flag (TRUE for cumulative probability, FALSE for exact probability) [134](#page=134). ## 8.3 Normal distribution The normal distribution, or bell curve, is a continuous probability distribution. It is symmetrical around its mean, with the spread determined by the standard deviation. It describes many natural phenomena, like weights or measurements, where data clusters around a central value. Binomial and Poisson distributions are discrete, while the normal distribution is continuous. > The normal distribution is continuous and symmetrical around the mean [136](#page=136). ### 8.3.1 Standard Normal Distribution A standard normal distribution has a mean ($ \mu $) of 0 and a standard deviation ($ \sigma $) of 1. The x-axis represents z-values (standard deviations from the mean), and the y-axis represents probability density. The total area under the curve is 1, representing 100% probability. Probabilities beyond 3 standard deviations from the mean are very close to zero. > Standard Normal: $ \mu = 0, \sigma = 1 $ [137](#page=137). ### 8.3.2 Using z-values To find probabilities for a normal distribution, we standardize values by calculating the z-score: $$ z = \frac{X - \mu}{\sigma} $$ This converts any normal distribution to the standard normal distribution. * <span style="color: #ff9f29; font-weight: 700;">Standardization:</span> Calculates how many standard deviations a value is from the mean. Normal distribution tables provide the area under the curve for a given z-value. This area represents probability. The tables typically give the area from the mean to the z-value. > The z-score bridges specific values to standard normal probabilities. ### 8.3.3 Calculating probabilities * <span style="color: #ff9f29; font-weight: 700;">Weight of bags:</span> For bags with a mean weight of 510 g and standard deviation of 2.5 g: * Probability of weighing more than 515 g: Calculate $z = (515 - 510) / 2.5 = 2$. The area from the mean to $z=2$ is 0.4772. The area to the right (more than 515g) is $0.5 - 0.4772 = 0.0228$ (2.28%). * Probability of weighing less than 507.5 g: Calculate $z = (507.5 - 510) / 2.5 = -1$. For $z=-1$, the area from the mean is 0.3413. The area to the left (less than 507.5g) is $0.5 - 0.3413 = 0.1587$ (15.87%) [141](#page=141). * Probability of weighing less than 512 g: Calculate $z = (512 - 510) / 2.5 = 0.8$. The area from the mean to $z=0.8$ is 0.2881. The area to the left (less than 512g) is $0.5 + 0.2881 = 0.7881$ (78.81%) [142](#page=142). * Probability of weighing between 512 g and 515 g: Find the area between $z=0.8$ and $z=2$. This is the area from $z=0$ to $z=2$ minus the area from $z=0$ to $z=0.8$. (0.4772 - 0.2881 = 0.1891 or 18.91%). > Use z-scores and standard normal tables to find probabilities for any normal distribution [140](#page=140) [143](#page=143). > **🔑 Important:** Decision analysis tools like decision trees and tables, along with probability distributions like Poisson and Normal, are crucial for making quantified decisions under uncertainty [128](#page=128) [130](#page=130) [138](#page=138). # 9. Sampling, inference, and hypothesis testing ## 9.1 Introduction to sampling and inference * <span style="color: #ff9f29; font-weight: 700;">Inference</span>: Using sample data to draw conclusions about a larger population. * <span style="color: #ff9f29; font-weight: 700;">Sampling variation</span>: Differences observed in samples taken from the same population [149](#page=149). ### 9.1.1 Normal distribution functions Several functions help analyze normal distributions: | Function | Description | |:---------- |:----------------------------------------------------------------------- | | `NORMDIST` | Returns the normal distribution for a given mean and standard deviation. | | `NORMSDIST` | Returns the standard normal cumulative distribution (mean 0, std dev 1). | | `NORMINV` | Returns the inverse of the normal cumulative distribution. | | `NORMSINV` | Returns the inverse of the standard normal cumulative distribution. | > **📝 Example:** `NORMDIST(42, 40, 1.5, TRUE)` calculates the cumulative probability for a value of 42 with a mean of 40 and a standard deviation of 1.5 [145](#page=145). ## 9.2 Sampling distributions and standard error * <span style="color: #ff9f29; font-weight: 700;">Sampling distribution of percentages</span>: Distribution of percentages from all possible samples of a fixed size. * The mean of a sampling distribution often estimates the true population percentage. ### 9.2.1 Standard Error of Percentages (STEP) * <span style="color: #ff9f29; font-weight: 700;">Standard Error of Percentages (STEP)</span>: Measures how sample percentages vary from the population percentage. It estimates potential error. * For large samples ($n>30$), the sampling distribution approximates a normal distribution with mean $P\%$ and standard deviation STEP. * Formula: $$STEP = \sqrt{\frac{P(100-P)}{n}}\%$$. Where $P$ is the population percentage and $n$ is the sample size. > **🔑 Important:** STEP helps quantify the uncertainty when using a sample to estimate a population value [150](#page=150). ### 9.2.2 Standard Error of the Mean (STEM) * <span style="color: #ff9f29; font-weight: 700;">Standard Error of the Mean (STEM)</span>: The standard deviation of the sampling distribution of sample means. * Formula: $$STEM = \frac{s.d.}{\sqrt{n}}$$. Where $s.d.$ is the population standard deviation and $n$ is the sample size. > **📝 Example:** For a sample of 64 children with a population mean IQ of 100 and a standard deviation of 15, the STEM is $15/\sqrt{64} = 1.875$. ## 9.3 Confidence limits * <span style="color: #ff9f29; font-weight: 700;">Confidence limits</span>: A range within which the true population parameter is likely to lie, with a certain level of confidence. * Commonly used confidence levels are 95% and 99%. ### 9.3.1 95% confidence interval * A 95% confidence interval uses a z-value of approximately 1.96 [152](#page=152). * Often simplified to $P \pm 2 \times STEP$ for percentages. * Formula: Estimate for population parameter $\pm z \times STEP$. > **📝 Example:** If a sample shows 70% buyers and STEP is 2.29%, the 95% confidence interval is $70 \pm 1.96 \times 2.29\%$, giving a range of 65.5% to 74.5% [153](#page=153). ### 9.3.2 99% confidence interval * A 99% confidence interval uses a z-value of approximately 2.58. * This wider interval increases confidence but reduces precision. ### 9.3.3 Sample size determination * To achieve a desired accuracy (e.g., within 5% of the true answer with 95% confidence), you can calculate the required sample size ($n$). * Formula rearrangement: $STEP = (\text{desired accuracy})/z$. Then use $STEP = \sqrt{P(100-P)/n}$ to solve for $n$. > **📝 Example:** To estimate a percentage within 5% with 95% confidence, using a pilot survey value of $P=30\%$, the required sample size is 336 [154](#page=154). ## 9.4 Hypothesis testing * <span style="color: #ff9f29; font-weight: 700;">Hypothesis testing</span>: A procedure to decide whether sample data supports or contradicts a claim (hypothesis) about a population [155](#page=155). * Key concepts include the null hypothesis, significance level, and critical values. ### 9.4.1 Null hypothesis * <span style="color: #ff9f29; font-weight: 700;">Null Hypothesis ($H_0$)</span>: An initial assumption that there is no change or no difference (e.g., the sample percentage equals the population percentage). * The goal is to see if there's enough evidence to reject this null hypothesis. ### 9.4.2 Significance level and errors * <span style="color: #ff9f29; font-weight: 700;">Significance level</span>: The probability of rejecting the null hypothesis when it is actually true (Type I error). Commonly 5%. * <span style="color: #ff9f29; font-weight: 700;">Type II error</span>: Deciding there is no significant difference when one actually exists. ### 9.4.3 Hypothesis test procedure for percentages 1. <span style="color: #ff9f29; font-weight: 700;">Formulate null hypothesis</span>: State the assumption about the population percentage ($P$). 2. <span style="color: #ff9f29; font-weight: 700;">Calculate confidence interval</span>: Use $P \pm z \times STEP$ for the chosen significance level (e.g., $z=1.96$ for 5%). 3. <span style="color: #ff9f29; font-weight: 700;">Compare sample percentage</span>: If the sample percentage falls outside this interval, reject the null hypothesis. [157](#page=157). > **🔑 Important:** If the sample falls within the interval, there's no significant evidence to reject the null hypothesis [156](#page=156). ### 9.4.4 Hypothesis tests for means * When dealing with sample means, use STEM instead of STEP. * The procedure is similar: state the null hypothesis, calculate the confidence interval using $P \pm z \times STEM$, and compare the sample mean. ### 9.4.5 One-tailed vs. Two-tailed tests * <span style="color: #ff9f29; font-weight: 700;">One-tailed test</span>: Tests for a difference in a specific direction (e.g., improvement or decline). Uses a z-value like 1.64 for 5% significance. * <span style="color: #ff9f29; font-weight: 700;">Two-tailed test</span>: Tests for any significant difference, regardless of direction. Uses a z-value like 1.96 for 5% significance. > **🔑 Important:** The choice between one-tailed and two-tailed tests depends on the research question [158](#page=158). ### 9.4.6 Student's t-distribution * Used for hypothesis testing with <span style="color: #ff9f29; font-weight: 700;">small samples</span> when the population standard deviation is unknown. * It is wider than the normal distribution, reflecting greater uncertainty. * Calculations involve degrees of freedom ($v = n-1$) and t-values from tables. > **🔑 Important:** For small samples and unknown population standard deviation, use a t-test; for large samples or known standard deviation, use a z-test. [159](#page=159) [160](#page=160). ## 9.5 Chi-Square distribution ($\chi^2$) * The <span style="color: #ff9f29; font-weight: 700;">Chi-squared ($\chi^2$) distribution</span> is used to test for associations between categorical variables or to compare observed frequencies with expected frequencies. ### 9.5.1 Calculating Chi-Square 1. <span style="color: #ff9f29; font-weight: 700;">Formulate null hypothesis</span>: Typically, that there is no association between the variables. 2. <span style="color: #ff9f29; font-weight: 700;">Calculate expected frequencies (E)</span>: Based on the null hypothesis. 3. <span style="color: #ff9f29; font-weight: 700;">Calculate $\chi^2$ statistic</span>: Sum of $\frac{(O-E)^2}{E}$ for all categories, where $O$ is the observed frequency. 4. <span style="color: #ff9f29; font-weight: 700;">Calculate degrees of freedom (v)</span>: $v = (rows - 1) \times (columns - 1)$. 5. <span style="color: #ff9f29; font-weight: 700;">Compare</span>: Compare the calculated $\chi^2$ value with a critical value from the $\chi^2$ distribution table. > **📝 Example:** Comparing observed improvement in different age groups to expected uniform improvement, a calculated $\chi^2$ of 6.92 with $v=2$ degrees of freedom is compared to a critical value of 5.991 at 5% significance. Since 6.92 > 5.991, the null hypothesis of no association is rejected. > **🔑 Important:** A calculated $\chi^2$ value greater than the critical value indicates a statistically significant association or difference. [161](#page=161) [163](#page=163). # 10. Linear programming ## 10.1 Introduction to linear programming * <span style="color: #ff9f29; font-weight: 700;">Linear Programming (LP)</span>: A mathematical method to find the best outcome. This involves maximizing or minimizing a linear objective function. This is done subject to a set of linear constraints. * LP models have three core components: decision variables, an objective function, and constraints. ### 10.1.1 LP model format * An LP model includes a linear objective function to maximize or minimize. It also has a series of linear constraints and non-negativity conditions for variables. * The general format is: * Maximize or minimize $\sum c_j x_j$ * Subject to $\sum a_{ij} x_j \le b_i$ for $i=1, \dots, m$ * Non-negativity: $x_j \ge 0$ for $j=1, \dots, n$. ### 10.1.2 Methodology and importance * Formulating an LP model involves defining variables, writing the objective function, and stating each constraint mathematically. Non-negativity conditions are also added. * LP is valuable for real-world problems in operations, marketing, finance, and agriculture. * Efficient solution techniques and "what-if" analysis from LP software are key benefits. ### 10.1.3 Assumptions of LP * LP models rely on several assumptions: * <span style="color: #ff9f29; font-weight: 700;">Certainty</span>: All parameter values are known precisely. * <span style="color: #ff9f29; font-weight: 700;">Constant Returns to Scale</span>: Objective function and constraints show consistent scaling. * <span style="color: #ff9f29; font-weight: 700;">Additivity</span>: No interactions between decision variables. * <span style="color: #ff9f29; font-weight: 700;">Continuity</span>: Variables can take any value within their feasible range. ## 10.2 Production planning example * A company producing two toy doll models (A and B) needs to optimize its production. * Resources are limited to 1000 kg of plastic and 40 production hours weekly. * Marketing constraints include a total production limit of 700 dozens. Also, Model A's production cannot exceed Model B's by more than 350 dozens. > **📝 Example:** > The current plan prioritizes Model A (Rs. 800 profit/dozen) over Model B (Rs. 500 profit/dozen). Management seeks a schedule to increase profits within marketing guidelines. ### 10.2.1 Model formulation for production * <span style="color: #ff9f29; font-weight: 700;">Decision Variables:</span> * $X_1$: Weekly production of Model A (dozens) * $X_2$: Weekly production of Model B (dozens). * <span style="color: #ff9f29; font-weight: 700;">Objective Function:</span> * Maximize profit: $800X_1 + 500X_2$. * <span style="color: #ff9f29; font-weight: 700;">Constraints:</span> * Plastic: $2X_1 + 1X_2 \le 1000$. * Production Time: $3X_1 + 4X_2 \le 2400$. * Total Production: $X_1 + X_2 \le 700$. * Mix: $X_1 - X_2 \le 350$. * Non-negativity: $X_j \ge 0$, $j=1,2$. ## 10.3 Graphical analysis of LP * LP problems can be visualized graphically to represent constraints and the objective function. * The <span style="color: #ff9f29; font-weight: 700;">feasible region</span> is the area satisfying all constraints, including non-negativity. * Each constraint forms a line. These lines intersect to define the feasible region. > **🔑 Important:** > Areas outside the feasible region are infeasible solutions. * The optimal solution often lies at the intersection of constraint lines. * To find the maximum profit, the objective function line is moved parallelly. It is moved until it touches the last point within the feasible region. ## 10.4 Optimal solutions * The optimal solution for the production problem was: * Model A: 320 dozen * Model B: 360 dozen * Profit: Rs. 436,000. * This solution used all plastic and production hours. Total production was 680 dozens. Model A's production did not exceed Model B's. * If an LP problem has an optimal solution, it will occur at an <span style="color: #ff9f29; font-weight: 700;">extreme point</span> of the feasible region. ### 10.4.1 Multiple optimal solutions * Multiple optimal solutions can exist if the objective function line is parallel to one of the constraint lines. * Any weighted average of different optimal solutions is also an optimal solution. > **🔑 Important:** > Linear programming is a powerful tool for optimizing decisions under constraints [165](#page=165) [166](#page=166) [167](#page=167) [168](#page=168) [169](#page=169).

© 2026 Maeve. All rights reserved. This content is protected by copyright.

See also