Jump to content

File:Individuals chart for a paired individuals and MR chart.svg

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

Original file (SVG file, nominally 630 × 629 pixels, file size: 42 KB)

Summary

Description
English: Example en:Shewhart individuals control chart for a process that experienced a 1.5σ drift starting at midnight.
Date
Source Own work
Author DanielPenfield

Creation technique

  1. Simulate process observations using en:perl, output to file.
  2. Read file into R, use qcc package to render control chart.
  3. Save to PDF.
  4. Import into en:Inkscape, save to SVG.
#!/usr/bin/perl -w

use strict;
use Math::Random;

my %shiftSchedule = (
    "first" =>  { "start" =>  6.00, "end" => 14.00 },
    "second" => { "start" => 14.00, "end" => 22.00 },
    "third" =>  { "start" => 22.00, "end" =>  6.00 }
);
my $shift = "third";         # shift to monitor
my $inspectionRate = 1 / 2;  # every 1/2 hour
my $drift = 1.5;             # drift to simulate
my $m = 25;                  # samples in control chart setup
my $target = 100.0;          # quality characteristic target

my $i;
my $observation;
my $setupM = $m;

print "unit observation phase\r\n";

for ($i = 1; $i <= $m; $i++) {
    $observation = $target + random_normal();
    printf "%4d     %7.3f setup\r\n", $i, $observation;
}

$m = $shiftSchedule{$shift}{"end"} - $shiftSchedule{$shift}{"start"};
if ($m < 0) {
    $m += 24;
}
$m /= $inspectionRate;
for ($i = 1; $i <= $m; $i++) {
    $observation = $target + random_normal();
    if ($i >= (0.25 * $m)) {
	if ($i < (0.75 * $m)) {
	    $observation += ($drift / (0.5 * $m)) * ($i - (0.25 * $m));
	} else {
	    $observation += $drift;
	}
    }
    printf "%4d     %7.3f monitoring\r\n", 2 * $setupM + $i, $observation;
}


 
This chart was created with R by v.

Licensing

I, the copyright holder of this work, hereby publish it under the following licenses:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.
You may select the license of your choice.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

16 January 2010

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current21:45, 16 January 2010Thumbnail for version as of 21:45, 16 January 2010630 × 629 (42 KB)DanielPenfield{{Information |Description={{en|1=Example en:Shewhart individuals control chart for a process that experienced a 1.5σ drift starting at midnight.}} |Source={{own}} |Author=DanielPenfield |Date=2010-01-16 |Permission= |other_v

The following page uses this file:

Metadata