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 12:18:05 -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/t13244881241bch4380zb0hj40.htm/, Retrieved Mon, 29 Apr 2024 04:41:24 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=158899, Retrieved Mon, 29 Apr 2024 04:41:24 +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)
-     [Univariate Explorative Data Analysis] [Run Sequence gebo...] [2008-12-12 13:32:37] [76963dc1903f0f612b6153510a3818cf]
- R  D  [Univariate Explorative Data Analysis] [Run Sequence gebo...] [2008-12-17 12:14:40] [76963dc1903f0f612b6153510a3818cf]
-         [Univariate Explorative Data Analysis] [Run Sequence Plot...] [2008-12-22 18:19:51] [1ce0d16c8f4225c977b42c8fa93bc163]
- RMP       [Univariate Data Series] [Identifying Integ...] [2009-11-22 12:08:06] [b98453cac15ba1066b407e146608df68]
- RMP         [Classical Decomposition] [ws8. additional] [2011-11-30 13:03:24] [8ae0a4da1b3ee81f40dbba5e42914d07]
- RMP           [Exponential Smoothing] [WS8 Monthly birth...] [2011-11-30 14:31:27] [2628f630b839c9d14ba9c3627ab0414a]
- RMPD              [Mean versus Median] [Paper] [2011-12-21 17:18:05] [3d1c016f2f3d502d2cccf121bc4326eb] [Current]
Feedback Forum

Post a new message
Dataseries X:
-31.0980235042716
-59.8206924271108
-83.5404637229203
-76.6837390525943
-55.7725703639553
-29.62380040276
-403.243804757836
-416.782395531722
-213.421552958589
371.566721695855
165.983275906532
542.6202623301
295.02721709437
-21.1190278168924
437.4008577275
365.294800512585
67.9306326630958
-247.788856282479
545.098074661517
-296.773620935714
352.477617436036
283.798200110577
-273.315875572704
446.06222457008
-214.72781956204
-60.4206198854663
372.155927347334
99.2591381678085
318.424339918272
125.277834109822
-327.853683550757
-432.970794551573
442.139159285423
14.3549856459813
299.040533753827
88.2365194871691
-180.537099245963
201.985172786433
193.536881410406
-313.092895033498
-152.748572628851
299.982624154345
42.4811421719933
133.842278481663
-129.830065090609
-699.373730899397
171.563382431515
-24.5384434740972
116.363164839684
-218.154308468131
-257.102541429251
98.6124781717281
-190.742241794984
198.422707475118
-145.26733998686
611.517071444689
56.0522598394018
-117.514342950461
-3.71499521678197
296.99038945692
360.610007278467
61.6319235909414
-746.579530943922




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=158899&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=158899&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=158899&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
mean32.5648628240476
median42.4811421719933

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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=158899&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
mean32.5648628240476
median42.4811421719933



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