Lesson 3 - Assignment Model
Lesson 3 - Assignment Model
T4
MACHINE
Operator
A B C D
1 2 0 1 0 2
2 3 2 0 2 1
3 0 0 1 2 2
4 1 4 0 3 1
1 2 2 1
T6
MACHINE
Operator
A B C D
1 2 0 2 0 2
2 2 1 0 1 1
3 0 0 2 2 2
4 0 3 0 2 2
2 2 2 1
MACHINE
Operator
A B C D
1 2 0 2 0
2 2 1 0 1
3 0 0 2 2
4 0 3 0 2
T3
MACHINE
Operator
A B C D
1 2 3 1 0
2 3 5 0 2
3 0 3 1 2
4 1 7 0 3
Lowest # in
0 3 0 0
the column
T5
MACHINE
Operator
A B C D
1 2 0 =1+1 0
2 =3-1 =2-1 0 =2-1
3 0 0 =1+1 2
4 =1-1 =4-1 0 =3-1
Operator Machine
TIME
1 B/D D 9
2 C C 5
3 A/B B 14
4 A/C A 9
37
1 B /D
2 C
3 A/B
4 A/C
Unbalanced, Maximization
A high school department head has five teachers to be assigned to four different levels.
All of the teachers have taught the different year levels in the past and have been evaluated
by the students. The rating for each teacher for each year level is given in the ff table:
YEAR LEVEL
Teacher
First Second Third Fourth
1 80 75 90 85 Sec
2 95 90 90 97 4th
3 85 95 88 91 2nd
4 93 91 80 84 1st
5 91 92 93 88 3rd
The department head wants to know the optimal assignment of teachers to year levels
that will maximize the over-all average student evaluation rating. The teacher who
is not assigned to teach will be assigned as secretary. Find the respective assignment of
teachers - Year level.
YEAR LEVEL
Teacher
First Second Third Fourth DUMMY
1 80 75 90 85 0
2 95 90 90 97 0
3 85 95 88 91 0
4 93 91 80 84 0
5 91 92 93 88 0
T1
YEAR LEVEL
Teacher
First Second Third Fourth DUMMY
1 10 15 0 5 90
2 2 7 7 0 97
3 10 0 7 4 95
4 0 2 13 9 93
5 2 1 0 5 93
Select the
lowest 0 0 0 0 90
number
YEAR LEVEL
Teacher
A B C D E
1 10 15 0 5 0
2 2 7 7 0 7
3 10 0 7 4 5
4 0 2 13 9 3
5 2 1 0 5 3
1 1 2 1 1
1 C/E Sec
2 D 4th Level
3 B 2nd Level
4 A 1st level
5 C 3rd level
s to year levels
teacher who
ve assignment of
Biggest
Number
90
97
95
93
93
Biggest
Number
90
97
95
93
93
2
1
1
1
1
Simple Linear Regression
- a model with a single predictor (or independent variable) and a single dependent variable
OR y = b0 + b1X
y = a + bX
y = a +b1X1 + b2X2 + b3X3
Sales
Coefficient of Determination
Coefficient of non-determination = 1 - r^2
y = 1 + 0.5x
The owner of a chain of fruit shakes stores would like to study the correlation
between atmospheric temperature and sales during the summer season. A random
sample of 12 days is selected with the results given as follows:
Day 1 2 3 4 5
IV Temp (deg F) 79 76 78 84 90
DV Total Sales 147 143 147 168 206
Solution
y = a + bX or y = a +b1x
a b c d e f
IV DV
Day X Y X^2 Y^2 XY
1 79 147 6,241.00 21,609.00 11,613.00
2 76 143 5,776.00 20,449.00 10,868.00
3 78 147 6,084.00 21,609.00 11,466.00
4 84 168 7,056.00 28,224.00 14,112.00
5 90 206 8,100.00 42,436.00 18,540.00
6 83 155 6,889.00 24,025.00 12,865.00
7 93 192 8,649.00 36,864.00 17,856.00
8 94 211 8,836.00 44,521.00 19,834.00
9 97 209 9,409.00 43,681.00 20,273.00
10 85 187 7,225.00 34,969.00 15,895.00
11 88 200 7,744.00 40,000.00 17,600.00
12 82 150 6,724.00 22,500.00 12,300.00
Total 1,029.00 2,115.00 88,733.00 380,887.00 183,222.00
b1 = 12 (183,222) - (1,029)(2115)
' 12 (88,733) - (1029)^2
b1 = 3.75 Bar X x/n
85.75
Bar Y Y/n
176.25
From y = a + bx
bar y = a + b (bar X)
a = bar y - b (bar X)
substitute value of bar y, bar x and b
Regression Equation is y = a + bx
y = -145.31 + 3.75X
y = 3.75X - 145.31
Temp Sales (y)
example 0 -145.31
-10 -182.81
95 210.94
6 7 8 9 10 11 12
83 93 94 97 85 88 82
155 192 211 209 187 200 150
=√ SSE / (n-2)
= 1 - (1141.14 / 8118.25)
r^2 = 0.859
Q4. Find the 95% Confidence Interval for all temperature with 95 degrees F
y = 3.75X - 145.31
Therefore, for Predictive Interval the estimated Fruit Shake if between 184.27 to 237.61
the range is quite big 184.27 to 237.61 compare to the Confidence interval of 198 to 222
184. 27 237.61 53.34
Confidence I198 222 24 realistic
g h y = 3.75X - 145.31
-3.94 15.5236
3.31 10.9561
-0.19 0.0361
-1.69 2.8561
13.81 190.7161
-10.94 119.6836
-11.44 130.8736
3.81 14.5161
-9.44 89.1136
13.56 183.8736
15.31 234.3961
-12.19 148.5961
- 0.03 1,141.14
n temp is at 95 deg F is from
.27 to 237.61
of 198 to 222
Sum of Squares for Error, Standard Error and Coefficient of Determination
a b c d e f
Day Y
Bar Y X
85.75 1 79 147 68 4624 150.94
85.75 2 76 143 67 4489 139.69
85.75 3 78 147 69 4761 147.19
85.75 4 84 168 84 7056 169.69
85.75 5 90 206 116 13456 192.19
85.75 6 83 155 72 5184 165.94
85.75 7 93 192 99 9801 203.44
85.75 8 94 211 117 13689 207.19
85.75 9 97 209 112 12544 218.44
85.75 10 85 187 102 10404 173.44
85.75 11 88 200 112 12544 184.69
85.75 12 82 150 68 4624 162.19
TOTAL 1,029.00 2,115.00 1,086.00 103,176.00 2,115.03
=√ SSE / (n-2)
= 1 - (1141.14 / 8118.25)
r^2 = 0.859
Q4. Find the 95% Confidence Interval for all temperature with 95 degrees F
y = 3.75X - 145.31
Therefore, for Predictive Interval the estimated Fruit Shake if between 184.27 to 237.61
the range is quite big 184.27 to 237.61 compare to the Confidence interval of 198 to 222
184. 27 237.61 53.34
Confidence I198 222 24 realistic
g h y = 3.75X - 145.31
-3.94 15.5236
3.31 10.9561
-0.19 0.0361
-1.69 2.8561
13.81 190.7161
-10.94 119.6836
-11.44 130.8736
3.81 14.5161
-9.44 89.1136
13.56 183.8736
15.31 234.3961
-12.19 148.5961
- 0.03 1,141.14
n temp is at 95 deg F is from
.27 to 237.61
of 198 to 222
The Jollibee Food believes its sales are directly related to the amount of
money its speneds on promotion. The company has accumulated the following
data on promotional expenditures and sales for the past 10 years.
Promtional
Expenditures Annual Sales
(P 100,000) (P 100,000)
8 65
14 90
10 84
13 95
15 97
18 100
19 105
20 111
24 120
29 123