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 12:25:30 -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/t12266043568czpmt5h3wofx3a.htm/, Retrieved Sun, 19 May 2024 08:48:56 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=24788, Retrieved Sun, 19 May 2024 08:48:56 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact159
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Bivariate Kernel Density Estimation] [Bivariate Kernel] [2008-11-13 12:14:49] [74be16979710d4c4e7c6647856088456]
F    D  [Bivariate Kernel Density Estimation] [various Q1] [2008-11-13 18:47:25] [74be16979710d4c4e7c6647856088456]
F RMPD      [Box-Cox Normality Plot] [Q4] [2008-11-13 19:25:30] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum
2008-11-16 14:54:53 [Bert Moons] [reply
Het is de bedoeling bij de box cox normality plot de verdeling meer normaal verdeeld te maken door transformatie. Ook hier is de bepalende variabele lambda. De meest optimale verdeling bekomen we bij lambda = 2. Bij de histogrammen en de QQ-plots is niet direct visueel duidelijk of de transformatie nu een meer normale verdeling heeft opgeleverd.
2008-11-21 13:34:20 [Thomas Plasschaert] [reply
Bij deze transformatie hebben we weer een optimale waarde voor lambda nodig, deze is hier echter niet af te leiden omdat de cruve stijgend is en blijft, we weten dus niet wanneer lambda een maximale waarde bereikt. voor de rest heb je de juiste conclusies getrokken
2008-11-24 20:38:00 [5faab2fc6fb120339944528a32d48a04] [reply
Deze plot voert een transformatie door om de variabelen zo goed mogelijk normaal verdeeld te maken. Hiervoor worden verschillende lambda-waardes getest om het optimale verband te vinden. De lambda-waarde is hier 2. De transformatie wordt doorgevoerd op de X-variabelen. De transformaties veroorzaken niet echt een verbetering.

Post a new message
Dataseries X:
97,4
97
105,4
102,7
98,1
104,5
87,4
89,9
109,8
111,7
98,6
96,9
95,1
97
112,7
102,9
97,4
111,4
87,4
96,8
114,1
110,3
103,9
101,6
94,6
95,9
104,7
102,8
98,1
113,9
80,9
95,7
113,2
105,9
108,8
102,3
99
100,7
115,5
100,7
109,9
114,6
85,4
100,5
114,8
116,5
112,9
102
106
105,3
118,8
106,1
109,3
117,2
92,5
104,2
112,5
122,4
113,3
100
110,7
112,8
109,8
117,3
109,1
115,9
96
97,6




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=24788&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=24788&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=24788&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 x68
maximum correlation0.351142587366414
optimal lambda2

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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=24788&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 x68
maximum correlation0.351142587366414
optimal lambda2



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')