Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net
 SPC Control Chart Tools for .Net
 Control Limits calculate problem
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sakamali

Turkey
33 Posts

Posted - 28 May 2013 :  14:07:46  Show Profile  Reply with Quote
Hi,
We are using your products and there is a problem in np-Chart Control Limits. I have these sample values :

{10, 12, 8, 9, 6, 11, 13, 10, 8, 9, 6, 19, 10, 7, 8, 4, 11, 10, 6, 7}

In this form, CL is calculated truly : 9,2
Also UCL and LCL are calculated : 9,2

However, UCL should be 18,159 (~18,16) and LCL should be 0,241 (~0,24) according to p (p should be 300 in our sample)
UCL = np + 3 * [(np * (1- np/p))^(1/2)]
UCL = 9,2 + 3 * [(9,2 * (1- 9,2/300))^(1/2)]

LCL = np - 3 * [(np * (1- np/p))^(1/2)]
LCL = 9,2 - 3 * [(9,2 * (1- 9,2/300))^(1/2)]

How can I set needed p value? So, if I run my example in C#, I get this chart :

quinncurtis

1586 Posts

Posted - 28 May 2013 :  16:05:06  Show Profile  Reply with Quote
Since you show a NO. INSP. value of 1 in your table, I assume you did not properly set the value of the numsamplespersubgroup parameter in the call to the InitSPCBatchAttributeControlChart or InitSPCTimeAttributeControlChart . In your case that would be 300.
Go to Top of Page

sakamali

Turkey
33 Posts

Posted - 29 May 2013 :  11:50:49  Show Profile  Reply with Quote
Thanks for your help.
Regards.
Go to Top of Page

sakamali

Turkey
33 Posts

Posted - 14 Jun 2013 :  10:23:05  Show Profile  Reply with Quote
Hi,
My sample values are :
{5, 4, 7, 6, 8, 5, 6, 5, 16, 10, 9, 7, 8, 11, 9, 5, 7, 6, 10, 8, 9, 9, 7, 5, 7}

What should be the other parameters to get below chart (u-Chart) and UCL, U and L values?



Thanks,
Regards.

Edited by - sakamali on 14 Jun 2013 10:23:37
Go to Top of Page

quinncurtis

1586 Posts

Posted - 14 Jun 2013 :  11:10:46  Show Profile  Reply with Quote
Sorry, but I do not understand the question. You seem to be using a batch attribute control chart, so study the examples in the BatchAttributeControlChart example program, most specifically the NumberDefectsPerUnitControlChart chart, which is the u-chart. Base your own program on those examples, and frame any questions you have in terms of the code in those examples. Also, make sure you read the section Updating c- and u-charts (Fixed Sample Subgroup Size) in Chapter 5 of the manual.

By the way, your example chart does not look correct for a u-chart. Are you saying that the average number of defects per unit for your process is as high as 16, with an average of 8? Because that seems extremely high. Or are these supposed to be the number of defects for a sample of 300 parts per sample interval. In which case the chart is wrong for a u-chart, which should show the average defects per unit per sample interval, not the total number of defects per sample interval. This example: http://en.wikipedia.org/wiki/File:U_control_chart.svg is much more typical of a u-chart, which is similar to our example program.

The chart you show above looks to be a c-chart (number of defects) , not a u-chart. The NumberDefectsControlChart chart from the BatchAttributeControlChart example program represents the c-chart. So you need to decide what type of chart you want.
Go to Top of Page

sakamali

Turkey
33 Posts

Posted - 17 Jun 2013 :  04:08:52  Show Profile  Reply with Quote
Hi,
I want to use u-Chart and my parameters that I use are in below:

int charttype = SPCControlChartData.NUMBER_DEFECTS_PERUNIT_CHART;
int numsamplespersubgroup = 1;
int numsamplestotalgroup = 1;
Samples = {5, 4, 7, 6, 8, 5, 6, 5, 16, 10, 9, 7, 8, 11, 9, 5, 7, 6, 10, 8, 9, 9, 7, 5, 7};


And I call spcChart.ChartData.AddNewSampleRecord(timestamp, samples);

I get this chart:



Which chart do you get by these values?


Go to Top of Page

quinncurtis

1586 Posts

Posted - 17 Jun 2013 :  08:41:38  Show Profile  Reply with Quote
I still don't think you want a u-chart.

If you do, then please confirm that based on your data, your product has an average of 7.56 defects per unit. That seems like a really bad process which produces such an error rate. A more typical number of defects per unit for a u chart would be 0.01 to 0.1.

I do not understand the question: Which chart do you get by these values? Please rephrase it with more detail.

MORE: The graph that you show, with the UCL of 15.81, is a c-Chart (Number of Defects), NOT a u-chart. As stated previously, our example program for that is BatchAttributeControlChart.NumberDefectsControlChart. Please take the time to figure out which chart you are dealing with.

Go to Top of Page

sakamali

Turkey
33 Posts

Posted - 17 Jun 2013 :  09:35:55  Show Profile  Reply with Quote
Could you please send me a sample (not random) data (and parameters) for get a u-Chart?

Thanks.
Go to Top of Page

quinncurtis

1586 Posts

Posted - 17 Jun 2013 :  11:01:07  Show Profile  Reply with Quote
Sorry, but we do not write custom example programs on demand. You must work with the examples we have already provided you with.

Modify the BatchAttributeControlChart.NumberDefectsControlChart by replacing the Simulate data method to use your own data.


All of our data is random, so use the data you already have. The result does not look your original chart, because your original chart is a c-chart, and has c-chart limits.

You should probably add the line:

this.EnableCategoryValues = false;

Since you only have one category of defect.


private void SimulateData()
{
	if (this.IsDesignMode) return;
        double[] data = { 5, 4, 7, 6, 8, 5, 6, 5, 16, 10, 9, 7, 8, 11, 9, 5, 7, 6, 10, 8, 9, 9, 7, 5, 7 };
        for (int i = 0; i < data.Length; i++)
        {
            double batchnumber = batchCounter;
            ChartCalendar timestamp = (ChartCalendar)startTime.Clone();
           
            DoubleArray samples = new DoubleArray(1);
            samples[0] = data[i];
            // Add new sample record
            this.ChartData.AddNewSampleRecord(batchnumber, timestamp, samples);
            // Simulate timeincrementminutes  minute passing
            startTime.Add(ChartObj.MINUTE, timeincrementminutes);
            batchCounter++;
        }

}

Nothing else needs to be changed. The result is a u-chart. It assumes that the defect numbers you update the chart with are based on a 50 unit sample size per sample interval, the value of which can be changed using the numsamplespersubgroup value at the top of the program.
Go to Top of Page

sakamali

Turkey
33 Posts

Posted - 18 Jun 2013 :  04:25:50  Show Profile  Reply with Quote
Hi,
I got these values by data[] array. Are they true?

UCLP = 0,385
PBAR = 0,151
LCLP = 0,000
Go to Top of Page

quinncurtis

1586 Posts

Posted - 18 Jun 2013 :  08:39:32  Show Profile  Reply with Quote
Yes, those are the values you obtain with that data, assuming those are the defect numbers for a sample size of 50 units per sample interval.
Go to Top of Page

sakamali

Turkey
33 Posts

Posted - 18 Jun 2013 :  08:53:59  Show Profile  Reply with Quote
Thanks a lot.
Regards.
Go to Top of Page

sakamali

Turkey
33 Posts

Posted - 20 Jun 2013 :  03:31:58  Show Profile  Reply with Quote
Hi,
There is a problem. I have an example for u-Chart from your examples and it has these samples (Generated randomly) and calculated values:



UCLP = 0.489 PBAR = 0.180 LCLP = 0.000

U-Chart Formulas are:



According to the formulas, calculated values must be below values:

UCLP = 0,18 + 3*[(0,18/50)^(1/2)] = 0,36
PBAR = 153/(17*50) = 0,18
LCLP = 0,18 + 3*[(0,18/50)^(1/2)] = 0

And this chart seen true



Where is the problem?
Thanks.
Go to Top of Page

quinncurtis

1586 Posts

Posted - 20 Jun 2013 :  09:49:15  Show Profile  Reply with Quote
What you describe is a bug in the software for the Number Defects Per Unit chart. We have fixed the bug and you can download the corrected version of the software using your original download link.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07