Sub topic 1
Processes, Inputs and Outputs
Prerequisites
This chapter assumes you have the following:
- Basic arithmetic and percentages.
- A working idea of the mean and of what a distribution is, meaning how a set of measured values spreads out.
- A general sense of what a business or manufacturing process is. You don't need any statistics beyond that. Later chapters build the statistics on the vocabulary set here.
The code uses Python 3.8 or later and only the standard library.
What a process is
A process is a repeatable sequence of steps that turns inputs into an output. A kitchen making toast, a machine shop turning steel shafts, a call center answering tickets, and an invoicing team issuing bills are all processes. They share three features:
- They repeat. The same steps run again and again, so you can compare one run with the next.
- They have an output. Each run produces something a customer receives: a part, a service, a document, a decision.
- They have inputs. Each run consumes materials, information, people's time, equipment and settings.
The word "customer" here is broader than the person who pays. The customer is whoever receives the output next. For a machining step, that may be the assembly line downstream.
Six Sigma starts from this view because variation can only be measured and reduced in something that repeats. A one-off event has no spread to study. A process produces many outputs, and you can ask how much they differ from each other.
The inputs-process-outputs model
The simplest model has three parts: inputs go into the process, and the process produces outputs. A fuller version used in Six Sigma projects is called SIPOC. It stands for Suppliers, Inputs, Process, Outputs, Customers. A SIPOC table is a one-page map of who supplies what, what happens, and who receives the result.
Here is how the parts apply to the shaft example:
| SIPOC part | Question it answers | Shaft-turning example |
|---|---|---|
| Suppliers | Who provides the inputs? | Steel mill, tooling vendor |
| Inputs | What does the process consume? | Bar stock, coolant, machine program, operator time |
| Process | What steps transform the inputs? | Load bar, turn to size, unload |
| Outputs | What does one run produce? | A finished shaft |
| Customers | Who receives the output? | The assembly line |
A SIPOC is deliberately high level. Aim for five to seven process steps. If you need thirty boxes, you are describing procedures, not mapping the process.
Inputs, outputs and the relationship between them
The most useful idea in this chapter is that the output is a function of the inputs and the process. Six Sigma writes this as:
Y = f(X1, X2, ..., Xn)
Y is the output you care about, and each X is an input or process setting that might affect it. The notation is shorthand. It claims that if Y differs between runs, something about the Xs differed between those runs. It doesn't claim that you know the function.
A few terms make this concrete:
- Output characteristic (Y): a measurable property of the result, such as shaft diameter in millimeters or ticket resolution time in hours.
- Input or process variable (X): something that goes into or acts on the process, such as spindle speed, material hardness lot, or room temperature.
- Controllable X: an input you can set on purpose, such as a machine setting.
- Noise X: an input that changes without your choosing, such as ambient humidity or the natural hardness differences within a steel lot.
A practical consequence follows. You usually cannot fix Y directly. You can only inspect it after the fact. What you can change are the Xs. Improving a process therefore means finding which Xs drive Y and managing them.
Outputs also come in two kinds of measure:
- Continuous (variable) data: values on a scale, like 10.02 mm. They carry the most information about spread.
- Discrete (attribute) data: counts or categories, like pass/fail or the number of defects on a form. They are easier to collect but say less about how close a result came to the limit.
Later chapters work mostly with continuous data, and the sigma level chapter returns to counts of defects.
A worked example: recording inputs next to outputs
To study variation you must record each output together with the inputs that were in play when it was made. A measurement without that context cannot be connected to a cause later.
The program below stores a small run log for the shaft process and computes the mean diameter for each machine. The data are made up for illustration.
from collections import defaultdict
from statistics import mean
# One record per shaft: the inputs in play (X) and the measured output (Y).
runs = [
{"machine": "A", "shift": "day", "diameter": 10.02},
{"machine": "A", "shift": "day", "diameter": 10.01},
{"machine": "A", "shift": "night", "diameter": 10.03},
{"machine": "A", "shift": "night", "diameter": 10.00},
{"machine": "B", "shift": "day", "diameter": 9.97},
{"machine": "B", "shift": "day", "diameter": 9.98},
{"machine": "B", "shift": "night", "diameter": 9.96},
{"machine": "B", "shift": "night", "diameter": 9.99},
]
def mean_by(records, key, output="diameter"):
groups = defaultdict(list)
for r in records:
groups[r[key]].append(r[output])
return {k: round(mean(v), 3) for k, v in groups.items()}
print("By machine:", mean_by(runs, "machine"))
print("By shift: ", mean_by(runs, "shift"))Running it prints:
By machine: {'A': 10.015, 'B': 9.975}
By shift: {'day': 9.995, 'night': 9.995}Two things stand out. Every run has a different diameter, even though all eight shafts were meant to be the same. And the machine splits the output into two groups, while the shift does not. Machine looks like an X that moves Y here. Shift does not, at least in this small sample.
Eight records cannot prove that machine B cuts smaller. The sample is tiny, and chance alone can produce a gap like this. The point is the habit: log the Xs with the Y so that a comparison like this is possible at all.
Defining the process boundaries
Before measuring anything, decide where the process starts and stops. Two common ways to mark a boundary are:
- By trigger and result. The process starts when a work order is released and ends when the shaft is accepted by inspection.
- By ownership. The process covers the steps one team controls. Upstream suppliers and downstream customers sit outside it but appear in the SIPOC.
A clear boundary tells you which Xs you can act on and which you can only report to a supplier.
Common errors
These mistakes appear repeatedly when teams first describe a process.
- Measuring only the output. If you record Y with no record of the Xs, you can see that variation exists but never learn why. Record at least machine, material lot, operator or shift, and time.
- Mapping the intended process, not the real one. The procedure document says one thing, and people on the floor do another. Walk the process and watch it run. The real process is the one that generates your data.
- Confusing outputs with inputs. The output of one step is the input of the next. Define the boundary first, then label from the point of view of the process you chose.
- Choosing a Y the customer does not care about. Machine cycle time may be easy to log, but if the assembly line cares about diameter, diameter is the Y.
- Treating every X as controllable. Some Xs, such as weather, can only be monitored. Separate controllable from noise inputs so effort goes where it can pay off.
Why this view leads to variation
Once a process is a set of Xs producing a Y, one fact follows. If every X were held exactly constant, every run would give an identical Y. In reality the Xs never hold perfectly still: bar stock hardness drifts, tools wear, operators differ, and measuring instruments carry their own error. So Y differs from run to run. The next chapter takes this up directly. This chapter gives you the vocabulary to describe a process, which every later chapter uses.
Exercise
A call center answers support tickets. Name one output characteristic (Y) a customer would care about, and give two inputs (Xs) that could affect it. Mark each X as controllable or noise.
Show answer
One possible answer. Y is time to first response in minutes. X1 is the number of agents scheduled on the shift, which is controllable. X2 is the number of tickets arriving in an hour, which is noise, because the call center does not choose when customers write in. Other valid Xs include ticket category, agent training level (controllable), and an outage that spikes volume (noise).
Exercise
In the shaft run log, mean diameter differed by machine (A: 10.015, B: 9.975) but not by shift (both 9.995). Why is it still too early to conclude that machine B is the problem?
Show answer
Each machine has only four shafts, and the shafts within one machine already differ by several hundredths of a millimeter. A gap of 0.04 mm between group means could arise by chance, or from another X that happens to line up with machine, such as a different material lot. You need more runs, ideally with the other Xs balanced across machines, before drawing a conclusion.
Exercise
Write the SIPOC for a pizza delivery process, with one entry for each of the five parts.
Show answer
Suppliers: dough and cheese vendors, the dispatch software provider. Inputs: ingredients, the customer's order and address, oven time, driver time. Process: take the order, make the pizza, bake, box, deliver. Outputs: a hot pizza delivered at the door. Customers: the person who ordered it. Other reasonable entries are acceptable, as long as each part answers its own question.