Generating a time weighted chart

Dataset for Time Weighted Charts XLS64.5 KB

Tutorial video
  • SPC Statistical Process Control software

  • System configuration

    • Windows:
      • Versions: 9x/Me/NT/2000/XP/Vista/Win 7
      • Excel: 97 and later
      • Processor: 32 or 64 bits
      • Hard disk: 150 Mb
    • Mac OS X:
      • OS: OS X
      • Excel: X, 2004 and 2011
      • Hard disk: 150Mb.

Benefits

  • Easy and user-friendly
    Easy and user-friendly XLSTAT is flawlessly integrated with Microsoft Excel which is the most popular spreadsheet worldwide. This integration makes it one of the simplest available tools to work with as it utilizes the same philosophy as Microsoft Excel. The program is accessible in a dedicated XLSTAT tab. The analyses are grouped into functional menus. The dialog boxes are user-friendly and setting up an analysis is straightforward.
  • Data and results shared seamlessly
    Data and results shared seamlessly One of the greatest advantages of XLSTAT is the way you can share data and results seamlessly. As the results are stored in Microsoft Excel, anyone can access them. There is no need for the receiver to have an XLSTAT license or any additional viewer which makes your team-work easier and more affordable. In addition, results are easily integrable into other Microsoft Office software such as PowerPoint, so that you can create striking presentation in minutes.
  • Modular
    Modular XLSTAT is a modular product. XLSTAT-Pro is a core statistical module of XLSTAT which includes all the mainstream functionalities in statistics and multivariate analysis. More advanced features contained in add-on modules can be added for specific applications. This way you can adapt the software to your needs making the software more cost-efficient.
  • Didactic
    Didactic The results of XLSTAT are organized by analysis and are easy to navigate. Moreover useful information is provided along with the results to assist you in your interpretation.
  • Affordable
    Affordable XLSTAT is a complete and modular analytical solution that can suit any analytical business needs. It is very reasonably priced so that the return of your investment is almost immediate. Any XLSTAT license comes with top level support and assistance.
  • Accessible - Available in many languages
    Accessible - Available in many languages We have ensured XLSTAT is accessible to everyone by making the program available in many languages, including Chinese, English, French, German, Italian, Japanese, Polish, Portuguese and Spanish.
  • Automatable and customizable
    Automatable and customizable Most of the statistical functions available in XLSTAT can be called directly from the Visual Basic window of Microsoft Excel. They can be modified and integrated to more code to fit to the specificity of your domain. Adding tables and plots as well as modifying existing outputs becomes easy. Furthermore, XLSTAT includes some special tools on the dialog boxes to generate automatically the VBA code in order to reproduce your analysis using the VBA editor or to simply load pre-set settings. This effortless automation of routine analysis will be a huge time saver on your part.

Dataset to generate a time weighted chart

An Excel sheet containing both the data and the results for use in this tutorial can be downloaded by clicking here.

The data are from [Ryan Th. P. (2000), Statistical Methods for Quality Improvement, Second Edition, John Wiley & Sons, New York].

They correspond to simulated data of 20 inspections each having 4 measurements of a production process.

Time weighted charts

The time weighted charts tool offers you the following chart types:

  • CUSUM or CUSUM individual
  • UWMA or UWMA individual
  • EWMA or EWMA individual

A CUSUM, UWMA or EWMA chart is useful to follow the mean of a production process. Mean shifts are easily visible in the diagrams.

UWMA and EWMA charts

These charts are not directly based on the raw data. They are based on the smoothed data.

In the case of UWMA charts, the data is smoothed using a uniform weighting in a moving window. Then the chart is analyzed like Shewhart charts.

In the case of EWMA charts, the data is smoothed using an exponential weighting. Then the chart is analyzed like Shewhart charts.

CUSUM charts

These charts are not directly based on the raw data. They are based on the normalized data.

These charts help to detect mean shifts of a user defined granularity. The granularity is defined by the design parameter k. K is the half of the mean shift to be detected. Normally to detect 1 sigma shifts, k is set to 0.5.

In addition to the control charts connected functions are available:

  • Box-Cox transformation
  • Process capability
  • Tests for normality
  • Rules for special causes and Westgard rules
  • Run charts

This tutorial explains the ability of the CUSUM charts to detect quicker than a comparable X-bar chart a small mean shift. A process will be simulated that has a mean of 0 and a standard deviation of 1 for the first 12 inspections. Starting with the 13th inspection, the process mean is now 0.5. The standard deviation is unchanged 1. Therefore the first 12 inspections are simulated with a normal law N(0, 1) and the 8 following inspections by the normal law N(0.5, 1). It will be shown using the X-bar chart and the CUSUM chart, how fast this mean shift will be detected.

During this tutorial a one-sided CUSUM chart and a X-bar chart will be used.

Setting up time weighted charts

Once XLSTAT is activated, select the XLSTAT / XLSTAT-SPC / Time weighted command, or click on the corresponding button of the XLSTAT-SPC toolbar (see below).

Time weighted control chart: Menu

When the time weighted dialog box appears, in the Mode tab, chose the CUSUM chart.

Time weighted control chart: Dialog box - Mode

Next, move on to the tab General and select the data on the Excel sheet.

Note: There are several ways of selecting data with XLSTAT - for further information, please check the section on selecting data. In this example, the data start from the first row, so it is quicker and easier to use columns selection. This explains why the letters corresponding to the columns are displayed in the selection boxes.

The Data format chosen is Columns because of the format of the input data.

Activate the option Target and enter the mean value of the process 0.

Time weighted control chart: Dialog box - General

In the Options tab, we activate the option Sigma and enter the historical value for sigma: 1.

Time weighted control chart: Dialog box - Options

In the Design tab, choose the Scheme one sided (LCL/UCL) to obtain the cumulated lower and upper sum.

Enter 4 for h to detect a mean shift, when the cumulated sum has a value of 4 or bigger. Enter 0.5 for k to have a model that detects mean shifts starting at 0.5 sigma or more.

Time weighted control chart: Dialog box - Design

In the Outputs tab, we activate all options, and we deactivate all special cause rules.

Time weighted control chart: Dialog box - Outputs

In the Charts tab, we activate all options.

Time weighted control chart: Dialog box - Charts

The computations begin once you have clicked on OK. You are asked to confirm the number of rows and columns (this message can be bypassed by un-selecting the Ask for selections confirmation in the XLSTAT options panel).

Interpreting time weighted chart

The first results are the estimated mean and standard deviation values. These values are the same than the historical values entered: 0 and 1.

The following tables with their corresponding chart represent the CUSUM control chart including the different control limits and central lines. In the first table the control limits of the NP control chart are mentioned. They are chosen using the parameter h = 4. LCL equals -4 and UCL equals 4.

Then the data of the CUSUM control chart starting with the group size, the normalized values (z), the lower CUSUM, and the upper CUSUM are displayed. After this the central line (CL), the lower (LCL) and the upper (UCL) control limit and the lower and upper zone limits for the A and B area are displayed for each group.

Time weighted control chart: CUSUM chart - observation details

Time weighted control chart: CUSUM chart

We see that the upper CUSUM for inspection 19 has a value of 4.195 and is outside the control limit of 4. This is the detection of the mean shift. It took 7 inspections to detect the shift.

If you draw with the data used in this tutorial a X-bar chart as described in the tutorial on the X-bar chart, even after 20 inspections no value outside the control limits is detected.

The normalized values z in the CUSUM details represent a X-bar chart in a condensed format. If a value is bigger than 3, it is equal to a value in the X-bar chart bigger than 3 sigma, the usual upper control limit for a X-bar chart. In this case here all normalized values z are smaller than 3.

During this tutorial we could see that the CUSUM chart is more efficient to detect small mean shifts than an X-bar chart.