Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_meanplot.wasp
Title produced by softwareMean Plot
Date of computationSun, 02 Nov 2008 10:58:16 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2008/Nov/02/t1225648770qflnnavkk458pry.htm/, Retrieved Mon, 13 May 2024 22:09:01 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=20681, Retrieved Mon, 13 May 2024 22:09:01 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact168
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
F     [Mean Plot] [workshop 3] [2007-10-26 12:47:54] [e9ffc5de6f8a7be62f22b142b5b6b1a8]
F    D    [Mean Plot] [Task 5_Mean Plot] [2008-11-02 17:58:16] [14a75ec03b2c0d8ddd8b141a7b1594fd] [Current]
Feedback Forum
2008-11-06 23:30:10 [Kenny Simons] [reply
Als ik naar het mean plot kijk, zou er eventueel seizoenaliteit kunnen zijn in maand 5 en maand 12. Omdat deze waarden toch wel vrij sterk verschillen met de mediaan en met de vorige of volgende maand.

Als we nu naar de grafiek van de notch box plots gaan kijken, zien we dat bij maand 5 deze wel iets lager ligt dan andere, maar de betrouwbaarheidsintervallen overlappen wel grotendeels, dus dit is louter toevallig. Als we nu naar de 12e maand kijken, zien we dat deze boxplot iets hoger ligt als de andere, maar de betrouwbaarheidsinterval hiervan overlapt toch ook grotendeels deze van de andere boxplotten, dus is het ook hiet louter toevallig dat deze iets hoger ligt. We kunnen dus besluiten dat er geen seizoenaliteit is in deze reeks.
2008-11-11 19:34:33 [Jens Claassens] [reply
In tegenstelling tot uw conclusie durf ik wel te zeggen dat er hier een seizoensgebonden verschil is. Men moet niet enkel met de boxplots vlak naast de desbetreffende hogere/lagere periode kijken maar ook vergelijken tov de gehele lengte van de grafiek. In maand 5-6 en 12 zijn er dus uitschieters die niet aan het toeval gewijd kunnen worden.

Post a new message
Dataseries X:
11447,5
10849,2
11337,3
10713,6
9505,1
11704,2
12459,3
11180,7
11710,8
11200,1
11485,9
13675,8
12386,4
11420,2
14157,6
11729,6
11661,7
13465,5
13518,6
13300,1
13258,7
12949,8
13545
15344,9
14069,1
13796,5
15273,2
12581
13082,5
15142,5
13803,7
15624,5
15683,9
14983
14737,6
17785,3
14183,6
15574,7
15647,8
13674,7
14021,7
15367,7
15993,9
16174,2
14520,6
15429,3
14982,7
16939,8
15046,2
16441
16569,5
15961,8
14902
15802,1
18391,3
17709,7
16058
19816,8
19341,3
19676




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

\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 & 4 seconds \tabularnewline
R Server & 'George Udny Yule' @ 72.249.76.132 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=20681&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]4 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'George Udny Yule' @ 72.249.76.132[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=20681&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=20681&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 time4 seconds
R Server'George Udny Yule' @ 72.249.76.132



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+1))
ari <- array(0,dim=par1)
j <- 0
for (i in 1:n)
{
j = j + 1
ari[j] = ari[j] + 1
arr[j,ari[j]] <- x[i]
if (j == par1) j = 0
}
ari
arr
arr.mean <- array(NA,dim=par1)
arr.median <- array(NA,dim=par1)
arr.midrange <- array(NA,dim=par1)
for (j in 1:par1)
{
arr.mean[j] <- mean(arr[j,],na.rm=TRUE)
arr.median[j] <- median(arr[j,],na.rm=TRUE)
arr.midrange[j] <- (quantile(arr[j,],0.75,na.rm=TRUE) + quantile(arr[j,],0.25,na.rm=TRUE)) / 2
}
overall.mean <- mean(x)
overall.median <- median(x)
overall.midrange <- (quantile(x,0.75) + quantile(x,0.25)) / 2
bitmap(file='plot1.png')
plot(arr.mean,type='b',ylab='mean',main='Mean Plot',xlab='Periodic Index')
mtext(paste('#blocks = ',np))
abline(overall.mean,0)
dev.off()
bitmap(file='plot2.png')
plot(arr.median,type='b',ylab='median',main='Median Plot',xlab='Periodic Index')
mtext(paste('#blocks = ',np))
abline(overall.median,0)
dev.off()
bitmap(file='plot3.png')
plot(arr.midrange,type='b',ylab='midrange',main='Midrange Plot',xlab='Periodic Index')
mtext(paste('#blocks = ',np))
abline(overall.midrange,0)
dev.off()
bitmap(file='plot4.png')
z <- data.frame(t(arr))
names(z) <- c(1:par1)
(boxplot(z,notch=TRUE,col='grey',xlab='Periodic Index',ylab='Value',main='Notched Box Plots - Periodic Subseries'))
dev.off()
bitmap(file='plot5.png')
z <- data.frame(arr)
names(z) <- c(1:np)
(boxplot(z,notch=TRUE,col='grey',xlab='Block Index',ylab='Value',main='Notched Box Plots - Sequential Blocks'))
dev.off()
bitmap(file='plot6.png')
z <- data.frame(cbind(arr.mean,arr.median,arr.midrange))
names(z) <- list('mean','median','midrange')
(boxplot(z,notch=TRUE,col='grey',ylab='Overall Central Tendency',main='Notched Box Plots'))
dev.off()