Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_meanversusmedian.wasp
Title produced by softwareMean versus Median
Date of computationSat, 28 May 2016 13:03:51 +0100
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2016/May/28/t1464437139resn02dm6gkqcju.htm/, Retrieved Fri, 03 May 2024 11:07:36 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=295634, Retrieved Fri, 03 May 2024 11:07:36 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact156
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Mean versus Median] [] [2016-05-28 12:03:51] [a8cf284534efea996701e15b66911faf] [Current]
Feedback Forum

Post a new message
Dataseries X:
92,09
93,77
94,44
94,91
94,78
94,51
94,36
96,6
96,72
96,71
97,44
97,83
98,92
97,98
98,76
99,76
99,87
100,09
100,07
99,46
100,4
101,25
102,29
102,1
105,91
108,95
110,07
109,92
109,87
110,54
110,79
110,32
110,76
110,24
110,27
110,11
110,39
111,05
110,85
110,24
108,7
109,93
109,53
109,83
107,86
104,61
103,61
103,11
102,59
102,91
101,94
101,8
102,25
102,6
102,49
102,13
100,76
100,86
101,12
100,74
99,99
99,39
99,52
99,21
99,38
99,37
99,38
99,26
99,36
99,2
98,53
98,65
99,15
100,17
99,98
100,07
99,94
100,05
99,13
98,74
98,64
98,44
98,81
98,88
99,63
100,08
100,07
100,55
99,98
99,89
99,86
99,61
100,12
100,24
100,1
99,86
97,99
97,57
98,28
97,97
97,99
97,84
97,33
96,7
96,79
96,76
96,23
96,29
96,46
97,23
97,59
97,13
97,37
96,12
96,96
96,7
97
97,15
96,51
96,68




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

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

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







Median versus Mean
mean100.821916666667
median99.695

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

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

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



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