Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_meanversusmedian.wasp
Title produced by softwareMean versus Median
Date of computationThu, 10 Aug 2017 20:23:12 +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/Aug/10/t15023894030dzjoh69kw8ll3r.htm/, Retrieved Mon, 20 May 2024 00:34:02 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=307108, Retrieved Mon, 20 May 2024 00:34:02 +0000
QR Codes:

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

Post a new message
Dataseries X:
70 200
67 600
71 500
57 200
74 100
72 800
78 000
80 600
89 700
78 000
74 100
92 300
78 000
58 500
68 900
52 000
72 800
59 800
79 300
71 500
75 400
84 500
83 200
98 800
71 500
59 800
66 300
48 100
68 900
53 300
75 400
71 500
63 700
91 000
81 900
93 600
70 200
65 000
58 500
48 100
63 700
57 200
78 000
75 400
65 000
87 100
80 600
104 000
83 200
50 700
50 700
50 700
59 800
59 800
80 600
74 100
66 300
83 200
76 700
110 500
87 100
50 700
53 300
44 200
61 100
70 200
88 400
87 100
70 200
81 900
72 800
104 000
79 300
63 700
57 200
42 900
63 700
76 700
89 700
84 500
62 400
89 700
70 200
107 900
89 700
65 000
59 800
40 300
63 700
61 100
92 300
92 300
70 200
91 000
67 600
105 300
89 700
66 300
50 700
35 100
68 900
66 300
87 100
100 100
74 100
83 200
62 400
107 900




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

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







Median versus Mean
mean72980.5555555556
median71500

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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=307108&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
mean72980.5555555556
median71500



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