Apc310 BMDM
Apc310 BMDM
APC310
Flexible Learning
Helping you bring Learning to Life
Published by
The University of Sunderland
The publisher endeavours to ensure that all its materials are free
from bias or discrimination on grounds of religious or political
belief, gender, race or physical ability. These course materials are
produced from paper derived from sustainable forests where the
replacement rate exceeds consumption.
Contents
Unit 1
Decision Tree Analysis
Introduction 1
Basic probability 1
Decision trees 5
Summary 24
Appendix 25
Unit 2
Discrete Simulation
Introduction 29
The Simulation Process 29
Summary 63
Appendix – Pivot Tables 64
Unit 3
Linear Programming
Introduction 65
Worked Example 72
Summary 86
Unit 4
Optimisation
Introduction 89
Linear Equations 89
Non Linear Equations 91
Summary 130
University of
Sunderland
Unit 5
Basic Forecasting Techniques
Introduction 131
Summary 155
Unit 6
Inventory Control
Introduction 157
Types of Stock 157
Just-in-time (JIT) 181
Unit 7
Sampling Theory and Statistical Inference
Introduction 193
Hypothesis Testing 193
Two Tailed Tests 201
Hypothesis Tests of the Population Proportion (p) 207
Confidence Intervals 214
Chi Squared Test 225
Summary 232
Unit 8
Statistical Process Control and Financial Mathematics
Introduction 233
Deming’s 14 Points 233
Process Capability 241
Financial Maths 246
Summary 270
University of
Sunderland
How to use this workbook
This workbook has been designed to provide you with the course
material necessary to complete Business Modelling for Decision
Making by distance learning. At various stages throughout the module
you will encounter icons as outlined below which indicate what you are
required to do to help you learn.
This Activity icon refers to an activity where you are required to undertake a
specific task. These could include reading, questioning, writing, research,
analysing, evaluating, etc.
This Activity Feedback icon is used to provide you with the information
required to confirm and reinforce the learning outcomes of the activity.
This icon shows where the Virtual Campus could be useful as a medium for
discussion on the relevant topic.
It is important that you utilise these icons as together they will provide
you with the underpinning knowledge required to understand
concepts and theories and apply them to the business and management
environment. Try to use your own background knowledge when
completing the activities and draw the best ideas and solutions you can
from your work experience. If possible, discuss your ideas with other
students or your colleagues; this will make learning much more
stimulating. Remember, if in doubt, or you need answers to any
questions about this workbook or how to study, ask your tutor.
University of
Sunderland i
Unit 1
Introduction
Managing any business involves making decisions on a wide range of
matters on a daily basis. Some of these decisions may be trivial or they
may require little more than simple common sense to make. The
solutions may be obvious. However, others will involve large sums of
money and have a considerable risk element attached to them.
Basic probability
The first step we need to make so that we can develop our
decision-making techniques is to understand the concept of probability.
This is a relatively simple concept which involves only straightforward
arithmetic. It is, therefore, within the scope of any student, and not be a
cause for concern!
University of
Sunderland 1
Unit 1 – Decision Tree Analysis Business Modelling for Decision Making
upon any supporting data. We might, for example, say with confidence
that, as the last three meetings between the football teams have resulted
in a win for them, then Chelsea are favourites to win.
ACTIVITY
Draw up a list of about ten events in your daily life. Determine the probability
of each one occurring;
a) using words
b) using a percentage
ACTIVITY FEEDBACK
Your chosen events will have probabilities that are determined by your
lifestyle. For some, the probability of watching the news on TV may be high
(say, 80%), for others it may very low (perhaps, 15%).
However, this exercise will have enabled you to allocate some form of
numerical values to the words used.
University of
2 Sunderland
Business Modelling for Decision Making Unit 1 – Decision Tree Analysis
ACTIVITY
Looking back at our responses, now try to evaluate numerically each of your
chosen descriptive words. Using the following table, insert numerical values
for each of the terms provided.
Highly unlikely
Unlikely
Possible
Probable
Highly likely
Almost certain
KEY POINT
In mathematics, we prefer to use a decimal value between 0 and 1 instead of a
percentage. Hence, a probability of 85% would be written as 0.85, 50% would
be 0.50 and 7% would be 0.07. We will use this convention from now on.
Consider a deck of 52 cards. There are four suits; i.e. clubs, hearts,
spades and diamonds, (2 suits are red and two suits are black). The
cards per suit are numbered from 1 to 10, plus Jack, Queen and King.
University of
Sunderland 3
Unit 1 – Decision Tree Analysis Business Modelling for Decision Making
p = 4/52
p = 13/52 = 0.25
ACTIVITY
Using the basic probability formula, calculate the following probabilities:
ACTIVITY FEEDBACK
a) 26/52 or 0.50
b) 5/52 or 0.10
c) 1/6 or 0.17
d) 3/6 or 0.50
e) 1/2 or 0.50
University of
4 Sunderland
Business Modelling for Decision Making Unit 1 – Decision Tree Analysis
This is an important idea upon which much of the rest of this unit is
based. The method that we will use for analysing decisions in the next
sections involves the combination of multiple probabilities.
Decision trees
A manager contemplating a problem often sees a range of possible
decisions spread over a long period of time and not just one immediate
decision. Such a situation is particularly suitable for structuring in terms
of a diagrammatic approach to its solution. Such a diagram is known as
a decision tree. For example, although the initial decision facing an oil
executive may involve the location of a new refinery, later decisions
might involve whether or not to increase its capacity, or perhaps build
another one. By generalising our notions about the nature of decisions
problems we can cope with this situation, and the use of decision trees
becomes meaningful and relevant.
University of
Sunderland 5
Unit 1 – Decision Tree Analysis Business Modelling for Decision Making
With decision tree analysis, the models revolve around decision nodes,
random nodes and terminal nodes. Decision nodes occur when we
make a choice; random nodes occur when there exists and element of
risk between two or more alternatives. Terminal nodes occur when we
exhaust all of the branches or pathways resulting from the decision
nodes and random nodes.
In such a tree the branches split into other branches: these points where
a split occurs are known as nodes. At the left-hand side of the diagram
the initial node gives rise to a set of branches representing the action
options or decisions that are the decision-maker’s choice. Consequently,
this type of node is known as the decision node and commonly
represented by a rectangular or, more traditionally, as a square box.
Following each of these branches leads to a second node from which
further branches grow. The decision-maker may have little or no control
over which further branch is followed, and so the situation may now be
different. Hence, this node is known as a random node, represented by a
circle. A typical decision tree, therefore, consists of a series of branches
stemming from nodes of two types. Each branch is labelled
appropriately with either an action or an outcome probability.
University of
6 Sunderland
Business Modelling for Decision Making Unit 1 – Decision Tree Analysis
Film good
Go to the
Film average
cinema
Film poor
Watch
TV
Programme average
Payoff
For every action chosen within a decision tree, there will be a result or
consequence. This is called the payoff and it is this that we are
predominately interested in. The purpose of the process of creating and
analysing a decision tree is to produce an optimum payoff. Payoffs can
be positive values (e.g. revenues coming in to a company) or negative
values (e.g. costs to the company).
University of
Sunderland 7
Unit 1 – Decision Tree Analysis Business Modelling for Decision Making
KEY POINT
The payoff is the consequence of an outcome (or series of outcomes)
measured in terms of the objective.
We can now add some more information to the diagram in the form of
the cost of the various options. This is shown in Figure 1.2.
Go to the
Film average £5.50
cinema
Watch
TV
Programme average
If I enjoyed the film, then I am likely to feel happy and that the cost of the
evening has been justified. If I thought the film was poor then I will
probably feel bored and discontented. These feelings are the payoffs of
the decisions made. This can be included in the diagram and is shown in
Figure 1.3.
University of
8 Sunderland
Business Modelling for Decision Making Unit 1 – Decision Tree Analysis
Go to the
Film average £5.50 Indifferent
cinema
Watch
TV
Expected Values
Once we have identified all the possible outcomes for a situation, it
would be helpful if we could in some way place a numerical value on
them. We can do this by using the concept of Expected Value (EV). This
can best be understood through the use of a simple example.
The third column is the product of the value and the probability, and is
therefore a ‘worth’ or value associated with each particular option. If we
then find the total of all these ‘worths’, we will get a weighted average of
the possible outcomes.
University of
Sunderland 9
Unit 1 – Decision Tree Analysis Business Modelling for Decision Making
Thus, we get a total VxP of 21/6 or 3.5 as the Expected Value. Note that
an expected value may or may not be an actual value!
KEY POINT
In most business applications of decision tree analysis, we would be dealing
with financial aspects of the decision. Therefore, we refer to Expected
Monetary Value (EMV).
Example
0.5
heads WIN £3
0.5 LOSE £1
tails
University of
10 Sunderland
Business Modelling for Decision Making Unit 1 – Decision Tree Analysis
Example
(0.75) GAIN £3
(0.25) LOSE £1
Next look at each circle (representing a random node) and estimate the
probability of each outcome. If you have data on past events you may be
able to make rigorous estimates of the probabilities. Otherwise write
down your best guess.
University of
Sunderland 11
Unit 1 – Decision Tree Analysis Business Modelling for Decision Making
The ‘end value’ instead of the payoff, then becomes the value to use in
the backward pass.
Once you have worked out the value of the outcomes, and have
assessed the probability of the outcomes of uncertainty, it is time to start
calculating the values that will help you make your decision.
For the backward pass, start on the right hand side of the decision tree,
and work back towards the left. As you complete a set of calculations on
a node (decision square or random node), all you need to do is to record
the result. You can ignore all the calculations that lead to that result
from then on.
When you are evaluating a decision node, simply select the branch with
the ‘best’ payoff or expected value. The ‘best’ payoff in terms of a benefit
to the company (e.g. a profit), is the biggest of the available values
relating to the decision node. In terms of a cost to the company, the ‘best’
payoff is then the smallest of the available values relating to the decision
node.
Manufacture
high level
Successful
Develop
Manufacture
low level
Not
successful
Don’t
develop
University of
12 Sunderland
Business Modelling for Decision Making Unit 1 – Decision Tree Analysis
However, at either high or low level, we know there will be high or low
demand (random nodes), so our diagram now looks like Figure 1.5.
High
demand
Manufacture
high level
Low
demand
Successful
High
demand
Develop
Manufacture
low level
Not
successful Low
demand
Don’t
develop
High demand
0.4
Manufacture
high level
Low
demand 0.6
Successful
0.7
High demand
0.4
Develop
Manufacture
low level
Not
successful Low
0.3 demand 0.6
Don’t
develop
University of
Sunderland 13
Unit 1 – Decision Tree Analysis Business Modelling for Decision Making
Then we include any known payoffs and costs. These are included in
Figure 1.7.
High demand
0.4 3.5M
Manufacture
high level
Low
0.5M
demand 0.6
Successful
0.7
High demand
0.4 0.75M
Develop
-1M Manufacture
low level
Not
successful Low 0.75M
0.3 demand 0.6
Don’t
develop
We are now able to evaluate the costs and payoffs into the end values.
This is done simply by finding the sum of the monetary figures along
each complete route. Hence, the uppermost end value of £2.5m is
obtained from filtering the £1M cost of development along the
respective path throughout the branches and subtracting it from the
payoff i.e. 3.5m + (-1m). The complete set of end values is shown in
Figure 1.8.
End values
High demand
0.4 3.5M 2.5M
Manufacture
high level
Low
0.5M -0.5M
demand 0.6
Successful
0.7
High demand
0.4 0.75M -0.25M
Develop
-1M Manufacture
low level
Not
successful Low 0.75M -0.25M
0.3 demand 0.6
Don’t
develop -1M
University of
14 Sunderland
Business Modelling for Decision Making Unit 1 – Decision Tree Analysis
End values
High demand
0.7M 0.4 3.5M 2.5M
Manufacture
high level
Low
0.5M -0.5M
demand 0.6
Successful
0.7
High demand
0.4 0.75M -0.25M
Develop
-1M Manufacture
low level
Not
successful Low 0.75M -0.25M
0.3 demand 0.6
Don’t
develop -1M
This process is then repeated across the whole diagram. The completed
decision tree is shown in Figure 1.10.
(Note, at each node, where two or more branches originate, the highest
calculated value is retained. After all, the purpose of the business is to
make financial gain!)
University of
Sunderland 15
Unit 1 – Decision Tree Analysis Business Modelling for Decision Making
0
(-0.25M x 0.4) + (-0.25M x 0.6)
Case study 1
Mandy’s Boutique
Mandy Townsend is the owner of a retail outlet called Mandy’s
Boutique and is currently considering a move to a new out of town
shopping mall. The current shop has been in the town centre for 20
years and Mandy has built up quite a sound business. If she moves to
the out of town mall, Mandy thinks that there is about a 20% chance that
the business might decline by £0.2M, a 30% chance that it will remain
stable and a 50% chance that it will increase by £0.35M due to the quality
of the sales promotion undertaken by the mall management. However,
the local authority is considering a revitalisation of the town centre area.
Mandy has heard that there is about a 70% chance that this will be
approved by the council and if it is, she would expect business to
increase by about £0.4M. If it is not built, Mandy thinks that business
will decline by about £0.1M due to the customer movement to the out of
town mall. Time is running out to make the decision on moving to the
new mall.
University of
16 Sunderland
Business Modelling for Decision Making Unit 1 – Decision Tree Analysis
Set up a decision tree and calculate the optimal decision for Mandy.
Case Study 2
By far, the most reliable part of Mike’s business, was the ‘crew contact’.
A crew contact is a contract with an airline for a fixed number of rooms
every night, for which it pays a fixed sum per year. Presently, Mike had
a contract with one of the largest Middle Eastern airlines, Arabia
Airlines, for ten rooms a night. This contract was entering its final year
of a five year period. Currently, the worth to the hotel was about
$100,000 per year.
Most airlines were well aware of the over capacity in the hotel market in
London and, taking advantage of this, Americal Airlines had recently
approached Mike with a proposal for a crew contact of the similar size
to his existing contract with Arabia. However, it insisted that it would
only place the contract with him if he could give Americal a substantial
discount on the price he was currently charging Arabia. Americal was
adamant that the most it would pay was $60 000 for a one year only
contract. Although this price was well below what Mike would
normally offer, he knew that, given the current state of the market, he
would be well able to offer the extra ten rooms to Americal with only a
marginal increase in his costs.
University of
Sunderland 17
Unit 1 – Decision Tree Analysis Business Modelling for Decision Making
obtained when the next five year contract was negotiated. Mike
summed up his dilemma thus:
It all depends upon whether they find out about our deal with Americal
Airlines. You can never tell what will happen. They might be so
offended that they immediately cancelled the contract. Of course, they
would have to pay us a half rate under our agreement, which means
that we would get $50 000 for the next year, but they would have no
difficulty in getting accommodation elsewhere, and we would certainly
not get the contract immediately, then the ball is back in our court.
We can either keep our prices as they are, in which case our chance of
getting the next five year contract would be substantially reduced.
Alternatively, we could offer them the same terms as we offered
Americal Airlines, in which case, given that they haven’t already
cancelled, we could stand a reasonably good chance of getting the
contract, but obviously with reduced profits. My problem is that there
are quite a lot of unknowns in this. For example, I don’t know for sure
that the airline would find out about the Americal deal. I guess on the
whole it’s more likely that they don’t, but there is still a good chance that
they might, say 6 to 4 against them finding out. Similarly, we don’t
know whether they would immediately be so offended that they would
cancel the contract straight away. It’s fairly unlikely, but there is a finite
possibility – I wouldn’t give it more than one in ten chance of happening
though. If they don’t immediately cancel, at least it means that they are
not greatly offended. However, they are almost certainly likely to take
a closer look at the terms we offer them than they would otherwise have
done. If we offer them the same terms as we offered to Americal, it
would represent a 40% reduction in price and therefore I feel that they
would almost certainly be inclined to accept our offer – say a one in ten
chance of not accepting it. However, if we keep our original price, our
chances of getting the contract will be substantially reduced – I would
guess no better than 50:50.
Sensitivity analysis
The objective of decision tree evaluation is to investigate and explore the
model in order to determine the underlying principles supporting its
strengths and weaknesses.
University of
18 Sunderland
Business Modelling for Decision Making Unit 1 – Decision Tree Analysis
First let us recap the steps we need to undertake when we attempt to set
up our decision tree model. Consider the Metropole Royal example.
The investigation into the case study continues into some depth. You
need to find the strong and weak points in the system. For example,
where is the point of weakness when a small change in one of the
variables can create maximum problems in the model?
Consider the Metropole Royal example where the ‘offer high rate’
option is considered into a little more depth. The expected value of 410k
is determined by the sumproduct of the probabilities and their end
values.
The alternative node (‘offer low rate’) was initially selected since it had a
better expected value (430k) as compared with the ‘offer high rate’
expected value of 410k.
Suppose now the expected value of the ‘offer high rate’ branch became
430k, i.e. the same as the expected value of the ‘offer low rate’ branch!
We now have an indecisive situation, i.e. do we choose the ‘offer high
rate’ or ‘offer low rate’ since both expected values are the same?
Consider the situation where we have to worry about the offer of a high
rate or the offer of a low rate. The resultant expected value of 410 was
found by the sumproduct of the respective probabilities and end values
along the branch of the ‘offer of the high rate’.
University of
Sunderland 19
Unit 1 – Decision Tree Analysis Business Modelling for Decision Making
high rate is identical to the expected value resulting from the offer of the
low rate, which happens to be 430.
Let us adjust the value of the probability of getting a new contract such
that our EV becomes 430 instead of 410. Should we have decided to
offer the high rate?
270 = 500x
x = 270/500 or x = 0.54
As an alternative approach...
The ‘GoalSeek’ function works along the following format: Identify the
cell you want to change (in our case the cell containing the formula to
calculate the expected value of 410).
We then program Excel to change the value of 410 to 430 (to match the
expected value of the other branch of the decision node). Finally we
program Excel to change one of the variables until Excel determines our
present value.
University of
20 Sunderland
Business Modelling for Decision Making Unit 1 – Decision Tree Analysis
offer is available. In the review section that follows, you may relax this
assumption!
Case Study 3
Vitler’s Plating
Charles Doman had recently taken over the well established but rather
old fashioned company of Vitler’s Plating from his father. The
company had been mainly concerned with silver plating cutlery and
decorative table ware, and chrome plating industrial parts, on a
sub-contract basis. When Charles took over the company, he forecast
(correctly) that both these markets were declining. After consideration,
he decided to re-equip the whole plant and move into an expanding
market, which would provide a higher margin. His programme of
re-equipment included closing and partially stripping his old automatic
silver plating line and buying a newer, technically more advanced, gold
plating line to get into the lucrative gold bathroom fittings market. The
company’s bank manager had been most helpful in providing loans for
the company’s capital investment programme.
It’s a technical problem more than anything else. The line just won’t
operate at the rate we had hoped. If we run the line at half of the speed
it is OK, but those rates of working just aren’t economic. At full speed,
the line often requires considerable maintenance and is sometimes
down for several days. Since we bought the line, business has been so
bad that we haven’t been under pressure, but this new order changes
things.
The new order to which Charles referred was a short lead time export
order for the gold plating of a large consignment of bathroom fittings.
The fittings were to be delivered to Vitlers in two weeks’ time, and the
finished goods were due for shipment two weeks after that. At full
speed, the new line could cope with order, but if the line went down for
more than two days, the delivery would be late, and penalties would be
extracted from the company by the customer.
University of
Sunderland 21
Unit 1 – Decision Tree Analysis Business Modelling for Decision Making
The major decision is whether to get the old line operational before the
consignment arrives. If we do, delivery can be guaranteed on time,
even though its operating costs are higher than the new line. If we don’t
activate the old line, and the line stops, we could still subcontract if we
arranged it as soon as the line goes down; otherwise we could take the
chance that the line would be repaired in under two days.
Charles’ engineer advised him that he thought that he had the new line
under better control than in the past, but that the chance of it going
down during the two weeks would be about 20%. Should the line go
down, he reckoned on a 50% chance of repairing it within two days.
Activating the old line straight away could result in profits of either
£28000 should the new line stop, or £32000 if the new line was OK. If
Charles did nothing, and the new line proved OK, then he would get the
maximum profit of £40000. If the new line stopped, he could either
subcontract immediately, in which case his profit would be reduced to
£20000, or take a chance and do nothing. If he did nothing, and the line
was down for more than two days, the penalty clauses would mean that
his final profit was unlikely to be more than £4000. If, however, he was
lucky, and the line was repaired in less than two days, his final profit
would be the full £40000.
Set up a decision tree to analyse the situation and report your findings.
Case Study 4
University of
22 Sunderland
Business Modelling for Decision Making Unit 1 – Decision Tree Analysis
REVIEW ACTIVITY
Tasks – Commence from the initial state of the Metropole Royal example and
by changing each of the variables in turn, find the points of strength and
weakness in the model. When you identify the weakest point, use the value of
the variable that determined the weakest point and, from there, find the next
weakest point in the model.
Continue throughout, until you have identified all potential weak points in the
system. Then try the same for the strong points!
University of
Sunderland 23
Unit 1 – Decision Tree Analysis Business Modelling for Decision Making
You should find that the probability needs to change from 0.4 to 0.229 and the
percentage change is found by (0.4 – 0.229)/0.4 * 100 = 42.75%
Using the expected value at the next random node to change 555.2k to 600k,
the equation is set up as follows:
You should find that the expected value needs to change from 398k to 510k
and the percentage change is found by (510 – 398)/398 * 100 = 28.14% Filter
this value of 510k throughout the model from left to right.
Summary
In this unit we have looked at the corner stone of decision making, the
concept of decision tree analysis. Building on an introduction to simple
probability, we have developed the theme to deal with multiple events.
This led to the comparison of different events and their consequences to
an organisation, and to the construction of decision trees.
The analysis stage then looked at payoffs and expected values, using the
forward and backward pass techniques. This is then able to provide us
with an indication of the likely financial implications of a chosen course
of action. By making appropriate changes to the values within the
completed decision tree, we are able to evaluate their effects. This is
known as sensitivity analysis.
University of
24 Sunderland
Business Modelling for Decision Making Unit 1 – Decision Tree Analysis
Appendix
University of
Sunderland 25
Unit 1 – Decision Tree Analysis Business Modelling for Decision Making
University of
26 Sunderland
Business Modelling for Decision Making Unit 1 – Decision Tree Analysis
University of
Sunderland 27
Unit 1 – Decision Tree Analysis Business Modelling for Decision Making
University of
28 Sunderland
Unit 2
Discrete Simulation
Introduction
Simulation can be defined as the process of designing a model of a real
system and conducting experiments with the model in order to fully
understand the mechanisms involved. It is used to assist in making
decisions in areas such as inventory control, factory or shop layouts,
sales forecasting and customer/ patient scheduling. It is currently one
of the most widely used analytical and planning tools.
Introduction
KEY POINT
Simulation can be defined as the process of designing a model of a real system
and conducting experiments with the model in order to:
University of
Sunderland 29
Unit 2 – Discrete Simulation Business Modelling for Decision Making
Define the
problem
Formulate
the model
Collect data
and test
model
Run
simulation
Analyse the
results
Make any
changes and
re-run
Select the
best course of
action
University of
30 Sunderland
Business Modelling for Decision Making Unit 2 – Discrete Simulation
University of
Sunderland 31
Unit 2 – Discrete Simulation Business Modelling for Decision Making
Disadvantages:
University of
32 Sunderland
Business Modelling for Decision Making Unit 2 – Discrete Simulation
Simulating Uncertainty
Risk and uncertainty are out of the decision makers control and most
often they are the forces that affect the success of a business decision.
Risk is the portion that can easily be modeled using stochastic Phan
simulation. Risky variables have probability distributions that define
the nature of their risk. For example, sales per period may be normally
distributed with a mean of 10,000 and a standard deviation of 300.
Another way to try to stress test a business for uncertainty is to test the
probability distributions for risky variables by making their means
stochastic using a sensitivity analysis. A range of means for each
distribution can be simulated to determine which is most critical to the
business decision. This approach can be extended to the variability
parameter for each risky variable.
ACTIVITY
Carry out some additional reading about Discrete Event Simulation. Look, if
possible, for a suitable example of its use in a specific case study.
University of
Sunderland 33
Unit 2 – Discrete Simulation Business Modelling for Decision Making
KEY POINT
There are five simple steps:
A specialist eye surgery unit at a local hospital is considering its staffing phau thuat
arrangements following a series of complaints from patients about chuyen khoa
delays. Prior to making any changes the hospital management decides mat
to conduct a simulation study. As a first step historic data is used to
compile information about the number of patients that arrive at the unit
each day and the number of patients that are treated each day.
University of
34 Sunderland
Business Modelling for Decision Making Unit 2 – Discrete Simulation
Simulation Results
University of
Sunderland 35
Unit 2 – Discrete Simulation Business Modelling for Decision Making
ACTIVITY
Now you try and draw your own diagram that represents the Eye Unit
scenario.
Monte Carlo
Simulation - Example
Monte Carlo
Simulation - Example
University of
36 Sunderland
Business Modelling for Decision Making Unit 2 – Discrete Simulation
Example
University of
Sunderland 37
Unit 2 – Discrete Simulation Business Modelling for Decision Making
Length of consultation
Simulation Results
University of
38 Sunderland
Business Modelling for Decision Making Unit 2 – Discrete Simulation
ACTIVITY
What do you think are the key values to be measured? (Hint: think as a patient
and as an employer)
Collect the appropriate values and give your view on the existing system by
making inferences from the values that you decided to collect. Draw a diagram
to represent the surgery scenario.
ACTIVITY
A consultant holds a clinic at the hospital every Wednesday afternoon for a
maximum of ten patients. They are expected to attend the clinic in two equal
groups at 2.00pm and 2.30pm. He is concerned that in recent weeks he has
wasted rather a large amount of time waiting for patients to arrive and,
University of
Sunderland 39
Unit 2 – Discrete Simulation Business Modelling for Decision Making
You have been asked to analyse the situation by using a simulation and
determine the amount of waiting time, if any, for the consultant and his
patients. The consultant has kept a record of his last 100 patients and the
lengths of their appointments. This is shown in the table. Use the ten random
numbers given to simulate a sample afternoon.
4 1
5 3
6 6
7 7
8 11
9 12
10 13
11 11
12 9
13 6
14 5
15 4
16 3
17 4
18 3
19 2
University of
40 Sunderland
Business Modelling for Decision Making Unit 2 – Discrete Simulation
ACTIVITY FEEDBACK
Assuming all the patients arrive at their allotted times, the data is represented
in the following table;
4 1 0.01 0.01 1
5 3 0.03 0.04 02 to 04
6 6 0.06 0.10 05 to 10
7 7 0.07 0.17 11 to 17
8 11 0.11 0.28 18 to 28
9 12 0.12 0.40 29 to 40
10 13 0.13 0.53 41 to 53
11 11 0.11 0.64 54 to 64
12 9 0.09 0.73 65 to 73
13 6 0.06 0.79 74 to 79
14 5 0.05 0.84 80 to 84
15 4 0.04 0.88 85 to 88
16 3 0.03 0.91 89 to 91
17 4 0.04 0.95 92 to 95
18 3 0.03 0.98 96 to 98
University of
Sunderland 41
Unit 2 – Discrete Simulation Business Modelling for Decision Making
Now repeat the activity for a different set of random numbers. You must
decide on an appropriate way to generate these numbers.
Your results will give you another simulation of the afternoon’s clinic session.
How does this compare with your first simulation? Further simulations will
provide other information about waiting times and should be developed to
gain a better understanding of the current situations failures.
University of
42 Sunderland
Business Modelling for Decision Making Unit 2 – Discrete Simulation
In the previous activity, it was assumed that all patients arrived at their
designated appointment times. This is unrealistic. Our simulation can
be improved by considering a variation in arrival times. This is achieved
by using the data in the following table, which has been found by
comparing patient arrival times with their appointment times.
ACTIVITY
Patient reliability;
Using the set of random numbers given, generate a set of arrival times for the
ten patients. In this simulation, three patients have been asked to attend at
2.00pm, four at 2.30pm and three at 3.00pm.
University of
Sunderland 43
Unit 2 – Discrete Simulation Business Modelling for Decision Making
ACTIVITY FEEDBACK
Patients’ time of arrival;
P1 1.58
P2 1.56
P3 1.58
P4 2.30
P5 2.30
P6 2.34
P7 2.28
P8 3.04
P9 3.02
P10 2.58
ACTIVITY
Using the patient arrival times from the previous activity, compile a schedule of
events for this simulation.
University of
44 Sunderland
Business Modelling for Decision Making Unit 2 – Discrete Simulation
ACTIVITY FEEDBACK
Assuming patients are seen in numerical order, the schedule of events
becomes;
2.21 P3 ends
2.30 P 4 starts 9 0 P4
(R/N 44 = 10 mins appointment)
University of
Sunderland 45
Unit 2 – Discrete Simulation Business Modelling for Decision Making
Overall,
Average PWT (of those patients who actually waited) = 184 / 9 = 20.44 mins.
This will provide a set of simulated clinic sessions from which it will be possible
to gain a better understanding of the existing system.
! Operational Gaming
A business game where students/executives are given the
opportunity to test decision making skills.
! Systems Simulation
A business gaming system that permits users to model
the dynamics of large systems. Typical examples are
national economic models and trade models, such as
those used by the Treasury.
ACTIVITY
Carry out some research to find other simulation models. Briefly describe
each one, including details of how each works and in what situations it would
be useful.
University of
46 Sunderland
Business Modelling for Decision Making Unit 2 – Discrete Simulation
Case Study
The objective of the simulation case study evaluation is to investigate
and explore the simulation model, to determine the underlying
principles supporting its strengths and weaknesses. With discrete
simulation, the models revolve around queuing theory; for example,
when a customer waits in a line of people for service such as at a bank or
post office.
This will involve the generation of random numbers and, by using the
basic theory of probability, to determine the length of time spent in a
queue. This information is then used to simulate the problem and
permit us to determine the length of time spent queuing.
Let us look now at an example of a surgery which has two doctors, and
patients arrive for scheduled appointments. There are two sets of
variables in this model:
Note, before each of the thirty simulations, the model was set up as the
original. In all case studies analysis, you should consider commencing
from the initial or original state of the model before you decide to
undertake any changes.
University of
Sunderland 47
Unit 2 – Discrete Simulation Business Modelling for Decision Making
We can now use this information to calculate the error. This is found
from the following formula:
Averages 9 15 5 9
Original 15 15 9 16
Error (%) 67 0 80 78
University of
48 Sunderland
Business Modelling for Decision Making Unit 2 – Discrete Simulation
University of
Sunderland 49
Unit 2 – Discrete Simulation Business Modelling for Decision Making
Now look at a further example. Consider the initial state of the scenario.
Let us now assume that Doctor 1 is called away between 10.20am and
returns at 11.15am. We need to try and simulate that situation. (Once
again, we can assume that all the probabilities remain constant.)
University of
50 Sunderland
Business Modelling for Decision Making Unit 2 – Discrete Simulation
The investigation into the case study continues in some depth. You need
to find strong and weak points in the system. For example, where is the
point of weakness where a small change in one of the variables can
create maximum problems in the model?
REVIEW ACTIVITY
Medical Consultation - Monte Carlo Method
As patients arrive they will see the first doctor that is free. If both doctors are
available they will see Doctor 1. The first patient arrives at 08:00 hours.
Requirements:
University of
Sunderland 51
Unit 2 – Discrete Simulation Business Modelling for Decision Making
University of
52 Sunderland
Business Modelling for Decision Making Unit 2 – Discrete Simulation
University of
Sunderland 53
Unit 2 – Discrete Simulation Business Modelling for Decision Making
Inter
(where 00 is 100)
University of
54 Sunderland
Business Modelling for Decision Making Unit 2 – Discrete Simulation
Consultation (Minutes)
(where 00 is 100)
University of
Sunderland 55
Unit 2 – Discrete Simulation Business Modelling for Decision Making
Inter
(where 00 is 100)
Consultation (Minutes)
(where 00 is 100)
REVIEW ACTIVITY
Checkouts - Monte Carlo Method
Consider the Checkout template. You are instructed to complete this grid
similar to the two Doctor grids above. The difference here is that you need to
identify two completely different sets of random numbers and insert them into
the respective columns (i.e. columns RN1 and RN2) on the ‘checkout’
template. The seminar leaders are supplied with a solution to this problem
using columns B and G of random numbers. You should also use columns B
and G of the supplied random number (RNs) grid (available towards the rear of
this chapter) if you need your solutions verified.
(Instructions for the use of columns B & G - Use the random numbers
from column B of ‘RNs’ and commence with the first number (i.e. the value at
cell B3) into RN1 of the ‘checkout’ template at customer No. 2 (i.e. assume
customer No. 1 punctually arrives at 09:00 hours. The first value of the
University of
56 Sunderland
Business Modelling for Decision Making Unit 2 – Discrete Simulation
random numbers from column G data (i.e. the value at cell G3 from ‘RNs’),
should be inserted into RN2 of the ‘Checkout’ template, at customer No. 1
(i.e. we do not know how long the first customer will spend at the checkout!)
Continue inserting successive and respective random numbers throughout).
Your task is to simulate the customer arrival to the checkouts and the service
time of the checkouts for the first 15 customers. Calculate the average
waiting time for customers and total idle time for checkout operator. If you
were responsible for staff resourcing, what would be your conclusions?
University of
Sunderland 57
Unit 2 – Discrete Simulation Business Modelling for Decision Making
Inter
University of
58 Sunderland
Business Modelling for Decision Making Unit 2 – Discrete Simulation
REVIEW ACTIVITY
Aberdeen Airways - Monte Carlo Method
07.00 09.15
11.30 13.45
16.00 18.30
All departure times are based on GMT i.e. you can ignore any time differences
between the UK and the Netherlands.
The flying time between Aberdeen and Amsterdam, and vice versa, is
scheduled to be 1 hour 30 minutes.
The data shown contains departure times, flight times, turn around times and
the times that the aircraft is ready to return from Amsterdam for all the 07:00
departures from Aberdeen for the last 18 months.
University of
Sunderland 59
Unit 2 – Discrete Simulation Business Modelling for Decision Making
New Aircraft
In a months time Aberdeen Airways will be changing the aircraft it uses for the
Aberdeen - Amsterdam service. The new aircraft will be more economical and
marginally quicker than the existing aircraft, and the scheduled flying time will
be reduced by 5 minutes [to 1hour 25 minutes]. This reduction in scheduled
flying time is expected to be reflected in an exact equivalent reduction of 5
minutes in the actual flight times i.e. the impact of climatic and other conditions
on actual flight times is expected to be precisely as before.
Although the scheduled flight time will be reduced by five minutes the current
departure schedule will be maintained. The company does however, expect to
benefit from the improved aircraft economy and hopefully improved service
reliability.
Use a pivot table (see Appendix) to analyse the data provided in the file. Based
on the results obtained, produce a simple Monte-Carlo simulation model to
simulate twenty days of 07:00 departures from Aberdeen to Amsterdam based
upon using the new aircraft. Your simulation model output should show the
simulated values relating to the:
! Flight time
! Turnaround times
(Hint, to help with your analysis, complete two simulations i.e. one for the
current situation and one for the proposed situation).
University of
60 Sunderland
Business Modelling for Decision Making Unit 2 – Discrete Simulation
University of
Sunderland 61
Unit 2 – Discrete Simulation Business Modelling for Decision Making
University of
62 Sunderland
Business Modelling for Decision Making Unit 2 – Discrete Simulation
Summary
In this unit, we have investigated the use of simulation methods to help
understand the processes in question. The concept of mathematical
modelling has been demonstrated through a number of different
examples.
The student should not be put off by the apparent complexity of the
mathematics involved. There a many different ways of generating
random numbers, for example, and in the unit we have looked at some
ideas. If these appear complicated, there are other routes that can be
found which may be easier to accept.
University of
Sunderland 63
Unit 2 – Discrete Simulation Business Modelling for Decision Making
To get a clearer idea of just what a Pivot Table is, examine the one below.
In this school, there is a test every month (it’s a tough school!). The Pivot
Table above shows the marks that Elisa got in January, February, and
March. There were tests for only 6 subjects. Notice the black
down-pointing arrows in the Pivot Table. On Row 1 we have Student
Elisa. If the black arrow were clicked, a drop-down box would appear
showing a list of the other students. We could click on a student and
view the marks he or she achieved. Or we could select which subjects to
view, or choose only one month.
But Excel does most of the work for you, and puts in those drop-down
boxes as part of the wizard. Explore this for yourself!
In order to fully understand how useful Pivot Tables can be, the student
is advised to obtain a suitable text book or visit the following websites to
see how they are constructed and used:
http://www.accountingweb.co.uk/cgi-bin/item.cgi?id=18517
http://www.ccsr.ac.uk/popgroup/docs/POPGROUPPivotTablesFeb
05.pdf
University of
64 Sunderland
Unit 3
Linear Programming
Introduction
Linear Programming is concerned with the management of scarce
resources. Suppose a company wants to make several different
products but each product makes different demands on the limited
available resources. The question is, how many of each one does the
company make to maximise profits?
The two variables, of course, are the different amounts of the Regular
and the Deluxe shirts to produce.
The next step is to set up an equation with the variables. We know that
we want to maximise profits and we know that the Regular (Deluxe)
shirt contributes £5 (£8) towards profit. Hence, maximise £5R + £8D
University of
Sunderland 65
Unit 3 – Linear Programming Business Modelling for Decision Making
The first constraint is the daily amount of available cotton (600m2) and, a
Regular (Deluxe) shirt, takes 5m2 (6m2) of material. So we can make 5R
and 6D shirts out of 600m2 cotton. Hence we can equate : 5R + 6D " 600
The second constraint is the daily length of time taken to produce one
shirt. For the Regular (Deluxe) shirt, it takes 1 (2) hour(s). There are 20
machinists who work 8 hours/day. Hence there are 160 available hours
to make 1R and 2D shirts.
There are many values for R and D which will solve this problem
without maximising the profits. What we want to do, is to maximise
profits. Since there are only two variables (R and D), we will solve this
model by the Graphical method.
Recap : R D
cotton 0 100
120 0
labour 0 80
160 0
University of
66 Sunderland
Business Modelling for Decision Making Unit 3 – Linear Programming
Linear Programming
The Graphical Method
D
Cotton
100
0 120 R
Linear Programming
The Graphical Method
D
100 Cotton
80
x
Labour
0 120 R
160
Linear Programming
The Graphical Method
D
Cotton The region (F) is called
100
the feasible region and
80 is ‘bounded’ by 0, 80,
x x, 120, 0
F
Labour
0 120 R
160
Notice how the constraints have provided a feasible region. The feasible
region (F) represents the area of the graph which will satisfy all of the (R
and D) inequalities.
University of
Sunderland 67
Unit 3 – Linear Programming Business Modelling for Decision Making
Next, we need to add the profit equation to the graph. Recall that we
want to maximise 5R + 8D
and these values simply represent yet another linear line! - plot it!
Linear Programming
The Graphical Method
D
Cotton The region (F) is called
100
the feasible region and
80 is ‘bounded’ by 0, 80,
x x, 120, 0
45
F
Labour
0 R
72 120 160
Linear Programming
The Graphical Method
D
Cotton The region (F) is called
100
the feasible region and
80 is ‘bounded’ by 0, 80,
x x, 120, 0
45
F
Labour
0 120 160 R
72
University of
68 Sunderland
Business Modelling for Decision Making Unit 3 – Linear Programming
Linear Programming
The Graphical Method
D
Cotton The region (F) is called
100
the feasible region and
80 is ‘bounded’ by 0, 80,
x x, 120, 0
45
F Labour
R
72 120 160
Linear Programming
The Graphical Method
D
100 Cotton The region (F) is called
the feasible region and
80 is ‘bounded’ by 0, 80,
x x, 120, 0
45
F Labour
R
72 120 160
Linear Programming
The Graphical Method
D
Cotton This is the point of
100
maximum profit
80
x
45
F Labour
R
72 120 160
On the last figure, and at the point indicated by ‘x’, we draw a vertical
line from ‘x’ to the horizontal axis. Similarly, we draw a horizontal line
from ‘x’ to the vertical axis. In both cases, we read off the respective
values at the points of intersection on the axes.
University of
Sunderland 69
Unit 3 – Linear Programming Business Modelling for Decision Making
5R + 6D " 600
R + 2D " 160
Notice how the inequality signs are reversed from those for the
maximisation problems.
Linear Programming
The Graphical Method
D
Cotton The region (F) is called
100
the feasible region
80
F
From here, Labour
R
120 160
University of
70 Sunderland
Business Modelling for Decision Making Unit 3 – Linear Programming
Linear Programming
The Graphical Method
D
100
Cotton The region (F) is called
the feasible region
80
To here,
F
Labour
R
120 160
Linear Programming
The Graphical Method
D
100
Cotton The region (F) is called
the feasible region
80
F
Labour
R
120 160
Linear Programming
The Graphical Method
Y
In this
direction!
One final point; the linear programming techniques above have related
to two constraints, i.e. two linear equations plus the profit (or cost)
University of
Sunderland 71
Unit 3 – Linear Programming Business Modelling for Decision Making
Worked Example
Remember, to solve Linear Programming examples by the graphical
method, all we need to do is to identify the (linear) constraints, calculate
their equations, plot them and use the equation of the ‘objective
function’ to identify the optimal solution!
If the contribution to profit from each chair is £5 and from each table is
£4, determine by the graphical method, the number of chairs and tables
that should be produced to maximise profits.
Solution method:
Determine the number of constraints (in this case there are three -
woodworking, assembly and finishing), then calculate the equations for
each of the constraints.
University of
72 Sunderland
Business Modelling for Decision Making Unit 3 – Linear Programming
The woodworking constraint: 24 chairs (12 tables) per hour means that
it takes 1/24 (1/12) hours to make one chair (table) and there are 8 hours
available. Chairs (tables) are denoted by ‘x’ (‘y’). Hence:
x + 2y " 192
The assembly constraint: 16 chairs (16 tables) per hour means that it
takes 1/16 (1/16) hours to assemble one chair (table) and there are 8
hours available. Chairs (tables) are denoted by ‘x’ (‘y’). Hence, we get
x/16 + y/16 " 8 (and multiplying both sides of the inequality by 16 (to
eliminate the fractions) ..
x + y " 128
The finishing constraint; 18 chairs (14 tables) per hour means that it
takes 1/18 (1/14) hours to finish one chair (table) and there are 8 hours
available. Chairs (tables) are denoted by ‘x’ (‘y’). Hence, we get
x/18 + y/14 " 8 (and multiplying both sides by (18 * 14) (to eliminate
the fractions) gives
14x + 18y " 2016 (and dividing both sides of the inequality by 2)
7x + 9y " 1008
After calculating the (three) constraints, the next step is to identify the
respective co-ordinates so we can plot the linear lines on a graph.
Plot these (x,y) co-ordinates (0,96) and (192,0) on the graph and connect
them with a linear line.
University of
Sunderland 73
Unit 3 – Linear Programming Business Modelling for Decision Making
y
Not to scale!
96 when x = 0, y = 96.
when y = 0,
x= 192
x
0 192
Plot these (x,y) co-ordinates (0,128) and (128,0) on the graph and
connect them with a linear line.
y
Not to scale!
96
when y = 0,
X = 128
x
0 128 192
Plot these (x,y) co-ordinates (0,112) and (144,0) on the graph and
connect them with a linear line.
University of
74 Sunderland
Business Modelling for Decision Making Unit 3 – Linear Programming
y
Not to scale!
128
112
when x = 0, y = 112
96
When y = 0,
x = 144
x
0 128 144 192
y
Not to scale!
128 Remember..
112
96
This area (to the right of the
constraints) is for
MINIMISATION Problems!
x
0 128 144 192
(Let x = 40 and let y = 50, (arbitrary values) then 5(40) + 4(50) = 200 + 200
= 400)
University of
Sunderland 75
Unit 3 – Linear Programming Business Modelling for Decision Making
y
Not to scale!
128
‘Broken’ line of
objective function!
x
0 80 128 144 192
The next step is to physically ‘squeeze’ out all of the feasible region
bounded within the axes and the constraints (similar to what we did
earlier with the shirts example). We do this by ‘moving’ the linear line of
the objective function, parallel to itself within the feasible region,
‘squeezing out’ the feasible region, until we cannot squeeze out any
more. This point (where we are unable to squeeze out any more of the
feasible region) is known as the optimal solution.
y
Not to scale!
128
112
100
96
x
0 80 128 144 192
University of
76 Sunderland
Business Modelling for Decision Making Unit 3 – Linear Programming
y
Not to scale!
128
112
100
96
x
0 80 128 144 192
y
Not to scale!
128
112
It appears we are ‘squeezing’
100
96 out the feasible region
towards the point when y = 0
and x = 128!
x
0 80 128 144 192
y
Not to scale!
128
112
So the optimal solution occurs at
100
96 the point when y = 0 and x = 128!
x
0 80 128 144 192
University of
Sunderland 77
Unit 3 – Linear Programming Business Modelling for Decision Making
The optimal solution therefore, occurs when x = 128 and y = 0. Since ‘x’
(‘y’) represents chairs (tables) then given the constraints, the maximum
profit occurs when there are 128 chairs and no tables made! The
contribution to profit for chairs (tables) is £5 (£4) so our profit is:
ACTIVITY
What are the values of x and y which would maximise:
Profit = 5x + 3y
subject to
y " 400
x " 280
5x + 4y " 2000
x, y " 0 ?
ACTIVITY FEEDBACK
Maximise 5x + 3y subject to:
1 y " 400
2 x " 280
3 5x + 4y " 2000
4 2x + y " 640
x, y " 0
University of
78 Sunderland
Business Modelling for Decision Making Unit 3 – Linear Programming
when x = 0, y =640
Objective
Let 5x + 3y = 600
Note that those constraints that limit the solution to the optimum point are
known as the ‘binding’ or ‘limiting’ constraints.
University of
Sunderland 79
Unit 3 – Linear Programming Business Modelling for Decision Making
ACTIVITY
Solve the following linear equation by the graphical method (minimisation)
What are the values of x and y which would minimise Cost = 12x + 42y subject
to
Shade in the feasible region on your graph and determine the value of the
minimum cost. If the cost function changed from 12x + 42y to 12x + 12y,
would the minimum cost remain at the same position on your graph as you
have initially determined? If not, calculate the new cost and explain the reasons
why the cost function has changed position.
ACTIVITY FEEDBACK
University of
80 Sunderland
Business Modelling for Decision Making Unit 3 – Linear Programming
If the objective function changes from 12x + 42y to 12x + 12y, the optimal
solution will move from x = 2.1, y = 0.5 to x = 0.6 and y = 1,2 (approx.) (see
dotted line)
x + 4y = 4
1 x + 2y = 3
2y = 1 so y = 0.5
when y = 0.5, x + 2y = 3
so x + 1 = 3
so x = 2
1 x + 2y = 3
(* 3)
3x + 6y = 9
3 3x + y = 3
so 5y = 6 and y = 1.2
so x + 2.4 = 3
so x = 0.6
ACTIVITY
To maintain good health, an individual should consume a balanced diet. For the
purposes of this exercise, assume only three types of nutrients are required to
be consumed to attain a balanced diet. These are calcium, protein and vitamin
A. We also assume that the individual’s diet consists of two food items, i.e.
food 1 and food 2, whose price, content and minimum daily consumption levels
are depicted in the following table :
University of
Sunderland 81
Unit 3 – Linear Programming Business Modelling for Decision Making
Calcium/unit 10 4 20
Protein/unit 5 5 20
Vitamin A/unit 2 6 12
What is the combination of the two food items required which will satisfy the
daily requirements and minimise the cost of purchase ?
Hint : Let x = food 1 and y = food 2 and minimise Cost = 0.6x + y subject to :
x, y " 0
Determine the shadow price of Protein and Vitamin A at the point of minimum
cost.
University of
82 Sunderland
Business Modelling for Decision Making Unit 3 – Linear Programming
ACTIVITY FEEDBACK
1. 10x + 4y = 20 When x = 0, y = 5 y
When y = 0, x = 2 5
2. 5x +5y = 20 When x = 0, y = 4 4
When y = 0, x = 4 3
Feasible
area
3. 2x + 6y = 12 When x = 0, y = 2 2
Optimal solution when
(approx) x = 3 and y = 1.
When y = 0, x = 6 1
Thus, minimum cost is
0.6(3) + 1(1) = £2.80
2 5x + 5y = 20
(* 2)
3 2x + 6y = 12
(* 5)
3 10x + 30y = 60
2 10x + 10y = 40
so 20y = 20 and y = 1
when y = 1, 2x + 6 = 12
or 2x = 6 so x = 3
University of
Sunderland 83
Unit 3 – Linear Programming Business Modelling for Decision Making
REVIEW ACTIVITY
Use the ‘Sunderland Optimum Shirts’ example to calculate the following:
‘Sunderland Optimum Shirts’ (SOS) is a company making high quality shirts and
are planning to make two distinct types (‘Regular’ and ‘Deluxe’). The
contribution to profits of the ‘Regular’ (‘Deluxe’) shirt is £5 (£8).
To maximise profits, how many shirts of each should be made? Also, what is
the maximum profit?
Solution equations:
maximise 5R + 8D subject to: 5R + 6D " 600 and R + 2D " 160 and of course,
neither R nor D can be a negative value, so R, D " 0
Assume that we have an increase in the labour constraint by one hour, i.e. total
hours of labour = 161 hours and hence, R + 2D = 161
University of
84 Sunderland
Business Modelling for Decision Making Unit 3 – Linear Programming
We substitute the values of R = 58.5 and D = 51.25 into the objective function
of
The £2.50 profit for one additional hour of labour is known as the Shadow Price
of labour, i.e. the change in the value of the objective function when the RHS of
the labour constraint is changed by one unit (is £2.50).
We substitute the values of R = 60.5 and D = 49.75 into the objective function
of
The £0.50 profit for one additional m2 of cotton is known as the Shadow Price
of cotton. i.e. the change in the value of the objective function when the RHS of
the cotton constraint is changed by one unit (is £0.50).
Changes in the slope of the objective function – movement occurs only from
the point at the optimal solution. In this case, the optimal solution occurs at R
= 50 and D = 60.
The slope of the objective function must equate in turn, to the slopes of the
binding constraints. The Labour constraint (as an equality) is R + 2D = 160
and we express this in terms of its equation of a linear line (which is 2D = 160 –
R). Dividing both sides of the equation by 2, gives D = 80 – 1/2R. Hence, the
‘slope’ of the labour constraint is -1/2. Similarly, the ‘slope’ of the objective
University of
Sunderland 85
Unit 3 – Linear Programming Business Modelling for Decision Making
y
Not to scale!
128
112
So the optimal solution occurs at
100
96 the point when y = 0 and x = 128!
x
0 80 128 144 192
To move from point B to point A, the slope of the objective function must
equate to the slope of the labour constraint (–1/2). The slope of the objective
function is –5/8 so to equate to –1/2, the profit on the Regular shirt must
decrease from £5 to £4 (i.e. 4/8 = 1/2) (Deluxe shirt profit remains constant)
OR, the profit on the Deluxe shirt must increase from £8 to £10 (i.e. 5/10 =
1/2) (Regular shirt profit remains constant).
To move from point B to point C, the slope of the objective function must
equate to the slope of the cotton constraint (which is –5/6). The slope of the
objective function is –5/8 so to equate to –5/6, the profit on the Regular shirt
must increase from £5 to £6.67 (Deluxe shirt profit remains constant) OR, the
profit on the Deluxe shirt must decrease from £8 to £6 (Regular shirt profit
remains constant).
Summary
Linear programming is an important tool for maximising profit in a
variety of situations. This unit has introduced both a graphical and an
University of
86 Sunderland
Business Modelling for Decision Making Unit 3 – Linear Programming
University of
Sunderland 87
Unit 4
Optimisation
Introduction
Our earlier analysis into the use of numerical methods to assist us to
make decisions, concerned the equation of the linear line
y = f(x) = a + bx
Linear Equations
In our earlier years of study, we should have encountered the linear
regression model, i.e. the dependent variable (y) is assigned to be a
function of the independent variable (x) and we expressed the
relationship as y = f(x) and in general (for linear equations),
The constant ‘a’ represents the point where the line of best fit crosses the
vertical axis (the ‘y’ axis) and, the constant ‘b’ represents the gradient
(slope) of the line of best fit..
University of
Sunderland 89
Unit 4 – Optimisation Business Modelling for Decision Making
If the value of ‘b’ is > 0 (positive), the line of best fit slopes upwards. If
the value of ‘b’ is < 0 (negative), the line of best fit slopes downwards
and, if the value of ‘b’ is = 0, the line of best fit is horizontal and parallel
to the horizontal axis (the ‘x’ axis).
Optimisation - Extremum
y y = a + bx
Optimisation - Extremum
y y = a - bx
a
Optimisation - Extremum
y y = a + 0x = a
a
Value of b = 0, hence
line is horizontal!
University of
90 Sunderland
Business Modelling for Decision Making Unit 4 – Optimisation
So that was the linear line of best fit and, we use that line to ‘forecast’
changes in the dependent variable (‘y’), following changes in the
independent variable (‘x’).
Now, we are going to expand our knowledge of the linear system into a
non linear system.
Optimisation - Extremum
y y = f(x)
Maximum extrema
Minimum extrema
x
Optimisation - Extremum
y y = f(x)
Point of Maximum Profit
x
Output of ‘x’ to Maximise Profit
University of
Sunderland 91
Unit 4 – Optimisation Business Modelling for Decision Making
Optimisation - Extremum
y y = f(x)
x
Output of ‘x’ to Minimise Cost
Optimisation - Extremum
y y = f(x)
Maximum
Optimisation - Extremum
y y = f(x)
Minimum
University of
92 Sunderland
Business Modelling for Decision Making Unit 4 – Optimisation
Non linear graphs of the form y = f(x) i.e. follow an equation of the form
2
y = cx + bx + a
Hence, for non linear analysis, we need only consider extending our
previous knowledge by cx2 i.e. y = f(x) = cx2 + bx + a.
and since the coefficients a, b and c are constant values, then we will
revise our formula of y = cx2 + bx + a, to follow the textbook format.
Optimisation - Extremum
y y = f(x)
y = ax2 + bx + c
Minimum
University of
Sunderland 93
Unit 4 – Optimisation Business Modelling for Decision Making
Optimisation - Extremum
y y = f(x)
y = -ax2 + bx + c
Maximum
Notice the value for ‘a’ in y = f(x) = ax2 + bx + c = 3x2 + 2x + 1 is 3 (or +3).
The positive value for ‘3’ in our equation y = f(x) = 3x2 + 2x + 1 indicates
our equation represents a graph which will display the properties of a
MINIMUM extrema, i.e. we are looking for a MINIMUM point!
x: -3 -2 -1 0 1 2 3
y: 22 9 2 1 6 17 34
giving y = 3(9) - 6 + 1
= 27 - 6 + 1 = 22
University of
94 Sunderland
Business Modelling for Decision Making Unit 4 – Optimisation
and we do similar with the other values of ‘x’, then we can use these
co-ordinates to plot the graph of our non linear line.
Optimisation - Extremum
Graph of y = 3x 2 + 2x + 1
40
35
30 Notice the minimum point occurs
somewhere between x = 0 and x = -1
25
y values
20
15
10
5
0
-3 -2 -1 0 1 2 3
x values
Clearly, the output from a company cannot be negative (<0) but, we can
use this concept to identify extremum when conditions exist where our
extrema dictate values of x " 0.
x: -3 -2 -1 0 1 2 3
y: 22 9 2 1 6 17 34
giving y = 3(9) - 6 + 1
= 27 - 6 + 1 = 22
University of
Sunderland 95
Unit 4 – Optimisation Business Modelling for Decision Making
and we did similar with the other values of ‘x’, then we used these
co-ordinates to plot the graph of our non linear line.
Optimisation - Extremum
Graph of y = 3x 2 + 2x + 1
40
35
30
y values 25
20
15
10
5
0
-3 -2 -1 0 1 2 3
x values
Consider our equation: y = f(x) = ax2 + bx + c and let the value for ‘c’
change from 1 to 5. Hence, y = f(x) = 3x2 + 2x + 5
x: -3 -2 -1 0 1 2 3
y: 26 13 6 5 10 21 38
and, for example, when y = f(x) = 3x2 + 2x + 5 then when x = -3, y = 3(-3)2
+ 2(-3) + 5
giving y = 3(9) - 6 + 5
= 27 - 6 + 5 = 26
and by doing similar with the other values of ‘x’, we use these ‘new’
co-ordinates to plot our ‘new’ graph of our ‘new’ non linear line.
University of
96 Sunderland
Business Modelling for Decision Making Unit 4 – Optimisation
Optimisation - Extremum
Graph of y = 3x 2 + 2x + 5
40
35
30
25
y values
20
15
10
5
0
-3 -2 -1 0 1 2 3
x values
and if we introduce the original non linear line (when y = f(x) = 3x2 + 2x
+1) then notice how our ‘new’ non linear line has ‘shifted’ up the vertical
axis, i.e. the ‘new’ non linear line is identical in shape to the original non
linear line
Optimisation - Extremum
Graph of y = 3x 2 + 2x + 5
40
35
30
25
y values
20
15
10
5
0
-3 -2 -1 0 1 2 3
x values
Note also, the value for ‘x’ at the minimum point has not changed. So
altering the value of the constant term ‘c’, simply moves the line up or
down the vertical axis.
Notice the minus sign before the 3x2 term. The minus sign indicates our
equation represents a graph which will display the properties of a
MAXIMUM extrema, i.e. we are looking for a MAXIMUM point!
University of
Sunderland 97
Unit 4 – Optimisation Business Modelling for Decision Making
x: -3 -2 -1 0 1 2 3
giving y = -3(9) - 6 + 1
= -27 - 6 + 1 = -32
and we do similar with the other values of ‘x’, then we can use these
co-ordinates to plot the graph of our non linear line.
Optimisation - Extremum
Graph of y = -3x 2 + 2x + 1
5
0
-5 -3 -2 -1 0 1 2 3
-10
y values
x values
(Note the actual value for x occurs when x = +1/3 - but will be explained
later!)
ACTIVITY
Let us look at a business example:
A medium sized company produces a quantity of 9 units (q) per week. The
company’s total fixed cost (FC) = £10,000 and its total variable cost (VC) =
(-1,000q + 200q2).
The demand for these units are given by the equation (9,000 - 800q).
(Notice how the demand equation represents a linear line of the form
y = f(x) = a + bx)
University of
98 Sunderland
Business Modelling for Decision Making Unit 4 – Optimisation
Given this information, find the company profit. We assume the units of output
represent a quantity of goods produced, e.g. one unit might represent 20,000
chocolate bars.
ACTIVITY FEEDBACK
To find the company’s profit equation, we need to find its total revenue and
total cost equations and difference them!
The company’s total fixed cost (FC) = £10,000 and its total variable cost (VC)
= (-1,000q + 200q2). To find the company’s total cost (TC), we equate the
Fixed Cost and the Variable Cost
TC = FC + VC
e.g. If I can sell 10 chocolate bars at 50p each, then my revenue is 50p x 10 or
£5.00
The demand for the company’s units are given by the equation (9,000 - 800q).
Since our demand equation represents the number of units that can be sold at
various prices, then our demand equation represents PRICE.
To find our revenue function, we simply need to multiply the demand equation
by output (q).
Hence, Revenue = p x q or
Profit = $= TR - TC
University of
Sunderland 99
Unit 4 – Optimisation Business Modelling for Decision Making
(Notice how the signs of the TC equation changed when we removed the
brackets.)
i.e. the minus sign outside the brackets of the TC effectively changed the sign of
every term within the brackets when the brackets were removed!
Optimisation - Extremum
Graph of Profit
15000
10000
Notice the maximum point occurs
5000 somewhere between q = 4 and q = 6
0
0 1 2 3 4 5 6 7 8 9
-5000
-10000
quant it y
University of
100 Sunderland
Business Modelling for Decision Making Unit 4 – Optimisation
giving q = 11.25
i.e. two sets of co-ordinates which represent a linear line (remember the
linear programming exercises?)
Our demand equation (D = 9,000 - 800q) represents the line of best fit of
a series of data observations.
Optimisation - Extremum
Graph of Demand = 9,000 - 800q
9000
8000
7000
6000
Demand
5000
4000
3000
2000
1000
0
-1000 0 1 2 3 4 5 6 7 8 9 10 11 12
This graph assumes all data observations lie on a linear line! So what
happens if the data do not form a linear line?
Well, if a given set of data observations do not lie on a linear line then,
we can use the data via our knowledge of regression analysis, to
determine the equation of the line of best fit for the demand. i.e. when y
= f(x) = a + bx.
University of
Sunderland 101
Unit 4 – Optimisation Business Modelling for Decision Making
Optimisation - Extremum
q Dem and
(x) (y)
0 8600
1 8100
2 6900
3 7600
4 6400
5 5100
6 4000
7 3000
8 2500
Optimisation - Extremum
Scatte r plot of De m and for q
Demand
Hence, we need to calculate the regression line of best fit via our
knowledge of regression analysis. The equation determined by
regression analysis can be used to simulate our demand.
University of
102 Sunderland
Business Modelling for Decision Making Unit 4 – Optimisation
Optimisation - Extremum
q Dem and
(x) (y) xy x2
0 8600 0 0
1 8100 8100 1
2 6900 13800 4
3 7600 22800 9
4 6400 25600 16
5 5100 25500 25
6 4000 24000 36
7 3000 21000 49
8 2500 20000 64
9 1800 16200 81
Sum s 45 54000 177000 285
Using the respective sums in the formula for the slope term (b) ..
Using the respective sums in the formula for the intercept term (a) ..
University of
Sunderland 103
Unit 4 – Optimisation Business Modelling for Decision Making
we can determine the regression equation for demand given our data
observations.
Earlier in this unit, we used and applied our knowledge of the linear line
to help us to resolve problems relating to non linear systems. If you
remember, non linear systems are lines of best fit, usually depicted with
‘turning points’ - or maximum and minimum points. These turning
points, we called - ‘Extremum’
What we were attempting to do with our non linear lines, was to find
values of our independent variable (the ‘x’ variable) at either a
maximum or at a minimum turning point (extremum).
i.e.
y y = f(x)
Maximum
were represented by an
equation of the form
y = -ax2 + bx + c
x
Remember the ‘-’ sign for a ‘Maximum’
University of
104 Sunderland
Business Modelling for Decision Making Unit 4 – Optimisation
i.e.
y y = f(x) Minimum
were represented
by an equation of
the form
y = ax2 + bx + c
x
No ‘-’ sign for a ‘Minimum’!
Notice the value of the ‘sign’ for ‘a’ in y = f(x) = ax2 + bx + c = 3x2 + 2x + 1
is 3 (or +3).
And if you remember, the positive value for the ‘3x2’ (i.e. the x2) in our
equation of y = f(x) = 3x2 + 2x + 1, indicated our equation represented a
graph which displayed the properties of a MINIMUM extrema, i.e. we
were looking for a MINIMUM point.
y y = f(x)
y = 3x2 + 2x + 1
Minimum
University of
Sunderland 105
Unit 4 – Optimisation Business Modelling for Decision Making
x: -3 -2 -1 0 1 2 3
y: 22 9 2 1 6 17 34
giving y = 3(9) - 6 + 1 = 27 - 6 + 1 = 22
We use these co-ordinates to plot the graph of our non linear line.
The Derivative
Before we prove x = -1/3 in the previous equation, we need to forge an
understanding of the concepts of the derivative. Note that the
derivative is based upon the Differential Calculus method, invented by
Sir Isaac Newton and the German mathematician Wilhelm Leibniz circa
1675 AD.
The derivative is based upon our knowledge of both a linear line and a
non linear line.
We use the concepts of touching a non linear line with a linear line. This
is known as a ‘tangent’.
University of
106 Sunderland
Business Modelling for Decision Making Unit 4 – Optimisation
y y = f(x)
y y = f(x)
Notice that the tangent can form part of a right angled triangle and we
interpret this triangle in terms of its ‘y’ and ‘x’ values.
y y = f(x)
University of
Sunderland 107
Unit 4 – Optimisation Business Modelling for Decision Making
y y = f(x)
x1 x2 x
y y = f(x)
y2
y1 *x
x1 x2 x
KEY POINT
Note that the slope of our tangent is determined by the ratio of dy/dx
Dy
' the slope of our tangent
Dx
Note also that if we reduce the size of the changes in our ‘y’ and ‘x’ variables
(equally) the slope of the tangent remains constant (i.e. the same!) and a
continual reduction in the changes in ‘y’ and ‘x’ eventually .. .. means our
triangle becomes small enough to be a ‘point’ on the curve.
University of
108 Sunderland
Business Modelling for Decision Making Unit 4 – Optimisation
y y = f(x)
This tells us that we can find a point on a non linear curve, simply by
considering the relationship between the change in our ‘y’ and our ‘x’
variables. A small note here (to remember for later); when the change in
our ‘y’ and ‘x’ variables become small enough to become a point on our
non linear curve,
Dy
' the slope of our tangent
Dx
= the Derivative
*y
= slope of our tangent
*y *x
*x
University of
Sunderland 109
Unit 4 – Optimisation Business Modelling for Decision Making
*y
= slope of our tangent
*y *x
*x
*y 1 (unit)
+,o *y = 45o = =1
*x 1 (unit)
*x
The point of contact of the tangent to the non linear curve is not at a
maximum point!
University of
110 Sunderland
Business Modelling for Decision Making Unit 4 – Optimisation
The point of contact of the tangent to the non linear curve is not at a
maximum point.
Consider now, the position the tangent touches the non linear curve
when
University of
Sunderland 111
Unit 4 – Optimisation Business Modelling for Decision Making
The point of contact of the tangent to the non linear curve is not at a
maximum point.
Consider now, the position the tangent touches the non linear curve
when
The point of contact of the tangent to the non linear curve is not at a
maximum point.
Finally, if we let the value for *y = 0, the position the tangent touches the
non linear curve occurs when
University of
112 Sunderland
Business Modelling for Decision Making Unit 4 – Optimisation
Perfect! - the point of contact of the tangent to the non linear curve is at
the maximum point.
We have identified the maximum point of our non linear curve simply
by permitting the ratio of the change in the ‘y’ variable to the change in
the ‘x’ variable to equal zero
dy/dx = 1/1 = 1
If you remember, when the change in our ‘y’ and ‘x’ variables become
small enough to become a point on our non linear curve then, slope of
tangent = the derivative.
Hence, when dy/dx = 0, we have a turning point on our non linear line.
OK so we know that the slope of the tangent to our non linear line is zero
(0) at either a maximum or a minimum. So how does that help us to
identify the value for ‘x’ when we have a maximum or a minimum?
University of
Sunderland 113
Unit 4 – Optimisation Business Modelling for Decision Making
y values
-15
-20
-25
-30
-35
x values
Differentiation
Differentiation consists of a number of rules of which some are fairly
complex. We are only interested in the simplest of all of the rules.
x values
University of
114 Sunderland
Business Modelling for Decision Making Unit 4 – Optimisation
Another example ..
Another example ..
University of
Sunderland 115
Unit 4 – Optimisation Business Modelling for Decision Making
Final example ..
dy
If y = f(x) = axn then .. = naxn-1
dx
dy
If y = f(x) = -axn then .. = -naxn-1
dx
dy
If y = f(x) = a constant, then .. = 0
dx
University of
116 Sunderland
Business Modelling for Decision Making Unit 4 – Optimisation
then since the axn term is separated from the bx term and the constant
(‘c’) term by either an addition sign or a minus sign, then we can
differentiate each term in turn - independent of the others, i.e.
differentiate the axn term first, then differentiate the bx term and finally
differentiate the constant (‘c’) term.
Finally, our example at the beginning of this session - i.e. when y = f(x) =
3x2 + 2x + 1, we said that the actual value of ‘x’ at the turning point was x
= -1/3 and would be explained later. So, we find our MINIMUM point
(no minus sign in front of the ‘x2’ term!), by differentiating our equation
and equating the result to the value of the slope of the tangent at a
minimum point (i.e. zero).
University of
Sunderland 117
Unit 4 – Optimisation Business Modelling for Decision Making
University of
118 Sunderland
Business Modelling for Decision Making Unit 4 – Optimisation
ACTIVITY
Question 1
5. Compare equation (a) with equation (c). Then compare equation (b)
with equation (d). There is a similar type of pattern with both sets of
respective equations (i.e. equations (a) & (c) and equations (b) & (d)).
Can you (with reasons), identify the pattern?
6. Solve equation (c) to find the value for x. Solve equation (d) to find
the value for x. Compare each of these two values with the respective
values you determined from your respective graphs in section (2)
above. Are the respective values identical? If not, do you think the
respective values should be identical? – Explain.
University of
Sunderland 119
Unit 4 – Optimisation Business Modelling for Decision Making
ACTIVITY FEEDBACK
University of
120 Sunderland
Business Modelling for Decision Making Unit 4 – Optimisation
ACTIVITY
Question 2
Y1 = 4x2 + 3x + 2; Y2 = 4x2 - 3x + 2;
Y3 = -4x2 + 3x + 2; Y4 = -4x2 - 3x + 2;
2. Sketch a graph of any one of the above four equations and from your
graph, determine the value for ‘x’ at the respective turning point.
3. Differentiate all four the equations with respect to ‘x’. You may
assume dy/dx = 0 and solve for x in all four differentiated equations.
University of
Sunderland 121
Unit 4 – Optimisation Business Modelling for Decision Making
ACTIVITY FEEDBACK
2
Graph of y1 = 4x + 3x + 2
50
45
40
35
y1 values
30
25
20
15
10
0
-4 -3 -2 -1 0 1 2 3 4
x values
2
Graph of y2 = 4x - 3x + 2
y2 values
x values
University of
122 Sunderland
Business Modelling for Decision Making Unit 4 – Optimisation
2
Graph of y3 = -4x + 3x + 2
y3 values
x values
2
Graph of y4 = -4x - 3x + 2
y4 values
x values
ACTIVITY
Question 3
A small company produces a quantity (q) of 7 units per week. The company’s
total fixed cost (FC) = £50 and its total variable cost (VC) is given by the
equation (-10q + 10q2). The demand for these units is given by the equation
(240 - 15q). Find the equation for the company profit. Hint, Profit is Total
Revenue – Total Cost. Total Revenue is Demand times ‘q’.
Draw a graph of profit, across the range of ‘q’ from q = 0, 1, 2 .. 7. (Hint you
will need to set up a simple table similar to question (1.2), ranging from q = 0 to
q = 7. Then you will need to substitute the successive values for ‘q’ into your
profit equation and calculate the profit for each value of ‘q’. These values are
then co-ordinates – simply plot them on your graph). From your graph, find
the value of ‘q’ which maximises the profit.
University of
Sunderland 123
Unit 4 – Optimisation Business Modelling for Decision Making
On the same graph as your profit, draw a graph of demand and, of cost.
Explain what is happening with your graphs!
Consider your profit equation. Set up an equation for ‘q’ following the same
pattern as you identified in exercise (1) part 5 and solve for q. Explain (with
reasons) your findings.
ACTIVITY FEEDBACK
University of
124 Sunderland
Business Modelling for Decision Making Unit 4 – Optimisation
ACTIVITY
Question 4
q Demand
(x) (y)
0.5 5500
1 4000
1.5 4000
2 4000
2.5 2500
3 2500
3.5 1000
4 2500
4.5 1000
5 500
University of
Sunderland 125
Unit 4 – Optimisation Business Modelling for Decision Making
The company produces a quantity (q) of 7 units per week and its total fixed
cost (FC) is 500 and its total variable cost (VC) is given by the equation (-500q
+ 100q2). If you have not already calculated this, then find the equation for the
company profit and ensure you are able to draw a graph of profit across the
range of ‘q’ from q = 0 to q = 5..
With your total cost equation, use the concepts of differentiation to solve for
q when cost is minimised.
Use the concepts of differentiation to solve for ‘q’ when profit is maximised.
q Demand
(x) (y) xy x2
1 0.5 5500
2 1 4000
3 1.5 4000
4 2 4000
5 2.5 2500
6 3 2500
7 3.5 1000
8 4 2500
9 4.5 1000
10 5 500
University of
126 Sunderland
Business Modelling for Decision Making Unit 4 – Optimisation
ACTIVITY FEEDBACK
q Demand
(x) (y) xy x2
2 1 4000 4000 1
4 2 4000 8000 4
6 3 2500 7500 9
8 4 2500 10000 16
10 5 500 2500 25
Revenue
Cost
Profit
University of
Sunderland 127
Unit 4 – Optimisation Business Modelling for Decision Making
y = -1000x + 5500
6000
5000
4000
3000
2000
1000
0
0 2 4 6
Graph of Profit
10000
5000
0
-5000 0 1 2 3 4 5 6 7 8
Profit
-10000
-15000
-20000
-25000
X values
Intercept = 5500
Const q q2
5500 -1000
Differentiation
when q = 2.73
University of
128 Sunderland
Business Modelling for Decision Making Unit 4 – Optimisation
REVIEW ACTIVITY
(TR) = 9,000q - 800q2, (FC) = £10,000 and (VC) = (-1,000q + 200q2).
Tasks - Use the above revenue and cost equations and calculate:
1. The changes required in the coefficient of the ‘q’ variable of the cost
function to maximise profits when q = 4. (plus % changes).
2. The changes required in the coefficient of the ‘q2’ variable of the cost
function to maximise profits when q = 4. (plus % changes).
ACTIVITY FEEDBACK
(TR) = 9,000q - 800q2, (FC) = £10,000 and (VC) = (-1,000q + 200q2).
Cost Equation
for the coefficient of the ‘q’ term to change to maximise profit when q = 4
d$
And for $ max, = 0 = 8,000 – 2,000q, so q = 8,000/2,000 = 4
dq
University of
Sunderland 129
Unit 4 – Optimisation Business Modelling for Decision Making
Cost Equation
for the coefficient of the ‘q2’ term to change to maximise profit when q = 4
d$
And for $ max, = 0 = 10,000 – 1,600q – 2xq
dq
d$
And for $ max, = 0 = 10,000 – 2,500q, so q = 10,000/2,500 = 4
dq
Summary
This unit has used some complex maths to demonstrate how an analysis
of profit can be carried out by using a company’s revenue and cost
functions. The purpose of the demand function has also been described.
University of
130 Sunderland
Unit 5
Introduction
This unit provides an introduction to some of the basic forecasting
techniques employed in business modelling. The twin concepts of
regression and correlation are both explained and the derivation of the
necessary mathematics included. These are advanced from the idea of
scatter graphs through to their solution using both manual and
computer (via Microsoft Excel) methods.
The unit includes some detailed examples in the form of activities for
the student to attempt.
University of
Sunderland 131
Unit 5 – Basic Forecasting Techniques Business Modelling for Decision Making
We do not need to limit our line to the points y = a and x = –a/b. We can
continue the line, but only because it is a linear system. If we were
dealing with a non-linear system, we would need to plot more points.
KEY POINT
The derivative of a function, finds the slope of a tangent to the curve at a
particular point, whether the curve is linear or non-linear. Let us examine the
extended graph we have recently plotted :
University of
132 Sunderland
Business Modelling for Decision Making Unit 5 – Basic Forecasting Techniques
where the first (second) term in the brackets refers to the value of x (y) at
any particular point. These points are known as co-ordinates.
We can read from the graph, a value of y for any given value of x. Let us
examine the points y1 and y2, which have occurred due to plotting points
x1 and x2 respectively.
The distance from x1 (y1) to x2 (y2) is known as the change in the value of
x (y).
KEY POINT
Changes in value of y and/or x are normally written as :
*y and/or *x
University of
Sunderland 133
Unit 5 – Basic Forecasting Techniques Business Modelling for Decision Making
*y dy
'
*x dx
limit x –> 0
dy
Where is the derivative of the equation. More on the derivative later.
dx
Suppose y = 4 + 2x, then the ratio between y and x would be 2. i.e. when
x changes by one unit, y will change by 2 * one unit or by 2. Because y =
4 + 2x, then changes in x will produce changes in y of a similar direction.
(an increase in the value of x will produce an increase in the value of y
and vice-versa).
Suppose y = 4 - 2x, then the ratio between y and x would be -2. i.e. when
x changes by one unit, y will change by -2 * one unit or by -2. Because y
= 4 - 2x, then changes in x will produce changes in y of an opposite
direction. (an increase in the value of x will produce a decrease in the
value of y and vice-versa).
KEY POINT
As a recap, the ratio of the change in y by the change in x, gives us information
concerning
ACTVITY
An Economic example would be : Qd = f(P) = 20 - 4P.
(i.e. Quantity demanded (Qd) is a function of Price (P) and is equal to the value
of a constant (20) minus Price (P) times 4)
University of
134 Sunderland
Business Modelling for Decision Making Unit 5 – Basic Forecasting Techniques
ACTIVITY FEEDBACK
*Qd
' (4
*P
KEY POINT
Market Demand: The aggregate quantity demanded by all consumers
of a good/time period at various prices.
A much better picture of the economy for one good, might be as follows:
University of
Sunderland 135
Unit 5 – Basic Forecasting Techniques Business Modelling for Decision Making
Qs = -c + dP (c, d > 0)
We can also construct the graphs with Price being the dependent
variable and Quantity Demanded/Supplied as the independent
variable.
University of
136 Sunderland
Business Modelling for Decision Making Unit 5 – Basic Forecasting Techniques
KEY POINT
Assumptions for partial analysis:
1. The good is bought and sold in an isolated market (i.e. there are no
interactions between this market and the rest of the economy).
Therefore, a - bP = -c + dP
University of
Sunderland 137
Unit 5 – Basic Forecasting Techniques Business Modelling for Decision Making
a- bP + c = dP
a + c = dP + bP
a + c = (d + b)P
a -c
'P
(d - b)
The unique value for P is called the equilibrium value or the solution
value, and we normally depict equilibrium/solution values with a bar
above the character as such :
Qd = a - bP hence Qd ' a ( b
.a - c /
. d - b/
ACTIVITY
An example should help clarify this analysis :
ACTIVITY FEEDBACK
Equating Qd to Qs : 20 - 7P = -4 + 5P adding +4 to both sides
University of
138 Sunderland
Business Modelling for Decision Making Unit 5 – Basic Forecasting Techniques
24 = 12P
Therefore P = 24/12 = 2
Qd = 20 - 7P = Qd = 20 - 7(2) = Qd = 20 - 14 = 6 = Qd = Q
ACTIVITY
Another example :
ACTIVITY FEEDBACK
Equating Qd to Qs : 27 - 4P = -3 + 2P adding +3 to both sides
30 = 6P
Therefore P = 30/6 = 5
Qs = -3 + 2P = Qs = -3 + 2(5) = Qs = -3 + 10 = 7 = Qs = Q
University of
Sunderland 139
Unit 5 – Basic Forecasting Techniques Business Modelling for Decision Making
KEY POINT
Surveys do not supply the following information :
(1) The values for the coefficients in the demand function, i.e. a and b in Y
= a + bX.
(2) The method for predicting the quantity demanded for combinations of
values of the explanatory variables, other than those given (i.e. given
Q, find P).
University of
140 Sunderland
Business Modelling for Decision Making Unit 5 – Basic Forecasting Techniques
The line of best fit can be inserted at any position between the data
points. In order to present the most efficient line of best fit, we adopt
what is known as the Ordinary Least Squares (OLS) technique.
The OLS technique, provides a `line of best fit’, via MINIMISING the
square of the vertical distance between each data point (data
observation) and the OLS line.
University of
Sunderland 141
Unit 5 – Basic Forecasting Techniques Business Modelling for Decision Making
The OLS regression model (or equation presented via the OLS `line of
best fit’) can be presented as :
Note that factors captured in the error term may include consumers
tastes for example. Techniques to measure tastes, are not readily
available.
Suppose we `fit’ a linear line to the sample data. It is unlikely that all the
data will lie on the line. Suppose the population is correlated and a true
line is fitted to the population data. See the following diagram:
The distance between the population line and each data point (x), is
known as the disturbance term or error term at that point (eg P1Q1
implies U1, P2Q2 implies U2 etc.) The true model is represented as :
Qt = a + bPt + Ut
University of
142 Sunderland
Business Modelling for Decision Making Unit 5 – Basic Forecasting Techniques
The distance between the sample line and each data format (x), is
known as the sample error, termed RESIDUAL (e). The residuals are
assumed to affect the true error term (Ut).
1. Choice of Variables:
a and b are estimates which minimise the sum of squared residuals (i.e.
the distances between an actual observation and a desired observation,
which would appear on the line of best fit).
Qt = a + bPt + et
This can be re-arranged and expressed in terms of the residuals (et), i.e.
et = Qt - (a + bPt) or et = Qt - a - bPt
University of
Sunderland 143
Unit 5 – Basic Forecasting Techniques Business Modelling for Decision Making
and we can find a solution for the sum of the squared residuals from :
. /
n 2
0e t '1
2
t ' Q t ( a ( bPt
d0 e 2 t
. /. (1 / ' 0
n
' 0 e 2 t ' Q t ( a ( bPt
da t '1
d0 e 2 t
. /. (P / ' 0
n
' 0 e 2 t ' Q t ( a ( bPt t
db t '1
The above two equations can be rearranged to permit the solutions for a
and b to occur :
n. 0 Pt Q t / ( . 0 Pt /. 0 Q t /
b'
.0 P / ( .0 P /
n t
2
t
2
a'
.0 Q / ( b .0 P /
t t
n n
n. 0 XY / ( . 0 X/. 0 Y /
b'
n .0 X / ( . 0 X/
2 2
a'
. 0 Y / ( b . 0 X/
n n
5. Interpretation:
University of
144 Sunderland
Business Modelling for Decision Making Unit 5 – Basic Forecasting Techniques
ACTIVITY
Let us look at an example. Given the following data:
C1 1.0 1.1 0.9 1.2 2.0 2.1 3.0 3.4 2.9 1.8
C2 1.2 1.0 1.1 1.3 1.8 2.2 3.4 3.1 2.8 1.9
C3 1.3 1.2 0.8 1.4 1.9 2.3 3.1 3.7 2.7 1.6
(1) C1 = a + bC2
(2) C1 = a + bC3
(3) C2 = a + bC3
(4) C2 = a + bC1
(5) C3 = a + bC1
(6) C3 = a + bC2
ACTIVITY FEEDBACK
For columns C1 and C2, let C1 = Y and C2 = X then
n. 0 XY/ ( . 0 X/. 0 Y/
b'
.0 X / ( .0 X/
2 2
n
. ( 38412
4535 . 69.83
b' and b ' ' 101492
.
460.4 ( 392 .04 68.36
University of
Sunderland 145
Unit 5 – Basic Forecasting Techniques Business Modelling for Decision Making
a'
.0 Y/ ( b .0 X/
n n
a'
.19.4/ ( (1.01492) .19.8/
10 10
Correlation
The simple linear correlation coefficient (abbreviated to r) is a unit free
measure of the direction and strength of the linear association (i.e. a
linear line of best fit) between two (hence ‘simple’) random variables.
-1 " r " +1
When r is a positive (negative) value i.e. r > 0 (r < 0), the line is increasing
(decreasing).
University of
146 Sunderland
Business Modelling for Decision Making Unit 5 – Basic Forecasting Techniques
2 . 0 X/. 0 Y / 5
4. 0 XY / ( 7
43 n 76
rXY '
2 . 0 X/ 5 2 .0 Y / 5
2 2
4.0 X /
43
2
(
n
784 .0 Y /
76 43
2
(
n
7
76
University of
Sunderland 147
Unit 5 – Basic Forecasting Techniques Business Modelling for Decision Making
(1 " 9 " 1
60 D 2
9 '1 (
.
n n2 ( 1 /
Where n = number of observations and D = difference between the
observations.
ACTIVITY
Example: Two art critics were asked to grade 12 paintings. Their results were
as follows :
A 8 3 5 25
B 9 7 2 4
C 3 10 -7 49
D 10 2 8 64
E 11 11 0 0
F 7 12 -5 25
G 6 5 1 1
H 4 1 3 9
I 2 8 -6 36
J 1 4 -3 9
K 5 6 -1 1
L 12 9 3 9
232
University of
148 Sunderland
Business Modelling for Decision Making Unit 5 – Basic Forecasting Techniques
ACTIVITY FEEDBACK
Using the formulae to solve for 9:
60 D2
9 ' 1(
.
n n 2 (1/
6.232 /
9 ' 1(
12 .144 -1/
and 9 = 0.19 and since 0.19 is close to zero, we can state that there is not a
strong non linear association between the two art critics, i.e. each art critic
appears to have reached his decision independent of the other.
University of
Sunderland 149
Unit 5 – Basic Forecasting Techniques Business Modelling for Decision Making
University of
150 Sunderland
Business Modelling for Decision Making Unit 5 – Basic Forecasting Techniques
Given these six assumptions, we are able to represent our model as the
Classical Normal Linear Regression Model (CNLR). The CNLR model
has three unknown parameters; i.e. ), & and the variance (:2) of the
disturbance term (U).
We have already used Ordinary Least Squares (OLS) to solve for ) and
&. In this module, we are not interested in the variance of the disturbance
term.
REVIEW ACTIVITY
Question No. 1 (Manual work – use calculators)
The manager of the ‘Sizzling Gastropod’ bistro, provides a delivery service for
customers who telephone in an order. The manager would like to give callers
an idea of the time it will take to deliver their order. This depends upon the
distance of the customer from the bistro. The records of the last 12 deliveries
are shown in the following table:
University of
Sunderland 151
Unit 5 – Basic Forecasting Techniques Business Modelling for Decision Making
2.3 5
6.7 13
7.5 10
3.1 5
4.6 9
3.9 8
8.7 15
9.8 20
10.1 18
6.5 13
7.3 12
5.2 9
0 XY ' 988.9, N = 12
X ' 6.308, Y ' 11.416, 0X 2
' 5730.49, 0Y 2
' 18769
The value of the correlation coefficient for this data is r = 0.948, which is very
close to unity. This indicates that distance would be a good predictor of time.
University of
152 Sunderland
Business Modelling for Decision Making Unit 5 – Basic Forecasting Techniques
REVIEW ACTIVITY
Question No. 2 (Computer work - use Excel)
A market analyst working for a large company wishes to establish a method for
predicting the number of sales a salesperson will achieve for a given number of
sales calls on customers. To this end, the analyst collects a sample of 20 sales
people and for each such person the analyst records :
b. The average number of calls made in a week, and all results are
displayed as follows:
Sales Person No. of Calls No. of Sales Sales Person No. of Calls No. of Sales
1 26 11 11 23 11
2 13 7 12 25 7
3 21 8 13 38 18
4 37 20 14 33 14
5 17 9 15 12 2
6 20 12 16 30 15
7 17 4 17 30 10
8 28 16 18 10 4
9 28 11 19 18 7
10 6 2 20 21 10
University of
Sunderland 153
Unit 5 – Basic Forecasting Techniques Business Modelling for Decision Making
(Y) variable, then the slope = 0.5116 and the intercept is -1.6869,
University of
154 Sunderland
Business Modelling for Decision Making Unit 5 – Basic Forecasting Techniques
! The slope coefficient provides the rate at which sales are made for a
given change in calls. In our case, for every one unit change in the
number of visits, the number of sales will change by 0.5116 units.
Generally, the intercept coefficient does not provide us with any
useful information. In our case, when the number of visits is equal to
zero, the number of sales is -1.6869 (which does not make sense).
Summary
Regression analysis using two variables and the calculation of linear
correlation coefficients have been introduced in this unit and enable the
student to carry out an effective analysis of data. Methods for carrying
out the necessary calculations, either by hand or using appropriate
software, have also been described.
University of
Sunderland 155
Unit 6
Inventory Control
Introduction
Stock control, otherwise known as inventory control, is used to show
how much stock you have at any one time, and how to keep track of it.
Efficient stock control allows you to have the right amount of stock in
the right place at the right time. It ensures that capital is not tied up
unnecessarily, and protects production if problems arise with the
supply chain.
Types of Stock
Everything you use to make your products, provide your services and
to run your business is part of your stock. The type of stock can
influence how much you should keep.
University of
Sunderland 157
Unit 6 – Inventory Control Business Modelling for Decision Making
your stock levels are limited by capital, this will help you to plan
expenditure on new and replacement stock.
Ask yourself some key questions to help decide how much stock you
should keep:
! Demand is certain.
! Goods are produced in batches.
! You are completing a large order.
Consumables
For example, fuel and stationery. How much stock you keep will
depend on factors such as:
! Reliability of supply.
! Expectations of price rises.
! How steady demand is.
University of
158 Sunderland
Business Modelling for Decision Making Unit 6 – Inventory Control
The question then arises: how much stock should we have? It is this
simple question that inventory control theory attempts to answer.
Keeping a lot:
Advantages Disadvantages
You never run out. Stock may become obsolete before it is used.
This might suit your business if sales are difficult to predict (and it is
hard to pin down how much stock you need and when), you can store
plenty of stock cheaply, the components or materials you buy are
unlikely to go through rapid developments or they take a long time to
re-order.
Advantages Disadvantages
Efficient and flexible. You only have what you need, Meeting stock needs can become complicated and
when you need it. expensive.
Lower stock and storage costs. You might run out of stock if there’s a hitch in the
system.
You can keep up-to-date and develop new products You are dependent on the efficiency of your suppliers.
without wasting stock.
University of
Sunderland 159
Unit 6 – Inventory Control Business Modelling for Decision Making
We shall consider the problem of ordering raw material stock but the
same basic theory can be applied to the problems of:
The costs that we need to consider so that we can decide the amount of
stock to have can be divided into stock holding costs and stock ordering
(and receiving) costs as below.
! storage costs
! rent/depreciation
! labour
! overheads (e.g. heating, lighting, security)
! money tied up (loss of interest, opportunity cost)
! obsolescence costs (if left with stock at end of product
life)
! theft/insurance
University of
160 Sunderland
Business Modelling for Decision Making Unit 6 – Inventory Control
Given a stockout the order may be lost completely or the customer may
choose to backorder, i.e. to be prepared to wait until we have sufficient
stock to supply their order.
Note here that whilst conceptually we can see that these cost elements
are relevant it can often be difficult to arrive at an appropriate numeric
figure (e.g. if the stock is stored in a building used for many other
purposes, how then shall we decide an appropriate allocation of
heating/lighting/security costs).
Manufacturing
Work in progress
Cost
Revenue
Raw materials arrivals (restocking)
Sales of finished goods (destocking)
Stocks may be held for a variety of reasons. They may be stocks of raw
materials ready for production, they may be work-in-progress
(production part way through the production process) or they may be
stocks of finished goods. Whichever they are it is vital for the firm to
control the level of stocks very carefully. Too little and they may run
into production problems, but too much and they have tied up money
unnecessarily.
University of
Sunderland 161
Unit 6 – Inventory Control Business Modelling for Decision Making
The main theories about stocks then are to do with stock control. There
are various different ways to approach stock control:-
Reorder level
Minimum stock
Time
The distance between the re-order line and the minimum stocks level
depends how long it may take for the order to arrive - this time is known
as the lead time.
This method is exactly as its title suggests. The firm re-orders stocks at a
fixed time each month or week. It can offer a good solution as it
represents a routine for the firm and ensures that stocks are regularly
supplemented. However, it may well mean the level of stocks
fluctuating quite a bit depending on the rate they are used up. It is a little
inflexible as a system as well unless used very carefully.
For any company there is an optimum level of stocks. The precise level
of this will vary in different firms and industries. They have to balance
the costs of holding stocks (the space taken, the money tied up, etc.)
with the costs of ordering stock. The more firms order at once, the better
the deal they will usually get.
University of
162 Sunderland
Business Modelling for Decision Making Unit 6 – Inventory Control
The level of stocks that strikes the balance between these two things is
known as the Economic Order Quantity. If this is taken to be the
optimum level of stocks it should help to minimise the firm’s costs - an
important pre-requisite to maximising profit.
Just-in-time production
This can be wonderful for helping to reduce the need for working
capital, but requires a very high level of organisational skill and a very
close relationship with suppliers.
These methods can be used alongside other processes to refine the stock
control system. For example:
Re-order lead time - allows for the time between placing an order and
receiving it.
2DC
EOQ '
Ch
If your needs are predictable, you may order a fixed quantity of stock
every time you place an order, or order at a fixed interval - say every
week or month. In effect, you’re placing a standing order, so you need to
keep the quantities and prices under review.
First in, first out - a system to ensure that perishable stock is used
efficiently so that it doesn’t deteriorate. Stock is identified by date
received and moves on through each stage of production in strict order.
University of
Sunderland 163
Unit 6 – Inventory Control Business Modelling for Decision Making
Inventory Costs
An inventory can best be described as the entire stock of a company.
This will include all completed items, which are awaiting dispatch,
semi-completed stock, raw materials and all supplies necessary for the
company to run in an efficient manner. Indeed, it will include every
item relevant to the operation of that business.
KEY POINT
The main aim of inventory control is to reduce all costs to a minimum, whilst at
the same time, maintaining an optimum amount of stock. The frequency of
re-ordering materials must also be calculated to allow the effective use of
inventory control.
Lead time is the time elapsed between the initiation of an order and the
completed production of the item. This may be wholly within the
company or through to point of sale.
University of
164 Sunderland
Business Modelling for Decision Making Unit 6 – Inventory Control
KEY POINT
Inventory costs fall into two main categories;
A smaller, but not insignificant, cost should not be neglected when stock
runs out. This may lead to penalty payments, loss of goodwill and staff,
and machinery idle. This cost can be almost totally avoided by adequate
inventory control.
University of
Sunderland 165
Unit 6 – Inventory Control Business Modelling for Decision Making
Stock
level
b
d
a
e
c
University of
166 Sunderland
Business Modelling for Decision Making Unit 6 – Inventory Control
Q
Stock level
0
Time
Assuming the four triangles imply one cycle, and we let the maximum
stock level (Q) = 800 then
KEY POINT
There are two standard methods of inventory control;
University of
Sunderland 167
Unit 6 – Inventory Control Business Modelling for Decision Making
Lro = maximum usage per period (L) x maximum lead time (ro)
The minimum level must be defined so that, when stock levels reach
this point, a warning is given. Such a point should only be reached as a
result of high, unpredicted demand or problems with supply.
University of
168 Sunderland
Business Modelling for Decision Making Unit 6 – Inventory Control
ACTIVITY
A retailer expects to sell about 200 units of a product per year. The storage
space taken up in his premises by one unit of this product is costed out at £20
per year. If the cost associated with ordering is £35 per order, what is the
economic order quantity given that interest rates are expected to remain close
to 10% per year and the total cost of one unit is £100.
University of
Sunderland 169
Unit 6 – Inventory Control Business Modelling for Decision Making
ACTIVITY FEEDBACK
We use the EOQ formula,
2DC
EOQ '
Ch
Ch = £20 (direct storage cost per unit per year) + £100 x 0.10 (this term the
money interest lost if one unit sits in stock for one year)
2DC
Hence EOQ '
Ch
; 35 >
' = 2 8 200 8 @ ' 21602
.
< 30 ?
EOQ = 22
University of
170 Sunderland
Business Modelling for Decision Making Unit 6 – Inventory Control
With this EOQ we can calculate our total annual cost from the equation
Total annual cost = Ch(Q/2) + Co( (D)/Q) (where ‘Q’ = EOQ value)
Total annual cost = (30 x 22/2) + (35 x 200/22) = 330 + 318.2 = £648.2
Note: If we had used the exact Q value given by the EOQ formula (i.e.
Q=21.602) we would have had that the two terms relating to annual holding
cost and annual order cost would have been exactly equal to each other
i.e. holding cost = order cost at EOQ point (or, referring to the diagram above,
the EOQ quantity is at the point associated with the Holding Cost curve and
the Order Cost curve intersecting).
In other words, as in fact might seem natural from the shape of the Holding
Cost and Order Cost curves, the optimal order quantity coincides with the
order quantity that exactly balances Holding Cost and Ordering Cost.
Note however that this result only applies to certain simple situations. It is not
true (in general) that the best order quantity corresponds to the quantity
where holding cost and ordering cost are in balance.
ACTIVITY
The demand for an item in production in an organisation is found to be
constant at 20 items per month. The unit cost is £50, the cost of processing an
order is £60 and the holding cost is £18 per unit per year.
University of
Sunderland 171
Unit 6 – Inventory Control Business Modelling for Decision Making
ACTIVITY FEEDBACK
Listing the values we know,
2DC o 2 8 60 8 40
EOQ ' Q o ' ' ' 40 units
Ch 18
The amount of stock delivered during a cycle is Q, and the amount leaving is
DT, where T is the length cycle. These must be equal,
which is 40 = 240 x To
University of
172 Sunderland
Business Modelling for Decision Making Unit 6 – Inventory Control
Note the appearance here of the figure of 20,000 relating to material cost.
This is calculated from using 200 units a year at a unit cost of £100 each.
Strictly, this cost term should have been added to the total annual cost
equation (Ch(Q/2) + Co(R/Q)) we gave above. We neglected it above as
it was a constant term for this example and hence did not affect the
calculation of the optimal value of Q. However, we will need to
remember to include this term below when we come to consider
quantity discounts.
ACTIVITY
In our previous activity, suppose for administrative convenience we ordered
20 and not 22 at each order – what would be our cost penalty for deviating
from the EOQ value?
ACTIVITY FEEDBACK
With a Q of 20 we look at the total annual cost
= (ChQ/2) + (CoD/Q)
Hence the cost penalty for deviating from the EOQ derived value of 22 and
ordering 20 at each order is £650 - £648.2 = £1.8
Note that this is, relatively, a very small penalty for deviating from the EOQ
value. This is usually the case in inventory problems i.e. the total annual cost
curve is flat near the EOQ so there is only a small cost penalty associated with
slight deviations from the EOQ value (see the diagram above).
University of
Sunderland 173
Unit 6 – Inventory Control Business Modelling for Decision Making
The above cost calculation can also be done using suitable software - see
below.
(Note: it can be seen that the values in the right-hand column for Order
Quantity, Total Ordering Cost and Total Holding Cost come directly
from our earlier calculations. The Total Material Cost and the Grand
Total Cost are found by simple addition.)
Inventory Models
Two mathematical models can be applied to inventory control. These
are known as the basic model and the adapted basic model. Both the
models assume a cyclic nature and work most effectively over a yearly
period.
University of
174 Sunderland
Business Modelling for Decision Making Unit 6 – Inventory Control
;D> ;q>
= C o == @@ - C h = @
<q? <2?
It can also be shown that that the minimum inventory cost is achieved
when q takes the value of the Economic Ordering Quantity (EOQ).
2DC o
EOQ '
Ch
ACTIVITY
A component has a demand of 1800 per year. Each order placed costs £25.
Holding costs are £ 0.22 per item per year.
University of
Sunderland 175
Unit 6 – Inventory Control Business Modelling for Decision Making
ACTIVITY FEEDBACK
Using the EOQ formula,
2DC o
EOQ =
Ch
2 (1800)(25)
=
0.22
= 1800 / 639.6
= 2.8 Effectively, 3
= 365 / 2.8
The adapted basic model allows for the gradual replacement of stock over a
period of time. This allows for the case where stock is manufactured on an
internal production line and, hence, becomes continually available.
The adapted basic model, or production run model, assumes the same
conditions except for:
A production run is started every time the stock level falls to zero and stops
when q items are available. The run takes time t, and is called the runtime.
The quantity ordered each cycle is called the run size, items being supplied at a
rate of r per year.
The adapted basic model gives a formula for the Economic Batch Quantity
(EBQ)
2DC o
EBQ =
; D>
C h =1 ( @
< r?
Note also
University of
176 Sunderland
Business Modelling for Decision Making Unit 6 – Inventory Control
ACTIVITY
A manufactured item requires a continuous supply of 2800 items per year,
which are supplied from a factory production run at a constant rate of 6000
per year. The cost of each production run is £ 32 and each item has an
associated holding cost of £ 0.15.
The EBQ.
Length of cycle.
Run time.
ACTIVITY FEEDBACK
Using the equation,
2DC o
EBQ =
; D>
C h =1 ( @
< r?
University of
Sunderland 177
Unit 6 – Inventory Control Business Modelling for Decision Making
ACTIVITY
A company has found that demand for an item is constant at 20 units per week,
the reorder cost is £125 an order, and the holding cost is £2 per unit per week.
If suppliers guarantee delivery within two weeks, what is the best ordering
policy?
ACTIVITY FEEDBACK
The information provided gives us:
L = 2 weeks
2DC o 2 8125 8 20
EOQ ' Q o ' ' ' 50 units
Ch 2
University of
178 Sunderland
Business Modelling for Decision Making Unit 6 – Inventory Control
The best policy, therefore, is to place an order for 50 units whenever stock
declines to a minimum level of 40 units. We can find the cycle length, “To”,
from
Qo = DTo
Codes, including barcodes, can make the whole process much easier
but it can still be quite time-consuming. Checking stock more frequently
- a rolling stocktake - avoids a massive annual exercise, but demands
constant attention throughout the year. Radio Frequency Identification
(RFID) tagging using hand-held readers can offer a simple and efficient
way to maintain a continuous check on inventory.
The simplest manual system is the stock book, which suits small
businesses with few stock items. It enables you to keep a log of stock
received and stock issued.
Stock cards are used for more complex systems. Each type of stock has
an associated card, with information such as:
! Description
University of
Sunderland 179
Unit 6 – Inventory Control Business Modelling for Decision Making
! Value
! Location
! Re-order levels, quantities and lead times (if this method
is used)
! Supplier details
! Information about past stock history
The system will only be as good as the data put into it. Run a thorough
stocktake before it goes “live” to ensure accurate figures. It’s a good
idea to run the previous system alongside the new one for a while,
University of
180 Sunderland
Business Modelling for Decision Making Unit 6 – Inventory Control
giving you a back-up and enabling you to check the new system and
sort out any problems.
Just-in-time (JIT)
Just-in-time (JIT) is easy to grasp conceptually, everything happens
just-in-time. For example consider my journey to work this morning, I
could have left my house, just-in-time to catch a bus to the train station,
just-in-time to catch the train, just-in-time to arrive at my office,
just-in-time to pick up my lecture notes, just-in-time to walk into a
lecture theatre to start the lecture. Conceptually there is no problem
about this, however achieving it in practice is likely to be difficult!
University of
Sunderland 181
Unit 6 – Inventory Control Business Modelling for Decision Making
Ohno felt that such methods would not work in Japan - total domestic
demand was low and the domestic marketplace demanded production
of small quantities of many different models. Accordingly Ohno
devised a new system of production based on the elimination of waste.
In his system waste was eliminated by:
University of
182 Sunderland
Business Modelling for Decision Making Unit 6 – Inventory Control
All this has been achieved without sacrificing the benefits of JIT.
KEY POINT
JIT outline points
Originated in Japan.
University of
Sunderland 183
Unit 6 – Inventory Control Business Modelling for Decision Making
KEY POINT
JIT philosophy
Elements of JIT
University of
184 Sunderland
Business Modelling for Decision Making Unit 6 – Inventory Control
JIT need not be applied to all stages of the process. For example we
could keep large stocks of raw material but operate our production
process internally in a JIT fashion (hence eliminating work-in-progress
stocks).
University of
Sunderland 185
Unit 6 – Inventory Control Business Modelling for Decision Making
Now the company can see the rocks (problems) and hopefully solve
them before it runs aground!
Benefits of JIT
The benefits of JIT are:
! Cost savings.
! Higher productivity.
! Higher worker participation.
University of
186 Sunderland
Business Modelling for Decision Making Unit 6 – Inventory Control
Suppliers
Suppliers can be crucial to JIT success.
Supplier gets:
University of
Sunderland 187
Unit 6 – Inventory Control Business Modelling for Decision Making
With suppliers satisfying these criteria you can reduce the total number
of suppliers, indeed it seems logical so to do. If you had five suppliers
meeting all these criteria, why do you need five? Obviously you might
decide to have more than one supplier for safety reasons. Even the best
run supplier can suffer a factory fire or an earthquake, but probably no
more than two or three suppliers.
Having a single supplier may be attractive in cost terms, but one does
need to balance the risk (albeit a low probability risk - perhaps a fire
every 100-250 years, say) against the cost savings.
Case Study
Andrea Jones is managing director of Liversedge-based Systems
(Telecoms) Limited, a business specialising in the next-day delivery of
refurbished telecommunications equipment.
“We bought our computer system with its accounting software, Sage
Line 100, when we were turning over £500,000 a year. It cost a lot of
money but I got it on a five-year lease and I only paid £50 a week. I
couldn’t have got anybody to do the stock work for £50 a week.
“As an item comes in it gets barcoded and then it’s logged on to the
system under a purchase order with the serial number, stock code and
details of the product. The product then goes down to our test room for
refurbishing.
“The system can tell you whether any item has been tested or not and
exactly where it’s located in the warehouse.
University of
188 Sunderland
Business Modelling for Decision Making Unit 6 – Inventory Control
“We use lots of paper, lever arch files, pens and ink cartridges.
Everything is kept on bookshelves and I can see instantly what’s in and
what we’re running low on. I do a stationery order every couple of
weeks or so - though I try to time it with when there are special offers in
the stationery catalogue I use.
“When I get home I can click on two buttons and I’m basically sitting in
my office. This means I can keep an eye on my stock at all times and I do
a lot of bidding for products from home, for example on eBay. I can also
complete purchase orders from home.”
REVIEW ACTIVITY
News vendor problem
Consider a news vendor who stands on the street and sells an evening paper.
How many copies should he stock?
He sells the paper to his customers for 35 pence a copy. He pays his supplier
20 pence a copy, but any unsold copies can be returned to the supplier and he
gets 10 pence back. This is known as a salvage value.
Assume that his demand for copies on any day is a Normal distribution of mean
100 and standard deviation 7.
University of
Sunderland 189
Unit 6 – Inventory Control Business Modelling for Decision Making
This tells us he should stock 104.7 (say 105) copies of the paper. This service
level of 75% means that, on average, he will be able to completely supply his
customers on 75 days in every 100, i.e. 3 days out of 4. The remainder of the
time (1 day out of 4) he will experience shortages, some customers will not be
able to buy a copy from him as he will have run out. (Note that in this example
the software has calculated an optimal order quantity based on the statistical
information provided and the arbitrarily chosen service level of 75%.)
More sophisticated variants of this simple model can be used, for example, to
decide how many copies of a magazine to have on a shelf in a newsagent (such
as W.H.Smith).
In other words:
! for the news vendor problem it was only the uncertainty that
created the decision problem.
University of
190 Sunderland
Business Modelling for Decision Making Unit 6 – Inventory Control
Summary
Effective inventory control depends on the nature of the business and
the market in which it operates. This unit has described a range of
inventory control methods, concentrating on optimal stock levels and
the Just-in-time model.
University of
Sunderland 191
Unit 7
Introduction
Setting up and testing hypotheses is an essential part of statistical
inference. In order to formulate such a test, usually some theory has
been put forward, either because it is believed to be true or because it is
to be used as a basis for argument, but has not been proved, for example,
claiming that a new drug is better than the current drug for treatment of
the same symptoms.
Hypothesis Testing
If we have some idea of a parameter’s value, (prior), we can use the
techniques of hypothesis testing to examine whether or not, our prior is
substantiated by the sample data.
University of
Sunderland 193
Unit 7 – Sampling Theory and Statistical Inference Business Modelling for Decision Making
In this case, the consumer periodical might accept the company’s claim
of x = 2000 hours, based upon the results of this second test.
This simply means that if the population mean is equal to 2000 hours
and, using a sample, we find the sample mean to be greater or equal to
1950 hours, then we accept the hypothesis, i.e. the manufacturers claim
to a population mean of 2000 hours is true.
Hence, two types of error exist. They are known as type I and type II
errors. We can represent these errors in the figure below.
The value of ) and/or &, is/are known as the significance level of the
test. Significance levels can be set to any value but, the most common
used levels are 0.1, 0.05 or 0.01
University of
194 Sunderland
Business Modelling for Decision Making Unit 7 – Sampling Theory and Statistical Inference
Hypothesis
e.g. H1 : x < 2000 hours (i.e. the mean is less than 2000 hours).
The null hypothesis should always enclose the equality sign. E.g. Ho : x
= 2000 or Ho : x # 2000 or Ho : x " 2000
Errors
University of
Sunderland 195
Unit 7 – Sampling Theory and Statistical Inference Business Modelling for Decision Making
Suppose the critical value is 2050 hours (implying that values greater
than 2050 hours should cause Ho to be rejected).
In this case, then values of x under area A (which could rightfully have
originated under distribution 0), will be high enough to cause a rejection
of Ho, when in fact it is correct. This would be a type I error.
H 1 : x > xo
.X ( B / ~ t
0
(n ( 1), )
s2
n
University of
196 Sunderland
Business Modelling for Decision Making Unit 7 – Sampling Theory and Statistical Inference
t(n-1),) represents the value of t which leaves an area ‘)’ in the ‘t’
distribution.
If
.X ( B / C t
0
(n ( 1), )
s2
n
We can summarise the procedure for the hypothesis test (right tailed) :
s2
n
where X = sample mean, s 2 = sample variance, n = sample size,
Bo = hypothesised value.
6. Compare t(n-1),) with the solution found in (5) above.
7. Given the hypotheses as stated as an example in (2) above, then if
the solution to (5) above, is less or equal to the value found in the
‘t’ tables, as in (4) above, we can accept H o at the significance
level. Otherwise, we would reject H o.
ACTIVITY
The government health department release the following statement: ‘The
average wait for an operation does not exceed 20 weeks’.
The National Patients Care Society, are sceptical and decide to test this
statement. Their findings are as follows :
Given this data, is the government correct? (Use ) = 0.1 and ) = 0.05)
University of
Sunderland 197
Unit 7 – Sampling Theory and Statistical Inference Business Modelling for Decision Making
ACTIVITY FEEDBACK
Ho : B0 " 20 and H1 : Bo > 20
Given two different significant values and constant information, we assume the
solution of the test statistic will be constant for both significance levels.
Therefore, we only need to calculate the test statistic once and compare its
value to the values obtained from the tables at ) = 0.1 and ) = 0.05.
.X ( B / 0
=
.216. ( 20/ = 1.6865
s2 ; 22 .5 >
= @
n < 25 ?
at ) = 0.1 ...
at ) = 0.05 ...
At ) = 0.1 (0.05) the government are incorrect (correct) with their statement.
p - Values
KEY POINT
If Ho is true, the p - value is the probability of obtaining a sample result i.e. a
standardised test statistic value, which is more extreme than the one obtained.
This means the p - value is the smallest level of significance at which the given
sample observations would lead us to reject Ho.
University of
198 Sunderland
Business Modelling for Decision Making Unit 7 – Sampling Theory and Statistical Inference
Procedure:
2
s
n
where X = sample mean, s 2 = sample variance, n = sample size,
Bo = hypothesised value.
5. Determine the p - value associated with this test statistic (see
below).
6. Accept Ho if p - value " ), otherwise reject Ho.
Calculating p - values
1,6865 ( 1. 3178
' 0. 9379
1,7109 ( 1. 3178
Hence p - value = 0.1 - 0.9379(0.1 - 0.05) ==> 0.1 - 0.0469 giving the p -
value = 0.0531 and means the probability of obtaining a sample mean
which gives a standardised statistic greater than 1.6865 when B " 20, is
0.0531.
University of
Sunderland 199
Unit 7 – Sampling Theory and Statistical Inference Business Modelling for Decision Making
Hence if p - value > ), then we accept Ho i.e. 0.0531 > 0.05 ==> accept Ho
@ ) = 0.05
Ho : B # Bo and H1 : B < Bo
ACTIVITY
The average shelf life of a consumable is 60 days. A sample of n = 20 is taken
and tested. The results show that the sample mean life is 58 days, with a
variance of 13. Is the average life of 60 days justified ?
ACTIVITY FEEDBACK
n = 20; X = 58 and s2 = 13
The minus sign indicates that we are in the left hand side of the distribution.
Using
.X ( B / 0
=
.58 ( 60/ = -2.4807
s2 ; 13 >
= @
n < 20 ?
and -2.4807 > -2.5395. ==> accept Ho @ ) = 0.01 i.e. B >= 60 days
University of
200 Sunderland
Business Modelling for Decision Making Unit 7 – Sampling Theory and Statistical Inference
Ho : B = Bo and H1 : B D Bo
i.e. in H1, B is greater or less than the value for Bo implying that Ho will
exist in between two confidence limits.
KEY POINT
A small point on hypothesis testing :
When attempting to decide the type of test (i.e. right tailed, left tailed or two
tailed), use the alternative hypothesis (H1) as a guide. In most cases ..
H1 indicating the greater than (>) sign, means a right tailed test,
H1 indicating the less than (<) sign, means a left tailed test,
H1 indicating the not equal (D) sign, means a two tailed test.
The direction of the sign (e.g. > implies a right tailed test), indicates the
type of test.
Note: the equality sign (=) should always appear within the null
hypothesis (Ho).
s2
n
University of
Sunderland 201
Unit 7 – Sampling Theory and Statistical Inference Business Modelling for Decision Making
ACTIVITY
Assume a salary mean of £ 15000 pa, n = 28 employees,
We have reason to believe that salaries will be greater or less than £15000 (i.e.
not equal to £15000 pa). Is this true?
ACTIVITY FEEDBACK
Ho : B = £15000; H1 : B D £15000 (two tailed test)
using ) = 0.1 and on a two tailed test, we need to halve the significance level
and apply each half to each tail. Therefore, )/2 = 0.05
Using
.X ( B / 0
=
.14650 (15000/ = -1.9001
s2 ; 950000 >
= @
n < 28 ?
and -1.9001 is outside the limits of 1 1.7033 => reject Ho @ ) = 0.1 concluding
that we have evidence to suggest that the salaries are not equal to £15000 pa.
University of
202 Sunderland
Business Modelling for Decision Making Unit 7 – Sampling Theory and Statistical Inference
ACTIVITY
Maximum mortgage from bank = 2.5 * Gross annual earnings of house buyer.
ACTIVITY FEEDBACK
Ho : Bo " 2.5; and H1 : Bo > 2.5 (one tailed RHS test)
test statistic:
.X ( B / ~ t
0
(i)
(n (1),)
s2
n
and
.2 .55 ( 2 .5/ = 0.7143
; 0196
. >
= @
< 40 ?
NOTE: if Ho is correct then Bo = 2.5 and we can rearrange (i) above to give :
University of
Sunderland 203
Unit 7 – Sampling Theory and Statistical Inference Business Modelling for Decision Making
s2 ; 0196
. >
X = tn-1,) x + Bo or X = 1.6849 x = @ + 2.5 = 2.618
n < 40 ?
A type II error occurs when X " 2.618 and Ho : Bo = 2.5 is accepted, when in
fact the earnings ratio is actually > 2.5 (2.55 in this case). A type II error can
only be made if Ho is incorrect. Hence to calculate the probability of a type II
error :
(b) In a right tail test, we need only consider correct values for Bo > 2.5.
Example ..
Suppose Bo = 2.57 then the probability of X > 2.618 implies the probability of
a type II error.
University of
204 Sunderland
Business Modelling for Decision Making Unit 7 – Sampling Theory and Statistical Inference
Areas to the left hand side of the vertical line at 2.618, indicate the probability
of making a type II error, when Ho : Bo " 2.5 and when actual mean values are
(in fact) :
a. Bo = 2.57,
b. Bo = 2.64,
c. Bo = 2.68.
Bo (the mean value) occurs at the central point in all three respective
distributions.
The area to the left of X (sample mean) = 2.618, which depicts the sampling
distribution of X, when Bo = 2.57, represents the probability of making a type II
error.
Area of LHS, i.e from the start of the left hand side of the distribution to Bo =
2.57 plus from Bo = 2.57 to the sample mean of 2.618
Clearly, the LHS area = 0.5 (since the distribution is symmetrical, hence half
the distribution is 50 % or 0.5),
.X ( B / 0
=
.2 .618 (12 ,57/ = 0.686
s2 ; 0196
. >
= @
n < 40 ?
Using tables (Area of standardised normal tables) 0.686 (in tables), = 0.2483
(i.e. the area from 2.618 to the right hand side end of the distribution) and
implies:
University of
Sunderland 205
Unit 7 – Sampling Theory and Statistical Inference Business Modelling for Decision Making
and the RHS area (from Bo = 2.57 to the sample mean of 2.618) = 0.5 - 0.2483
= 0.2517
Therefore, required area (from the start of the left hand side of the
distribution to the sample mean of 2.618) = 0.5 + 0.2517 or 0.7517
Hence, the probability of committing a type II error when Bo = 2.57 and the
sample mean is 2.618, is 0.7517 = &
Power of a Test
KEY POINT
The power of a test is defined as the probability of rejecting (correctly), the
null hypothesis when it is “false” and occurs at 1 - & where & = probability of a
type II error.
Suppose we set values for ) and &. What would be the required sample
size (n) to achieve these values?
. /
2
: Z) - Z&
n'
d
University of
206 Sunderland
Business Modelling for Decision Making Unit 7 – Sampling Theory and Statistical Inference
ACTIVITY
Suppose the lending to earnings ratio of borrowers has a mean of 2.5. Suppose
now, that it is decided to increase the mean to 2.6. If P(type I error) = 0.05, and
is kept constant, and P(type II error) " 0.1, then what should be the sample size?
ACTIVITY FEEDBACK
) = 0.05, &. = 0.1 (max); for ), Z0.05 = 1.645; for &., Z0.1 = 1.282;
d = 2.5 - 2.6 = - 0.1
: = UNKNOWN! let us use the ‘best’ likely value, e.g. historical evidence
(empirical evidence). Assume :2 = 0.196, therefore, : = 0196
. = 0.4427
and we can ignore the negative value in favour of an actual value (absolute
value) which means a sample size of n = 168.
Using this value, then the new critical value is tn-1,) or t167,0.05 = 1.645 and we
would reject Ho if our ANSWER > 1.645
University of
Sunderland 207
Unit 7 – Sampling Theory and Statistical Inference Business Modelling for Decision Making
Z'
.p ( $ 0 / ' p ($0
:p $ 0 .1 ( $ 0 /
n
(4) If using p-value approach, find p-value associated with the value
of the standardised test statistic.
(5) If using classical approach, find Z) or Z)/2 depending upon
whether a one or two tailed test is employed.
(6) Compare : either the p-value with ), or the critical value (Z) with
the standardised test statistic.
(7) Use the appropriate decision rule to either accept or reject H o.
Example
.p ( $ 0 / or
0.8 ( 0.75
' 1.1547
:p 0.75.1 ( 0.75 /
100
University of
208 Sunderland
Business Modelling for Decision Making Unit 7 – Sampling Theory and Statistical Inference
and 1.1547 < 1.645, implying accept Ho @ ) = 0.05 i.e. there is not enough
evidence to suggest that the publicity campaign was successful.
Example
Assume the same problem as above, i.e. that Ho: $ " 0.75 and H1: $ >
0.75
The Classical approach for the right tail test, gave us a critical value of
1.1547. To use the p-value approach, we need to find a value greater
than the critical value of 1.1547.
From Z tables, 1.1547 = 0.3764. Hence, we need to know the area under
the curve, in the right hand tail. See the figure below.
When Z = 1.1547, the shaded area represents 37.64 % of the total shaded
area under the curve.
We find the area to the right of Z = 1.1547 via 0.5 - 0.3764 = 0.1236,
University of
Sunderland 209
Unit 7 – Sampling Theory and Statistical Inference Business Modelling for Decision Making
.p ( $ 0 /
:p
$ 0 .1 ( $ 0 /
to (p-value) * -$0
n
ACTIVITY
Suppose that prior to a large scale programme of privatisation, the
government believe that the proportion of males between 30-54 years of age,
who owned shares, was 0.1. A journalist takes a random sample of 50 males in
that age group, after the privatisation programme, and finds the sample
proportion of share holders to be 0.15. Has there been a significant change in
the proportion of share-owners?
University of
210 Sunderland
Business Modelling for Decision Making Unit 7 – Sampling Theory and Statistical Inference
ACTIVITY FEEDBACK
Ho: $ = 0.1 ; H1: $ D 0.1 ; Let ) = 0.05 therefore )/2 = 0.025
.p ( $ / 0
or
0.15 ( 0.1
' 1.178
:p 0.1.1 ( 0.1/
50
and - Z)/2 = - 1.96 ; Z)/2 = + 1.96 and (clearly), -1.96 < 1.178 < 1.96
Therefore, we accept Ho @ ) = 0.05 (or )/2 = 0.025), i.e. there is not enough
evidence to suggest ownership of shares has changed from 0.1 of the population.
. n ( 1 /s 2
:2
(4) For CLASSICAL APPROACH, use CHI-SQUARE tables to
determine the critical value of A 2n-1,) (right tail test) or A 2n-1,1-)
(left tail test), or A 2n-1,1-)/2 and A 2n-1,)/2 (two tailed test).
(5) For p-value approach, determine the p-value associated with the
value of the standardised test statistic.
(6) Compare either :
(a) the critical A 2 value to the test statistic value OR
University of
Sunderland 211
Unit 7 – Sampling Theory and Statistical Inference Business Modelling for Decision Making
ACTIVITY
Right Tailed Test of :2
The manager has previously set s2 = 9 (implying sd or STD error [SE] = 3 mins)
as the maximum error acceptable.
ACTIVITY FEEDBACK
Ho: :2 " 9 ; H1: :2 > 9 ; Let ) = 0.01
.n (1/s 2
=
.30 (1/16 = 51.56
:2 9
University of
212 Sunderland
Business Modelling for Decision Making Unit 7 – Sampling Theory and Statistical Inference
These are similar to the right tailed tests, except that the test statistic is
compared to the A 2n-1,1-) value,
. n ( 1 /s 2 # A 2n-1,1-)
:2
University of
Sunderland 213
Unit 7 – Sampling Theory and Statistical Inference Business Modelling for Decision Making
Ho : : 2 = : o 2 ; H1 : : 2 D : o 2
Confidence Intervals
KEY POINT
Inferences imply estimates and we can identify two common estimators:
University of
214 Sunderland
Business Modelling for Decision Making Unit 7 – Sampling Theory and Statistical Inference
The interval estimate identifies two limits (upper and lower) and these
limits contain the unknown parameter(s). The accuracy of the interval
containing the unknown parameter is sometimes associated with some
measure of confidence. Hence, confidence intervals and they are
defined as an interval estimate, existing between an upper confidence
limit (clu) and a lower confidence limit (cll).
University of
Sunderland 215
Unit 7 – Sampling Theory and Statistical Inference Business Modelling for Decision Making
Suppose a manufacturer has some idea of the variance of his output, but
has no idea of the mean. Also, let us assume that the manufacturer
decides to calculate a confidence interval for the mean. Previous
analysis suggests that we add (subtract) a fixed amount from the mean
to determine clu (cll). Since we do not know the value of the mean, the
problem is what is the value of the fixed amount we need to add
(subtract). The value of fixed amount will depend upon the
manufacturer’s precision. i.e. let us assume that he wants to be 95%
certain that the interval contains the actual population mean.
Analysis from other parts of this course advises us that the sampling
distributions of sample means will be normally distributed, providing
either one of the following two conditions are satisfied :
X (B
z'
:2
University of
216 Sunderland
Business Modelling for Decision Making Unit 7 – Sampling Theory and Statistical Inference
The 1 sign tells us that we need to add (subtract) to find clu (cll)
Hence, the confidence interval for B = X 1 z(:/ n). Let us assume the
following information:
z (at 95%) = 1.96 (since 95% indicates two halves of 47.5%, leaving 2.5%
in each tail of the distribution. 2.5% can be interpreted as 0.025 and 0.025
in the z tables = 1.96)
then the 95% confidence interval for the population mean, will occur
within :
==> the confidence interval for B = 90.7985 to 105.2015 or 90.7985 " B "
105.2015
1. S/he can be 95% certain that the true population mean will exist
within the confidence interval of 90.7985 " B " 105.2015, or
Suppose we need a greater certainty (e.g. 99%), then we apply the same
formula as above, except that instead of the 1.96 obtained from the z
tables, we need to identify a different value.
z (at 99%) = 2.575 (since 99% indicates two halves of 49.5%, leaving 0.5%
in each tail of the distribution. 0.5% can be interpreted as 0.005 and 0.005
in the z tables E 2.575).
University of
Sunderland 217
Unit 7 – Sampling Theory and Statistical Inference Business Modelling for Decision Making
==> the confidence interval for B = 88.5388 to 107.4612 or 88.5388 " B "
107.4612
Notice how the confidence interval has increased in value as the level of
confidence (z value) increases in value. The confidence interval will
decrease in value as the level of confidence decreases in value. This is
shown in the figure below.
Note, this method is valid, only if (n) is large or the population from
which the sample is taken is known to follow a normal distribution.
Either of these conditions will ensure normality in the sample
distribution.
Provided n > 30, then the central limit theorem will ensure normality in
the sampling distribution, and this implies that it will make no
difference whether or not the population follows a normal distribution.
University of
218 Sunderland
Business Modelling for Decision Making Unit 7 – Sampling Theory and Statistical Inference
X (B
t'
s2
The 1 sign tells us that we need to add (subtract) to find clu (cll).
Analysis is similar to that for the ‘z’ distribution, but we need to
consider the degrees of freedom (dof) associated with the sample size.
For example, suppose n = 25, then n-1 degrees of freedom = 24. If we
use the ‘t’ tables, then for a 95% confidence limit with 24 dof, we can
determine that our estimate (B) will lie between X 1 2.064 standard errors
(:).
University of
Sunderland 219
Unit 7 – Sampling Theory and Statistical Inference Business Modelling for Decision Making
Hence, the confidence interval for B = X 1 t(s/ n). Let us assume the
following information:
then the 95% confidence interval for the population mean, will occur
within :
t (at 95%, n-1 = 14) = 2.145 (in the ‘t’ tables, look under the 2) =
0.05 column for n = 14)
98 1 2.145(45/ 15) = 98 1 2.145(45/3.873) = 98 1 2.145(11.619) =
98 1 24.923
==> the confidence interval for B = 73.077 to 122.923 or 73.077 "
B " 122.923
University of
220 Sunderland
Business Modelling for Decision Making Unit 7 – Sampling Theory and Statistical Inference
Dependent Sampling:
Hence, we are able to compare the diagnosis between the two different
groups and decide if drug A is better (or worse) than drug B.
We need the mean and the variance of the differences. The mean is
simply (-45/10) = -4.5 i.e. di = -4.5. The variance is given by the following
formula :
University of
Sunderland 221
Unit 7 – Sampling Theory and Statistical Inference Business Modelling for Decision Making
The standard deviation of the sample (s) is found by taking the square
root of 216.5 (= 14.714). Since n < 30 and the population standard
deviation is (:) unknown, then we make use of the ‘t’ distribution. (We
also assume that the d-values follow a normal distribution !). Hence, for
a 95% confidence level, with n-1 dof (= 9 dof) then the confidence
interval for the population mean mark (B) will exist between:
d 1 t(s/ n)
Independent Sampling:
Occurs when two (or more) independent samples are selected from
different populations. Independent samples do not need to be of the
same size.
1. Known Variances :
University of
222 Sunderland
Business Modelling for Decision Making Unit 7 – Sampling Theory and Statistical Inference
If the population variances (:2) are known, the SESD can be calculated
via :
2 2
:1 :
: x1 ( x2 ' - 2
n1 n2
where : :12 and :22 are the variances of the two populations,
n1 and n2 are the two sample sizes (which do not need
to be equal)
You have the chance to live in either the north or the south. Which part
of the country has the higher mortgage levels? Construct a 95%
confidence interval.
0.5 - 0.475 = 0.025 and 0.025 in the Z tables gives 1.96. Hence, the
confidence interval for the difference between the population means (B1
and B2) is given by :
2. 5 3.0
' .11.75 ( 10. 53 / 1 1. 96 -
100 123
University of
Sunderland 223
Unit 7 – Sampling Theory and Statistical Inference Business Modelling for Decision Making
The interpretation is that you can be 95% confident that the mortgage
interest rates in the south, exceed that of the north by an amount
between 0.7849% and 1.656%. Hence, you should live in the north!
2
sp '
s1
2
. n1 ( 1 / - s 2 2 . n 2 ( 1 /
n1 - n 2 ( 2
The confidence interval given for the two sample means is therefore
given by :
. /
B 1 ( B 2 ' X1 ( X 2 1 . t / s p . / 1
-
1
n1 n 2
University of
224 Sunderland
Business Modelling for Decision Making Unit 7 – Sampling Theory and Statistical Inference
the wear on type 1 shoes, is equal to the variance of the wear on type 2
shoes, i.e. type 2 shoe wearers might be heavy on their feet.
2 2
.
Confidence interval for B 1 ( B 2 ' X1 ( X 2 1 t ~/ s1 s
- 2
n1 n 2
. O ( E/
2
A2 '0
E
When using the chi square test, the researcher needs a clear idea of what
is being investigated. It is customary to define the object of the research
by writing a hypothesis. Chi square is then used to either prove or
disprove the hypothesis.
University of
Sunderland 225
Unit 7 – Sampling Theory and Statistical Inference Business Modelling for Decision Making
When to use it
Null hypothesis
The null hypothesis is that the relative proportions of one variable are
independent of the second variable; in other words, the proportions at
one variable are the same for different values of the second variable. In
the flower example, the null hypothesis is that the proportions of red,
pink and white flowers are the same at the four geographic locations.
For some experiments, you can express the null hypothesis in two
different ways, and either would make sense. For example, when an
individual clasps their hands, there is one comfortable position; either
the right thumb is on top, or the left thumb is on top. Downey (1926)
collected data on the frequency of right-thumb vs. left-thumb clasping
in right-handed and left-handed individuals. You could say that the
null hypothesis is that the proportion of right-thumb-clasping is the
same for right-handed and left-handed individuals, or you could say
that the proportion of right-handedness is the same for
right-thumb-clasping and left-thumb-clasping individuals.
For the test of independence, only the observed frequencies are used to
calculate the expected. For the hand-clasping example, Downey (1926)
found 190 right-thumb and 149 left-thumb-claspers among
right-handed women, and 42 right-thumb and 49 left-thumb-claspers
among left-handed women. To calculate the estimated frequency of
right-thumb-claspers among right-handed women, you would first
calculate the overall proportion of right-thumb-claspers:
(190+42)/(190+42+149+49) = 0.5395. Then you would multiply this
overall proportion times the total number of right-handed women,
0.5395*(190+149)=182.9. This is the expected number of right-handed
right-thumb-claspers under the null hypothesis; the observed number
is 190. Similar calculations would be done for each of the cells in this 2x2
table of numbers.
University of
226 Sunderland
Business Modelling for Decision Making Unit 7 – Sampling Theory and Statistical Inference
Example
Suppose that the ratio of male to female students in the Science Faculty
is exactly 1:1, but in the Pharmacology Honours class over the past ten
years there have been 80 females and 40 males. Is this a significant
departure from expectation? We proceed as follows:
Set out a table as shown below, with the “observed” numbers and the
“expected” numbers (i.e. our null hypothesis).
Square the “O-E” values, and divide each by the relevant “expected”
value to give (O-E)2/E
Add all the (O-E)2/E values and call the total “X2"
Notes:
*1
This total must always be the same as the observed total
*2
This total must always be zero
*3
The null hypothesis was obvious here: we are told that there are equal
numbers of males and females in the Science Faculty, so we might
expect that there will be equal numbers of males and females in
Pharmacology. So we divide our total number of Pharmacology
students (120) in a 1:1 ratio to get our ‘expected’ values.
University of
Sunderland 227
Unit 7 – Sampling Theory and Statistical Inference Business Modelling for Decision Making
Now repeat this analysis, but knowing that 33.5% of all students in the
Science Faculty are males
Note *1: We know that the expected total must be 120 (the same as the
observed total), so we can calculate the expected numbers as 66.5% and
33.5% of this total.
Note *3: Although the observed values must be whole numbers, the
expected values can be (and often need to be) decimals. For ‘males’,
33.5% of 120 students is 40.2 males.
Now, from a table of A 2 we see that our data do not depart from
expectation (the null hypothesis). They agree remarkably well with it
and might lead us to suspect that there was some design behind this! In
most cases, though, we might get intermediate X2 values, which neither
agree strongly nor disagree with expectation. Then we conclude that
there is no reason to reject the null hypothesis.
REVIEW ACTIVITY
Two firms are about to horizontally merge and their respective union officials
are attempting to identify whether or not a significant difference exists
between the mean wage levels. As an accountant/economist, you are called in
to supply a solution. You are supplied with the following information:
University of
228 Sunderland
Business Modelling for Decision Making Unit 7 – Sampling Theory and Statistical Inference
2 n2 = 21 X2 = £16.98/hour s22 = 79
Calculate a 95% confidence interval for the difference between the mean levels
and interpret the result.
The confidence interval given for the two sample means is therefore given
by :
. /
B1 ( B 2 ' X1 ( X 2 1 . t/. s p /
1 1
-
n1 n 2
2 n2 = 21 X2 = £16.98/hour s22 = 79
Substituting the above in to the formula for the pooled sample variance :
University of
Sunderland 229
Unit 7 – Sampling Theory and Statistical Inference Business Modelling for Decision Making
The confidence interval given for the two sample means is therefore given by :
. /
B1 ( B 2 ' X1 ( X 2 1 . t/. s p /
1 1
-
n1 n 2
; 1 > ;1>
Hence, C.I. for B1 - B2 = (19 - 16.98) 1 (2.000)(9.573)( = @ - = @ ),
< 28 ? < 21?
and the confidence interval for B1 - B2 is -3.507 to 7.547 or -3.507 " B1 - B2 "
7.547
The interpretation is that we can be 95% confident that the firm with higher
hourly wage rate, lies on average, between -£3.51 to £7.55 of the other firm’s
average hourly wage.
REVIEW ACTIVITY
Consider the general knowledge test given in the notes. i.e. students were
given the same test twice before and after instruction. Let us modify the
scenario and assume now that the statistics are as follows :
Calculate a 95% confidence interval for the difference in the mean scores of all
the students and interpret the result.
University of
230 Sunderland
Business Modelling for Decision Making Unit 7 – Sampling Theory and Statistical Inference
2 2
.
Confidence interval for B1 ( B 2 ' X1 ( X 2 1 t ~ / s1 s
- 2
n1 n 2
Substituting the above in to the formula for the degrees of freedom (dof):
2
; s1 2 s 2 2 >
= - @
= n1 n 2 @
dof ' < ?
2 2
; s1 2 > ; 2>
= @ = s2 @
= n1 @ = @
< ? - < n2 ?
.n1 (1/ .n 2 (1/
; ; 109 > ; 128.7 > >
== = @ -= @ @@
dof ' < < 18 ? < 23 ? ? '
6.056 - 5.596 11.651
' ' 3254
.
2; ; ; 109 > 2 > ; ; 128.7 > 2 > > 5 2157
. -1423
. 358
.
4= = = @ @ == @ @ @7
4 <= = 18 @
? - < = 23 ? @ @7
4 = = @ = @ @7
= 17 22
4 = @ = @ @7
43=< =< @ =
? <
@ @7
? ?6
University of
Sunderland 231
Unit 7 – Sampling Theory and Statistical Inference Business Modelling for Decision Making
We round down the dof to the nearest integer, i.e. 3.254 rounded = 3 = dof.
Substituting for dof = 3 into the confidence interval formula ..
2 2
. /
Confidence interval for B1 ( B 2 ' X1 ( X 2 1 t ~
s1 s
- 2
n1 n 2
= -4.7 1 (3.182)(3.413)
Summary
This unit has provided an introduction to the principles of hypothesis
testing. After an introduction to the concept, we have studied one tailed
tests (both left and right hand). Then we looked at two tailed tests.
University of
232 Sunderland
Unit 8
Introduction
In this unit, we shall look at two important areas of statistical usage.
First of all we will consider the use of control charts for both variable
and attributes within an organisational setting. We will include a
discussion of Deming’s 14 points for business process quality
improvement, and also look at the concept of process capability.
Deming’s 14 Points
Dr. W. Edwards Deming is known as the father of the Japanese post-war
industrial revival and was regarded by many as the leading quality
guru in the United States. He died in 1993.
But the 14 Points pose a challenge for many firms to figure out how to
apply them in a meaningful way that will result in continual
improvement. Leadership Institute has developed powerful processes
for coaching executive teams, and eventually their entire organizations,
to begin accomplishing what Deming referred to as “the
transformation.”
University of
Sunderland 233
Unit 8 – Statistical Process Control and Financial Mathematics Business Modelling for Decision Making
University of
234 Sunderland
Business Modelling for Decision Making Unit 8 – Statistical Process Control and Financial Mathematics
ACTIVITY
Visit the website of the Deming institute to find out more.
http://www.deming.org/theman/teachings02.html
University of
Sunderland 235
Unit 8 – Statistical Process Control and Financial Mathematics Business Modelling for Decision Making
ACTIVITY
Visit a further website to see some more links to thought-provoking
information about each of Deming’s 14 points, including Pat Oliphant’s
amusing cartoon interpretation of the 14 points:
http://curiouscat.com/management/demings14pts.cfm
Control Charts
Control charts are a method of Statistical Process Control, SPC. (Control
system for production processes). They enable the control of
distribution of variation rather than attempting to control each
individual variation. Upper and lower control and tolerance limits are
calculated for a process and sampled measures are regularly plotted
about a central line between the two sets of limits. The plotted line
corresponds to the stability/trend of the process. Action can be taken
based on trend rather than on individual variation. This prevents
over-correction/compensation for random variation, which would lead
to many rejects.
Different types of control charts can be used, depending upon the type
of data. The two broadest groupings are for variable data and attribute
data.
University of
236 Sunderland
Business Modelling for Decision Making Unit 8 – Statistical Process Control and Financial Mathematics
The control chart is a graph used to study how a process changes over
time. Data are plotted in time order. A control chart always has a central
line for the average, an upper line for the upper control limit and a lower
line for the lower control limit. These lines are determined from
historical data. By comparing current data to these lines, you can draw
conclusions about whether the process variation is consistent (in
control) or is unpredictable (out of control, affected by special causes of
variation).
Control charts for variable data are used in pairs. The top chart monitors
the average, or the centering of the distribution of data from the process.
The bottom chart monitors the range, or the width of the distribution. If
your data were shots in target practice, the average is where the shots
are clustering, and the range is how tightly they are clustered. Control
charts for attribute data are used singly.
University of
Sunderland 237
Unit 8 – Statistical Process Control and Financial Mathematics Business Modelling for Decision Making
University of
238 Sunderland
Business Modelling for Decision Making Unit 8 – Statistical Process Control and Financial Mathematics
Case Study
‘Managing stock to meet customer needs’ from McDonalds.
A stock control chart shows the balance of orders for new stocks against
sales. The system is dependent on figures for expected sales. For
example, if sales of burgers are going out of the system, then stocks of
beef patties need to be coming into the system.
University of
Sunderland 239
Unit 8 – Statistical Process Control and Financial Mathematics Business Modelling for Decision Making
Entering data
Buffer stock
Ordering
University of
240 Sunderland
Business Modelling for Decision Making Unit 8 – Statistical Process Control and Financial Mathematics
Every day WebLog creates a proposed order for the manager to analyse
and amend if necessary. WebLog enables managers and central
planners to see what quantities have been ordered, what the current
stock levels are and exactly how much stock is due to be delivered at a
particular time.
In the past, managers would have had to check their delivery for any
shortages and input every item they had received. The system now
automatically generates a delivery note that gives the exact quantities
and descriptions of the delivery. All managers need to do is simply click
‘confirm’ on WebLog. This saves valuable time and makes the process
more cost-effective.
ACTIVITY
Find out the views of other organisations to the use of control charts.
Process Capability
Process capability compares the output of an in-control process to the
specification limits by using capability indices. The comparison is made
by forming the ratio of the spread between the process specifications
(the specification “width”) to the spread of the process values, as
measured by six process standard deviation units (the process
“width”).
When to use it
University of
Sunderland 241
Unit 8 – Statistical Process Control and Financial Mathematics Business Modelling for Decision Making
How to understand it
The outputs of any process will vary and it is common for specification
limits to be defined such that if the measured output of the process
exceeds the specified limits, the process is deemed to have failed. The
term ‘specification limits’ is most commonly used for the dimensions of
a manufactured item, but can be used in any process. Thus, for example,
the specification limits for the time a telesales operator may take to
answer a customer call may be between zero and five seconds.
The results of most processes will vary around a central value, and the
‘capability’ of the process is defined as the spread of results around this
value, with high capability occurring when process results group
closely around it. Thus a process that can produce parts to within
0.001mm of a target value is more capable than one which can only
produce them to within 0.015mm.
University of
242 Sunderland
Business Modelling for Decision Making Unit 8 – Statistical Process Control and Financial Mathematics
Specifications are often defined separately from the process that is being
measured and without a great deal of consideration of how easily the
process can meet them. This can result in either many failures and
rejects or effectively redundant specifications, as the variation in the
process fits badly or well within the specified limits.
The problem with Cp is that it does not take account of how well the
process distribution is centered within its limits, which can result in a
process with both a low Cp and many rejects. The solution to this is a
second measure, Cpk, which measures a similar ratio, but considers
only the variation half that is closest to the specification limits, as in the
figure below. Thus Cp and Cpk, taken together, give a measure of both
the potential and centering of the process distribution within the
specification limits.
Process Capability measures are only as good as the data used, and
there is plenty of opportunity for misinterpretation. In particular,
Process Capability measurement is based on three important
assumptions which are thus preconditions for valid calculations:
University of
Sunderland 243
Unit 8 – Statistical Process Control and Financial Mathematics Business Modelling for Decision Making
University of
244 Sunderland
Business Modelling for Decision Making Unit 8 – Statistical Process Control and Financial Mathematics
Example
As a result, the new orders were achieved and savings were also made
on inspection costs.
University of
Sunderland 245
Unit 8 – Statistical Process Control and Financial Mathematics Business Modelling for Decision Making
Financial Maths
(Note: The following unit assumes you have access to Excel functions
PMT, CUMIPMT and CUMPRINC)
University of
246 Sunderland
Business Modelling for Decision Making Unit 8 – Statistical Process Control and Financial Mathematics
Without going into too much detail, we can also use some of Excel’s
built-in functions to determine the number of grades entered, and the
maximum and minimum grades of the distribution. The syntax for
these functions are shown below in the bulleted list and also in the
screen shot.
University of
Sunderland 247
Unit 8 – Statistical Process Control and Financial Mathematics Business Modelling for Decision Making
University of
248 Sunderland
Business Modelling for Decision Making Unit 8 – Statistical Process Control and Financial Mathematics
University of
Sunderland 249
Unit 8 – Statistical Process Control and Financial Mathematics Business Modelling for Decision Making
as the capital sum invested stays the same and the interest rate offered
by the bank is unchanged.
If our saver wishes to invest the sum of £500 at 4%, they will still receive
£20 at the end of the first year. However, this will be added to the £500 at
the start of year 2. Therefore, at the end of year 2 the capital sum will be
£520. Interest for that year will now rise to £20.80. The process is then
repeated for each year that the investment remains in the bank. The
balances at the end of each year will be as follows:
1 20.00 520.00
2 20.80 540.80
3 21.63 562.43
4 22.50 584.93
5 23.40 608.33
etc.
University of
250 Sunderland
Business Modelling for Decision Making Unit 8 – Statistical Process Control and Financial Mathematics
ACTIVITY
Use the simple interest calculator at
http://www.maths.surrey.ac.uk/explore/matthewspages/simpleinterest.html
Principal = Pn = Po( 1 + i )n
ACTIVITY
I am going to invest the sum of £375 in a bank account offering me 7.5% simple
interest. How much interest will I have earned at the end of:
1. Year 1
2. Year 5
3. Year 12?
University of
Sunderland 251
Unit 8 – Statistical Process Control and Financial Mathematics Business Modelling for Decision Making
ACTIVITY FEEDBACK
Your answers should be:
ACTIVITY
I now decide to invest the same amount of money in the same account but this
time earning compound interest.
How much capital will I have after the same time periods?
ACTIVITY FEEDBACK
Using the following definitions:
Po = £375
R = 0.075
University of
252 Sunderland
Business Modelling for Decision Making Unit 8 – Statistical Process Control and Financial Mathematics
ACTIVITY
Visit the following website to use the compound interest calculator:
http://www.maths.surrey.ac.uk/explore/matthewspages/compoundinterest.html
Discounting Techniques
The concepts of compound interest and present value have been
introduced and these can be used to establish discounted values for a
flow of cash, where money flows in and out at different times during the
period under consideration.
PV = FV x Discount Factor
DF = 1 / ( 1.05 )3
= 0.8638
Year 1 0.9524
Year 2 0.9070
Year 3 0.8638
Year 4 0.8227
University of
Sunderland 253
Unit 8 – Statistical Process Control and Financial Mathematics Business Modelling for Decision Making
Year 5 0.7835
Year 6 0.7462
Year 7 0.7107
Year 8 0.6768
Year 9 0.6446
Year 10 0.6139
Using discount factor values, calculate the present value of £2,500 in six
years time if interest rates are constant at 3%.
From tables we find that the discount factor for 3% over six years is
0.8375.
Calculate the discount factors for the first five years at interest rates of
6%, 10%, 15% and 20%.
http://greenbook.treasury.gov.uk/annex06.htm
For example, money invested at 6% for two years will (from your table)
grow, but an asset depreciating by 6% per annum over two years will
fall in value. The respective calculations become:
The principal invested divided by 0.8900 but the value of the asset
multiplied by 0.8900.
University of
254 Sunderland
Business Modelling for Decision Making Unit 8 – Statistical Process Control and Financial Mathematics
ACTIVITY
Calculate the following periods of time as decimals of a year:
1. 2 years 3 months
2. 3 years 4 months
3. 1 year 7 months
4. 8 months
ACTIVITY FEEDBACK
1. 2.25 years
2. 3.33 years
3. 1.58 year
4. 0.67 year
University of
Sunderland 255
Unit 8 – Statistical Process Control and Financial Mathematics Business Modelling for Decision Making
Continuous Compounding
In economics, especially macroeconomics, ideas of growth and change
over time are very important. Moreover, economic analysis is not just
concerned with comparative statics but also with the dynamic analysis
of how an economy or a market moves from one static equilibrium
position to another. In the following, we’ll look at some the basic
quantitative techniques commonly employed in economic and public
policy analysis to deal with issues of time, growth and dynamics. First,
we’ll consider the questions of compound growth and growth rates.
ACTIVITY
Visit the following website to read more about continuous compounding:
http://www.mathscentre.ac.uk/resources/leaflets/mathcentre/business/
continuous_compounding.pdf
Y 1 'Y 0 - rY 0 'Y 0 (1 - r )
It’s clear from this that the value of Y in any period t will be given by the
formula:
Y 1 'Y 0 (1 - r ) 2
where Y0 is the initial value of Y (in period 0), r is the constant growth
rate per period, and t is the number of periods in the future. This is the
formula for discrete compound growth. (You may already know it as
the formula for calculating the effects of compound interest)
University of
256 Sunderland
Business Modelling for Decision Making Unit 8 – Statistical Process Control and Financial Mathematics
Example
' 50 8 1.629
' 81. 45
Assume the initial value of a variable (Y) is 100. The growth rate per year
is 10%. However, this growth occurs twice per year; i.e. 5% over the first
half of the year, and 5% over the second. So by the end of the first 6
months Y has increased to 105, and by the end of the year it has risen
another 5% from 105 to reach 110.25 (= 105 x 1.05).
Notice carefully what has happened here. The annual growth rate has
been divided by 2 and this growth rate has been compounded twice a
year. Using the formula for discrete compound growth we could
therefore calculate the value of Y at the end of the year as follows:
2
y 1 ' 100;= 1 -
0.1 >
@ ' 100.1.05 / ' 110. 25
2
< 2 ?
Given any initial value of the variable, Y0 , and any annual growth rate,
r, we can write this formula in general terms as follows:
2t
Y t 'Y 0 ;= 1 - >@
r
< 2?
where t is the number of years in the future. This formula tells us the
future value of Y where the annual growth rate is compounded twice a
year. If the growth rate was compounded, say, four times a year the
formula would clearly become:
4t
Y t 'Y 0 ;= 1 - >@
r
< 4?
University of
Sunderland 257
Unit 8 – Statistical Process Control and Financial Mathematics Business Modelling for Decision Making
Y t 'Y 0 ;= 1 - >@
r
< n?
We still haven’t derived the formula for continuous growth but we’re
getting close! In the case of continuous compound growth the number
of times compounding occurs, n, tends towards infinity. To see the
effect of this we proceed as follows.
Y t 'Y 0 4= 1 - @ 7
3< n? 6
Now let m = n/r and substitute into the above equation to get:
n
2; r > 5
m
Y t 'Y 0 4= 1 - @ 7
3< m? 6
Hence,
n
lim 2 m
5
Y 0 4;= 1 - >@ 7 'Y 0e n
1
Yt '
m F G 3< m? 6
Y t 'Y 0e n
where Y0 is the initial value, r is the growth rate per period, and t is the
number of periods in the future. It is, of course, the exponential function
that we first looked earlier.
University of
258 Sunderland
Business Modelling for Decision Making Unit 8 – Statistical Process Control and Financial Mathematics
Example
Assume Y0 = 50 and r = 5% (i.e. 0.05) per year, then the formula becomes
' 58.09
Economic Example:
L t ' L 0e gt
University of
Sunderland 259
Unit 8 – Statistical Process Control and Financial Mathematics Business Modelling for Decision Making
where Lt is the labour force at time t, L0 is the current size of the labour
force (at time t = 0) and g is the (exogenous) growth rate.
Suppose an account pays interest more than once a year. The AER is
calculated by adding each interest payment to the original deposit and
then calculating the next interest payment, compounding the interest.
Calculated as:
n
University of
260 Sunderland
Business Modelling for Decision Making Unit 8 – Statistical Process Control and Financial Mathematics
Y ' f (t )
We know that the derivative dY/dt shows the actual rate of change of Y
with respect to changes in t. If we divide the derivative by Y we will get
the proportional (or percentage) rate of change of Y with respect to
changes in t, or, in other words, the instantaneous rate of growth of Y.
Thus
dY / dt 1 dY
'
Y Y dt
d (lnY ) d (lnY ) dY 1 dY
' '
dt dY dt Y dt
1 dY d (lnY )
growth rate of Y ' '
Y dt dt
University of
Sunderland 261
Unit 8 – Statistical Process Control and Financial Mathematics Business Modelling for Decision Making
Y t 'Y 0e n
To confirm that the growth rate is equal to r let’s take the natural logs of
both sides of the equation to get
(Note how we have used the various rules of logs here.) But remember,
by the definition of logs,
lne ' 1
d (lnY t ) d (lnY 0 - rt )
' 'r
dt dt
Economic Example:
Unit labour costs (for the whole economy) are defined as the labour cost
per unit of output; i.e.
WN
ULC '
Y
where W = the average money wage rate, N is the total labour force
employed, and Y is real output (GDP). Hence, WN is the total labour
cost.
University of
262 Sunderland
Business Modelling for Decision Making Unit 8 – Statistical Process Control and Financial Mathematics
W
ULC '
Y /N
which states that unit labour costs are equal to the money wage rate
divided by labour productivity (= Y/N i.e. output per worker). Taking
logs of both sides of this equation gives
This equation tells us that the rate of growth of unit labour costs equals
the rate of growth of money wages less the rate of growth of labour
productivity. Thus, for example, unit labour costs will remain constant
if money wages and productivity grow at the same rate.
Let:
University of
Sunderland 263
Unit 8 – Statistical Process Control and Financial Mathematics Business Modelling for Decision Making
Note:
r
i'
m
n ' tm
Also let:
Also:
2 1 ( (1 -1i ) 5
P 'R4 7 ' R Ha n|i
43 i 76
lim R
P '
nF G i
University of
264 Sunderland
Business Modelling for Decision Making Unit 8 – Statistical Process Control and Financial Mathematics
Calculating an annuity
Before we use the annuity formula, let’s solve a short 3-year example the
“long way”.
Now let’s say the amount that we invest annually is £2,000 per year and
the interest rate is 8%.
2 .1 ( r / .n -1/ ( 1 5
Total ' Amount H 4 7 ( Amount
43 r 76
So, we have:
University of
Sunderland 265
Unit 8 – Statistical Process Control and Financial Mathematics Business Modelling for Decision Making
This is the same as the answer we obtained using the “long” method.
ACTIVITY
Luckily, you have a third and easier method - the annuity calculator. An
example can be found at:
http://www.local.odpm.gov.uk/pfi/annucalc.xls
When new homes are built, we work out how much certain items would
cost to replace, and how long they will last. This means that we know
how much to collect each year, so we should have enough to cover some
or all of the costs in the future. We aim to review all the sinking funds
around every five years to make sure leaseholders are not paying too
much or too little.
If you are selling your home, you should tell your solicitor that you
contribute to a sinking fund so the buyers know that there is money
built up to cover some or all of the cost of major one-off work. This may
make your home more attractive to buyers. However, all contributions
you pay into the fund will stay in the fund if you decide to sell.
When you buy the property the life cycle of all of the long-term elements
was calculated together with a replacement cost. The sinking fund was
then set up on the basis of building up enough money to meet these
long-term costs. This is reviewed annually to ensure the fund is not
falling behind at the level predicted for the future. If we did not have a
sinking fund then leaseholders may be faced with having to pay large
amounts in any one year if major repairs are required. The lack of a
sinking fund may put off future purchasers from buying your home.
University of
266 Sunderland
Business Modelling for Decision Making Unit 8 – Statistical Process Control and Financial Mathematics
Debt repayment
Banks generally set repayments on loans and mortgages in equal
payments over a fixed period of time. Within these regular payments
the mix of interest and principal changes as time passes. A single
formula can easily calculate the repayments on a loan of £x,000 at y%
over z years. The real world is often more complicated and interest rates
change at irregular intervals, often part of the way through a particular
repayment period.
Note that in this example a negative operator (-) is placed in front of the
function in order to return a positive value. By default Excel will display
repayments as negative amounts.
For loans which are to be repaid over a long period of time it is possible
that the interest rate will change and the monthly repayments will be
revised to reflect the new rate. Calculating an interest rate change part
way through a period can be done in different ways and I don’t know
whether there is a standard procedure adopted by all banks. The result
can vary depending upon factors such as whether they treat all months
as equal 12ths of a year in terms of days. The Excel CUMPRINC function
can only deal with whole months (or periods) and treats any period
value as an integer.
University of
Sunderland 267
Unit 8 – Statistical Process Control and Financial Mathematics Business Modelling for Decision Making
We can make the example more complicated and apply a new rate of
interest (5.0%) that comes into effect after 12 February. February is in
period 10 of the loan. It is necessary to perform a separate calculation for
February (when the rate changes part way through the month) and then
for the subsequent months. For the purposes of calculations, the unpaid
balance of the loan can then be treated as a new loan to be repaid in
equal amounts over the remaining number of periods.
[C13] =B13/B15
[C14] =C15-C13
[D16] =SUMPRODUCT(C13:C14, D13:D14)
The new rate of 5% (=0.417%) will then apply to the whole months of
March and April.
Two new functions can be used to calculate the interest and the
principal amounts for any period (or range of periods) of the loan. The
sum of the interest and the principal equals the result of the PMT()
function.
University of
268 Sunderland
Business Modelling for Decision Making Unit 8 – Statistical Process Control and Financial Mathematics
In February the number of periods will be 3 (Feb - Apr) and the start and
end period will both be 1 because the interest rate applies to that period
only. The principal will be the remaining unpaid amount (£8,947) and
not the original £35,000.
Note that in common with many other Excel financial functions, these
both have a final parameter (PaymentsDue) which refers to whether the
payment is made at the beginning or end of the period. In this example
the value of ‘0’ indicates the end of the period.
3. Calculation of payments
The sum of the three Principal values (in column G) exactly equals the
original value of the loan (£35,000).
University of
Sunderland 269
Unit 8 – Statistical Process Control and Financial Mathematics Business Modelling for Decision Making
REVIEW ACTIVITY
Using your knowledge of the concepts discussed within this unit, prepare a
discussion paper for your senior management to demonstrate the value of
Microsoft Excel within your organisation. This should provide sufficient
information to justify a proposal to invest significant sums of money in
extensive management training in the use of Excel as a business modelling
application.
Include in your paper at least three detailed examples of its use in practical
situations.
Summary
This concluding unit considers a variety of topics linked to the use of
statistics in the processes of process control and financial modelling.
University of
270 Sunderland