| Percentiles - Jeroen Van Eeckhoven | *The author of this computation has been verified* | R Software Module: /rwasp_percentiles.wasp (opens new window with default values) | Title produced by software: Percentiles | Date of computation: Sat, 02 Oct 2010 19:26:48 +0000 | | Cite this page as follows: | Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Oct/02/t1286047793fghihb97bxkjq0m.htm/, Retrieved Sat, 02 Oct 2010 21:29:53 +0200 | | BibTeX entries for LaTeX users: | @Manual{KEY,
author = {{YOUR NAME}},
publisher = {Office for Research Development and Education},
title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Oct/02/t1286047793fghihb97bxkjq0m.htm/},
year = {2010},
}
@Manual{R,
title = {R: A Language and Environment for Statistical Computing},
author = {{R Development Core Team}},
organization = {R Foundation for Statistical Computing},
address = {Vienna, Austria},
year = {2010},
note = {{ISBN} 3-900051-07-0},
url = {http://www.R-project.org},
}
| | Original text written by user: | | | IsPrivate? | No (this computation is public) | | User-defined keywords: | | | Dataseries X: | » Textbox « » Textfile « » CSV « | 426.113
383.703
232.444
70.939
226.731
947.293
611.281
158.047
33.999
37.028
388.3
506.652
392.25
180.818
198.296
217.465
275.562
1030.944
57.47
136.452
556.277
213.361
274.482
220.553
236.71
260.642
2763.544
213.923
169.861
403.064
449.594
406.167
206.893
156.187
257.102
62.156
662.883
251.422
171.328
350.089
221.588
4.813
183.186
190.379
223.166
232.669
356.725
109.215
475.834
315.955
694.87
8.95
278.741
308.16
207.533
192.797
601.162
289.714
293.671
386.688
699.645
85.094
131.812
645.285
197.549
308.174
86.58
242.205
238.502
187.881
140.321
440.31
421.403
218.761
1305.923
137.55
262.517
348.821
150.034
64.016
261.596
259.7
171.26
203.077
249.148
211.655
252.64
438.555
239.89
401.915
216.886
184.641
380.155
653.641
313.906
366.936
236.302
229.641
235.577
103.898
263.906
241.171
216.548
295.281
193.299
204.386
257.567
136.813
240.755
59.609
213.511
380.531
242.344
250.407
183.613
191.835
266.79 etc... | | Output produced by software: |
Percentiles - Ungrouped Data | p | Weighted Average at Xnp | Weighted Average at X(n+1)p | Empirical Distribution Function | Empirical Distribution Function - Averaging | Empirical Distribution Function - Interpolation | Closest Observation | True Basic - Statistics Graphics Toolkit | MS Excel (old versions) | 0.01 | 6.42643 | 6.4678 | 8.95 | 8.95 | 18.46862 | 4.813 | 7.2952 | 4.813 | 0.02 | 28.48822 | 28.9892 | 33.999 | 33.999 | 36.30104 | 33.999 | 13.9598 | 33.999 | 0.03 | 37.37123 | 37.4318 | 39.047 | 39.047 | 41.62622 | 37.028 | 38.6432 | 37.028 | 0.04 | 49.36388 | 50.1008 | 57.47 | 57.47 | 58.58228 | 57.47 | 46.4162 | 57.47 | 0.05 | 59.50205 | 59.609 | 59.609 | 59.609 | 61.9013 | 59.609 | 59.609 | 59.609 | 0.06 | 62.7884 | 62.9 | 64.016 | 64.016 | 65.95444 | 62.156 | 63.272 | 62.156 | 0.07 | 69.06979 | 69.5544 | 70.939 | 70.939 | 72.1963 | 70.939 | 65.4006 | 70.939 | 0.08 | 74.314 | 75.294 | 85.094 | 85.094 | 85.15344 | 72.844 | 82.644 | 72.844 | 0.09 | 85.85186 | 85.9856 | 86.58 | 86.58 | 93.85356 | 86.58 | 85.6884 | 86.58 | 0.1 | 102.1662 | 103.898 | 103.898 | 103.898 | 108.1516 | 103.898 | 103.898 | 103.898 | 0.11 | 115.76813 | 118.2538 | 131.812 | 131.812 | 132.6472 | 109.215 | 122.7732 | 109.215 | 0.12 | 134.9672 | 135.524 | 136.452 | 136.452 | 136.65416 | 136.452 | 132.74 | 136.452 | 0.13 | 136.86459 | 136.9604 | 137.55 | 137.55 | 137.50578 | 136.813 | 137.4026 | 136.813 | 0.14 | 138.82466 | 139.2126 | 140.321 | 140.321 | 143.42916 | 137.55 | 138.6584 | 140.321 | 0.15 | 148.57705 | 150.034 | 150.034 | 150.034 | 154.3411 | 150.034 | 150.034 | 150.034 | 0.16 | 156.6334 | 156.931 | 158.047 | 158.047 | 158.99212 | 156.187 | 157.303 | 156.187 | 0.17 | 165.48982 | 167.4982 | 169.861 | 169.861 | 170.50454 | 169.861 | 160.4098 | 169.861 | 0.18 | 171.26136 | 171.2736 | 171.328 | 171.328 | 171.31712 | 171.26 | 171.3144 | 171.26 | 0.19 | 175.2189 | 177.022 | 180.818 | 180.818 | 181.33896 | 171.328 | 175.124 | 180.818 | 0.2 | 182.7124 | 183.186 | 183.186 | 183.186 | 183.4422 | 183.186 | 183.186 | 183.186 | 0.21 | 183.80832 | 184.0242 | 184.641 | 184.641 | 184.62044 | 183.613 | 184.2298 | 183.613 | 0.22 | 186.5202 | 187.233 | 187.881 | 187.881 | 188.70036 | 187.881 | 185.289 | 187.881 | 0.23 | 190.08872 | 190.2014 | 190.157 | 190.157 | 190.32128 | 190.157 | 190.3346 | 190.157 | 0.24 | 190.90316 | 191.2526 | 191.835 | 191.835 | 191.95044 | 190.379 | 190.9614 | 191.835 | 0.25 | 192.5565 | 192.797 | 192.797 | 192.797 | 193.048 | 192.797 | 192.797 | 192.797 | 0.26 | 193.894 | 194.999 | 197.549 | 197.549 | 197.039 | 193.299 | 195.849 | 193.299 | 0.27 | 197.94491 | 198.1466 | 198.296 | 198.296 | 198.55626 | 198.296 | 197.6984 | 198.296 | 0.28 | 199.21692 | 199.3868 | 199.297 | 199.297 | 199.58436 | 199.297 | 199.6562 | 199.297 | 0.29 | 199.8731 | 199.992 | 200.156 | 200.156 | 200.21442 | 199.746 | 199.91 | 200.156 | 0.3 | 202.2007 | 203.077 | 203.077 | 203.077 | 203.6006 | 203.077 | 203.077 | 203.077 | 0.31 | 204.60065 | 205.34 | 206.771 | 206.771 | 206.2463 | 204.386 | 205.817 | 204.386 | 0.32 | 206.82956 | 206.8686 | 206.893 | 206.893 | 206.9954 | 206.771 | 206.7954 | 206.893 | 0.33 | 207.4498 | 207.648 | 207.533 | 207.533 | 207.8435 | 207.533 | 207.993 | 207.533 | 0.34 | 209.03022 | 210.2362 | 211.655 | 211.655 | 211.37124 | 208.108 | 209.5268 | 211.655 | 0.35 | 212.7639 | 213.361 | 213.361 | 213.361 | 213.406 | 213.361 | 213.361 | 213.361 | 0.36 | 213.52748 | 213.6758 | 213.923 | 213.923 | 213.79116 | 213.511 | 213.7582 | 213.511 | 0.37 | 214.83589 | 215.6214 | 216.046 | 216.046 | 216.07612 | 213.923 | 214.3476 | 216.046 | 0.38 | 216.45764 | 216.6156 | 216.548 | 216.548 | 216.69672 | 216.548 | 216.8184 | 216.548 | 0.39 | 217.00759 | 217.2334 | 217.465 | 217.465 | 217.36078 | 216.886 | 217.1176 | 217.465 | 0.4 | 218.2426 | 218.761 | 218.761 | 218.761 | 219.1194 | 218.761 | 218.761 | 218.761 | 0.41 | 220.53508 | 220.967 | 220.553 | 220.553 | 221.1533 | 220.553 | 221.174 | 220.553 | 0.42 | 222.18764 | 222.8504 | 223.166 | 223.166 | 223.10288 | 221.588 | 221.9036 | 223.166 | 0.43 | 225.91105 | 227.313 | 226.731 | 226.731 | 227.7204 | 226.731 | 229.059 | 226.731 | 0.44 | 230.08948 | 231.3228 | 232.444 | 232.444 | 231.65916 | 229.641 | 230.7622 | 232.444 | 0.45 | 232.56775 | 232.669 | 232.669 | 232.669 | 232.9598 | 232.669 | 232.669 | 232.669 | 0.46 | 235.40252 | 235.867 | 235.577 | 235.577 | 235.925 | 235.577 | 236.012 | 235.577 | 0.47 | 236.43664 | 236.6284 | 236.71 | 236.71 | 236.65288 | 236.302 | 236.3836 | 236.71 | 0.48 | 238.00024 | 238.7796 | 238.502 | 238.502 | 238.83512 | 238.502 | 239.6124 | 238.502 | 0.49 | 239.98515 | 240.409 | 240.755 | 240.755 | 240.4263 | 239.89 | 240.236 | 240.755 | 0.5 | 240.963 | 241.171 | 241.171 | 241.171 | 241.171 | 241.171 | 241.171 | 241.171 | 0.51 | 242.09126 | 242.2606 | 242.205 | 242.205 | 242.25782 | 242.205 | 242.2884 | 242.205 | 0.52 | 243.51944 | 245.7024 | 246.542 | 246.542 | 245.53448 | 242.344 | 243.1836 | 246.542 | 0.53 | 248.28802 | 249.3998 | 249.148 | 249.148 | 249.32426 | 249.148 | 250.1552 | 249.148 | 0.54 | 250.4679 | 251.016 | 251.422 | 251.422 | 250.9348 | 250.407 | 250.813 | 251.422 | 0.55 | 251.9701 | 252.64 | 252.64 | 252.64 | 252.5182 | 251.422 | 252.64 | 252.64 | 0.56 | 256.38808 | 257.288 | 257.102 | 257.102 | 257.2322 | 257.102 | 257.381 | 257.102 | 0.57 | 258.05759 | 259.2734 | 259.7 | 259.7 | 258.97478 | 257.567 | 257.9936 | 259.7 | 0.58 | 260.28404 | 260.8328 | 260.642 | 260.642 | 260.68016 | 260.642 | 261.4052 | 260.642 | 0.59 | 261.60521 | 262.1486 | 262.517 | 262.517 | 261.98282 | 261.596 | 261.9644 | 262.517 | 0.6 | 262.6602 | 262.875 | 262.875 | 262.875 | 262.8034 | 262.517 | 262.875 | 262.875 | 0.61 | 263.68949 | 264.6544 | 263.906 | 263.906 | 264.24278 | 263.906 | 265.0286 | 263.906 | 0.62 | 265.95988 | 266.5898 | 266.793 | 266.793 | 266.34596 | 265.777 | 265.9802 | 266.793 | 0.63 | 271.17573 | 274.698 | 274.482 | 274.482 | 274.02066 | 274.482 | 275.346 | 274.482 | 0.64 | 275.5188 | 277.4694 | 275.562 | 275.562 | 276.57928 | 275.562 | 276.8336 | 278.741 | 0.65 | 281.6558 | 287.069 | 287.069 | 287.069 | 284.5706 | 278.741 | 287.069 | 287.069 | 0.66 | 289.0263 | 291.2968 | 289.714 | 289.714 | 290.03056 | 289.714 | 292.0882 | 289.714 | 0.67 | 293.8803 | 294.959 | 295.281 | 295.281 | 294.4116 | 293.671 | 293.993 | 295.281 | 0.68 | 301.97808 | 308.1628 | 308.16 | 308.16 | 306.09936 | 308.16 | 308.1712 | 308.16 | 0.69 | 308.17274 | 308.3888 | 308.174 | 308.174 | 308.25276 | 308.174 | 308.3172 | 308.532 | 0.7 | 310.1442 | 313.906 | 313.906 | 313.906 | 311.7564 | 308.532 | 313.906 | 313.906 | 0.71 | 315.31981 | 319.189 | 315.955 | 315.955 | 315.91402 | 315.955 | 320.806 | 315.955 | 0.72 | 324.56184 | 329.2584 | 330.563 | 330.563 | 326.38828 | 324.04 | 325.3446 | 330.563 | 0.73 | 339.14426 | 349.0746 | 348.821 | 348.821 | 344.07392 | 330.563 | 349.8354 | 348.821 | 0.74 | 349.91148 | 354.0706 | 350.089 | 350.089 | 350.88532 | 350.089 | 352.7434 | 356.725 | 0.75 | 359.27775 | 366.936 | 366.936 | 366.936 | 361.8305 | 356.725 | 366.936 | 366.936 | 0.76 | 375.39616 | 380.3054 | 380.155 | 380.155 | 378.56872 | 380.155 | 380.3806 | 380.155 | 0.77 | 380.62616 | 383.0686 | 383.703 | 383.703 | 381.35572 | 380.531 | 381.1654 | 383.703 | 0.78 | 384.9567 | 387.0104 | 386.688 | 386.688 | 385.6134 | 383.703 | 387.9776 | 386.688 | 0.79 | 387.99372 | 390.67 | 388.3 | 388.3 | 388.379 | 388.3 | 389.88 | 392.25 | 0.8 | 394.0844 | 401.422 | 401.422 | 401.422 | 395.9188 | 392.25 | 401.422 | 401.422 | 0.81 | 401.71287 | 402.3746 | 401.915 | 401.915 | 401.80654 | 401.915 | 402.6044 | 401.915 | 0.82 | 403.04102 | 403.4576 | 403.064 | 403.064 | 403.14272 | 403.064 | 403.1624 | 403.556 | 0.83 | 404.52207 | 409.2142 | 406.167 | 406.167 | 404.96594 | 403.556 | 418.3558 | 406.167 | 0.84 | 417.74636 | 424.229 | 421.403 | 421.403 | 420.18412 | 421.403 | 423.287 | 426.113 | 0.85 | 427.58945 | 435.956 | 435.956 | 435.956 | 429.0659 | 426.113 | 435.956 | 435.956 | 0.86 | 437.35946 | 439.257 | 438.555 | 438.555 | 437.72332 | 438.555 | 439.608 | 438.555 | 0.87 | 440.18715 | 441.2116 | 440.31 | 440.31 | 440.37762 | 440.31 | 440.5354 | 441.437 | 0.88 | 444.04724 | 454.842 | 449.594 | 449.594 | 445.02608 | 441.437 | 470.586 | 449.594 | 0.89 | 468.2244 | 494.3248 | 475.834 | 475.834 | 471.1108 | 475.834 | 488.1612 | 506.652 | 0.9 | 511.6145 | 556.277 | 556.277 | 556.277 | 516.577 | 506.652 | 556.277 | 556.277 | 0.91 | 578.27065 | 605.2096 | 601.162 | 601.162 | 582.3103 | 556.277 | 607.2334 | 601.162 | 0.92 | 610.06672 | 638.4842 | 611.281 | 611.281 | 610.87624 | 611.281 | 618.0818 | 645.285 | 0.93 | 647.54112 | 655.4894 | 653.641 | 653.641 | 648.12604 | 645.285 | 661.0346 | 653.641 | 0.94 | 659.74072 | 682.0752 | 662.883 | 662.883 | 660.29524 | 662.883 | 675.6778 | 694.87 | 0.95 | 695.10875 | 699.645 | 699.645 | 699.645 | 695.3475 | 694.87 | 699.645 | 699.645 | 0.96 | 724.6436 | 832.7932 | 756.46 | 756.46 | 726.9162 | 699.645 | 870.9598 | 756.46 | 0.97 | 914.85139 | 1014.2138 | 947.293 | 947.293 | 920.57638 | 947.293 | 964.0232 | 1030.944 | 0.98 | 1091.43938 | 1597.4472 | 1305.923 | 1305.923 | 1096.93896 | 1030.944 | 2472.0198 | 1305.923 | 0.99 | 2195.07181 | 3626.8342 | 2763.544 | 2763.544 | 2209.64802 | 2763.544 | 3339.0708 | 4202.361 |
| | Charts produced by software: | ![](http://www.freestatistics.org/blog/date/2010/Oct/02/t1286047793fghihb97bxkjq0m/128ve1286047605.png) | http://www.freestatistics.org/blog/date/2010/Oct/02/t1286047793fghihb97bxkjq0m/128ve1286047605.png (open in new window) | http://www.freestatistics.org/blog/date/2010/Oct/02/t1286047793fghihb97bxkjq0m/128ve1286047605.ps (open in new window) |
| | Parameters (Session): | par2 = grey ; par3 = TRUE ; par4 = Unknown ; | | Parameters (R input): | par2 = grey ; par3 = TRUE ; par4 = Unknown ; | | R code (references can be found in the software module): | x <-sort(x[!is.na(x)])
q1 <- function(data,n,p,i,f) {
np <- n*p;
i <<- floor(np)
f <<- np - i
qvalue <- (1-f)*data[i] + f*data[i+1]
}
q2 <- function(data,n,p,i,f) {
np <- (n+1)*p
i <<- floor(np)
f <<- np - i
qvalue <- (1-f)*data[i] + f*data[i+1]
}
q3 <- function(data,n,p,i,f) {
np <- n*p
i <<- floor(np)
f <<- np - i
if (f==0) {
qvalue <- data[i]
} else {
qvalue <- data[i+1]
}
}
q4 <- function(data,n,p,i,f) {
np <- n*p
i <<- floor(np)
f <<- np - i
if (f==0) {
qvalue <- (data[i]+data[i+1])/2
} else {
qvalue <- data[i+1]
}
}
q5 <- function(data,n,p,i,f) {
np <- (n-1)*p
i <<- floor(np)
f <<- np - i
if (f==0) {
qvalue <- data[i+1]
} else {
qvalue <- data[i+1] + f*(data[i+2]-data[i+1])
}
}
q6 <- function(data,n,p,i,f) {
np <- n*p+0.5
i <<- floor(np)
f <<- np - i
qvalue <- data[i]
}
q7 <- function(data,n,p,i,f) {
np <- (n+1)*p
i <<- floor(np)
f <<- np - i
if (f==0) {
qvalue <- data[i]
} else {
qvalue <- f*data[i] + (1-f)*data[i+1]
}
}
q8 <- function(data,n,p,i,f) {
np <- (n+1)*p
i <<- floor(np)
f <<- np - i
if (f==0) {
qvalue <- data[i]
} else {
if (f == 0.5) {
qvalue <- (data[i]+data[i+1])/2
} else {
if (f < 0.5) {
qvalue <- data[i]
} else {
qvalue <- data[i+1]
}
}
}
}
lx <- length(x)
qval <- array(NA,dim=c(99,8))
mystep <- 25
mystart <- 25
if (lx>10){
mystep=10
mystart=10
}
if (lx>20){
mystep=5
mystart=5
}
if (lx>50){
mystep=2
mystart=2
}
if (lx>=100){
mystep=1
mystart=1
}
for (perc in seq(mystart,99,mystep)) {
qval[perc,1] <- q1(x,lx,perc/100,i,f)
qval[perc,2] <- q2(x,lx,perc/100,i,f)
qval[perc,3] <- q3(x,lx,perc/100,i,f)
qval[perc,4] <- q4(x,lx,perc/100,i,f)
qval[perc,5] <- q5(x,lx,perc/100,i,f)
qval[perc,6] <- q6(x,lx,perc/100,i,f)
qval[perc,7] <- q7(x,lx,perc/100,i,f)
qval[perc,8] <- q8(x,lx,perc/100,i,f)
}
bitmap(file='test1.png')
myqqnorm <- qqnorm(x,col=2)
qqline(x)
grid()
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Percentiles - Ungrouped Data',9,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p',1,TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/method_1.htm', 'Weighted Average at Xnp',''),1,TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/method_2.htm','Weighted Average at X(n+1)p',''),1,TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/method_3.htm','Empirical Distribution Function',''),1,TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/method_4.htm','Empirical Distribution Function - Averaging',''),1,TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/method_5.htm','Empirical Distribution Function - Interpolation',''),1,TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/method_6.htm','Closest Observation',''),1,TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/method_7.htm','True Basic - Statistics Graphics Toolkit',''),1,TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/method_8.htm','MS Excel (old versions)',''),1,TRUE)
a<-table.row.end(a)
for (perc in seq(mystart,99,mystep)) {
a<-table.row.start(a)
a<-table.element(a,round(perc/100,2),1,TRUE)
for (j in 1:8) {
a<-table.element(a,round(qval[perc,j],6))
}
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')
| |
Copyright
This work is licensed under a
Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.
Software written by Ed van Stee & Patrick Wessa
Disclaimer
Information provided on this web site is provided
"AS IS" without warranty of any kind, either express or implied,
including, without limitation, warranties of merchantability, fitness
for a particular purpose, and noninfringement. We use reasonable
efforts to include accurate and timely information and periodically
update the information, and software without notice. However, we make
no warranties or representations as to the accuracy or
completeness of such information (or software), and we assume no
liability or responsibility for errors or omissions in the content of
this web site, or any software bugs in online applications. Your use of
this web site is AT YOUR OWN RISK. Under no circumstances and under no
legal theory shall we be liable to you or any other person
for any direct, indirect, special, incidental, exemplary, or
consequential damages arising from your access to, or use of, this web
site.
Privacy Policy
We may request personal information to be submitted to our servers in order to be able to:
- personalize online software applications according to your needs
- enforce strict security rules with respect to the data that you upload (e.g. statistical data)
- manage user sessions of online applications
- alert you about important changes or upgrades in resources or applications
We NEVER allow other companies to directly offer registered users
information about their products and services. Banner references and
hyperlinks of third parties NEVER contain any personal data of the
visitor.
We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.
We carefully protect your data from loss, misuse, alteration,
and destruction. However, at any time, and under any circumstance you
are solely responsible for managing your passwords, and keeping them
secret.
We store a unique ANONYMOUS USER ID in the form of a small
'Cookie' on your computer. This allows us to track your progress when
using this website which is necessary to create state-dependent
features. The cookie is used for NO OTHER PURPOSE. At any time you may
opt to disallow cookies from this website - this will not affect other
features of this website.
We examine cookies that are used by third-parties (banner and
online ads) very closely: abuse from third-parties automatically
results in termination of the advertising contract without refund. We
have very good reason to believe that the cookies that are produced by
third parties (banner ads) do NOT cause any privacy or security risk.
FreeStatistics.org is safe. There is no need to download any
software to use the applications and services contained in this
website. Hence, your system's security is not compromised by their use,
and your personal data - other than data you submit in the account
application form, and the user-agent information that is transmitted by
your browser - is never transmitted to our servers.
As a general rule, we do not log on-line behavior of
individuals (other than normal logging of webserver 'hits'). However,
in cases of abuse, hacking, unauthorized access, Denial of Service
attacks, illegal copying, hotlinking, non-compliance with international
webstandards (such as robots.txt), or any other harmful behavior, our
system engineers are empowered to log, track, identify, publish, and
ban misbehaving individuals - even if this leads to ban entire blocks
of IP addresses, or disclosing user's identity.
FreeStatistics.org is powered by
|