Difference between revisions of "Worksheets/Week4"

From Statistics for Engineering
Jump to navigation Jump to search
Line 45: Line 45:
# order amount is over €50 [+1]. Notice that a mistake was made  
# order amount is over €50 [+1]. Notice that a mistake was made  
# with the last experiment: order minimum for free shipping was €60 [+1].
# with the last experiment: order minimum for free shipping was €60 [+1].
S <- c(-1, +1, -1, +1, -1, +1, -1, +2)
S = c(-1, +1, -1, +1, -1, +1, -1, +2)


# Does the purchaser need to create a profile first [+1] or not [-1]?
# Does the purchaser need to create a profile first [+1] or not [-1]?
P <- c(-1, -1, +1, +1, -1, -1, +1, +1)
P = c(-1, -1, +1, +1, -1, -1, +1, +1)


# Response: daily sales amount
# Response: daily sales amount
y <- c(348, 359, 327, 243, 356, 363, 296, 220)
y = c(348, 359, 327, 243, 356, 363, 296, 220)


# Linear model using S, P and S*P to predict the response
# Linear model using S, P and S*P to predict the response
model.sales.mistake <- lm(y ~ S*P)
model_sales_mistake = lm(y ~ S*P)
summary(model.sales.mistake)
summary(model_sales_mistake)


# Uncomment this line if you run the code in RStudio
# Uncomment this line if you run the code in RStudio
Line 62: Line 62:
source('https://yint.org/contourPlot.R')
source('https://yint.org/contourPlot.R')


contourPlot(model.sales.mistake)
contourPlot(model_sales_mistake)
     </code>
     </code>
</div></html>
</div></html>

Revision as of 14:39, 2 October 2019

Part 1

Your family runs a small business selling products online. The first factor of interest is whether to provide free shipping over €30 or over €50. The second factor is whether or not the purchaser must first create a profile before completing the transaction. The purchaser can still complete their transaction without creating a profile. Below are the data collected, showing the 8 experiments.


Part 2

Continuing with the case above:

Part 3

Your group is developing a new product, but have been struggling to get the product’s stability, measured in days, to the level required. You are aiming for a stability value of 50 days or more.