
/*Question 1 Part A*/
data elevator;
infile datalines dlm=',';
Mean = 1000;
Sigma = 150;
Input X Y;
p1 = CDF('Normal',x,Mean,Sigma);
p2 = CDF('Normal',y,Mean,Sigma);
Prob = CDF('Normal',X,Mean,Sigma) - CDF('Normal',Y,Mean,Sigma); /*probability of the weights*/
drop sigma mean;
datalines; /*x and y after subtracting and adding sigma from mean, 68% is one sigma, 95% is 2 sigmas, and 99.7% is 3 sigmas*/
850,1150
700,1300
550,1450
;
proc print data=elevator;
run;
/*Part B*/
data elevator2;
infile datalines dlm=',';
Mean = 1000;
Sigma = 150;
Input X Y;
p1 = CDF('Normal',x,Mean,Sigma);
p2 = CDF('Normal',y,Mean,Sigma);
Pdiff = CDF('Normal',X,Mean,Sigma) - CDF('Normal',Y,Mean,Sigma); /*probability of the weights*/
drop sigma mean;
datalines; /* symmetry of the normal distribution and the probability of having a weight greater than 1200 is the same as having a weight less than 800.*/
775,1225
780,1220
785,1215
790,1210
795,1205
800,1200
;
proc print data=elevator2;
run;
/*Part C*/
How would I write out Part C for this problem ? What would the code look like because I'm unsure if I should use a new data set or not. I also don't know how to make a normal table of cumulative probabilities. I've done most of the problem already but I'm just stuck on this last part. Any help please on how the code would look and what the functions do exactly ? Thank you !