Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_meanversusmedian.wasp
Title produced by softwareMean versus Median
Date of computationTue, 27 Apr 2010 12:58:47 +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/2010/Apr/27/t1272373163iwvi5adyppfauqa.htm/, Retrieved Thu, 28 Mar 2024 22:00:59 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=74940, Retrieved Thu, 28 Mar 2024 22:00:59 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsKDGP1W52
Estimated Impact227
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Mean versus Median] [Energieverbruik ] [2010-04-27 12:58:47] [dd2ef098fd65ce7e9f689caa343b799f] [Current]
Feedback Forum

Post a new message
Dataseries X:
5.074
4.643
5.451
5.397
5.635
5.708
5.578
5.574
5.352
5.302
4.923
4.982
5.101
4.763
5.505
5.385
5.794
5.695
5.798
5.705
5.422
5.311
4.968
5.053
5.236
4.782
5.531
5.566
5.961
5.868
5.872
5.908
5.594
5.526
5.111
5.177
5.835
5.348
6.038
6.039
6.408
6.214
6.138
6.529
6.058
6.026
5.678
5.733
6.488
5.936
6.84
6.694
7.193
6.991
7.209
7.104
6.83
6.848
6.396
6.414
7.151
6.882
7.698
7.626
7.936
8.054
8.128
8.062
7.708
7.574
7.039
7.146
7.07
6.607
7.699
7.663
7.988
7.723
8.087
8.028
7.362




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

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







Median versus Mean
mean6.2527037037037
median5.961

\begin{tabular}{lllllllll}
\hline
Median versus Mean \tabularnewline
mean & 6.2527037037037 \tabularnewline
median & 5.961 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=74940&T=1

[TABLE]
[ROW][C]Median versus Mean[/C][/ROW]
[ROW][C]mean[/C][C]6.2527037037037[/C][/ROW]
[ROW][C]median[/C][C]5.961[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=74940&T=1

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

As an alternative you can also use a QR Code:  

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

Median versus Mean
mean6.2527037037037
median5.961



Parameters (Session):
Parameters (R input):
R code (references can be found in the software module):
library(Hmisc)
m <- mean(x)
e <- median(x)
bitmap(file='test1.png')
op <- par(mfrow=c(2,1))
mydensity1 <- density(x,kernel='gaussian',na.rm=TRUE)
plot(mydensity1,main='Density Plot - Gaussian Kernel',xlab='Median (0 -> full line) | Mean (0 -> dashed line)',ylab='density')
abline(v=e,lty=1)
abline(v=m,lty=5)
grid()
myseq <- seq(0.01, 0.99, 0.01)
hd <- hdquantile(x, probs = myseq, se = TRUE, na.rm = FALSE, names = TRUE, weights=FALSE)
plot(myseq,hd,col=2,main='Harrell-Davis Quantiles',xlab='quantiles',ylab='Median (0 -> full) | Mean (0 -> dashed)')
abline(h=m,lty=5)
abline(h=e,lty=1)
grid()
par(op)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Median versus Mean',2,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'mean',header=TRUE)
a<-table.element(a,mean(x))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'median',header=TRUE)
a<-table.element(a,median(x))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable.tab')