The Charts tab

The Charts tab in QC Analytical Results: the Charting menu on the left sets the chart type and its settings.

The Charting menu on the left sets the chart type and its settings. Its controls change with the chart you choose. Select the small ? beside a control to see what it is for, and select anywhere else to close it. The chart area shows the chart, with How this is calculated above it and its statistics below.

Chart menu: Precision

The chart menu for a Precision scatter chart, each control numbered

  1. Point size: The size of the points on the chart.
  2. Chart: The chart type. Each QC type has its own list, from scatter and RD charts to Thompson-Howarth.
  3. Threshold factor: Multiplies the detection limit (LLD) to give a threshold. Pairs below it are left out of the statistics and control lines. Scatter and RD v Mean Pairs show them greyed out, and the other charts don’t draw them.
  4. Apply upper detection limit: Leaves out pairs where either result is above the upper detection limit. It works only on rows that have a value in the UPPERDETECTION column.
  5. Use SQC to detect outliers: Finds outliers by statistical control instead of the manual control lines. An outlier is beyond the 3 SD action limit, and the 2 SD warning band is shown too.
  6. Control line (%): The relative difference, in %, at which the manual control lines are drawn.
  7. Facet by check stage: Draws one panel per check stage, two across. RD v Sequence puts them one below the other.

Chart menu: Accuracy

The chart menu for an Accuracy Shewhart chart, each control numbered

  1. Point size: The size of the points on the chart.
  2. Chart: The chart type: Shewhart, Cusum, Exponentially Weighted Moving Average, All Time Series, Box and whiskers, Z-Score, Week by week or Bias against grade. The last two are of the whole laboratory. They take every CRM, so the CRM type and CRM filters are not used. Week by week shows every analyte with the same method as the Analyte chosen. Under Shewhart, Cusum and EWMA, a result more than 10 SD from the centre is named as a gross error, with its likely cause and what to check.
  3. Use CRM provided statistics: Builds the control lines from the CRM’s certified value and standard deviation, not from the results. Z-Score always centres on the certified value. For Z-Score this box changes only the standard deviation.
  4. Run Nelson 8 rules: Flags runs and trends in the CRM’s results, such as nine in a row on one side of the centre line. A table lists the rules that were broken.
  5. Show change points: On Shewhart and CUSUM, finds where a CRM’s results shifted, by change-point analysis. On RD v Sequence and RD Rolling Median, finds where precision changed by a point or more of median |RD|, and says when the grade changed at the same time. A dashed purple line marks each change at 95% confidence or more. The list under the chart gives every change, and any possible one at 90 to 95%.
  6. X axis: What runs along the bottom: Lab Job No, Despatch No, Check ID or Date.
  7. Show colour bands: Shades the chart green within the 2 SD warning limits, amber between the warning and 3 SD action limits, and red beyond them.

Other controls

  • Essential charts only: Shortens the Chart list to the core charts. For Precision these are Scatter, RD v Mean Pairs and RD v Sequence. For Accuracy they are Shewhart and Box and whiskers.
  • Group by CRM: For Z-Score, puts each CRM’s results together along the X axis, one colour per CRM, with a dotted line between CRMs. Untick it to show every CRM in one sequence, with each point coloured by its band. On a Date axis the results stay in date order, so this only colours them by CRM. The ring beside the chart counts the results that passed (within ±2), had a warning (±2 to ±3) or failed (beyond ±3).
  • RD to use: The relative difference formula. Here a is Sample 1 and b is Sample 2 of the pair. The choices are ARD% |a−b|/a, HARD% |a−b|/(a+b), CV% |a−b|/√2 over the mean of the pair, MPRD% (a−b) over the mean of the pair, and Hyslop’s RD, all × 100. ARD% and HARD% are always positive. MPRD% and Hyslop’s keep the sign, so a bias shows.
  • Control line method: How the RD charts draw their control lines. SQC uses the mean ± standard deviations. MAD uses the median ± a robust standard deviation, which a few wild pairs don’t pull out.
  • Rolling window (despatches): For RD Rolling Median, the number of despatches each point’s median covers. A longer window is smoother but slower to show a change.
  • Charts to display: For RD v Density/Histogram, shows the histogram alone, or with its density curve, mean, median and control lines.
  • Number of bins: For RD v Density/Histogram, the number of histogram bars, of equal width across the RD range. Ticked, it uses Sturges’ rule: log2 of the number of pairs, plus 1, rounded up. Unticked, you set the number, from 10 to 60.
  • Exclude outliers: For Density/Histogram, Quantile-Quantile and Thompson Howarth, leaves out the pairs beyond the action limits. The limits and statistics are then worked out again without them. On the Quantile-Quantile of Sample 1 against Sample 2, and on Thompson Howarth, the limits are always the mean RD ± 3 SD. The Quantile-Quantile statistics still count every pair.
  • What to chart: For Thompson Howarth, shows Precision v Concentration, the Thompson Howarth plot, or both.
  • Additional options: Options for Thompson Howarth. Log v log display draws both axes on a log scale and fits on the log values. Force zero or negative intercept refits a line whose intercept is at or below zero through 0.01. Slope/intercept by robust regression (recommended) fits a Theil-Sen line, which one odd group hardly moves. Unticked, the line is a least-squares fit. Hide pairs hides the single pairs and keeps the groups and the line. Use Median of Means places each group at the median of its pairs’ means instead of their mean. The Precision v Concentration view ignores these options.
  • Y axis statistic: For Thompson Howarth, what each group’s point measures: the median of |A - B|, or of |A - B|/SQRT(2), the difference for one result. The line is then scaled to one standard deviation.
  • Compute for a nugget effect: For Thompson Howarth on gold and other nuggety elements. Each group’s point is the root mean square of the differences instead of their median. A few very different pairs then count fully. Stanley (2006).
  • Partition window: For Thompson Howarth, the number of pairs in each group along the concentration. Thompson and Howarth suggest 11. A stage with many pairs can take a larger window.
  • Trend line smoothing (%): On Shewhart and RD v Sequence with a Date X axis, a smooth trend line (LOESS) through the results. Each point of the line is fitted from the nearest share of results set here. A low % follows short changes, a high % shows the long trend. Shewhart also shades one standard error either side of it.
  • Weighting factor (Lambda): For EWMA, the weight the newest result gets. 0.2 is common. A smaller value is smoother and better at finding small, steady shifts.
  • Number of Sigmas (L): For EWMA, the width of the control lines in standard deviations. The default is 2.5, and 3 is also common.
  • Decision Interval (H): For CUSUM, how far the running sum can go, in standard deviations, before the process is out of control. The default is 3, and 4 or 5 is also common.
  • Shift Detection (k): For CUSUM, the allowance in standard deviations. 0.5 suits finding a shift of 1 standard deviation.
  • Chart (Contamination): The blanks chart shows each blank’s result against its detection limit.
  • Warning factor (x LLD): For Contamination, the app flags a blank above this many times its detection limit.

Chart area

A scatter chart with its title, menu, plot, legend, method link and statistics numbered

  1. Title: Names the chart, laboratory and analyte, with the check stage or CRM and the dates underneath.
  2. Chart menu: Opens the chart full screen, prints it, or downloads it as an image or as the data behind it.
  3. The chart: Point at a result to see its details.
  4. Legend: Select an item to hide or show it.
  5. How this is calculated: Explains the method behind the chart, using this chart’s own numbers.
  6. Statistics: Lists the chart’s statistics, with notes on what they mean, such as how many outliers to expect.

The charts

What each chart shows and what it is for. The chart’s How this is calculated link starts with the same words, then explains each of its options as they are set.

Accuracy

  • Shewhart: Each result of one CRM in order, against a centre line and warning (±2σ) and action (±3σ) limits. It shows whether the laboratory reads the CRM on target, and flags single results and runs that are out of control.
  • Cusum: The running sums of each result’s distance above (C⁺) and below (C⁻) the CRM’s target. A small, lasting bias builds up until it crosses the decision line, so the chart finds shifts too small for a Shewhart chart to show.
  • Exponentially Weighted Moving Average: A moving average that gives the newest result the most weight, against limits that widen to a steady width. It smooths out single results to show a slow drift or a small, lasting shift in the laboratory’s reading of the CRM.
  • All Time Series: The Shewhart, CUSUM and EWMA charts of the same CRM results, one above the other. It lets you compare single results, lasting shifts and slow drift in one view.
  • Box and whiskers: One box of results for each CRM, side by side. It compares how closely the laboratory repeats each CRM and shows the CRMs with unusual results.
  • Z-Score: Each result as its distance from the certified value, in standard deviations, for one or more CRMs on one scale. It puts CRMs of different grades together, so a bias that affects them all stands out.
  • Week by week: A grid of coloured squares, one for each week and analyte, showing how far that week’s CRM results were from certified. It shows spells when many analytes at the laboratory read low or high together.
  • Bias against grade: Each CRM’s bias plotted at its certified grade. It shows whether the laboratory’s bias is the same percentage at every grade or the same amount, and what that means at your cut-off.

Precision

  • Scatter: Sample 1 against Sample 2 for every pair. It shows at a glance how closely the duplicates agree across the grade range, and picks out the pairs that disagree.
  • RD v Mean Pairs: Each pair’s relative difference against its grade. It shows whether precision changes with grade, as it usually does near the detection limit.
  • RD v Sequence: Each pair’s relative difference in order of check ID, job, despatch or date. It shows whether precision got worse or better over time, and when.
  • RD v Density/Histogram: The spread of the relative differences as a histogram, with a smoothed curve. It shows whether most pairs agree closely and how far the tails reach.
  • RD v Percentile: The pairs sorted from best to worst agreement. It shows the relative difference that a given share of the pairs is within, such as 90% of pairs within 10%.
  • RD Rolling Median: The median relative difference of each despatch, with a rolling median over the latest despatches against the stage limit. It shows whether the stage meets its precision limit now and how that has changed.
  • RD Box and Whiskers: One box of relative differences for each analyte and check stage. It compares precision across all the analytes and stages at the laboratory.
  • Thompson Howarth: Precision against concentration, from the pairs grouped by grade. It gives the detection limit and the precision at each grade, so you can judge the method at the grades that matter.
  • Quantile-Quantile - Normal Distn: The relative differences against a normal distribution. It shows whether they follow one, which the SD-based control lines assume, and where the tails depart from it.
  • Quantile-Quantile: Sample 1’s results against Sample 2’s, both sorted. It shows whether the two sets of results have the same distribution, which reveals a bias between them across the range.
  • Empirical Cumulative Density Function: The share of pairs at or below each relative difference, against a normal curve. It shows how the spread compares with a normal distribution and what share of pairs is within any limit.

Contamination

  • Bar: Each blank result as a bar against the warning level. It shows which blanks carried metal into the samples, and whether contamination is occasional or steady.