The Ultimate Guide to Choosing spc distribution

06 May.,2024

 

How to choose the right SPC chart - Blog

 

For more information, please visit sonnepower.

 

Choosing the right SPC chart is a critical part of any improvement project because it allows organisations to effectively monitor and control their processes. A well-chosen SPC chart helps in identifying process variations, detecting abnormalities, and making informed decisions to improve quality and achieve desired outcomes. On the other hand, if you pick the wrong chart, the control limits will not be correct for your data.

 

You should consider several factors when selecting an SPC chart, including the type of data (continuous or discrete), sample size and frequency, distribution of data, specific process characteristics, and stability of the process. Evaluating these factors helps you choose the right SPC chart for an accurate analysis of your improvement work.

 

To determine the suitable SPC chart for your improvement project, it is essential to follow a step-by-step approach. This involves defining your project goals and objectives, collecting and analysing data, identifying process characteristics and variables, and then selecting the right SPC chart based on the nature of your data and process.

In this article we guide you through the process and explain each step one by one. Ready? Let’s get started!

 

 

Different Types of SPC Charts and Their Applications

When it comes to SPC charts, there's a variety to choose from, each suited for different purposes. Here are a few popular ones:

 

 

X-Bar S Chart

Similar to the X-Bar R chart, the X-Bar S chart also monitors the average process performance (X-Bar) but uses the standard deviation (S) as an indicator of variation. It's especially useful when the sample size is relatively small.

 

 

I-MR Chart / I Chart

The Individual and Moving Range (I-MR) chart is perfect for situations where you can only measure one observation at a time. It helps you track individual measurements and their moving ranges.

 

 

P Chart

The P chart is your go-to option when you're dealing with discrete data or count data. It helps monitor the proportion of defective items or events in your process.

 

 

C Chart

The C chart is all about counting defects or nonconformities in fixed-size samples. It's like the detective of SPC charts, ensuring that you catch every sneaky defect that comes your way.

 

 

U Chart

When the sample size you're dealing with varies, the U chart steps in. It monitors the average count of defects per unit, allowing you to keep track of process performance.

 

 

T Chart

When the error or undesired incident occurs infrequently in a particularly setting, the use of a T chart is most indicated. Each point on the chart represents an amount of time that has passed since a prior occurrence of a rare event.

 

 

G Chart

When the error or undesired incident occurs infrequently in a particularly setting, G chart is used to count the number of events between rarely-occurring errors or nonconforming incidents.

 

 

Factors to Consider When Selecting an SPC Chart

Choosing the right SPC chart for your improvement project is like finding the perfect match. We have a useful infographic which helps you with the decision, but let’s take a closer look at each step one by one.

 

 

Type of Data: Continuous or Discrete

Different SPC charts are designed for different data types to ensure accurate monitoring. So first, you have to determine the nature of your data: is it continuous (measured on a scale) or discrete (counted occurrences)?

 

Continuous data can take any value (within a range). For example, measuring the weight of each person. This data can be recorded at many different points.

 

On the other hand, discrete data can only take certain values, so it's pretty black or white. For example, the number of people in the department, you are counting whole, indivisible entities! You can't have 3.5 people!

 

 

Sample Size and Frequency

Consider the sample size you're working with and how frequently you're taking measurements. Some SPC charts are more suitable for large sample sizes, while others work better with smaller ones. The frequency of measurement also affects which chart is the right fit for your project.

 

Are you combining observations from multiple sample groups during the same period? An example of this would be running the same test, in multiple departments on the same day.

 

Also, how frequent are your measurements? Are you working with rare data? Conventional charts exhibit problems with rare events due to the infrequency of the data recorded. An example could be number of errors or accidents. Let's face it nobody decides when an accident is going to happen, it is just a rare occurrence that should absolutely be recorded.

 

Based on how you measure data between 2 rare events, the right chart type varies. You can measure it either by time (E.g. days, weeks, months in between rare events) or by number of 'Normal' events (e.g. recording the number of admissions between infections (Infections being the rare event) on a ward).

 

 

Distribution of Data

Take a peek at the distribution of your data. Is it normally distributed or skewed? Some SPC charts assume normal distribution, while others can handle different distributions. Choose a chart that aligns with the characteristics of your data.

 

 

Specific Process Characteristics

Consider the unique aspects of your process. Is it a one-measurement-at-a-time scenario or a fixed-size sample situation? Are the observations binomial (meaning that the results will only have two possible outcomes: Yes/No, Female/Male, Pass/Fail)? 

 

Understanding the characteristics of your process will help you select the most appropriate SPC chart.

 

 

Stability of the Process

Last but not least, assess the stability of your process. If your process is stable and predictable, specific SPC charts might be more suitable. But if your process is unpredictable and prone to special causes, other charts might be a better fit.

 

Remember, choosing the right SPC chart make or break the successful measurement of your improvement project. Take these factors into account, and you'll be well on your way to success.

 

 

Step-by-Step Guide to Choosing the Right SPC Chart

 

Define the Project Goals and Objectives

First things first, before you dive into Statistical Process Control (SPC) charts, it's important to clearly define your project goals and objectives. Are you trying to reduce defects, improve efficiency, or optimize a specific process? Understanding what you want to achieve will help you guide through the chart selection process.

 

 

Collect and Analyse Data

Now it's time to roll up your sleeves and get down to the nitty-gritty of data collection and analysis. Gather relevant data that represents the process you're monitoring. This could be measurements, counts, or even categorical data. Once you have your data in hand, analyse it to understand its characteristics and patterns.

 

 

Identify Process Characteristics and Variables

To choose the right SPC chart, you need to identify the key process characteristics and variables that you want to monitor and control. Is it the mean, variation, or both? Are there any special causes or factors that can affect the process? Consider these factors carefully to ensure you select an appropriate SPC chart.

 

 

Choose the Right SPC Chart Based on Data and Process

Now that you have a clear understanding of your project goals, analysed your data, and identified the process characteristics, it's time to choose the right SPC chart. Select the one that aligns with your data and process requirements.

 

Are you interested in learning more about spc distribution? Contact us today to secure an expert consultation!

 

Common Challenges and Pitfalls in Selecting SPC Charts

 

Overcomplicating or Oversimplifying the Chart Selection Process

It’s important to find the sweet spot between overcomplicating and oversimplifying! Selecting the right SPC chart can be a delicate balance. Don't go overboard with complex charts if a simpler one will serve your purpose, but also don't oversimplify and miss out on valuable insights.

 

 

Not Considering the Nature of Data

Data comes in all shapes and sizes. Each type of data requires a different SPC chart to fully understand and monitor it. Continuous data, discrete data, proportions - they all have their unique charts. So, don’t treat them in the same way. Always choose the most appropriate chart based on your data.

 

 

Ignoring Process Variation and Stability

Ignoring process variation and stability can lead to incorrect chart selection or misleading results. Make sure your process is in a state of control before measuring it with an SPC chart.

 

 

Incorrect Interpretation and Misuse of SPC Charts

SPC charts can be like a foreign language, especially when for beginners. Misinterpreting the signals and trends can lead to wrong decisions and wasted effort. Take the time to learn how to correctly interpret and use the charts. Don't be the person who confuses a spike in the chart with the success of the whole improvement project.

 

 

Summary

We appreciate this is a lot of information to take on board, hence the infographic! We hope this gives you a better understanding of Statistical Process Control (SPC) chart types, but if you are still sat there wondering, get in touch with our team at Life QI.

 

 

Deciding Which Distribution Fits Your Data Best

October 2016

(Note: all the previous SPC Knowledge Base in the basic statistics category are listed on the right-hand side. Select “SPC Knowledge Base” to go to the SPC Knowledge Base homepage. Select this link for information on the SPC for Excel software.)

Last month, distribution fitting was introduced. The following example was used. You need to calculate process capability as part of your production part approval process (PPAP). Unfortunately for you, the histogram of your data indicates that the underlying distribution may not be normal. A normal probability plot confirms that fear – your data do not appear to come from a normal distribution. You try to transform the data, but that fails to make the transformed data normally distributed. You are definitely dealing with non-normal data. Now what do you do

You will not be able to calculate a Cpk value for the process capability – that calculation requires the data to be normally distributed. You are forced to do a non-normal process capability. Not the end of the world. A non-normal process capability requires determining what distribution best fits your data – and determining if there is a legitimate reason that your data follows that distribution.

Last month’s publication described how distribution fitting is done. This month’s publication describes how to compare the fit for various distributions to determine which distribution best fits your data. This in turn allows you to perform your non-normal process capability.

In this issue:

Please feel free to leave a comment at the end of this publication. You may also download a pdf copy of this publication at this link.

Review of Distribution Fitting

Distribution fitting is the process used to select a statistical distribution that best fits a set of data. Examples of statistical distributions include the normal, Gamma, Weibull and Smallest Extreme Value distributions. In the example above, you are trying to determine the process capability of your non-normal process. This means that you need to be able to define which distribution fits the data best so you can determine the probability of your process producing material beyond the specifications. It is important to have the distribution that accurately reflects your data. If you select the wrong distribution, your calculations against the specifications will not accurately reflect what the process produces.

Various distributions are usually tested against the data to determine which one best fits the data. You can’t just look at the shape of the distribution and assume it is a good fit to your data.

How do you determine the best distribution? Statistical techniques are used to estimate the parameters of the various distributions. These parameters define the distribution. There are four parameters used in distribution fitting: location, scale, shape and threshold. Not all parameters exist for each distribution. Distribution fitting involves estimating the parameters that define the various distributions.

The location parameter of a distribution indicates where the distribution lies along the x-axis (the horizontal axis). The scale parameter of a distribution determines how much spread there is in the distribution. The shape parameter of a distribution allows the distribution to take different shapes. The threshold parameter of a distribution defines the minimum value of the distribution along the x-axis. The four parameters were discussed in detail in our last publication.

A number of statistical techniques can be used to estimate the parameters for a distribution. SPC for Excel uses the maximum likelihood estimation (MLE) technique. In this process, parameters are chosen that minimize something called the negative log likelihood. An example of how this is done for the exponential distribution was given in last month’s publication. Once this estimation is complete, you use goodness of fit techniques to help determine which distribution fits your data best. There also visual techniques that help you decide which distribution is best. These includes examining a histogram with the distribution overlaid and comparing the empirical model to the theoretical model.

Our Data

Suppose we have sample of 100 data points. You can download the data used at this link. A histogram (Figure 1) shows that the data are not normally distributed.

Figure 1: Histogram of Our Data

The normal probability plot is shown in Figure 2. The data do not lie close to the straight line. The p-value for the Anderson-Darling statistic is 0.01, which is small. This confirms that the data are not normally distributed. For more information on the normal probability plot and the Anderson-Darling statistic, please see this publication.

Figure 2: Normal Probability Plot of Our Data

Distribution Fitting for Our Data

The next step is to fit the data to various distributions. Most software packages have numerous distributions that can be tested against the data. SPC for Excel was used to fit the various distributions. The output will be shown in three parts. The first part shows the parameters that were estimated for each distribution using the MLE method. These parameters are given Table 1.

Table 1: Parameter Estimates from the Distribution Fitting

Distribution Location Shape Scale Threshold Weibull   1.729 3.342   Weibull – Three Parameter   1.506 3.006 0.253 Gamma   2.446 1.216   Gamma – Three Parameter   2.142 1.33 0.126 Largest Extreme Value 2.145   1.424   LogNormal – Three Parameter 1.387   0.416 -1.379 LogNormal 0.872   0.719   LogLogistic – Three Parameter 1.309   0.27 -1.058 LogLogistic 0.933   0.411   Exponential – Two Parameter     2.646 0.329 Normal 2.975   1.78   Logistic 2.848   1.019   Exponential     2.975   Smallest Extreme Value 3.917   1.988  

 

Not all distributions have the same parameters. For example, the normal distribution is described by the location and the scale while the Gamma distribution is described by the shape and scale. The parameters in Table 1 minimized the negative log-likelihood for each distribution.For the Weibull distribution, the shape parameter was estimated to be 1.729 and the scale parameter estimated to be 3.342. These two parameters minimized the negative log-likelihood for the Weibull distribution.

The data in Table 1 are actually sorted by which distribution fits the data best. The next section describes how this was determined.

Determining Which Distribution Fits the Data Best

The second part of the output is used to determine which distribution fits the data best. Table 2 shows that output. Each column is described below.

Table 2: Goodness of Fit Information by Distribution

Distribution Log-Likelihood AD p Value LRT AIC Weibull -190.3 0.237 >0.25   384.6 Weibull – Three Parameter -189.4 0.355 >0.25 0.174 384.7 Gamma -191.1 0.462 >0.25   386.2 Gamma – Three Parameter -191.0 0.536 0.197 0.691 388.1 Largest Extreme Value -193.6 0.499 0.226   391.2 LogNormal – Three Parameter -192.9 0.514 0.189 0.011 391.9 LogNormal -196.2 1.385 0.001   396.3 LogLogistic – Three Parameter -195.9 0.684 0.044 0.109 397.8 LogLogistic -197.2 1.175 <0.005   398.4 Exponential – Two Parameter -197.3 3.875 <0.001 0.000 398.6 Normal -199.5 1.029 0.010   403.1 Logistic -200.5 0.881 0.012   405.0 Exponential -209.0 6.374 <0.001   420.0 Smallest Extreme Value -216.1 3.357 <0.01   436.2

 

The first column in Table 2 is the log-likelihood value. This is the minimum value for the given distribution based on the parameters in Table 1. Most software will not give this value. However, it is used here to determine the AIC value in the last column.

The second column lists the Anderson-Darling statistic. This statistic is used to help determine how good the fit is. The link above for the normal probability plot shows how the Anderson-Darling statistic is calculated for the normal distribution. The calculations are similar for the other distributions; you just use that distribution in place of the normal distribution. The statistic is calculated and the p-value associated with that statistic determined. The test assumes that the data fits the specified distribution. A low p-value means that assumption is wrong, and the data does not fit the distribution. A high p-value means that the assumption is correct, and the data does fit the distribution.

The p-values for the Anderson-Darling statistic are given in the third column. The p-values used in the software are taken or extrapolated from tables in the book “Goodness-of-Fit Techniques” by Ralph D’Agostino and Michael Stevens.

The fourth column lists the p-value for the likelihood ratio test (LRT). Look at Table 2. Note that there is only a LRT value when there are two distributions from the same family, e.g., the Weibull and the three parameter Weibull. In these cases, the second distribution is created by the addition of the threshold parameter. The LRT determines whether there is a significant improvement in fit with the addition of the threshold parameter.

The smaller the p-value in the LRT column, the more likely the addition of the extra parameter created a significant improvement in fit. The three parameter log-normal distribution has a value for 0.011 for LRT. This implies the extra parameter improved the fit. The three parameter Gamma distribution has a value of 0.691 for LRT. This implies that the extra parameter did not improve the fit significantly.

The fifth column contains the Akaike information criterion (AIC) value. AIC compares the relative “quality” of a model (distribution) versus the other models. You can use AIC to select the distribution that best fits the data. The distribution with the smallest AIC value is usually the preferred model. AIC is defined as the following:

AIC = 2k – 2(Log-Likelihood)

where k is the number of parameters. Note that the AIC value alone for a single distribution does not tell us anything. It is not a test like the p-value from the Anderson-Darling statistic. The AIC value compares the relative quality of all distributions. So, if all distributions do not fit the data well, the AIC value will not let you know this. You need to combine the p-values for the Anderson-Darling statistic, the LRT, and the AIC value to help determine which data fits the distribution best.

Based on the results, it appears that the Weibull and the three parameter Weibull both fit the data pretty well. The Smallest Extreme Value distribution fits the data the worst.

There are also visual methods you can use to determine if the fit is any good. One is to overlay the probability density function (pdf) for the distribution on the histogram of the data. Figure 3 shows this for the Weibull distribution. Note that the pdf does seem to fit the histogram – an indication that the Weibull distribution fits the data.

Figure 3: Histogram/pdf for Weibull Distribution Fit

Figure 4 shows the histogram/pdf for the Smallest Extreme Value. The pdf does not appear to overlay the histogram very well – an indication that the Smallest Extreme Value distribution does not fit the data well.

Figure 4: Histogram/PDF for Smallest Extreme Value

Another visual way to see if the data fits the distribution is to construct a P-P (probability-probability) plot. The P-P Plot plots the empirical cumulative distribution function (CDF) values (based on the data) against the theoretical CDF values (based on the specified distribution). If the P-P plot is close to a straight line, then the specified distribution fits the data.

Figure 5 shows the P-P plot for the Weibull distribution results. The points fall along the straight line indicating that the distribution does fit the data.

Figure 5: P-P Plot for Weibull Distribution Fit

Figure 6 shows the P-P plot for the Smallest Extreme Value results. Note that the points do not fall along the straight line – another indication that this distribution does not fit the data.

Figure 6: P-P Plot for Smallest Extreme Value Distribution Fit

Does the Distribution Make Sense for the Process?

You have determined which distribution fits your data best. This is an important step. It is easy to do with software. But you should have a reason for using a certain distribution – it must make sense in terms of your process. For example, the Weibull distribution is widely used in reliability and life data analysis. If this is the distribution that fits the data best, does it make sense in terms of your process? It may not always be possible to do, but you should have a reason to believe that the data fits a certain distribution – beyond the numbers saying this is the best distribution. In the example above, there is probably very little difference between how well the Weibull and Gamma distributions fit the data. Which one makes the most sense for your process?

Application to Non-Normal Process Capability Analysis

Now that it has been determined that the Weibull distribution fits the data best, we can perform a non-normal process capability analysis. A previous publication covered how to do this. The upper specification limit is 7.5; there is no lower specification limit. The SPC for Excel software was used to generate the non-normal process capability analysis. The chart is shown in Figure 7. It shows that the process has a Ppk = 0.66. Not where you want for your PPAP! Back to work on reducing variation in your process.

Figure 7: Process Capability Analysis Using the Weibull Distribution

Summary

This publication covered how to determine which distribution best fits your data. Distributions are defined by parameters. The maximum likelihood estimation method is used to estimate the distribution’s parameters from a set of data. Methods of checking how “good” the distribution matches the data were also introduced. These goodness of fit methods include the Anderson-Darling statistic, comparing the histogram to the probability density function, and constructing a P-P plot to compare the theoretical cumulative density function to the empirical cumulative density function. The Akaike information criterion (AIC) value was also introduced to determine of the quality of the distribution fit to the other distributions. The distribution with the lowest AIC value is usually the preferred distribution – as long as the Anderson-Darling statistic p-value is large.

 

For more information, please visit vehicle can bus explained.