Project - 1 (Cold Storage Case Study)
Project - 1 (Cold Storage Case Study)
Project - 1 (Cold Storage Case Study)
colddata = read.csv("Cold_Storage_Temp_Data.csv")
str(colddata)
summary(colddata$Month)
summary(colddata)
dim(colddata)
1. There are three Season Rainy, summer, winter with 122,120 and 123 days respectively.
2. Date ranges between 1 to 31 as usual.(Normally Distributed). Temperature varies
between 1.700 to 5.000 with Mean 2.963 and Median 2.900.(Normally Distributed)
3. Data. Frame is 365 by 4 dataset.
anyNA(colddata)
1. There are no null values in the dataset
boxplot(colddata$Temperature,plot = F)$out
},hjust = -1)boxplot(colddata$Temperature~colddata$Season)$out
Bar plot of Season shows all three season almost equally distributed throughout the year.
1. We can see from this diagram that temperature is slightly right skued distributed.
1. Problem 1.
1.1. Question 1. Find mean cold storage temperature for summer, winter and Rainy
Season?
We can Use group by using dplyr also to generate Mean for all three season. We can also uses ubset
function also to create different subset and calculate mean.
Mean Temperature of Rainy = 3.039, summer = 3.153, winter = 2.701 (round up to 3 decimal point)
MeanTemp
SDTemp
poftemlt2c
poftemgt4c
1.6. Question 6. What will be the penalty for the AMC Company?
Previous two question we saw that for a normal distribution probability of temperature Going below 2
and above 4 degree C is the total probability if Temperature < 2 + Temperature > 4
TotalPofPenalty
Since the total probability 0.0499 value is between 2.5% and 5% so the penalty for the AMC Company
would be 10%.
2. Problem 2.
coldmarch = read.csv("Cold_Storage_Mar2018.csv")
str(coldmarch)
summary(coldmarch)
anyNA(coldmarch)
H0 Mu <= 3.9 -> No Changes require in Cold Storage plant (Null Hypothesis)
H1 Mu > 3.9 -> Problem in Cold Storage plant and need correction (Alternate Hypothesis)
Here Mean Mu is Smean = 3.974286 and Standard Daviation calclate from prev SDTemp = 0.508589
Population Mean given POPMean = 3.9 and Alpha = 0.1 and population size = 35
Calculating z value:
Zcritical = qnorm(1-0.1)
Since Zval (z value is less than Z critical we cannot reject the null hypothesis)
Pval = 1- pnorm(Zval)
Since Pval > Zval We cannot reject the null hypothesis. (We failed to reject null hypothesis)
We can say that Temperature is maintained below level 3.9 degree C and no correction needed at Cold
storage plant.
H1 Mu > 3.9 -> Problem in Cold Storage plant and need correction (Alternative Hypothesis)
Using t test:
From this test we can say that problem in Cold Storage plant and need corrective measure.
Though Given Confidence level is 90% but we can see that we can reject null hypothesis with 99%
confidence as well.
2.3. Question 3. Give your inference after doing both the tests.