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 computationWed, 21 Dec 2011 10:59:55 -0500
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2011/Dec/21/t1324483238ati8t3q1ze6xpgk.htm/, Retrieved Tue, 07 May 2024 07:32:33 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=158850, Retrieved Tue, 07 May 2024 07:32:33 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact58
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Decomposition by Loess] [HPC Retail Sales] [2008-03-06 11:35:25] [74be16979710d4c4e7c6647856088456]
- RMPD    [Mean versus Median] [Paper] [2011-12-21 15:59:55] [3d1c016f2f3d502d2cccf121bc4326eb] [Current]
Feedback Forum

Post a new message
Dataseries X:
0
-1.94834264125015
-1.35938514876797
1.35795496412481
-1.70069468175497
1.44996900849938
1.31903815630069
2.05149160604926
-0.133535063101566
1.03724496156112
0.63142261575917
-1.63792541267238
-0.867991128955308
-1.07958030968515
-0.672654981836742
-1.05064354962543
0.333390996185739
0.487322267446532
-0.570817054401088
-0.499534007121835
0.115264994351102
1.74691902012461
0.739021637104409
0.738226066304609
-0.41299927393743
-1.58336341056381
-0.181363817381967
0.105418963881337
-0.463545967786301
-1.21612196637376
1.64060386180114
-0.0528713661577582
1.52368500476979
1.08334468835021
-0.469412703827005
0.721118803353077
-0.943920679048537
-0.522581909811403
0.359348877235232
-0.247868668824745
0.562507597657474
0.64814873561941
-1.27010850628161
-0.447026313045732
1.78025952002197
0.731000413630024
1.58105415816898
-0.0984553656677268
-0.585819712707743
0.397301065018393
0.0963073674180238
-1.03366376752918
-0.793451126625965
0.871673983985699
0.80325982935323
1.24994658683419
-0.295993912664426
-1.45005328321816
0.767875715674426
0.609240092225543
0.933296632597031
-0.679282808379915
-1.19659266892572
0.418815651594879
-0.181297827175938
0.432789884150497
-0.065942989884464
1.73980299717976
0.328406731705262
0.120753615482844
-0.369205392526939
0.791445739642711
0.866899132578154
0.0740812251511718
-2.26488583771179




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

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







Median versus Mean
mean0.0653162655154837
median0.0963073674180238

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

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

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



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