Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_boxcoxnorm.wasp
Title produced by softwareBox-Cox Normality Plot
Date of computationThu, 13 Nov 2008 01:41:37 -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/13/t1226565753xi8gjy3brk1ngiv.htm/, Retrieved Sun, 19 May 2024 12:42:42 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=24485, Retrieved Sun, 19 May 2024 12:42:42 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsnatalie en evelyn
Estimated Impact216
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Box-Cox Linearity Plot] [Box-Cox] [2008-11-11 14:29:04] [adb6b6905cde49db36d59ca44433140d]
- RM D  [Box-Cox Normality Plot] [Box-Cox Normality...] [2008-11-11 14:44:37] [adb6b6905cde49db36d59ca44433140d]
F    D    [Box-Cox Normality Plot] [Box-Cox Normality...] [2008-11-11 23:46:30] [b591abfa820a394aeb0c5ebd9cfa1091]
F    D        [Box-Cox Normality Plot] [box cox normal plot2] [2008-11-13 08:41:37] [32a7b12f2bdf14b45f7a9a96ba1ab98d] [Current]
Feedback Forum
2008-11-15 13:31:21 [Hundra Smet] [reply
theorie: The Box-Cox normality plot is a plot of these correlation coefficients
for various values of the parameter. The value of corresponding
to the maximum correlation on the plot is then the optimal choice for lambda.
de optimale keuze voor lambda is bij de student -2.

ook hier zien we op de getransfomeerde plots niet echt een verschil met die van de originele.
  2008-11-17 09:40:09 [Katrijn Truyman] [reply
De getransformeerdedata vertoont hier inderdaad weinig of geen verschil met de originele data. Dit is zowel te zien in het histogram als in de scatterplot.
We kunnen concluderen dat het ook hier gaat om geen zinvolle transformatie.
2008-11-17 16:19:22 [Stefan Temmerman] [reply
De student berekent opnieuw de juiste grafieken, maar geeft geen verdere conclusie.
De getransformeerde data heeft geen zichtbare verbetering ondergaan. Dit is te merken aan de histogrammen en de QQ-plots. De lambda grafiek vertoont ook geen beduidend maximum, waaruit volgt dat de transformatie niet het gewenste resultaat geeft.
2008-11-18 10:34:57 [72e979bcc364082694890d2eccc1a66f] [reply
Er is geen onverduidelijke verbetering ontstaan. De resultaten zijn heel weinig gewijzigd.
2008-11-18 13:51:20 [Julie Govaerts] [reply
de tijdreeks best kan transformeren met een lambda die dicht bij -2 gelegen is (dit zorgt ervoor dat de verdeling van de tijdreeks meer op een normaalverdeling gaat lijken)
2008-11-24 16:39:40 [5faab2fc6fb120339944528a32d48a04] [reply
De student geeft een juiste grafische voorstelling. Hierbij zoeken we net als bij de Box-Cox linearity plot naar de optimale lambda waarmee we de X-variabele transformeren om zo het geheel meer lineair te maken. Uit de transformatie kunnen we afleiden dat de optimale lambda -2 is maar dat er door de transformatie weinig tot geen verandering in het verband tussen de variabelen plaatsvind. Daarom is de transformatie niet echt zinvol.
2008-11-24 21:01:44 [Kevin Vermeiren] [reply
De conclusie van de student is totaal verkeerd. De box-cox normality plot is geen boxplot. Deze plot geeft een beeld van hoe normaal de gegevens verdeeld zijn. Verder werd ook hier geen uitleg gegeven over hoe deze module werkt. De werking is analoog aan deze van de box-cox linearity plot. Het verschil tussen deze plots is het feit dat de box-cox linearity plot het lineair verband meet en de box-cox normality plot de normaal verdeling onderzoekt. Uit de grafieken blijkt dat de getransformeerde data geen duidelijke verbetering ondergaat. De optimale lambda waarde bevindt zich in het minimum van de box-cox normality plot, deze bedraagt -2.

Post a new message
Dataseries X:
519164
517009
509933
509127
500857
506971
569323
579714
577992
565464
547344
554788
562325
560854
555332
543599
536662
542722
593530
610763
612613
611324
594167
595454
590865
589379
584428
573100
567456
569028
620735
628884
628232
612117
595404
597141
593408
590072
579799
574205
572775
572942
619567
625809
619916
587625
565742
557274
560576
548854
531673
525919
511038
498662
555362
564591
541657
527070
509846
514258




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

\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' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=24485&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' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=24485&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=24485&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' @ 72.249.127.135







Box-Cox Normality Plot
# observations x60
maximum correlation0.0428911795373397
optimal lambda-2

\begin{tabular}{lllllllll}
\hline
Box-Cox Normality Plot \tabularnewline
# observations x & 60 \tabularnewline
maximum correlation & 0.0428911795373397 \tabularnewline
optimal lambda & -2 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=24485&T=1

[TABLE]
[ROW][C]Box-Cox Normality Plot[/C][/ROW]
[ROW][C]# observations x[/C][C]60[/C][/ROW]
[ROW][C]maximum correlation[/C][C]0.0428911795373397[/C][/ROW]
[ROW][C]optimal lambda[/C][C]-2[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=24485&T=1

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

As an alternative you can also use a QR Code:  

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

Box-Cox Normality Plot
# observations x60
maximum correlation0.0428911795373397
optimal lambda-2



Parameters (Session):
Parameters (R input):
R code (references can be found in the software module):
n <- length(x)
c <- array(NA,dim=c(401))
l <- array(NA,dim=c(401))
mx <- 0
mxli <- -999
for (i in 1:401)
{
l[i] <- (i-201)/100
if (l[i] != 0)
{
x1 <- (x^l[i] - 1) / l[i]
} else {
x1 <- log(x)
}
c[i] <- cor(qnorm(ppoints(x), mean=0, sd=1),x1)
if (mx < c[i])
{
mx <- c[i]
mxli <- l[i]
}
}
c
mx
mxli
if (mxli != 0)
{
x1 <- (x^mxli - 1) / mxli
} else {
x1 <- log(x)
}
bitmap(file='test1.png')
plot(l,c,main='Box-Cox Normality Plot',xlab='Lambda',ylab='correlation')
mtext(paste('Optimal Lambda =',mxli))
grid()
dev.off()
bitmap(file='test2.png')
hist(x,main='Histogram of Original Data',xlab='X',ylab='frequency')
grid()
dev.off()
bitmap(file='test3.png')
hist(x1,main='Histogram of Transformed Data',xlab='X',ylab='frequency')
grid()
dev.off()
bitmap(file='test4.png')
qqnorm(x)
qqline(x)
grid()
mtext('Original Data')
dev.off()
bitmap(file='test5.png')
qqnorm(x1)
qqline(x1)
grid()
mtext('Transformed Data')
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Box-Cox Normality Plot',2,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'# observations x',header=TRUE)
a<-table.element(a,n)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'maximum correlation',header=TRUE)
a<-table.element(a,mx)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'optimal lambda',header=TRUE)
a<-table.element(a,mxli)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable.tab')