INFINITE UPSIDE

The sequence behind a process signal

How do I calculate an EWMA process-monitoring signal?

A small repeated shift can matter before one raw reading looks extreme. Keep the seed, weight and reference limits together.

Calculate an exponentially weighted moving average by combining each new measurement with the previous weighted average. With a weight of 0.25, the new EWMA is 0.25 × current measurement + 0.75 × previous EWMA. Compare that statistic with limits designed for the EWMA, rather than with limits for a single raw measurement.

The distinction earns its place on an operating report when a process moves a little, repeatedly. No individual reading has to look spectacular for the accumulated history to deserve attention. The following original example reaches an EWMA signal at observation eight while every raw reading stays within the comparison limits for individual observations.

Decide what you are monitoring

This is a continuous-measurement calculation. It is not a chart of the percentage of items that failed inspection. The p-chart guide handles that different record, including the changing number of inspected items.

The NIST EWMA explanation gives the recursive calculation and its weighting parameter, usually written lambda. Older observations retain progressively smaller weights. The procedure requires a suitable historical reference and assumptions about the observations; a formula cannot establish those conditions for your business.

For this exercise, a fictional operation measures the mass of decorative paper bundles in grams, one observation at each defined sampling point. The measurement procedure and product definition remain unchanged. The working model treats observations as independent with the same in-control distribution, using the normal model for interpreting the chosen limits.

A separate, properly reviewed historical reference supplies a mean of 100 grams and a process standard deviation of 2 grams. These are given teaching inputs. They were not estimated from the eight later observations, and the example does not claim to validate an actual reference database or weighing instrument.

Set the seed and rule before seeing the answer

Initialize the EWMA at the reference mean: Z₀ = 100. Select lambda = 0.25 and preserve it with the reference. For each observation t, use:

Zₜ = 0.25Yₜ + 0.75Zₜ₋₁, where Y is the new measured value and Z is the running EWMA.

The subscript zero is a starting value, not a measured bundle. Do not count it as an additional observation in a report of inspected products. It supplies the history carried into the first calculation.

The response rule in this example is also fixed in advance: investigate when the EWMA falls outside the stated fixed reference limits. It is not a rule for approving shipment or identifying a particular cause. Selecting another chart after seeing the result would be a different analysis, which needs its own record.

Calculate the weighted statistic in order

The eight original later readings are 102, 103, 102, 103, 102, 103, 102 and 103 grams, in that chronological order. They are deliberately simple teaching values, not actual production results.

For the first reading, calculate 0.25 × 102 + 0.75 × 100 = 100.5. The next uses that result, not the original seed: 0.25 × 103 + 0.75 × 100.5 = 101.125.

Keep the full internal precision as you continue. Repeatedly replacing the intermediate result with a displayed rounded number creates a different numerical path.

Original chronological calculation

Scroll horizontally to compare each raw reading with its calculated EWMA. Values are displayed to six decimal places where needed.

Chronological measurements and EWMA statistic in grams
ObservationMeasured gramsEWMA grams
1102100.500000
2103101.125000
3102101.343750
4103101.757813
5102101.818359
6103102.113770
7102102.085327
8103102.313995

Observation seven lowers the statistic slightly because its raw 102 is below the previous EWMA of about 102.114. The calculation is not a counter that always rises whenever a reading exceeds the reference mean. It balances the latest reading against the accumulated statistic.

Use EWMA limits with an EWMA statistic

NIST gives a large-time approximation for the EWMA standard deviation: process standard deviation × square root of [lambda ÷ (2 − lambda)]. This example deliberately uses those fixed asymptotic limits throughout; it does not silently substitute narrower startup limits.

With the supplied inputs, the EWMA standard deviation is 2 × √(0.25 ÷ 1.75) = 2 ÷ √7, approximately 0.755929 gram. A selected multiplier of three gives a distance of approximately 2.267787 grams from the center.

The fixed lower and upper reference limits are therefore approximately 97.732213 and 102.267787 grams. Use unrounded values to make the actual comparisons.

The first seven calculated EWMAs lie inside these limits. Observation eight produces approximately 102.313995, which exceeds the upper limit. That is the first signal under the specified rule and reference.

At the very beginning of a process, the statistic's variance depends on its initialization and the number of observations. A design using time-dependent startup limits must calculate and label them explicitly. The fixed approximation used here is a chosen teaching design, not a claim that eight observations have erased every startup effect.

Why the raw reading can look ordinary

For a simple comparison using the same supplied mean and process standard deviation, individual three-sigma reference limits would be 100 ± 3 × 2 = 94 to 106 grams. All eight raw readings lie inside them.

That comparison is not a second moving-range estimate. The individuals-chart guide explains how its own reference can instead be estimated from ordered measurements and adjacent ranges. Here both calculations start from the supplied historical mean and standard deviation.

The EWMA does not call 103 an impossible individual value. Its signal concerns the weighted sequence relative to the old reference. Several moderately elevated readings have accumulated enough influence to cross a limit for that different statistic.

NIST's measurement-process discussion explains why EWMA monitoring can be useful for smaller persistent changes. This example demonstrates one numerical signal. It does not estimate detection speed across all possible shifts or establish a universal probability that the process changed.

Understand where the memory comes from

Expand the second calculation instead of hiding it in a spreadsheet. Z₂ equals 0.25Y₂ + 0.1875Y₁ + 0.5625Z₀. Those weights total one. The latest reading receives one-quarter; the previous reading's weight has been multiplied by three-quarters; the remaining weight still belongs to the initial reference.

After eight steps, the seed's weight is 0.75⁸, approximately 0.100113. The eight observations together carry approximately 0.899887. There is no abrupt point at which the oldest observation simply drops out as it would from a fixed-length moving average.

Do not compute a plain average of the eight readings, obtain 102.5 and label that the final EWMA. Both are averages, but their weights differ. Likewise, replacing every previous Z with 100 would discard the recurrence and fail to accumulate the observed history.

Do not rewrite the chronology

In a separate branch, reverse the order of the same eight readings: 103, 102, 103, 102, 103, 102, 103 and 102. Keep every other input unchanged. The final EWMA is approximately 102.185440, rather than 102.313995, and no point in this reversed branch exceeds the fixed upper limit.

The unweighted mean remains 102.5 in both branches. The EWMA changes because later observations receive different weights. A spreadsheet sorted by measured value, or an export with rows reversed, can therefore change the monitoring answer without changing the set of values. Preserve observation identifiers and time order before calculating.

A missing measurement is another record problem, not a zero-gram bundle. Do not feed zero into the recurrence to fill a blank. Establish whether the sampling opportunity was missed, the result is delayed or the process definition changed. Record the gap and obtain an appropriate treatment before interpreting the next sequence. The example assumes eight actual eligible observations; it supplies no universal rule for irregular sampling.

A larger weight is a different design

Consider a separate comparison with lambda = 0.5, retaining the same supplied reference and a multiplier of three. Its fixed asymptotic limits become 100 ± 6/√3, approximately 96.535898 to 103.464102 grams.

Each update is now half the latest reading and half the previous statistic. Starting at 100, every resulting EWMA stays between 100 and 103 for these eight readings, because each update averages two values within that range. None exceeds this alternative upper limit.

That does not establish that 0.25 is always superior. The weight changes both the statistic's memory and its limit calculation. These two teaching designs have not been calibrated to the same average run length or tested against competing real shifts and false-signal costs.

Choose parameters with the monitoring purpose and response cost in view. Do not shop among weights until one produces the decision someone already wanted.

Preserve the evidence when a signal appears

For observation eight, retain the raw reading, sequence, calculation, reference version and conditions. Check the weighing record and measurement system, then investigate changes in materials, equipment, setup or work. These are hypotheses to examine, not causes established by a crossed line.

Keep actual product specifications and customer commitments in their own decision process. A statistically unusual shift can occur while individual products meet a requirement; predictable behavior can still produce unacceptable products. The chart supplies neither automatic release nor permission to change a specification.

Do not absorb the signal into a new mean and declare the process calm. A justified new phase needs an explained change and an appropriate new reference. Preserve the old comparison so a later reviewer can see why action began.

Work a sequence that moves back toward the reference

Try a separate wholly fictional worksheet using the same supplied historical mean of 100 grams, process standard deviation of 2 grams, seed of 100, weight of 0.25 and fixed asymptotic limits. The six eligible observations, in order, are 104, 104, 100, 100, 106 and 106 grams. Assume the same measurement definition and the original exercise's observation-model conditions. These values are not a continuation of the original eight-reading series.

Calculate the first two steps: 0.25 times 104 plus 0.75 times 100 gives 101. The next 104 gives 101.75. Returning the raw reading to 100 does not immediately restore the statistic to its seed. Observation three gives 101.3125, and observation four gives 100.984375. The history still has weight.

The fifth observation, 106, gives 102.23828125. That remains below the original fixed upper limit of about 102.267787 grams. The sixth 106 gives 103.1787109375, above that limit. Under the supplied response rule, observation six is this separate worksheet's first signal; the preceding five statistics are inside the fixed limits. Keep the unrounded values for those comparisons.

Each of these six raw observations is within or on the earlier illustrative individual-observation limits of 94 to 106 grams. That does not cancel the EWMA signal. Conversely, the fifth statistic's closeness to its limit is not a reason to round it upward to manufacture an earlier signal. Compare the statistic required by the chosen rule, with the precision that rule needs.

To reproduce the exercise, write one row per eligible observation, the previous Z, the new reading, its quarter-weight contribution and the previous statistic's three-quarter contribution. Sum the last two columns. Mark the first crossing only after completing the chronological calculation, then state what the stipulated rule calls for: investigation. The worksheet has not found a cause, forecast a rejection rate or authorized product release.

Record a gap without inventing a measurement

Now consider a different record that stops after the first four observations of that exercise. The next scheduled measurement is absent. The last calculated statistic remains 100.984375 as the last actual result; it has not acquired a new observation merely because another sampling time passed.

Entering zero in the missing row would calculate 0.25 times zero plus 0.75 times 100.984375, or 75.73828125 grams. That would be below the original fixed lower limit. But nobody supplied a zero-gram measurement. The dramatic result would be an invented input, not evidence that a measured bundle had that mass.

Preserve the gap, its scheduled time and its known status. A late result can be entered with its correct observation identity and chronology when established; an omitted sample is not automatically equivalent to a late result. Do not reorder values by arrival in an inbox without checking the measurement sequence.

This example supplies no validated rule for bridging an irregular interval, skipping an observation or changing the limits. It stops the confident monitoring interpretation at the unresolved gap rather than silently choosing one. Keeping the last statistic in the record is preservation of history, not a declaration that the process stayed in control during the missing period. Establish the appropriate treatment before presenting the later sequence as an approved monitoring result.

Make a reset a visible change in the record

A reset changes the starting information. Isolate that arithmetic with another independent comparison: suppose a continuing series has a previous EWMA of exactly 102 grams and receives a new eligible reading of 101 grams. With the unchanged quarter weight, the next statistic is 101.75 grams. The previous 102 is a supplied input here, not a rounded replacement for a value in either earlier example.

In a separately stipulated new-phase calculation with a seed of exactly 100, the same new reading would instead give 100.25 grams. The difference is 1.5 grams: three-quarters of the two-gram difference between the two starting values. These are different histories, not competing rounding choices for the same calculation.

The new-phase branch is conditional on an independently justified and appropriately documented reference and initialization; this arithmetic does not supply that justification. Do not reset the current chart merely to get a smaller statistic or to remove a crossing. If a legitimate new phase is adopted, keep its effective observation, parameters, evidence and prior-phase record so someone can reproduce both paths. A smoother-looking line is not evidence that the business problem has been resolved.

Build a reproducible monitoring record

  1. Define the measured characteristic, units, sampling points and measurement method.
  2. Retain the independent historical reference and its review, including mean and variation.
  3. Record the seed, weight, multiplier, fixed or startup-limit design and response rule.
  4. Preserve every eligible raw observation in chronological order with the full-precision recurrence.
  5. Distinguish a signal, an investigation finding and a product-disposition decision.
  6. Version corrections and justified reference changes without deleting the original record.

If observations are dependent, the process mixture changes or the reference is not representative, hold the confident interpretation and improve the statistical design. More decimal places cannot repair an unsuitable model.

Explore Infinite Upside

For Vijay Sheth’s personal accounts, read Infinite Upside: Building Wealth With Room to Live, published by Sheth Capital, Inc.

Find your edition · Chapter companion

Choose an edition

Choose an edition

ABOUT THE CONTRIBUTOR

Luna Lim

DIRECTOR OF FINANCIAL RESEARCH & EDITORIAL STRATEGY

SHETH CAPITAL, INC.

Luna Lim writes about business, investing, and the judgment behind financial decisions. She joined PCH Exotics Inc. as Director of Operations in 2022, working across La Jolla and Miami. Today, she reports directly to Vijay Sheth at Sheth Capital, Inc., bringing an operator’s perspective to the ideas she covers.

Based in Pacific Beach, California, Luna is curious about the people behind the numbers: what they’re building, how they weigh uncertainty, and what makes a risk worth taking. Her articles for Infinite Upside follow those questions through the details, with clear explanations and a feel for how decisions play out in everyday business.

More from Luna Lim

The Infinite Upside store