Home » date » 2010 » Dec » 13 »

tutorial

*The author of this computation has been verified*
R Software Module: /rwasp_smp.wasp (opens new window with default values)
Title produced by software: Standard Deviation-Mean Plot
Date of computation: Mon, 13 Dec 2010 19:55:01 +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/Dec/13/t12922701779v4qyma5r7i2qiw.htm/, Retrieved Mon, 13 Dec 2010 20:56:17 +0100
 
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/Dec/13/t12922701779v4qyma5r7i2qiw.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:
workshop 6
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1,2998 1,3146 1,3225 1,3321 1,3339 1,3496 1,3647 1,3674 1,3647 1,3481 1,3612 1,3626 1,3711 1,37 1,377 1,3945 1,3917 1,4084 1,4244 1,4014 1,4018 1,3926 1,3857 1,3857 1,3803 1,3912 1,4031 1,3934 1,4016 1,3861 1,3859 1,3896 1,4089 1,4101 1,3958 1,3833 1,3936 1,3874 1,397 1,3856 1,378 1,3705 1,3726 1,3648 1,3611 1,346 1,3477 1,3412 1,3323 1,3364 1,312 1,3074 1,306 1,3078 1,2989 1,285 1,2801 1,2725 1,2715 1,2697 1,2744 1,2874 1,2834 1,2818 1,28 1,268 1,27 1,2713 1,2693 1,2613 1,2611 1,2704 1,2711 1,2836 1,288 1,286 1,282 1,2799 1,279 1,3016 1,3133 1,3253 1,3176 1,3184 1,3206 1,3221 1,3073 1,3028 1,3069 1,2992 1,3033 1,2931 1,2897 1,285 1,2817 1,2844 1,2957 1,3 1,2828 1,2703 1,2569 1,2572 1,2637 1,266 1,2567 1,2579 1,2531 1,2548 1,2328 1,2271 1,2198 1,2339 1,2294 1,2262 1,2271 1,2258 1,2391 1,2372 1,2363 1,2277 1,2258 1,2249 1,2127 1,2045 1,201 1,1942 1,1959 1,206 1,2268 1,2218 1,2155 1 etc...
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Standard Deviation-Mean Plot
SectionMeanStandard DeviationRange
11.320580.0139766591143950.0341
21.35890.009255538882204530.0192999999999999
31.368380.006505536103965610.0158
41.404080.0130746701679240.0327000000000002
51.389220.008276895553285640.0214999999999999
61.395080.007164984298656870.0169999999999999
71.398060.01103417418749590.0242
81.389380.005723809919974650.0137
91.36940.006623065755373390.0168999999999999
101.340720.006449573629318420.0153999999999999
111.306420.004762562335550090.0131000000000001
121.275760.006513677916507650.0152999999999999
131.28140.004772839825512740.0130000000000001
141.267980.003920076529865190.01
151.274840.01086752041635990.0268999999999999
161.28570.009288702815786540.0226000000000002
171.319040.004388963431153180.012
181.307660.008723703342044640.0229000000000001
191.290560.008350329334822620.0215999999999998
201.286640.01169756384893880.0297000000000001
211.26010.00441531425835130.00930000000000009
221.245140.01411747144498620.0307999999999999
231.227280.00513488071915990.0141
241.233220.006029676608243620.0133000000000001
251.213780.01138802002105720.0247999999999999
261.208940.01483502612063760.0326
271.22820.008458132181516170.0228999999999999
281.233680.01044303595703860.0274000000000001
291.250840.01321563468018080.0336999999999998
301.281280.01242646369648260.0270999999999999
311.322860.008375738773385890.0226
321.332680.0031308145904860.00829999999999997
331.352240.006836885255728660.0183
341.343760.01372198965165040.0289000000000001
351.345920.003578686910027260.00860000000000016
361.340740.008203231070742830.0181
371.367840.008071740828346750.0207999999999999
381.365020.007692008840348590.0208000000000002
391.359280.006061930385611510.0143
401.356180.00498467651909330.0137
411.361360.00791378544060930.0206999999999999
421.36930.007464583042608610.0187999999999999
431.387440.01138059752385610.0293000000000001
441.405460.007324820816921070.0185
451.419580.01245580186098030.0305
461.448640.007117092102818390.0188999999999999
471.435160.006711408197986470.0168999999999999
481.43960.003506422678457370.00950000000000006
491.432060.00410402241709280.0092000000000001
501.46470.009720339500243850.0216000000000001
511.490340.01750965447974350.0352000000000001
521.503520.007013344423311890.0171999999999999
531.493960.01044356261052710.0267999999999999
541.491740.004498110714511160.00970000000000004
551.494320.00764571775571140.0175000000000001
561.475580.005666745097496430.0142
571.493960.01056186536554980.0235000000000001
581.490860.004385544435985140.0107000000000002
591.480460.006254038695115320.0130999999999999
601.462160.008563468923281040.0185
611.46560.007809289340266440.0218999999999998
621.472760.005341628965025540.0125
631.459640.004919146267392410.0126000000000002
641.438440.01085877525322260.026
651.428760.00541553321474440.0144
661.42980.003915992849840260.00870000000000015
671.417440.01097009571517040.0222
681.42530.01019362545907980.0204
691.425760.01560682542992010.0357000000000001
701.421160.006268014039550310.0165
711.417020.005800603416886860.0132999999999999
721.398920.006697910121821630.0188000000000001
731.39750.007093659140387330.0152000000000001
741.406480.007476095237488650.0194000000000001
751.394340.0064216820226480.0171000000000001
761.391060.00728271927235980.0164000000000002
771.403980.01249747974593270.0310999999999999
781.412380.01593744019596620.0382
791.391240.009113341867833130.0239
801.357540.00783377303730460.0196000000000001
811.353360.01349473971590410.032
821.329780.006851788087791410.018
831.306920.0112781647443190.0285
841.30650.01187055179846330.0264000000000002
851.330620.01076043679410830.0265
861.331280.00970808941038350.0232000000000001
871.349220.01189735264670260.0312000000000001
881.326680.03231713167965250.0729
891.276420.01231369156670740.034
901.259580.004349367770147740.0103
911.275640.006432961992737130.0154000000000001
921.265820.007511125082169720.0173999999999999
931.291380.008225387528864480.0185
941.281040.003406317659878440.0088999999999999
951.307020.01728531168362320.0444
961.296020.01418492157186640.0387
971.323680.01157181921739190.0308999999999999
981.35620.0134441437064620.0352000000000001


Regression: S.E.(k) = alpha + beta * Mean(k)
alpha0.0179852023988496
beta-0.00670951083357244
S.D.0.00552191842349438
T-STAT-1.21506880743206
p-value0.227319839596855


Regression: ln S.E.(k) = alpha + beta * ln Mean(k)
alpha-4.55931422627582
beta-0.853716122878329
S.D.0.780594703708458
T-STAT-1.09367398833541
p-value0.276834677727817
Lambda1.85371612287833
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/13/t12922701779v4qyma5r7i2qiw/1qmbr1292270096.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t12922701779v4qyma5r7i2qiw/1qmbr1292270096.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/13/t12922701779v4qyma5r7i2qiw/2qmbr1292270096.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t12922701779v4qyma5r7i2qiw/2qmbr1292270096.ps (open in new window)


 
Parameters (Session):
par1 = 4 ;
 
Parameters (R input):
par1 = 4 ;
 
R code (references can be found in the software module):
par1 <- 5
(n <- length(x))
(np <- floor(n / par1))
arr <- array(NA,dim=c(par1,np))
j <- 0
k <- 1
for (i in 1:(np*par1))
{
j = j + 1
arr[j,k] <- x[i]
if (j == par1) {
j = 0
k=k+1
}
}
arr
arr.mean <- array(NA,dim=np)
arr.sd <- array(NA,dim=np)
arr.range <- array(NA,dim=np)
for (j in 1:np)
{
arr.mean[j] <- mean(arr[,j],na.rm=TRUE)
arr.sd[j] <- sd(arr[,j],na.rm=TRUE)
arr.range[j] <- max(arr[,j],na.rm=TRUE) - min(arr[,j],na.rm=TRUE)
}
arr.mean
arr.sd
arr.range
(lm1 <- lm(arr.sd~arr.mean))
(lnlm1 <- lm(log(arr.sd)~log(arr.mean)))
(lm2 <- lm(arr.range~arr.mean))
bitmap(file='test1.png')
plot(arr.mean,arr.sd,main='Standard Deviation-Mean Plot',xlab='mean',ylab='standard deviation')
dev.off()
bitmap(file='test2.png')
plot(arr.mean,arr.range,main='Range-Mean Plot',xlab='mean',ylab='range')
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Standard Deviation-Mean Plot',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Section',header=TRUE)
a<-table.element(a,'Mean',header=TRUE)
a<-table.element(a,'Standard Deviation',header=TRUE)
a<-table.element(a,'Range',header=TRUE)
a<-table.row.end(a)
for (j in 1:np) {
a<-table.row.start(a)
a<-table.element(a,j,header=TRUE)
a<-table.element(a,arr.mean[j])
a<-table.element(a,arr.sd[j] )
a<-table.element(a,arr.range[j] )
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Regression: S.E.(k) = alpha + beta * Mean(k)',2,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'alpha',header=TRUE)
a<-table.element(a,lm1$coefficients[[1]])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'beta',header=TRUE)
a<-table.element(a,lm1$coefficients[[2]])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,summary(lm1)$coefficients[2,2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'T-STAT',header=TRUE)
a<-table.element(a,summary(lm1)$coefficients[2,3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-value',header=TRUE)
a<-table.element(a,summary(lm1)$coefficients[2,4])
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Regression: ln S.E.(k) = alpha + beta * ln Mean(k)',2,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'alpha',header=TRUE)
a<-table.element(a,lnlm1$coefficients[[1]])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'beta',header=TRUE)
a<-table.element(a,lnlm1$coefficients[[2]])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,summary(lnlm1)$coefficients[2,2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'T-STAT',header=TRUE)
a<-table.element(a,summary(lnlm1)$coefficients[2,3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-value',header=TRUE)
a<-table.element(a,summary(lnlm1)$coefficients[2,4])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Lambda',header=TRUE)
a<-table.element(a,1-lnlm1$coefficients[[2]])
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable2.tab')
 





Copyright

Creative Commons License

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