Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_meanversusmedian.wasp
Title produced by softwareMean versus Median
Date of computationSun, 16 Dec 2018 15:18:43 +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/2018/Dec/16/t1544970005orwx6d7346flfr0.htm/, Retrieved Sun, 05 May 2024 01:55:12 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=315897, Retrieved Sun, 05 May 2024 01:55:12 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact98
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Mean versus Median] [Countries1] [2018-12-16 14:18:43] [e5fb83f5878d2d8e7ed5cb1b57a35a7d] [Current]
Feedback Forum

Post a new message
Dataseries X:
29.82
3.16
38.48
20.82
0.09
41.09
2.97
0.1
23.05
8.46
9.31
0.37
1.32
154.7
0.28
9.4
11.06
10.05
0.06
0.74
10.5
3.83
2
198.66
0.03
0.41
7.28
16.46
9.85
0.49
14.86
21.7
34.84
0.06
4.53
12.45
17.46
1408.04
47.7
0.72
4.34
65.7
4.8
19.84
4.31
11.27
1.13
10.66
5.6
0.86
0.07
10.28
15.49
80.72
6.3
0.74
6.13
1.29
91.73
0.88
5.41
63.98
0.24
0.27
1.63
1.79
4.36
82.8
25.37
11.12
0.1
0.46
15.08
11.45
1.66
0.8
10.17
7.94
9.98
1236.69
246.86
76.42
32.78
4.58
7.64
60.92
2.77
127.25
7.01
16.27
43.18
24.76
49
3.25
5.47
6.65
2.06
4.65
2.05
4.19
6.16
3.03
0.52
2.11
22.29
15.91
29.24
14.85
0.4
3.8
1.24
120.85
3.51
2.8
0.62
0
32.52
25.2
52.8
2.26
0.01
27.47
16.71
0.25
4.46
5.99
17.16
168.83
4.99
3.31
179.16
3.8
7.17
6.69
29.99
96.71
38.21
10.6
2.05
0.86
21.76
143.17
11.46
0.05
0.18
0.11
0.19
0.19
28.29
13.73
9.55
5.98
5.3
5.45
2.07
0.55
10.2
52.39
46.76
21.1
0.54
1.23
9.51
8
21.89
8.01
47.78
66.78
1.11
6.64
0.1
1.34
10.88
74
5.17
36.35
45.53
63.03
9.206
317.5
3.4
28.54
29.96
90.8
0.01
23.85
14.08
13.72




Summary of computational transaction
Raw Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time8 seconds
R ServerBig Analytics Cloud Computing Center

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input view raw input (R code)  \tabularnewline
Raw Outputview raw output of R engine  \tabularnewline
Computing time8 seconds \tabularnewline
R ServerBig Analytics Cloud Computing Center \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=315897&T=0

[TABLE]
[ROW]
Summary of computational transaction[/C][/ROW] [ROW]Raw Input[/C] view raw input (R code) [/C][/ROW] [ROW]Raw Output[/C]view raw output of R engine [/C][/ROW] [ROW]Computing time[/C]8 seconds[/C][/ROW] [ROW]R Server[/C]Big Analytics Cloud Computing Center[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=315897&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=315897&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 Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time8 seconds
R ServerBig Analytics Cloud Computing Center







Median versus Mean
mean37.3423723404255
median7.97

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

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

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



Parameters (Session):
par1 = grey ; par2 = no ;
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')