Hey Friends,
I have a table with a continious process data. I want to calculate the CpK at every measurment, so that I can follow the variation in CpK with time. Is there an elegant way to do so ?
Regards
SG
Before someone tries to script this solution, some thoughts about Cpk sample size issues:
Cpk confidence intervals for small samples are huge until you get to 20, 200 or even 2000 measurements. (Nominal Cpk of 2.0 might be <1.0 or >3.0 for example with few samples.) Just because computers use 2 or more decimal point results does not mean that it means anything.
You might have to use a startup-set of 20 (or 200) typical measurements from history, then re-calc as each new measurement is added.
However Cpk changes very very very slowly which is why many companies only report it quarterly, of if high speed mfg, monthly, or weekly but with stated sample size and upper and lower confidence levels. Just my opinion based on volume mfg practices.
Better perhaps to use your measurements in EWMA or other SPC chart with OOC rules and limits, and then show your moving Cpk (based on moving mean and moving stdev!) on second chart below the SPC individuals charts? JQT had so many discussions on Cpk confidence interval issues that Lloyd Nelson banned articles on Cpk for a full year...long ago as I remember.
Hey,
Thanks for your wise guidence, very helpful.
I have another question. If there is a process which is being monitored long term and the results are not evenly spaced in time (of what ever is used on the X-axis) should we start to recalculate the sigma and mean after lets say after a certain (long) gap ?
Cpk and Ppk (short and long term...or within vs all-variation) are measures of UNDERLYING CAPABILITY vs spec limits and not useful without SPC charts to assure process behavior is NORMAL or at least not skewed heavily. It is not INSTANTANEOUS measure of short term capability changes as the SPC chart would likely show mean or sigma OOC signal with sparse or internittent data.
So IF you have at least 25 points after long gap of no data, you might recalculate the SPC limits just to see how much they have shifted or gotten more variable. But until you have perhaps 100 points I would not bother to report a change in capability....unless REQUIRED in which case modern SPC software can give you Cpk values as well as mean and sigma or median and IQR for any SPC chart that meets minimum sample size....and further, they give CONFIDENCE LEVELS on high and low side of nominal Cpk or Cpm (related to target not just limits).
Start with SPC charting, including EWMA as well as X and moving range charts...as one option, depending on type of process behavior (from exploratory data analysis, or process capability STUDY during well controlled period. Check other discussions on this topic as it has been discussed hundreds of times in ASQ.com (especially their Journal of Quality Technology), Isixsigma.com, and linked-in discussion groups.
Both SPC %OOC per quarter and Cpk per quarter are often studied for hints as to process behavior with SPC charting.
Long gaps in process results can simply mean you are monitoring the PRODUCT rather than PROCESS which could be running multiple products.
So Process Cpk for all products using real process outputs and inputs in a MFG DB can be useful as it gives bigger sample sizes (for Cpk assessment of underlying capability) as well as measure of alarms and mistakes that are actionable (part of cost of quality), Job shops are tricky, and Wheeler has studied SPC for short run manufacturing (which has mention of Cpk). Blogs by Wheeler and others such as Isixsigma.com can answer special questions, such as tool wear trend impacts, short run mfg, non-normal process behavior. What SPC software do you have?
Hello Mclayton,
Sorry for the delay in responding to you. I use the JMP to plot the SPCs ... (is there some thing else that one can use). For the calcuation of the moving CpKs, I export the data to XL, do the calculations and then export back to JMP. This is painfull, however since JMP does not have the option to reference indivual cells like in XL, I have no other option. Do you know if there is a work around for this ?
What other addin or sofrware to you use for such work ?
Thanks for sharing your valuable know how on this.