Cold Storage Project
Cold Storage Project
Presented By:
Sakshi Narang
G2
5th January 2020
Problem 1
➢ Cold Storage started its operations in Jan 2016. They are in the business of storing Pasteurized
Fresh Whole or Skimmed Milk, Sweet Cream, Flavoured Milk Drinks. Toensure that there is no
change of texture, body appearance, separation of fats the optimal temperature to be maintained
is between 2 - 4 C.
➢ In the first year of business they outsourced the plant maintenance work to a professional
company with stiff penalty clauses. It was agreed that if it was statistically proven that probability
of temperature going outside the 2 - 4 Cduring the one-year contract was above 2.5% and less
than 5% then the penalty would be 10% of AMC (annual maintenance case). In case it exceeded
5% then the penalty would be 25% of theAMC fee.
Question 1:
Find mean cold storage temperature for Summer, Winter and Rainy Season
To find the Mean of cold temperature of the three seasons, following command was used in“R”:
> by (ColdStorage,INDICES = Season,FUN = summary)
Findings
Season: Rainy
Season: Summer Season: Winter
Season Month Date Temperature
Season Month Date Temperature Season Month Date Temperature
Rainy :122 :31 Min. : 1.00 Min. :1.700
Au Rainy : 0 Mar :31 Min. : 1.00 Min. :2.500 Rainy : 0 Dec :31 Min. : 1.00 Min. :1.900
Summer: 0
g Jul :31 1st Qu.: 8.00 1st Qu.:2.500
Summer:120 :31 1st Qu.: 8.00 1st Qu.:2.800 Summer: 0 Jan :31 1st Qu.: 8.00 1st Qu.:2.400
Winter: 0 Jun :30 Median :16.00 Median :2.900 Ma
y
Winter: 0 Apr :30 Median :15.50 Median :3.200 Winter:123 Oct :31 Median :16.00 Median :2.600
Sep :30 Mean :15.75 Mean :3.039 No :30 Mean :15.88 Mean :2.701
Feb :28 Mean :15.53 Mean :3.153
v
Apr :0 3rd Qu.:23.00 3rd Qu.:3.300 Apr :0 3rd Qu.:23.50 3rd Qu.:2.900
Au :0 3rd Qu.:23.00 3rd Qu.:3.400
Max. :5.000 g Au :0 Max. :31.00 Max. :3.900
Dec :0 Max. :31.00
Dec :0 Max. :31.00 Max. :4.100 g
(Other): 0 (Other): 0
(Other): 0
Question 2:
Find overall mean for the full year
To find the Mean of cold temperature for the full year, following command was used in “R”:
> summary(ColdStorage)
Findings
To find the Standard Deviation of Date, To find the Standard Deviation of Temperature,
following command was used in “R”: following command was used in “R”:
> sd(Date) > sd (Temperature)
ColdStorag
e
> attach(ColdStorage)
# ztest when
x=2,Mu=2.96274,S=0.508589
X=
2
X
S=sd(Temperatur
e)
S Z=-1.89
Mu=mean(Temperatu
re)
M
u THEPROBABILITYOFTEMPERATURE FALLINGBELOW2 *C IS 2.9%
z.test=(X-
Mu)/S
z.test
Result in Rconsole : [1] 0.02918146 Normal distribution function in excel gives you : 0.029
Question 5:
Assume Normal distribution, what is the probability of temperature having gone above 4 *C?
Solution Through RCommands
setwd("C:/Users/Himanshu/Desktop/Sakshi/Project 1 Cold Mean (µ) =2.963
Storage")
getwd()
ColdStorage = read.csv("Cold_Storage_Temp_Data.csv",header
= TRUE)
ColdStorage
attach(ColdStorage)
# ztest when x=4,
u=2.96274,S=0.508589 x=4
u=mean(Temperatu
re)
s=sd(Temperature)
z.test=(x-u)/s
Z=0.979
z.test
CS
attach(CS) 5 (x)
mean(Temperature)
sd(Temperature)
X=5
MU=mean(Temperature)
SD=sd(Temperature)
z.test=(X-MU)/SD
z.test
x=2.5
PENALTYFEEWOULD BE 25% ASTHETEMPERATURE EXCEEDS 5%.
u=mean(Temperature)
Validation of the same has been checked through Excel
s=sd(Temperature)
z.test=(x-u)/s z.test
In excel, we put the function =NORM.DIST(5,2.96274,0.508589,1)-
In R console : [1] -0.90985
NORM.DIST(2.5,2.96274,0.508589,1). It results to 0.81851
P=pnorm(X,MU,S)-pnorm(x,u,s) Also by using, =NORM.S.DIST(4.00571,1)-NORM.S.DIST(-
P 0.90985,1). It results to 0.81851
Result in R console : [1] 0.8185183
Problem 2
➢ In Mar 2018, Cold Storage started getting complaints from their Clients that they have been
getting complaints from end consumers of the dairy products going sour and often smelling. On
getting these complaints, the supervisor pulls out data of last 35 days’ temperatures. As asafety
measure, the Supervisor decides to be vigilant to maintain the temperature 3.9 Cor below.
➢ Assume 3.9 Cas upper acceptable value for mean temperature and at alpha = 0.1 do you feel that
there is need for some corrective action in the Cold Storage Plant or is it that the problem is from
procurement side from where Cold Storage is getting the DairyProducts.
Question 1:
Which Hypothesis test shall be performed to check the if corrective action is needed at the cold storage plant?
Justify your answer.
ColdStorageHypo=read.csv("Cold_Storage.csv", header =
TRUE)
ColdStorageHypo
Xbar=mean(Temperatur
e) Xbar
S=sd(Temperatur
e) S
Mu=3.
tstat=(Xbar- NULLHYPOTHESISACCEPTEDASPVALUEIS GREATERTHAN ALPHA
9
Mu)/(S/n^0.1)
tstat
n=35
PValue=pt(tstat,34)
Pvalue
> PValue=(1-pt(tstat,34))*2
> PValue
[1] 0.5112556
Question 3:
Give your inference
There is need for some corrective measures to be taken from the Cold Storage Team as the temperatures are not
being maintained according to the proposed values.
Thank You!!