Posts Tagged ‘ median ’

mad statistic

April 29, 2012
By
mad statistic

In the motivating toy example to our ABC model choice paper, we compare summary statistics, mean, median, variance, and… median absolute deviation (mad). The latest is the only one able to discriminate between our normal and Laplace models (as now discussed on Cross Validated!). When rerunning simulations to produce nicer graphical outcomes (for the revision),

Read more »

Simulation: Efficiency of mean with medianGoal: Show the…

October 31, 2011
By
Simulation: Efficiency of mean with medianGoal: Show the…

Simulation: Efficiency of mean with medianGoal: Show the efficiency of the mean when compared with the median using a large simulation where both estimators are applied on a sample of U(0,1) uniformly distributed random numbers.Input:# Goal: Show...

Read more »

Pivot Tables and Medians in R

April 16, 2011
By

Pivot Tables are a useful way of aggregating data into the format that you’re after. In this example, I’m going to be using R to pivot some data and calculate medians for me. This is useful because Excel can calculate medians (the =MEDIAN(values)) function, but what it can’t do is calculate medians for Pivot Tables.

Read more »