Home » date » 2010 » Dec » 17 »

workshop9

*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: Fri, 17 Dec 2010 20:13:38 +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/17/t1292616732fyfawn08kvhdbig.htm/, Retrieved Fri, 17 Dec 2010 21:12:14 +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/17/t1292616732fyfawn08kvhdbig.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 «
40.7819 39.5915 38.8859 39.9068 41.47 41.5613 41.6005 41.4113 41.84 42.2892 43.1521 43.5998 43.116 42.4185 42.3687 42.2975 42.8528 43.535 44.7265 45.7293 45.7585 46.1685 46.5075 46.527 46.601 46.4607 46.7135 46.4113 45.55 44.6081 44.4395 44.9847 45.7558 45.3942 45.697 45.5664 46.0205 45.9195 45.8005 45.535 45.4977 45.5782 45.7697 45.2445 45.0615 45.2865 44.791 44.7625 44.7644 44.9973 44.7265 45.1465 44.7465 45.1795 45.6515 45.492 45.2775 45.2115 45.411 45.4005 44.7692 44.8913 45.032 44.879 44.833 44.8257 44.7815 44.479 44.6317 44.5043 44.3217 44.1005 44.047 43.6835 43.7864 44.1807 43.9595 43.937 43.991 43.865 43.671 43.93 43.863 43.7095 43.9435 43.736 43.6295 43.598 43.8726 43.8935 43.5957 43.7155 43.528 43.3415 43.3374 43.332 43.3869 43.5016 43.4875 43.6023 43.3886 43.3105 43.4455 43.5185 43.5755 43.6217 43.644 43.5789 43.5215 43.5033 43.632 43.263 43.3717 43.2745 43.2647 43.324 43.4455 43.409 etc...
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'George Udny Yule' @ 72.249.76.132


Standard Deviation-Mean Plot
SectionMeanStandard DeviationRange
140.127221.013424919271282.5841
241.740460.3431680390129610.877900000000004
342.931020.5266025987402651.23110000000000
443.828221.396561669601453.4318
546.31250.3517525763942610.842500000000001
645.948720.868509045433612.10540000000000
745.254240.5485528078498921.31630000000000
845.768380.2137145222019320.485500000000002
945.430320.2793495158399240.708199999999998
1044.920340.2269116413937360.523999999999994
1145.09010.3796739390582390.924999999999997
1245.35850.1123749304782860.280499999999996
1344.88090.0971008238893980.262799999999999
1444.644440.1571723194458870.346699999999998
1543.987820.2553701176723690.638199999999998
1643.986640.1179780615199290.315700000000000
1743.82340.1260502875839640.272500000000001
1843.745920.1354252819823540.295500000000004
1943.503620.1642241060258800.378099999999996
2043.462060.1054069399992240.270299999999999
2143.447720.1044832139628190.265000000000001
2243.573880.06114320894424560.140699999999995
2343.361180.1580468822849720.369
2443.503860.2423880112546830.606000000000002
2543.785380.1396161595231730.341000000000001
2643.869820.1144270378887790.274799999999999
2745.02490.703765976728061.765
2844.545920.4622450724453440.955100000000002
2944.09220.2262262252701930.517499999999998
3044.51030.2241767160077070.625
3145.212620.3797604797763980.874400000000001
3245.44140.3998434693727060.985000000000007
3345.129380.1769414366393580.450099999999999
3445.300920.2492259657419350.637
3545.266680.1395171924889550.291600000000003
3644.994620.1556948361378780.398500000000006
3744.624580.1730393943586270.427100000000003
3844.159180.1944741936607520.525599999999997
3943.895260.09818176001681770.250599999999999
4043.707220.1112306252791910.299999999999997
4143.730620.06750534793629110.182599999999994
4243.49740.1108542962631590.231500000000004
4343.12610.09564013278953630.225999999999999
4443.127160.09214511924133670.226700000000001
4542.953760.1039731359534750.280499999999996
4643.04430.1130462737112540.2577
4743.791580.2064219755743060.529999999999994
4844.301640.4323175314511311.04
4944.428940.4219788418866510.901200000000003
5043.929520.2357482279890990.5869
5143.093460.3498386027870560.789999999999999
5242.97630.2373361540094560.542499999999997
5342.707780.2007145784441170.539999999999999
5442.257760.3031264802025690.676199999999994
5542.520380.2116945252008170.552099999999996
5642.03670.2706232621191310.655000000000001
5741.63160.1606962974060090.391000000000005
5841.077540.1488475999134680.366
5940.7140.1100386295807050.262999999999998
6040.638420.0996975777037750.216000000000001
6140.41270.1573366613348590.371500000000005
6240.180620.1453671971250720.355499999999999
6339.734660.1761196411533950.412500000000001
6439.66010.1085802698467830.289500000000004
6539.237660.1000551997649280.251099999999994
6639.37590.1097994763193330.234999999999999
6738.959140.1830243781576650.483499999999999
6838.797440.03239510765532350.0812999999999988
6938.686620.1840174502594800.387000000000000
7037.898040.3106752049971170.758000000000003
7138.287580.5919006521368261.44290000000000
7238.10850.2867825831531620.710000000000001
7337.957760.1246703172371050.318000000000005
7438.136340.1682614869778570.423999999999999
7538.31310.1368395045299400.342499999999994
7638.173280.1345171624737900.302500000000002
7738.622360.430940498212920.950099999999999
7839.037160.1587974433043560.383800000000001
7939.140920.3695922983504930.8185
8039.157340.08556402865690630.235799999999998
8139.390240.06330326215922990.154400000000003
8239.400220.1374936071241130.338999999999999
8339.256440.1564701824629840.353999999999999
8439.03990.1155496862825710.248400000000004
8539.031620.04968472602319510.1235
8639.334160.1322344433194310.335999999999999
8739.274920.03816611062186000.102400000000003
8840.25590.4363789064563031.03050000000000
8941.240940.2626054892800250.660500000000006
9041.563860.2907169121327470.654499999999999
9141.54850.1087002759886110.280000000000001
9242.185360.3461586673766820.884999999999998
9342.58180.2760332316950270.712800000000001
9442.561260.2671160478144270.611799999999995
9543.17980.230920603238430.615000000000002
9642.253980.2836071790346660.779700000000005
9742.381060.06207691197216520.145699999999998
9841.69290.4183184193888681.14650000000000


Regression: S.E.(k) = alpha + beta * Mean(k)
alpha-0.388060213957644
beta0.0148742742195947
S.D.0.0085834395887362
T-STAT1.73290369971425
p-value0.0863239046359169


Regression: ln S.E.(k) = alpha + beta * ln Mean(k)
alpha-12.0961543921023
beta2.78611752886801
S.D.1.18221991665320
T-STAT2.3566829568862
p-value0.0204704805611829
Lambda-1.78611752886801
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292616732fyfawn08kvhdbig/16htz1292616815.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292616732fyfawn08kvhdbig/16htz1292616815.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292616732fyfawn08kvhdbig/26htz1292616815.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292616732fyfawn08kvhdbig/26htz1292616815.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