Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_meanversusmedian.wasp
Title produced by softwareMean versus Median
Date of computationWed, 09 Oct 2013 12:53:02 -0400
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2013/Oct/09/t1381337634gip8imt6zv8ogtr.htm/, Retrieved Mon, 29 Apr 2024 01:42:59 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=214471, Retrieved Mon, 29 Apr 2024 01:42:59 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact89
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Kernel Density Estimation] [] [2013-09-26 09:08:29] [99f0649bd6aaa22f81266a2f80a3ecd7]
- RMPD  [Central Tendency] [] [2013-10-09 16:24:13] [99f0649bd6aaa22f81266a2f80a3ecd7]
- RM D      [Mean versus Median] [] [2013-10-09 16:53:02] [3050d341fa02a6066b7b273abfa2c28b] [Current]
Feedback Forum

Post a new message
Dataseries X:
9969
9692
8943
8802
8250
8515
13973
13905
12467
9490
8483
7610
7839
7107
6584
6053
5725
6480
11663
11628
9203
7781
7020
6908
6912
6668
6189
6007
5148
6685
11044
11034
8986
8146
7818
8176
8935
8929
8835
8455
7924
8973
13575
13844
11738
10467
10145
10833
10179
10107
9533
9165
8382
9018
13911
13761
11316
9855
9034
8932
9278
8876
8298
7733
7226
7688
12226
12081
10439
9008
8377
8346
9167
8945
8428
7973
7446
7785
10561
12791
11583
10112
9597
9332




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'George Udny Yule' @ yule.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 & 'George Udny Yule' @ yule.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=214471&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]'George Udny Yule' @ yule.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=214471&T=0

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







Median versus Mean
mean9238.63095238095
median8944

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

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

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



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