Check · Test yourselfPractice tests

Academy › Topic library › Going Deeper: Full Factorial Experiments, Main Effects and Interactions

Q-BOT ACADEMY · FREE VIDEO LESSON · 13 MIN

Going Deeper: Full Factorial Experiments, Main Effects and Interactions

The old way is one factor at a time: change one knob, hold the others still, then move on. It takes more runs, and it can't see an interaction, when the effect of one knob depends on where another knob is set. In welding, painting and machining, interactions are everywhere. A full factorial sees every main effect and every interaction, from the same runs!

12:32 · Q-Bot · narrated, with worked example and a check-yourself question

In short

Common mistakes. One: one factor at a time, and missing the interaction. Two: reading a main effect alone when its interaction is real. Three: no replicates, so no honest error term. Four: running in standard order instead of random order. Five: forgetting to halve the effect in the model. Six: saying a factor has no effect, when you only failed to reject.

Check yourself

Let's recap. Two to the k runs, coded minus one and plus one. Main effect: average at high, minus average at low. Interaction: half the difference of one factor's effect across the other's levels. Effect equals contrast over N over two, and the sum of squares is contrast squared over N. The standard error is two s over root N. The model uses half the effects. And always confirm!

Show the answer

Now, check yourself. Priya tests slat surface roughness, in micrometers. Feed rate slow or fast, blade old or new. Slow with the old blade: one point eight. Fast with the old blade: three point oh. Slow with the new blade: one point six. Fast with the new blade: two point oh. What is the feed by blade interaction effect? A, minus point four. B, minus point eight. C, plus point eight. Or D, plus point four. Pause the video if you want to think about it. The answer is A, minus point four. With the old blade, fast feed adds one point two. With the new blade, it adds only point four. Half the difference: point four minus one point two, divided by two, is minus point four. The new blade takes the sting out of fast feed! C is the feed main effect, and B forgets to halve. That's full factorial experiments, main effects and interactions. Questions? Ask Q-Bot right here in the Academy. And one for the road: why did the wire feed and the travel speed make a great team? Because they really know how to interact!

Where this topic is taught

This lesson is part of every free Academy course whose Body of Knowledge covers it. Each course puts it in context, with exercises and checks.

Full lesson transcript

The narration from the video, by chapter. Brindlewood Outdoor Furniture and its people are a fictional company used in every Q-Bot Academy lesson.

Intro

Brindlewood, Wednesday morning. A big Harbor table order just landed, and the welding bay can't keep up. Lou wants to run the welders' travel speed half again faster. Dwayne shakes his head: faster welds are weaker welds. Ellen says, then turn up the wire feed. And somebody asks about the shielding gas. Three knobs, three opinions. Marcus smiles. Let's test all three at once!

Hey there, I'm Q-Bot. Welcome to the Q-Bot Academy. Today we're going deeper: full factorial experiments, main effects and interactions! We'll build a two level design, work out every effect by hand, test which ones are real, and turn them into a prediction. If design of experiments is new to you, start with the design of experiments video.

Why does the math matter? The old way is one factor at a time: change one knob, hold the others still, then move on. It takes more runs, and it can't see an interaction, when the effect of one knob depends on where another knob is set. In welding, painting and machining, interactions are everywhere. A full factorial sees every main effect and every interaction, from the same runs!

The design

First, the design. Each factor gets two levels, low and high, coded minus one and plus one. A full factorial runs every combination. Two factors: four runs. Three factors: eight. Four: sixteen. That's two to the k. Written in standard order, the first column alternates minus, plus. The second alternates in pairs. The third in fours. Multiply columns to get the interaction columns, and every column is balanced: half minus, half plus.

Two more ingredients. Replication: run each combination more than once, so you can measure pure noise. Bad: one frame per combination, and no way to tell an effect from scatter. Good: two or more per combination. Randomization: run the combinations in a random order. Bad: all the low settings in the morning, all the high ones after lunch, so the afternoon heat gets blamed on your factor. Good: shuffle the order, and let chance spread the lurking stuff around.

The formulas

Now the formulas, one at a time. A main effect is the average response at the factor's high level, minus the average at its low level. Every run counts twice: once in each factor's effect. That's why factorials are so efficient!

An interaction effect, A by B, is half the difference between the effect of A when B is high, and the effect of A when B is low. If A works the same at both levels of B, the interaction is zero. On an interaction plot, that means parallel lines. Lines that spread apart, or cross, mean an interaction.

Here's the shortcut that works for any effect. Take its column of pluses and minuses, multiply by the responses, and add them up. That's the contrast. The effect equals the contrast divided by half the total number of runs, N over two. And the effect's sum of squares equals the contrast squared, divided by N. Those sums of squares add up to the total, just like in an ANOVA table.

Is an effect real, or just noise? The replicates tell you. Pool the variance within each combination: that's the mean square error, and its square root is s. The standard error of any effect is two s divided by the square root of N. Then t equals the effect divided by its standard error, with the error degrees of freedom. Compare it to a t table, or use T dot INV dot 2T in a spreadsheet. The F test on the sum of squares gives the same answer, since F is t squared. This assumes independent runs, and residuals that are roughly normal with equal spread.

Worked example 1: the coating corner

Finally, the prediction model. In coded units, the predicted response equals the grand mean, plus half of each real effect times its coded setting. Why half? Because going from minus one to plus one is two units. Plug in any combination, and out comes a prediction!

Worked example one: the thin coating in the inside corner. In the design of experiments video, Marcus ran a two by two: powder flow, normal or twenty percent more, and gun voltage, ninety or sixty kilovolts. The corner averages: two point three mils at normal flow and ninety. Two point six with more flow at ninety. Two point eight at normal flow and sixty. And three point four with more flow at sixty.

Worked example 2: weld strength

The flow effect: the high flow average, three point oh, minus the normal flow average, two point five five. That's point four five mils. The voltage effect: sixty kilovolts averages three point one, ninety averages two point four five. That's point six five. The interaction: more flow adds point three at ninety, but point six at sixty. Half the difference is point one five. On the plot, the lines spread apart. Lower voltage lets the extra powder reach the corner!

Worked example two, three factors: the Harbor table's leg welds. The response is pull strength, minimum twelve hundred pounds force. Factor A, wire feed: three hundred or four hundred inches per minute. Factor B, travel speed: twelve or eighteen inches per minute. Factor C, shielding gas flow: twenty five or thirty five cubic feet per hour. Eight combinations, two frames each: sixteen frames. One station, one welder, a fresh contact tip and one spool of wire, in a random order. Priya pulls every weld in the lab.

Here are the averages for the eight combinations. Slow travel: fourteen sixty, fourteen eighty seven and a half, fourteen seventy two and a half, and fourteen eighty seven and a half. Fast travel: thirteen twenty, fourteen forty two and a half, thirteen thirty five, and fourteen fifty. The grand mean is fourteen thirty one point nine pounds. One combination stands out: fast travel with low wire feed, down around thirteen twenty five.

The main effects. Wire feed: the high wire runs average fourteen sixty six point nine, the low wire runs thirteen ninety six point nine. That's plus seventy pounds. Travel speed: fast averages thirteen eighty six point nine, slow averages fourteen seventy six point nine. That's minus ninety. Gas flow: plus eight point seven five. Small.

Now the interaction of wire feed and travel speed. At slow travel, more wire adds about twenty one pounds. At fast travel, it adds about one hundred nineteen. Half the difference: forty eight point seven five pounds! Fast travel starves the weld unless the wire keeps up. On the interaction plot, the lines spread wide apart.

Which effects are real? Within each combination, the two frames give a mean square error of one eighty one point two five, with eight degrees of freedom. So s is about thirteen point five pounds, and the standard error of an effect is two times thirteen point five, divided by the square root of sixteen: about six point seven. The t table value for eight degrees of freedom at five percent, two tailed, is two point three oh six. So any effect bigger than about fifteen and a half pounds stands out from the noise.

Wire feed: t of ten point four. Travel speed: minus thirteen point four. Their interaction: seven point two. All three are clearly real, with p values under point zero zero one. Gas flow: t of one point three, p about point two three. We fail to reject: no evidence of a gas effect in this range, which isn't proof there's none. The other three interactions are all five pounds or less. And the sums of squares add up to the total, sixty three thousand, three hundred ninety four. The math checks!

The model: fourteen thirty one point nine, plus thirty five times A, minus forty five times B, plus twenty four point four times A times B. At fast travel with high wire, that predicts about fourteen forty six pounds. At fast travel with low wire, only about thirteen twenty eight. So Brindlewood can run fifty percent faster, as long as the wire feed goes up with it. Gas stays at twenty five, the cheaper setting.

How to read the result and decide

And here's what one factor at a time would have said. Test travel speed with the wire low, and fast travel loses about one hundred thirty nine pounds: Dwayne wins, idea dropped. Test wire feed at slow travel, and it gains only twenty one: Ellen loses. Both wrong, because the answer lives in the interaction!

So how do you read the result and decide? Check the interactions first. When an interaction is real, don't read either main effect alone: read the interaction plot, and keep both main effects in the model. Look at the residuals for odd points or uneven spread. Ask whether each real effect is big enough to matter, in pounds and in dollars. Then run confirmation frames at the new setting. Marcus ran eight, and they averaged fourteen fifty, right where the model said. The new setting went through change control, onto the welding work instruction.

Common mistakes

Two more tips. A two level design assumes straight lines between the levels. Add a few center points, every factor in the middle, to check for curvature. And with five or more factors, the runs pile up fast, thirty two, then sixty four. That's when a fractional factorial earns its keep, and it has its own video.

Recap

Common mistakes. One: one factor at a time, and missing the interaction. Two: reading a main effect alone when its interaction is real. Three: no replicates, so no honest error term. Four: running in standard order instead of random order. Five: forgetting to halve the effect in the model. Six: saying a factor has no effect, when you only failed to reject.

Check yourself

Let's recap. Two to the k runs, coded minus one and plus one. Main effect: average at high, minus average at low. Interaction: half the difference of one factor's effect across the other's levels. Effect equals contrast over N over two, and the sum of squares is contrast squared over N. The standard error is two s over root N. The model uses half the effects. And always confirm!

Now, check yourself. Priya tests slat surface roughness, in micrometers. Feed rate slow or fast, blade old or new. Slow with the old blade: one point eight. Fast with the old blade: three point oh. Slow with the new blade: one point six. Fast with the new blade: two point oh. What is the feed by blade interaction effect? A, minus point four. B, minus point eight. C, plus point eight. Or D, plus point four. Pause the video if you want to think about it.

The answer is A, minus point four. With the old blade, fast feed adds one point two. With the new blade, it adds only point four. Half the difference: point four minus one point two, divided by two, is minus point four. The new blade takes the sting out of fast feed! C is the feed main effect, and B forgets to halve.

That's full factorial experiments, main effects and interactions. Questions? Ask Q-Bot right here in the Academy. And one for the road: why did the wire feed and the travel speed make a great team? Because they really know how to interact!

Independent study material; not affiliated with or endorsed by ASQ. Body of Knowledge codes identify where the topic appears in each certification's published outline.