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, 10 Oct 2015 17:15: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/2015/Oct/10/t1444493763zq2qc1w4xwbo4mi.htm/, Retrieved Tue, 14 May 2024 12:58:46 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=282238, Retrieved Tue, 14 May 2024 12:58:46 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact66
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Mean versus Median] [] [2015-10-10 16:15:51] [237b8e3b7b7bc12136ba0893525d9132] [Current]
Feedback Forum

Post a new message
Dataseries X:
71,83
71,39
73,71
74,13
74,45
74,95
75,09
75,23
76,11
76,64
76,97
78,23
77,15
76,33
70,19
68,42
66,49
63,41
62,92
65,53
65,26
68,25
74,39
78,71
82,15
86,05
89,46
89,32
88,94
93,35
94,72
96,11
104,06
104,11
103,9
110,75
110,82
107,59
96,03
95,69
90,63
75,87
75,57
78,78
74,93
75,85
75,49
76,87
78,18
79,37
80,59
81,18
81,02
82,75
83,63
85,35
90,52
90,66
90,69
92,56
92,87
93,82
96,32
96,03
96,53
102,96
102,38
102,66
106,83
106,5
106,78
108,49
108,77
110,43
110,84
110,52
110,11
109,42
109,06
108,98
108,36
108,11
108,44
107,76
106,27
101,07
100,79
100,97
99,33
99,35
99,23
98,14
98,17
98,48
99
99,19
99,1
100,13
100,07
95,26
94,72
94,25
89,46
88,38
88,57
93,82
93,94
93,92




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 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 & 1 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ jenkins.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=282238&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]1 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=282238&T=0

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







Median versus Mean
mean90.5916666666667
median93.585

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

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

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



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