All 17 questions UPSC has asked on forecasting in the Mechanical Engineering Optional (Paper I, Manufacturing Science) from 2000 to 2025, solved step by step – latest first.
Try them yourself first: the same questions, without solutions, are on our Manufacturing Science topic-wise PYQs page.
How we check these solutions
These are our own solutions, prepared with AI help. UPSC does not publish official answers. Every solution is checked a second way before it goes up, and says how:
- ✓ Checked by computer the numbers were worked out again independently in code (Python with NumPy/SymPy) and matched.
- ✓ Answer checked step by step for descriptive questions, every point was checked against the standard theory.
Spotted a mistake or a neater method? Tell us in the comments below or through Report an error.
Jump to a question (year · question number):
2025 · 5c 2024 · 5e 2023 · 5e 2021 · 5d 2020 · 7a 2019 · 5e 2018 · 5d 2017 · 5e 2016 · 8b 2014 · 7c 2013 · 6d 2009 · 5c(i) 2009 · 5c(ii) 2008 · 7a 2005 · 7b 2002 · 5a 2000 · 7b
In an automobile manufacturing industry the demand for a specific part was 250 in April, 100 in May and 200 in June. The forecast for April was 150. Calculate the forecast for the month of July with a smoothing constant of 0.25 and using first order exponential smoothing.
Solution
First-order exponential smoothing: , with α = 0.25.
| Month | Demand D | Forecast F | Error D − F | Next forecast |
|---|---|---|---|---|
| April | 250 | 150 | 100 | 150 + 0.25(100) = 175 |
| May | 100 | 175 | −75 | 175 − 18.75 = 156.25 |
| June | 200 | 156.25 | 43.75 | 156.25 + 10.94 = 167.19 |
Forecast for July ≈ 167 units.
✓ Checked by computer We recomputed the smoothed forecasts in Python.
A manufacturer of toys for children in the age group of 2 to 4 years commissioned a market research firm to understand the factors that influenced the demand for the product. After some detailed studies, the research firm concluded that the demand was a simple linear function of number of newlywed couples in the city. Based on this assumption, build a model for forecasting the demand for the product using the data in the table given below, which is collected from a residential area in a city:
| New Marriages () | Demand for Toys () |
| 200 | 165 |
| 235 | 184 |
| 210 | 180 |
| 195 | 145 |
| 225 | 190 |
| 240 | 169 |
| 217 | 180 |
| 225 | 170 |
Solution
Model: (X = new marriages, Y = toy demand), n = 8.
Sums: ΣX = 1747, ΣY = 1383, ΣXY = 302 935, ΣX² = 383 289.
Forecasting model: E.g. for 230 new marriages, Y ≈ 60.2 + 0.516(230) ≈ 179 toys.
Comment. The correlation coefficient is only r ≈ 0.59 (r² ≈ 0.34), so new marriages explain only about a third of the variation in demand. The model is usable as a rough guide, but other factors (price, income, births, competition) should be examined.
✓ Checked by computer We recomputed the least-squares line and r in Python.
On the given data, perform regression analysis to forecast the demand for the year, considering that the demand is increasing approximately exponentially. (; where a and b are constants, x is the number of the year and y is forecasted demand)
| No. of the year | 1 | 2 | 3 | 4 | 5 |
| Demand (units) | 40 | 60 | 200 | 700 | 1000 |
Solution
Taking logs, , a straight line in x and Y = ln y.
| x | y | Y = ln y | xY |
|---|---|---|---|
| 1 | 40 | 3.6889 | 3.6889 |
| 2 | 60 | 4.0943 | 8.1887 |
| 3 | 200 | 5.2983 | 15.8949 |
| 4 | 700 | 6.5511 | 26.2044 |
| 5 | 1000 | 6.9078 | 34.5388 |
| Σ = 15 | 26.5404 | 88.5158 |
Σx² = 55, n = 5.
Model: .
Forecast for year 6:
(The fit is good, with r = 0.98 for ln y on x. But extrapolating explosive exponential growth is risky; the forecast should be checked against market capacity.)
✓ Checked by computer We fitted ln y on x by least squares in Python.
An XYZ company launched a new product which had sales of 5, 17, 29, 41 and 39 units respectively in its first five months of launch. The Sales Manager now wants a forecast of sales in the next month. (i) Find out sales forecast by the last value method, the averaging method and the moving average method with the 3 most recent months. (ii) Given the sales pattern so far, do any of the above methods seem inappropriate for obtaining the forecast? Why?
Solution
Sales: 5, 17, 29, 41, 39.
(i) Forecast for month 6
- Last value (naive) method: 39 units.
- Averaging (mean of all data): (5 + 17 + 29 + 41 + 39)/5 = 26.2 units.
- 3-month moving average: (29 + 41 + 39)/3 = 36.3 units.
(ii) Appropriateness. Sales show a strong upward trend (+12 a month for four months) for a newly launched product, with possibly a levelling-off in month 5.
- The averaging method is clearly inappropriate: it gives equal weight to the early, low launch sales and badly under-forecasts (26 vs a current level near 40).
- The moving average also lags behind a trend (36), though less so.
- The last-value method responds quickest and is the most reasonable of the three here.
- Better still would be a method that allows for trend (trend-adjusted exponential smoothing, or regression), or judgement about the product life-cycle.
✓ Checked by computer We recomputed the three forecasts in Python.
The sales for a critical component manufactured by a company are given below. Forecast the demand for the components for the next three years using regression method:
| Years | Sales (’000) |
| 1986 | 30 |
| 1987 | 33 |
| 1988 | 37 |
| 1989 | 39 |
| 1990 | 42 |
| 1991 | 46 |
| 1992 | 48 |
| 1993 | 50 |
| 1994 | 55 |
| 1995 | 58 |
Solution
Coding the years. There are 10 years (even), so we put x = 0 midway between 1990 and 1991 and use x = −9, −7, …, 7, 9 (each step of 2 = one year).
| Year | 1986 | 1987 | 1988 | 1989 | 1990 | 1991 | 1992 | 1993 | 1994 | 1995 |
|---|---|---|---|---|---|---|---|---|---|---|
| x | −9 | −7 | −5 | −3 | −1 | 1 | 3 | 5 | 7 | 9 |
| y | 30 | 33 | 37 | 39 | 42 | 46 | 48 | 50 | 55 | 58 |
Σx = 0, Σy = 438, Σxy = 502, Σx² = 330.
Trend: y = 43.8 + 1.521x, i.e. sales rise by about 3.04 thousand per year.
Forecasts
- 1996 (x = 11): 43.8 + 1.521(11) = 60.5 thousand.
- 1997 (x = 13): 63.6 thousand.
- 1998 (x = 15): 66.6 thousand.
✓ Checked by computer We recomputed the least-squares trend in Python.
(i) Write the major components of TQM philosophy. (ii) How do you incorporate the seasonal variations in demand forecasting?
Solution
(i) Major components of TQM philosophy
- Customer focus – quality is defined by the customer (internal and external); aim for customer satisfaction.
- Continuous improvement (kaizen) – PDCA cycle; incremental and breakthrough improvements in all processes.
- Total employee involvement – empowerment, teamwork, quality circles; quality is everyone’s job.
- Top-management commitment and leadership – quality vision, policy, resources.
- Process-centred approach – manage and improve processes; prevention rather than inspection.
- Fact-based decision making – data, statistical tools (SPC, the 7 QC tools), measurement.
- Supplier partnership – fewer, long-term, quality-certified suppliers.
- Integrated system and strategic approach – quality built into strategy, design (quality at the source) and culture; training and education; benchmarking.
(ii) Incorporating seasonal variations in demand forecasting
- Compute seasonal indices (e.g. by the ratio-to-moving-average method): compute a centred moving average over one full season (e.g. 4 quarters or 12 months), divide each actual value by it, and average these ratios for each season over several years. Then normalise so that the indices average 1 (sum to 4 for quarters, 12 for months).
- Deseasonalise the data: divide each actual value by its seasonal index.
- Forecast the deseasonalised series for trend (regression, moving average, exponential smoothing).
- Reseasonalise: multiply the trend forecast for each future period by its seasonal index (multiplicative model), or add a seasonal amount (additive model).
Alternatives: Winters’ triple exponential smoothing (level, trend and seasonal factors), regression with seasonal dummy variables, or ARIMA/seasonal models.
✓ Answer checked step by step We checked the points against standard texts.
The demand for a product during the last 10 years is given below. Estimate the demand for the 11th and 12th year by method of regression.
| Year | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| Unit | 124 | 135 | 145 | 150 | 167 | 157 | 161 | 170 | 187 | 168 |
Solution
Trend line y = a + bx, with x = year (1 to 10), n = 10.
- Σx = 55, Σy = 1564, Σxy = 9056, Σx² = 385.
Trend: y = 126.13 + 5.503x.
Forecasts
- Year 11: 126.13 + 5.503(11) = 186.7 ≈ 187 units.
- Year 12: 126.13 + 5.503(12) = 192.2 ≈ 192 units.
✓ Checked by computer We recomputed the least-squares line in Python.
The demand for an item is 500 units and 600 units for July and August respectively. Considering forecast for July as 300 units, determine the forecast for September using exponential smoothing method. Assume value of as 0.3.
Solution
With α = 0.3 and :
- units.
- .
✓ Checked by computer We recomputed the forecasts in Python.
A company manufacturing washing machines establishes a relationship between the sale of washing machines and the population of the city. The market research carried out reveals the following information:
| Population of the city (in lakhs) | 5 | 7 | 15 | 22 | 27 | 36 |
| No. of washing machines demanded (unit in hundreds) | 28 | 40 | 65 | 80 | 96 | 130 |
Fit a linear regression equation and estimate the demand of washing machines for a city of population of 45 lakhs.
Solution
x = population (lakh), y = demand (hundreds), n = 6.
- Σx = 112, Σy = 439, Σxy = 10 427, Σx² = 2808.
Regression equation: The fit is excellent: r = 0.996.
For a population of 45 lakh:
✓ Checked by computer We recomputed the least-squares line and r in Python.
A transport company assumes that the requirement of tyres used in vehicles are closely related to number of kilometres driven. Accordingly, the following data covering the last six months have been collected as follows:
| Months | Tyres Used | Thousands of km driven |
| 1 | 100 | 1500 |
| 2 | 150 | 2000 |
| 3 | 120 | 1700 |
| 4 | 80 | 1100 |
| 5 | 90 | 1200 |
| 6 | 180 | 2700 |
(i) Establish the relationship (linear) between the required tyres and kms driven based on data. How good is the co-relation? (ii) If expected kms drive in a month is 32,00,000, forecast the demand for tyres.
Solution
x = thousands of km driven, y = tyres used, n = 6.
- Σx = 10 200, Σy = 720, Σxy = 13,36,000, Σx² = 1,90,80,000, Σy² = 93 800.
(i) Relationship: Tyres = 10.57 + 0.0644 × (thousand km), i.e. about 6.4 tyres per 1 lakh km plus about 11 a month.
Correlation coefficient: So r² = 0.974: about 97 % of the variation in tyre usage is explained by distance driven. This is a very strong correlation, and the model is reliable within the observed range.
(ii) For 32,00,000 km = 3200 thousand km: (This is slightly beyond the observed range of 1100–2700, so it is a mild extrapolation.)
✓ Checked by computer We recomputed the least-squares line, r and the forecast in Python.
The following table gives the monthwise actual demand of units of some product:
| Month | March | April | May | June | July | August |
| Demand (units) | 350 | 440 | 450 | 460 | 495 | 510 |
The forecasted demand for the month of March was 400 units. The firm uses exponential smoothing method with smoothing factor 0.2 to forecast demand. (i) Calculate the tracking signal for the model. (ii) Comment on the smoothing factor.
Solution
Forecasts with α = 0.2 and :
| Month | Demand | Forecast | Error (D − F) | Abs. error |
|---|---|---|---|---|
| March | 350 | 400 | −50 | 50 |
| April | 440 | 390 | 50 | 50 |
| May | 450 | 400 | 50 | 50 |
| June | 460 | 410 | 50 | 50 |
| July | 495 | 420 | 75 | 75 |
| August | 510 | 435 | 75 | 75 |
| Total | RSFE = 250 | 350 |
(i) Tracking signal
(ii) Comment. From April onwards every error is positive and growing: demand is trending upward and the forecast persistently lags. A tracking signal of 4.3 is at or beyond the usual control limits (±4 MAD), so the model is biased (under-forecasting).
The smoothing factor 0.2 is too low for this rising demand: it responds slowly. We should use a larger α (e.g. 0.4–0.5), or better, a trend-adjusted (double) exponential smoothing model.
✓ Checked by computer We recomputed the forecasts, errors, MAD and tracking signal in Python.
Name the factors to be considered while choosing a good forecasting system.
Solution
Factors in choosing a good forecasting system
- Purpose and decision the forecast supports (aggregate planning, inventory, capacity, budgeting).
- Time horizon – short, medium or long range.
- Accuracy required and the cost of forecast errors.
- Availability, quantity and quality of past data; whether a history exists (new products need qualitative methods).
- Demand pattern – level, trend, seasonality, cycles, randomness.
- Cost of developing and running the system versus its benefits.
- Time available to make the forecast, and how frequently it must be updated.
- Simplicity and ease of understanding for users; acceptance by management.
- Responsiveness and stability – reacting to real changes but not to random noise.
- Ease of monitoring – error measures (MAD, MSE, tracking signal) and ease of updating.
- Availability of computer support and skilled staff.
✓ Answer checked step by step We checked the factors against standard texts.
The quarterly demand of a company product for past six years is given in the table below. The four-quarter moving average is also given. Find the seasonality index for 3rd quarter.
| Year | Quarter | Demand units | Four Quarter Moving Average |
| 1 | 0.5 | ||
| 1 | 0.8 | 0.875 | |
| 1 | 2.1 | 0.925 | |
| 1 | 0.1 | 1.025 | |
| 2 | 0.8 | 1.1 | |
| 2 | 1.1 | 1.1 | |
| 2 | 2.4 | 1.125 | |
| 2 | 0.1 | 1.15 | |
| 3 | 0.9 | 1.25 | |
| 3 | 1.2 | 1.25 | |
| 3 | 2.8 | 1.20 | |
| 3 | 0.1 | 1.15 | |
| 4 | 0.7 | 1.10 | |
| 4 | 1.0 | 1.10 | |
| 4 | 2.6 | 1.125 | |
| 4 | 0.1 | 1.125 | |
| 5 | 0.8 | 1.10 | |
| 5 | 1.0 | 1.10 | |
| 5 | 2.5 | 1.15 | |
| 5 | 0.1 | 1.20 | |
| 6 | 1.0 | 1.25 | |
| 6 | 1.2 | 1.275 | |
| 6 | 2.7 | ||
| 6 | 0.2 |
[Table layout: in the printed table each four-quarter moving average is printed on the dividing line between the quarter in whose row it is placed here and the next quarter (e.g. 0.875 between and of Year 1).]
Solution
The printed four-quarter moving averages lie between quarters, so we first centre them: the centred MA for a quarter is the mean of the MAs just before and after it. The seasonal ratio = actual demand ÷ centred MA.
3rd quarter of each year
| Year | Demand | MA before | MA after | Centred MA | Ratio |
|---|---|---|---|---|---|
| 1 | 2.1 | 0.875 | 0.925 | 0.9000 | 2.333 |
| 2 | 2.4 | 1.100 | 1.125 | 1.1125 | 2.157 |
| 3 | 2.8 | 1.250 | 1.200 | 1.2250 | 2.286 |
| 4 | 2.6 | 1.100 | 1.125 | 1.1125 | 2.337 |
| 5 | 2.5 | 1.100 | 1.150 | 1.1250 | 2.222 |
(Year 6 Q3 has no following moving average, so it cannot be centred.)
Average ratio for Q3 = (2.333 + 2.157 + 2.286 + 2.337 + 2.222)/5 = 2.267.
Normalising. The average ratios for the other quarters, found the same way, are Q1 0.732, Q2 0.946 and Q4 0.090. Their sum is 4.035, so we multiply each by 4/4.035 to make the indices sum to 4:
So third-quarter demand is typically about 2.25 times the average quarterly level.
✓ Checked by computer We computed the ratio-to-moving-average indices for every quarter in Python.
(i) What are the sources of error in forecasting? (ii) With the help of regression analysis, compute the demand for computers when the populations are 36, 45, 50 and 55 millions from the collected data as give below:
| Population (in millions) | Number of computers demanded (in thousand) |
| 5 | 28 |
| 7 | 40 |
| 15 | 65 |
| 22 | 80 |
| 27 | 96 |
Draw the demand curve using computed value.
Solution
(i) Sources of error in forecasting
- Random (irregular) variation – unpredictable noise that no model captures.
- Bias – a consistently wrong model: trend or seasonality ignored, wrong variables, wrong form of relationship, or wrong parameters (e.g. α).
- Changes in the environment – new competitors, technology, economic conditions, policy changes, which break past patterns.
- Poor data – errors, insufficient history, demand data distorted by stock-outs (sales ≠ demand), or aggregation problems.
- Extrapolation beyond the range of past data; too long a horizon.
- Human judgement errors – optimism or pessimism, political influence.
(ii) Regression (x = population in millions, y = demand in thousands), n = 5.
- Σx = 76, Σy = 309, Σxy = 5747, Σx² = 1512.
Demand line: y = 17.06 + 2.943x.
| Population (millions) | 36 | 45 | 50 | 55 |
|---|---|---|---|---|
| Demand (thousand computers) | 123.0 | 149.5 | 164.2 | 178.9 |
(These are extrapolations well beyond the observed range of 5–27 million, so they should be treated with caution.)
✓ Checked by computer We recomputed the least-squares line and the forecasts in Python.
A small electronics company produces pocket calculators and records the demand monthly. The following demand data are for a representative calculator: November 45; December 57; January 60. Using 50 as the first-order exponential smoothing forecast for November, forecast February sales with a smoothing constant of 0.2. Is 0.2 a good choice as a smoothing constant? Comment.
Solution
With α = 0.2 and :
- .
Is 0.2 a good choice? Demand has jumped from 45 to 57 and 60 – apparently a rising trend or a step up. With α = 0.2 the forecast moves only one-fifth of the way towards each new value, so it lags badly: the February forecast of 52.5 is well below the recent level of about 60. A higher α (0.4–0.5) would respond faster. If the rise is a genuine trend, a trend-adjusted model would be better. α = 0.2 suits only a stable demand with random fluctuations.
✓ Checked by computer We recomputed the forecasts in Python.
Consider the following time series data: (i) Using a 3-week moving average, what is the forecast for week 7? (ii) Using for exponential smoothening, what is the forecast for week 7? (iii) Using the mean squared forecast error as a basis, which forecast for week 7 would you recommend?
| Week | 1 | 2 | 3 | 4 | 5 | 6 |
| Value | 8 | 13 | 15 | 17 | 16 | 9 |
Solution
(i) 3-week moving average:
(ii) Exponential smoothing (α = 0.2). We start with :
| Week | Demand | Forecast | Error |
|---|---|---|---|
| 2 | 13 | 8.00 | 5.00 |
| 3 | 15 | 9.00 | 6.00 |
| 4 | 17 | 10.20 | 6.80 |
| 5 | 16 | 11.56 | 4.44 |
| 6 | 9 | 12.45 | −3.45 |
| 7 | – | 11.76 |
(iii) Mean squared error
- 3-week MA (weeks 4–6): forecasts 12, 15, 16; errors 5, 1, −7.
- Exponential smoothing: over weeks 2–6, MSE = (25 + 36 + 46.24 + 19.71 + 11.89)/5 = 27.8. Over the same weeks 4–6 as the MA, MSE = 25.9.
The 3-week moving average has the smaller MSE on either basis. So we recommend the moving-average forecast of 14 for week 7.
✓ Checked by computer We recomputed both forecasts and their mean squared errors in Python.
The demand for a newly introduced luxury car has been shown below. The experts forecasted a sale of 100 cars for the month of March. With a smoothing constant of 0.15 and using first order exponential smoothing what is the forecast for the month of August? Also calculate MAD and Bias and give your comments on the same:
| Month | Actual Demand |
| March | 150 |
| April | 200 |
| May | 100 |
| June | 50 |
| July | 150 |
Solution
With α = 0.15 and :
| Month | Demand | Forecast | Error (D − F) |
|---|---|---|---|
| March | 150 | 100.00 | 50.00 |
| April | 200 | 107.50 | 92.50 |
| May | 100 | 121.38 | −21.38 |
| June | 50 | 118.17 | −68.17 |
| July | 150 | 107.94 | 42.06 |
| August | – | 114.25 |
Forecast for August ≈ 114 cars.
MAD = (50 + 92.5 + 21.38 + 68.17 + 42.06)/5 = 54.8 cars.
Bias (mean error) = (50 + 92.5 − 21.38 − 68.17 + 42.06)/5 = +19.0 cars.
Comments
- The MAD is large – about 42 % of the mean demand (130) – because demand for this new luxury car fluctuates widely (50 to 200). The forecast is not very accurate.
- The positive bias shows that, on average, the forecasts were too low (under-forecasting), largely because the starting forecast of 100 was well below actual demand and α = 0.15 adjusts slowly.
- A better initial estimate, a higher α, or more data would improve the forecast. With such erratic demand, any simple model will have large errors.
✓ Checked by computer We recomputed the forecasts, MAD and bias in Python.
More on Manufacturing Science
- All Mechanical Engineering PYQ solutions, topic by topic
- Manufacturing Science topic-wise PYQs (questions only, for practice)
- Mechanical Engineering PYQ analysis: which units carry the marks year by year
- Year-wise question papers
- Mechanical Engineering booklist
Questions: UPSC Civil Services (Main) Examination, Mechanical Engineering Paper I, 2000–2025. Solutions: Optional Province. Found an error? Tell us.

