HOMEWORK 9 – SAMPLE SOLUTIONS
IMPORTANT NOTE
These homework solutions show multiple approaches and some optional extensions for most of the
questions in the assignment. You don’t need to submit all this in your assign
...
HOMEWORK 9 – SAMPLE SOLUTIONS
IMPORTANT NOTE
These homework solutions show multiple approaches and some optional extensions for most of the
questions in the assignment. You don’t need to submit all this in your assignments; they’re included here
just to help you learn more – because remember, the main goal of the homework assignments, and of
the entire course, is to help you learn as much as you can, and develop your analytics skills as much as
possible!
Question 12.1
Describe a situation or problem from your job, everyday life, current events, etc., for which a design of
experiments approach would be appropriate.
Here’s one possible situation. Restaurants (the high-level expensive ones I don’t often go to) often
prefer the same sort of simplicity as we sometimes do in modeling: they prefer to have a small number
of items on the menu. So, a restauranteur needs to decide what combinations of entrees, side dishes,
etc. to put on the menu. Of course, there are too many combinations to try them all, so a design-ofexperiments approach could help the restauranteur collect some data and make informed menu
decisions.
Question 12.2
To determine the value of 10 different yes/no features to the market value of a house (large yard, solar
roof, etc.), a real estate agent plans to survey 50 potential buyers, showing a fictitious house with
different combinations of features. To reduce the survey size, the agent wants to show just 16 fictitious
houses. Use R’s FrF2 function (in the FrF2 package) to find a fractional factorial design for this
experiment: what set of features should each of the 16 fictitious houses have? Note: the output of FrF2
is “1” (include) or “-1” (don’t include) for each feature.
Here’s one possible solution. The file solution 12.2.R shows how to find a fractional factorial
design using the FrF2 function in R. The design is shown in the table below.
Features
House
number A B C D E F G H J K
1 -1 1 -1 -1 -1 1 -1 1 1 -1
2 -1 -1 1 1 1 -1 -1 -1 -1 1
3 1 -1 -1 1 -1 -1 1 1 1 1
4 -1 1 -1 1 -1 1 -1 -1 -1 1
5 1 -1 -1 -1 -1 -1 1 -1 -1 -1
6 1 1 1 -1 1 1 1 -1 -1 -1
7 -1 -1 1 -1 1 -1 -1 1 1 -1
8 -1 1 1 1 -1 -1 1 -1 1 -1
9 1 -1 1 -1 -1 1 -1 -1 1 1
10 -1 -1 -1 1 1 1 1 -1 1 -1
11 1 1 -1 -1 1 -1 -1 -1 1 1
12 1 1 1 1 1 1 1 1 1 1
13 -1 1 1 -1 -1 -1 1 1 -1 1
14 -1 -1 -1 -1 1 1 1 1 -1 1
15 1 -1 1 1 -1 1 -1 1 -1 -1
16 1 1 -1 1 1 -1 -1 1 -1 -1
Note that due to differences in the random number generator, you might get slightly different results.
On a different machine, here’s another solution I got:
Features
House
number A B C D E F G H J K
1 -1 -1 1 -1 1 -1 -1 1 1 -1
2 1 -1 1 -1 -1 1 -1 -1 1 1
3 -1 -1 -1 1 1 1 1 -1 1 -1
4 1 1 -1 1 1 -1 -1 1 -1 -1
5 -1 1 -1 -1 -1 1 -1 1 1 -1
6 1 -1 -1 1 -1 -1 1 1 1 1
7 -1 1 -1 1 -1 1 -1 -1 -1 1
8 -1 1 1 1 -1 -1 1 -1 1 -1
9 1 -1 1 1 -1 1 -1 1 -1 -1
10 -1 -1 -1 -1 1 1 1 1 -1 1
11 1 -1 -1 -1 -1 -1 1 -1 -1 -1
12 -1 1 1 -1 -1 -1 1 1 -1 1
13 -1 -1 1 1 1 -1 -1 -1 -1 1
14 1 1 1 -1 1 1 1 -1 -1 -1
15 1 1 -1 -1 1 -1 -1 -1 1 1
16 1 1 1 1 1 1 1 1 1 1
Question 13.1
For each of the following distributions, give an example of data that you would expect to follow this
distribution (besides the examples already discussed in class).
a. Binomial
In a clinical trial, a new drug or treatment to cure a disease is tested on a bunch of patients.
Out of n total patients, the number successfully cured by the drug/treatment might follow
the binomial distribution.
b. Geometric
A consultant flies from New York to Atlanta early every Monday morning, arriving at 9am for
a 10:30am weekly meeting. The number of weeks the consultant will be on time before the
first time the flight is delayed long enough to miss the meeting, might follow the geometric
distribution.
c. Poisson
The expected number of babies that will be born in the United States tomorrow might
follow the Poisson distribution.
d. Exponential
The time between births of babies in the United States tomorrow might follow the
Exponential distribution.
e. Weibull
In training for track events, the
[Show More]