Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_meanversusmedian.wasp
Title produced by softwareMean versus Median
Date of computationSat, 29 Jul 2017 20:59:23 +0200
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2017/Jul/29/t1501354776xpraybsyw5504ez.htm/, Retrieved Tue, 14 May 2024 21:59:25 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=306806, Retrieved Tue, 14 May 2024 21:59:25 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact158
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Mean versus Median] [] [2017-07-29 18:59:23] [1a8cec710a8245ea2c14b5d40c333c7c] [Current]
Feedback Forum

Post a new message
Dataseries X:
247832.00
246909.00
245973.00
244036.00
263198.00
262184.00
247832.00
238290.00
239213.00
239213.00
240240.00
242086.00
244959.00
244959.00
243113.00
238290.00
263198.00
266994.00
261261.00
247832.00
253578.00
244959.00
248846.00
250705.00
252642.00
247832.00
248846.00
242086.00
263198.00
269867.00
264134.00
253578.00
265057.00
252642.00
264134.00
263198.00
266071.00
255515.00
266994.00
266071.00
283296.00
279409.00
264134.00
256438.00
266994.00
252642.00
263198.00
265057.00
268944.00
260338.00
265057.00
267930.00
278486.00
269867.00
258388.00
245973.00
257465.00
225875.00
241163.00
249769.00
258388.00
245973.00
245973.00
245973.00
252642.00
243113.00
230607.00
220142.00
227734.00
198094.00
216255.00
226811.00
228748.00
218192.00
219115.00
216255.00
225875.00
219115.00
205790.00
196157.00
212446.00
177073.00
200044.00
210509.00
210509.00
198094.00
186615.00
185692.00
196157.00
186615.00
168467.00
155961.00
169390.00
137813.00
166517.00
181792.00
186615.00
176059.00
162721.00
172263.00
176059.00
173186.00
144469.00
131144.00
140673.00
111969.00
141609.00
152165.00
160771.00
146419.00
132990.00
140673.00
144469.00
136877.00
108173.00
95667.00
107146.00
75569.00
110019.00
131144.00




Summary of computational transaction
Raw Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time2 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 time2 seconds \tabularnewline
R ServerBig Analytics Cloud Computing Center \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=306806&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]2 seconds[/C][/ROW] [ROW]R Server[/C]Big Analytics Cloud Computing Center[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=306806&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=306806&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 time2 seconds
R ServerBig Analytics Cloud Computing Center







Median versus Mean
mean218095.691666667
median240701.5

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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=306806&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
mean218095.691666667
median240701.5



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