B: type of kernel used white corn or yellow corn 2? number of levels for the factors number of factors... Results 2/5: cube plot A systematic approach1.. Results 3/5: Predictive model
Trang 1Two-factor experiment
Tâm Minh Lê, Ph.D Faculty of Food Technology, HUFI
Trang 21. A systematic approach to analyze two-factors experiment
3. Two-factor experiments with interactions
Trang 32.01 A systematic approach to analyze
two-factor experiment
Trang 4 Factors: things influencing the outcome that we want to change
Also called variables
Qualitative = Categorical
Trang 5Context: popcorn
Trang 6Issue: unpopped popcorn
Trang 75. Plan the experiment
Trang 8Outcome and Objective A systematic approach1 What is my outcome ?
2 What is my objective ?
Trang 9Outcome and Objective
Trang 10Factors and Levels
A: time on the stove (160 sec or 200 sec.)
B: type of kernel used (white corn or yellow corn)
2𝑘 number of levels for the factors number of factors
Trang 11 A: time on the stove (160 sec or 200 sec.)
B: type of kernel used (white corn or yellow corn)
Trang 12StdOder RunOder Time Corn
A: time on the stove (160 sec or 200 sec.)
B: type of kernel used (white corn or yellow corn)
Trang 13StdOder RunOder Time Corn
A: time on the stove (160 sec or 200 sec.)
B: type of kernel used (white corn or yellow corn)
Trang 14StdOder RunOrder Time Corn Popped corn
Run the experiments
A: time on the stove (160 sec or 200 sec.)
B: type of kernel used (white corn or yellow corn)
6 Implement the experiment
Trang 157 Analyze the results
Trang 167 Analyze the results
StdOrder RunOrder Time Corn Popped corn
Trang 177 Analyze the results
Results (3/5) – The size of main effects
Trang 187 Analyze the results
Results (3/5) – The size of main effects
Trang 197 Analyze the results
Results (3/5) – The size of main effects
Trang 207 Analyze the results
Results (3/5) – The size of main effects
Trang 217 Analyze the results
Results (4/5) – Contour plot
Trang 22Results (5/5) –Interaction plot
Trang 23Results (5/5) –Interaction plot
62
74
80
Trang 24❶ Table: show numeric trends
❷ Cube plot: indicate important factors
❸ Contour plot: show where to move next
❹ Interaction plot: show synergies
Trang 252.02 Predictions
Trang 26 Cube plot: indicate important factors
Interaction plot: show synergies
Predict = get the (predicted) results of un-done trials ? We need a
predictive model
Trang 27Predictive model: a magic
𝑦 = 67 + 10𝑥 𝐴 + 4𝑥 𝐵
Trang 33Elements of the predictive model
𝑦 = 67 + 10𝑥 𝐴 + 4𝑥 𝐵
baseline [A] effect [B] effect
Trang 35Correlation coefficient Of [A] effect
202
Trang 36Correlation coefficient Of [B] effect
82
Trang 37 Regression line is useful for prediction
Baseline is the average of 4 values on the cube
𝑏𝐴 (𝑏𝐵) takes a half value of the 𝐴 ( 𝐵 ) effect
𝑥𝐴, 𝑥𝐵: coded variables, which are coded from (-1) to (+1)
𝑦 = 𝑏 0 + 𝑏 𝐴 𝑥 𝐴 + 𝑏 𝐵 𝑥 𝐵
Trang 38The link between coded value to real world value
coded value = real value − center point
Trang 39 What is the predicted popcorn amount for white corn and cooking time of
180 sec ? Represent this point on the cube plot
Trang 402.03 Two-factor experiments with
interactions
Trang 41The concept of interaction
Factors:
Soap (No.soap vs Yes.soap)
Trang 42The concept of interaction
≡ The effect of warm water is enhanced by using soap
≡ The effect of soap is enhanced by using warm water
Trang 43Property of interaction
Interaction is symetrical:
For instance: using A (soap) together with B (warm water) = using B
(warm water) together with A (soap)
Trang 44Remind the concept of « interaction »
The two levels of one factor react differently to a change
in level of another factor The effect of one factor depends on the value or the level
of another factor
Trang 45Interaction: another example
Trang 46Interaction plot
Trang 47Context: Ginger biscuits
Trang 48Context: Ginger biscuits
10. Baking time: 10 min at 350 oC
Factor B: 55 g honey or 55 g of molasses
Factor A: bake for 8 min or 14 mins
(https://en.wikipedia.org/wiki/Molasses)
Trang 49Remark on the outcomes
1. Taste
2. Breakability: break strength
3. Freshness: break strength after 1 week
Trang 50 A: baking time (8 min or 14 min.)
Trang 51Experiment plan
Factors
A: baking time (8 min or 14 min.)
B: sugar type (honey‒1 or molasses)+1
5 Plan the experiment
6 Implement the experiment
Trang 52Results (1/5): table A systematic approach1 What is my outcome ?
2 What is my objective ?
7 Analyze the results
Stand order Real order baking sugar Taste
Trang 53Results (2/5): cube plot A systematic approach1 What is my outcome ?
2 What is my objective ?
7 Analyze the results
Trang 54Results (3/5): Predictive model A systematic approach1 What is my outcome ?
2 What is my objective ?
7 Analyze the results
Trang 55Results (3/5): Predictive model A systematic approach1 What is my outcome ?
2 What is my objective ?
7 Analyze the results
Trang 56Results (3/5): Predictive model A systematic approach1 What is my outcome ?
2 What is my objective ?
7 Analyze the results
Trang 57Results (3/5): Predictive model A systematic approach1 What is my outcome ?
2 What is my objective ?
7 Analyze the results
Trang 58Results (3/5): Predictive model A systematic approach1 What is my outcome ?
2 What is my objective ?
7 Analyze the results
Calculate the interaction of [BA] effect?
𝑏𝐴𝐵 = 𝑏𝐵𝐴
𝑦 = 𝑏0 + 𝑏𝐴𝑥𝐴 + 𝑏𝐵𝑥𝐵 + 𝑏𝐴𝐵𝑥𝐴𝑥𝐵
Trang 59Results (3/5): Predictive model A systematic approach1 What is my outcome ?
2 What is my objective ?
7 Analyze the results
Trang 60Results (3/5): Predictive model A systematic approach1 What is my outcome ?
2 What is my objective ?
7 Analyze the results
Trang 61Results (3/5): Predictive model A systematic approach1 What is my outcome ?
2 What is my objective ?
7 Analyze the results
= 9
Trang 62 critical thinking about the interpretation of these number because they
are not just a number
What if we take baking time for 16, 18, or 20 min ?
Why do molasses give a better taste (increase the liking scores) ?
time, in the sense of chemical reaction ?
Trang 632.03 Three-factor experiments
Trang 64Case study: Waste water treatment
C
S
T
P Q
Trang 65Case study: Waste water treatment
5 Plan the experiment
6 Implement the experiment
7 Analyze the results
Trang 66Number of trials A systematic approach1 What is my outcome ?
2 What is my objective ?
3 Which factors ?
4 At what levels ?
5 Plan the experiment
6 Implement the experiment
7 Analyze the results
Trang 67Coded variables A systematic approach1 What is my outcome ?
2 What is my objective ?
3 Which factors ?
4 At what levels ?
5 Plan the experiment
6 Implement the experiment
7 Analyze the results
Trang 68Designing experiment A systematic approach1 What is my outcome ?
2 What is my objective ?
3 Which factors ?
4 At what levels ?
5 Plan the experiment
6 Implement the experiment
7 Analyze the results
Trang 69Results (1/5): Data table A systematic approach1 What is my outcome ?
2 What is my objective ?
3 Which factors ?
4 At what levels ?
5 Plan the experiment
6 Implement the experiment
7 Analyze the results
Trang 70Results (2/5): Cube plot A systematic approach1 What is my outcome ?
2 What is my objective ?
3 Which factors ?
4 At what levels ?
7 Analyze the results
Trang 71Results (2/5): Cube plot A systematic approach1 What is my outcome ?
2 What is my objective ?
3 Which factors ?
4 At what levels ?
7 Analyze the results
Trang 75Results (3/5): Predictive model
Trang 76Results (3/5): Predictive model
Trang 77Results (3/5): Predictive model without interactions
Trang 782.04 Calculate interactions for the
three-factor experiments
Trang 79How can we sure about the existence of
interactions in an experiment?
Trang 82The two levels of one factor react differently
to a change in level of another factor
[AC] interaction is important
Trang 83Calculate the average of [AC] interaction
Trang 84Calculate the average of [AC] interaction
Average of [AC] interaction = 𝐵+ + 𝐵−
Trang 85Calculate the average of [AC] interaction
Average of [AC] interaction = 𝐵++ 𝐵−
Trang 86Calculate the average of [AC] interaction
Average of [AC] interaction = 𝐵++ 𝐵−
Trang 87Calculate the average of [AC] interaction
Average of [AC] interaction = 𝐵++𝐵−
Trang 88Calculate the average of [AC] interaction
Trang 89Predictive model with all interactions
Trang 90Understanding the interaction
Dilution time for Q chemical (C+)?
What if the requirement is: the outcome < 10 units? And
What if the cost of chemical P is
double expensive than the cost of chemical Q?
𝑦 = 11.25 + 6.25𝑥𝐶 +0.75𝑥𝑇 −7.25𝑥𝑆 − 𝟔 𝟕𝟓 𝑥𝐶𝑥𝑆