What is the percentage of machines that failed before 20 hours? ... ip=probit(p); ip=mean stdev*ip; label ip='the p-th percentile'; datalines; 0.1. proc print label; ... – PowerPoint PPT presentation
2 Example Data on the time between machine failures were collected during a study on machine performance that involved 39 similar machines. From the data we compute, the sample mean 23.35hours and the sample standard deviation 1.67h.
What is the percentage of machines that failed before 20 hours?
What is the percentage of machines that failed after 24 hours?
What is the percentage of machines with failure time between 20 and 22 hours?
How short should the failure time be for a machine to be in the bottom 10 ?
3 Computing the normal probabilities using SAS
data normal
input x _at__at_
mean23.35
stdev1.67
z(x-mean)/stdev
pnprobnorm(z)
invpn1-probnorm(z)
label pn"the normal dist. func. at x"
label z"the standardized value"
label invpn"the area to the right of x"
datalines
20 24
run
proc print label
run
4 SAS output
the the normal the area
standardized dist. to the
Obs x mean stdev value func. at x right of x
20 23.35 1.67 -2.00599 0.02243 0.97757
24 23.35 1.67 0.38922 0.65144 0.34856
Answer to question 1 Answer to question 2 5 Computing the normal percentiles using SAS
data percentile
input p _at__at_
mean23.35
stdev1.67
ipprobit(p)
ipmeanstdevip
label ip"the p-th percentile"
datalines
0.1
proc print label
run
6 SAS output
the p-th
Obs p mean stdev percentile
1 0.1 23.35 1.67 21.2098
Answer to question 4 7 SAS procedures for scatter plots and correlation
PROC CORR
The CORR procedure is a statistical procedure for numeric random variables that computes Pearson correlation coefficients and some descriptive statistics. The correlation statistics include
PROC CORR DATA dataset-name
BY ltDESCENDINGgt variable-1 ltvariable-ngt
VAR variable(s)
WITH variable(s)
8
Data one
input time line step device
linetline/1000
datalines
0.0893 266 2 1
0.0386 120 1 1
0.0988 245 2 1
0.026 102 1 2
0.041 307 2 2
0.0196 143 1 2
proc corr
var time line step
run
9
The CORR Procedure
3 Variables time line step
Simple Statistics
Variable N Mean Std Dev Sum Minimum Maximum
time 6 0.05222 0.03349 0.31330 0.01960 0.09880
line 6 197.16667 86.06374 1183 102.0000 307.00000
step 6 1.50000 0.54772 9.0 1.0000 2.00000
Pearson Correlation Coefficients, N 6
Prob gt r under H0 Rho0
time line step
time 1.00000 0.61490 0.78996
0.1939 0.0615
line 0.61490 1.00000 0.96099
0.1939 0.0023
step 0.78996 0.96099 1.00000
0.0615 0.0023
10
proc corr
var time
with line step
run
Produces the correlations between time and line, and time and step only.
The CORR Procedure 2 With Variables line step 1 Variables time Simple Statistics Variable N Mean Std Dev Sum Minimum Maximum line 6 197.16667 86.06374 1183 102.0000 307.000 step 6 1.50000 0.54772 9.00 1.0000 2.0000 time 6 0.05222 0.03349 0.313 0.0196 0.0988 Pearson Correlation Coefficients, N 6 Prob gt r under H0 Rho0 time line 0.61490 0.1939 step 0.78996 0.0615 11
proc sort
by device
proc corr
by device
var time line
run
The BY statement specifies the variable that the procedure uses to form BY groups. The data need to be sorted first by the BY variable. This procedure will compute the correlation between time and line for the two groups of data defined by the variable device
PowerShow.com is a leading presentation sharing website. It has millions of presentations already uploaded and available with 1,000s more being uploaded by its users every day. Whatever your area of interest, here you’ll be able to find and view presentations you’ll love and possibly download. And, best of all, it is completely free and easy to use.
You might even have a presentation you’d like to share with others. If so, just upload it to PowerShow.com. We’ll convert it to an HTML5 slideshow that includes all the media types you’ve already added: audio, video, music, pictures, animations and transition effects. Then you can share it with your target audience as well as PowerShow.com’s millions of monthly visitors. And, again, it’s all free.
About the Developers
PowerShow.com is brought to you by CrystalGraphics, the award-winning developer and market-leading publisher of rich-media enhancement products for presentations. Our product offerings include millions of PowerPoint templates, diagrams, animated 3D characters and more.