Free Statistics

of Irreproducible Research!

Author's title

marina cabraja mar205 opgave 8.3 spreidings- en gemiddeldegrafieken koffie,...

Author*Unverified author*
R Software Modulerwasp_smp.wasp
Title produced by softwareStandard Deviation-Mean Plot
Date of computationFri, 06 May 2011 12:54:43 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2011/May/06/t1304686273gh8pe0nq3uuvkgs.htm/, Retrieved Sun, 12 May 2024 14:59:14 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=121162, Retrieved Sun, 12 May 2024 14:59:14 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsKDGP2W83
Estimated Impact186
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Standard Deviation-Mean Plot] [marina cabraja ma...] [2011-05-06 12:54:43] [66fafd9d0cf16d279c92f5b45ad11920] [Current]
Feedback Forum

Post a new message
Dataseries X:
106.42
106.22
106.32
105.81
105.92
107.54
107.34
107.24
107.74
105.71
105.41
106.22
106.32
106.12
106.22
105.92
105.71
105.71
105.92
105.71
105.41
104.49
101.35
99.72
99.01
97.89
95.86
94.95
95.35
95.15
95.46
95.56
95.05
94.64
93.63
93.12
93.53
97.18
96.27
95.15
97.08
101.95
103.07
103.68
102.87
102.56
103.38
103.27
102.89
102.69
101.54
102.9
101.53
101.96
101.99
101.11
101.75
101.71
104.11
103.57
103.32
103.64
103.68
103.79
103.01
101.54
101.9
103.68
104.62
104.11
105.04
104.83
105.05
104.68
107.32
109.9
109.77
110.69
110.54
110.89
110.95
109.73
110.85
110.39
110.58
110.4
111.07
110.86
111.38
111.44
110.36
110.06
108.34
107.94
107.39
107.1
107.61
107.74
106.9
106.71
106.6
108.21
110.54
110.91
109.51
110.27
111.39
112.13
111.64




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Gwilym Jenkins' @ www.wessa.org

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 2 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ www.wessa.org \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=121162&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]2 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ www.wessa.org[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=121162&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=121162&T=0

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Gwilym Jenkins' @ www.wessa.org







Standard Deviation-Mean Plot
SectionMeanStandard DeviationRange
1106.4908333333330.779958720741432.33
2104.8833333333332.113937873574666.6
395.47251.615516382404775.89
499.99916666666673.8073217939155410.15
5102.31250.9143415415179683
6103.5966666666671.065895554608113.5
7109.232.263247867355876.27
8109.7433333333331.593249015139324.34
9109.0433333333331.975694737799775.53

\begin{tabular}{lllllllll}
\hline
Standard Deviation-Mean Plot \tabularnewline
Section & Mean & Standard Deviation & Range \tabularnewline
1 & 106.490833333333 & 0.77995872074143 & 2.33 \tabularnewline
2 & 104.883333333333 & 2.11393787357466 & 6.6 \tabularnewline
3 & 95.4725 & 1.61551638240477 & 5.89 \tabularnewline
4 & 99.9991666666667 & 3.80732179391554 & 10.15 \tabularnewline
5 & 102.3125 & 0.914341541517968 & 3 \tabularnewline
6 & 103.596666666667 & 1.06589555460811 & 3.5 \tabularnewline
7 & 109.23 & 2.26324786735587 & 6.27 \tabularnewline
8 & 109.743333333333 & 1.59324901513932 & 4.34 \tabularnewline
9 & 109.043333333333 & 1.97569473779977 & 5.53 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=121162&T=1

[TABLE]
[ROW][C]Standard Deviation-Mean Plot[/C][/ROW]
[ROW][C]Section[/C][C]Mean[/C][C]Standard Deviation[/C][C]Range[/C][/ROW]
[ROW][C]1[/C][C]106.490833333333[/C][C]0.77995872074143[/C][C]2.33[/C][/ROW]
[ROW][C]2[/C][C]104.883333333333[/C][C]2.11393787357466[/C][C]6.6[/C][/ROW]
[ROW][C]3[/C][C]95.4725[/C][C]1.61551638240477[/C][C]5.89[/C][/ROW]
[ROW][C]4[/C][C]99.9991666666667[/C][C]3.80732179391554[/C][C]10.15[/C][/ROW]
[ROW][C]5[/C][C]102.3125[/C][C]0.914341541517968[/C][C]3[/C][/ROW]
[ROW][C]6[/C][C]103.596666666667[/C][C]1.06589555460811[/C][C]3.5[/C][/ROW]
[ROW][C]7[/C][C]109.23[/C][C]2.26324786735587[/C][C]6.27[/C][/ROW]
[ROW][C]8[/C][C]109.743333333333[/C][C]1.59324901513932[/C][C]4.34[/C][/ROW]
[ROW][C]9[/C][C]109.043333333333[/C][C]1.97569473779977[/C][C]5.53[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=121162&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=121162&T=1

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Standard Deviation-Mean Plot
SectionMeanStandard DeviationRange
1106.4908333333330.779958720741432.33
2104.8833333333332.113937873574666.6
395.47251.615516382404775.89
499.99916666666673.8073217939155410.15
5102.31250.9143415415179683
6103.5966666666671.065895554608113.5
7109.232.263247867355876.27
8109.7433333333331.593249015139324.34
9109.0433333333331.975694737799775.53







Regression: S.E.(k) = alpha + beta * Mean(k)
alpha4.53319548697668
beta-0.0262227241421308
S.D.0.0724627041805513
T-STAT-0.36187890637911
p-value0.728119897892927

\begin{tabular}{lllllllll}
\hline
Regression: S.E.(k) = alpha + beta * Mean(k) \tabularnewline
alpha & 4.53319548697668 \tabularnewline
beta & -0.0262227241421308 \tabularnewline
S.D. & 0.0724627041805513 \tabularnewline
T-STAT & -0.36187890637911 \tabularnewline
p-value & 0.728119897892927 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=121162&T=2

[TABLE]
[ROW][C]Regression: S.E.(k) = alpha + beta * Mean(k)[/C][/ROW]
[ROW][C]alpha[/C][C]4.53319548697668[/C][/ROW]
[ROW][C]beta[/C][C]-0.0262227241421308[/C][/ROW]
[ROW][C]S.D.[/C][C]0.0724627041805513[/C][/ROW]
[ROW][C]T-STAT[/C][C]-0.36187890637911[/C][/ROW]
[ROW][C]p-value[/C][C]0.728119897892927[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=121162&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=121162&T=2

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Regression: S.E.(k) = alpha + beta * Mean(k)
alpha4.53319548697668
beta-0.0262227241421308
S.D.0.0724627041805513
T-STAT-0.36187890637911
p-value0.728119897892927







Regression: ln S.E.(k) = alpha + beta * ln Mean(k)
alpha3.74471794587261
beta-0.703880054793058
S.D.4.06008408697055
T-STAT-0.173365881029883
p-value0.867270553905419
Lambda1.70388005479306

\begin{tabular}{lllllllll}
\hline
Regression: ln S.E.(k) = alpha + beta * ln Mean(k) \tabularnewline
alpha & 3.74471794587261 \tabularnewline
beta & -0.703880054793058 \tabularnewline
S.D. & 4.06008408697055 \tabularnewline
T-STAT & -0.173365881029883 \tabularnewline
p-value & 0.867270553905419 \tabularnewline
Lambda & 1.70388005479306 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=121162&T=3

[TABLE]
[ROW][C]Regression: ln S.E.(k) = alpha + beta * ln Mean(k)[/C][/ROW]
[ROW][C]alpha[/C][C]3.74471794587261[/C][/ROW]
[ROW][C]beta[/C][C]-0.703880054793058[/C][/ROW]
[ROW][C]S.D.[/C][C]4.06008408697055[/C][/ROW]
[ROW][C]T-STAT[/C][C]-0.173365881029883[/C][/ROW]
[ROW][C]p-value[/C][C]0.867270553905419[/C][/ROW]
[ROW][C]Lambda[/C][C]1.70388005479306[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=121162&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=121162&T=3

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Regression: ln S.E.(k) = alpha + beta * ln Mean(k)
alpha3.74471794587261
beta-0.703880054793058
S.D.4.06008408697055
T-STAT-0.173365881029883
p-value0.867270553905419
Lambda1.70388005479306



Parameters (Session):
par1 = 12 ;
Parameters (R input):
par1 = 12 ;
R code (references can be found in the software module):
par1 <- as.numeric(par1)
(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')