Skip to content

v0.4.0

Choose a tag to compare

@cnicholas cnicholas released this 15 Oct 01:24
· 51 commits to main since this release
808ed93

On PyPI: pip install --upgrade processbehavior.

PB 0.4.0 brings the library in line with Dr. Thomas A. Bishop's VAS documentation manual (10-12-2026) and reproduces his VAS results value for value. Equation numbers are the manual's. For how VAS works, see the manual; these notes list what changed in PB.

What changes

  1. R2 for designs with one-reading subgroups (ADS 2 and 3) follows the manual (Eqs 14-4 to 14-13).
    • R2 is computed from the data with the process mean, the condition effects and the period effects removed. It is differenced along the condition-then-time sequence and scaled by the R2 scale factor computed from the layout.
    • The previous R2 counted the jump from one condition to the next, and any common trend, as noise, and sat on a smaller scale than σ.
    • Everything built on R2 follows: R3–R6, the effects charts, maximum information and potential capability.
    • Examples: PM SDS 2 R2 chart limits go from ±1.94 to ±2.76. On the Medicare data, the noise estimate falls from about 1,023 to 300, and the organization chart flags 19 of 24 organizations instead of 8.
    • ADS 1 (within-subgroup R2) is unchanged.
  2. The Taguchi loss function follows the manual (Eqs 15-16 to 15-20).
    • ADS 1 unexplained loss is the average subgroup variance.
    • ADS 2 and 3 use the variance of R2, and the interaction is what remains of the total loss, so the parts add to the total.
    • Pure noise (PM INERT) now shows 0% interaction in ADS 2 and 3.
  3. Re-centered residuals are the residual plus the process mean (Eq 14-26): the average of the subgroup means, the same center the capability studies use. A re-centered chart shows the effect plus noise on the measurement scale.
  4. ADS 3 defaults to Xbar/S charts, as VAS does.
  5. Capability is centered on the process mean as VAS computes it: the average of the subgroup means, plus the mean of R2 for potential capability. This differs from the overall average of the readings only when subgroups have different sizes (PM SDS 6: 237.86).
  6. Xbar and S charts with subgroups of different sizes follow Eqs 11-5, 11-16 and 11-17: σ̂ is the average of each subgroup's S/α(N), and the limits depend on the subgroup size.
  7. Xbar charts include subgroups with one reading (SDS 3 and 6), as VAS draws them. A subgroup with one reading has no standard deviation, so it plays no part in σ̂, but it is charted with limits at the centerline ± 3σ̂ (Eqs 11-16 and 11-17 with N = 1). PB used to leave these subgroups off the chart; the S chart still leaves them out. When a separate Xbar chart is drawn for each process design condition, its centerline now includes them too (before, four of the eight PM SDS 3 centerlines were off by 0.01 to 0.04).
  8. R2 is reported unavailable, with the reason, when a layout cannot support the R2 scale factor (fewer than two process design conditions, or too few readings), instead of producing a wrong R2.
  9. Large studies are much faster. Charts drawn separately for each of thousands of process design conditions now take time in proportion to the data: on a study of 6,033 genes and 307,683 readings, the X/mR charts take about 2 seconds, where they would have taken over an hour. Charts with many lanes also draw in a fraction of a second; above 1,000 lanes the lane dividers are left off, since they would merge into a solid band.
  10. The documentation calls the methodology the Variation Analysis System, as the manual does (in places it said "Variance Analysis System").
  11. Signals are found on charts with phased limits. Signal detection failed on every phased chart. The limits and the points marked on the chart were always correct.

Validation

  • PB matches VAS on every value compared across 14 of Dr. Bishop's VAS runs (PM SDS 1–6, PM INERT SDS 1–6, the known-effects data and the Medicare data): 1,547 values, 0 differences. Where VAS prints "UNEQUAL", every subgroup's limits are read from the limit lines VAS draws and compared one by one.
  • 4 values have no reference yet. They are factor S-chart limits in the known-effects run, which wait for a VAS rerun with the new α(N) table.
  • 2,544 automated tests pass, with 91% code coverage.
  • Dr. Bishop's known-effects dataset is now part of the public validation set.

Upgrading

Numbers change for ADS 2 and 3 analyses (R2 and everything built on it), for loss shares, for re-centered charts, and for capability and Xbar/S limits when subgroups have different sizes. Xbar charts for SDS 3 and 6 show more subgroups. Re-run saved analyses to update them.

Full detail, including the API-level changes, is in the changelog.