Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_meanversusmedian.wasp
Title produced by softwareMean versus Median
Date of computationMon, 24 Feb 2014 13:03:56 -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/2014/Feb/24/t1393265083b5l9h275ifjrv00.htm/, Retrieved Thu, 16 May 2024 21:34:42 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=234003, Retrieved Thu, 16 May 2024 21:34:42 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact97
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Mean versus Median] [mean vs median GOOG] [2014-02-24 18:03:56] [1efb5b796d26fae6d960da9c3f26d18b] [Current]
Feedback Forum

Post a new message
Dataseries X:
611.22
613.36
592.49
528.18
525.3
474
485
510
523.54
525
516.6
526.31
535
545.7
525.25
526.42
576.2
593
582.07
570.22
572.8
600.55
610
620.03
623.34
610.16
603.6
607.57
626.06
614.8
596.48
632.05
628.01
621.88
627.64
579.37
587.76
608
593.32
595.09
586.72
583.72
525.18
509.85
527.25
540.35
517.96
510.8
534.56
504
553.43
562.98
582.54
650.02
624.99
585.99
579.98
599.33
605.91
604.64
609.90
621.25
600.25
625.04
642.59
641.24
632.32
624.60
596.06
614.98
596.97
605.23
600.40
591.53
570.98
580.45
564.51
571.48
580.07
585.98
576.52
610.82
634.96
641.33
642.00
677.14
678.63
685.09
706.15
709.68
733.99
754.50
767.65
744.75
681.79
675.15
687.92
687.92
663.03
647.18
667.97
698.37
684.21
701.96
715.63
700.01
737.97
739.99
704.51
753.67
775.60
785.37
792.89
799.71
806.19
831.52
814.30
810.31
794.19
783.05
790.05
799.87
801.42
845.72
880.23
909.18
873.32
871.22
879.73
875.04
880.93
880.37
893.49
923.00
896.60
885.35
906.57
890.41
856.91
870.21
846.90
879.58
889.07
903.11
876.39
872.35
871.99
1011.41
1015.20
1027.04
1016.03
1033.56
1031.89
1059.59
1069.87
1060.79
1100.62
1118.40
1105.00




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

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







Median versus Mean
mean699.946100628931
median634.96

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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=234003&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
mean699.946100628931
median634.96



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