I am trying to understand how to best describe left or negatively skewed data in terms of central tendency.
I have provided code below that simulates such a distribution, as well as the source code to calculate several different central tendency metrics (i.e. geometric, harmonic means) - note that the code for both means were obtained from here: https://github.com/cran/psych/tree/master/R
What I have been reading is that skewed distributions are best represented in terms of median or geometric mean, but when I plot the latter onto the histogram for the left skewed data, it does not really capture the "average" part of the data (see my code and said plot below).
I understand that part of the answer to this question is application dependent, and for my purposes I am trying to aggregated (or upscale) remote sensing raster data from a fine grid to a relatively coarser grid. In this context, it would appear the median will not work either, because the median does not include the information in the final answer.
So, back to my question, is there a "good" parameter that can be used to summarize negatively skewed data?
"geometric.mean" <- function(x,na.rm=TRUE){
if (is.null(nrow(x))) {
exp(mean(log(x),na.rm=TRUE))}
else{
exp(apply(log(x),2,mean,na.rm=na.rm))}
}
"harmonic.mean" <- function(x,na.rm=TRUE,zero=TRUE){
if(!zero) {
x[x==0] <- NA
}
if (is.null(nrow(x))) {
1/mean(1/x,na.rm=na.rm)}
else {
1/(apply(1/x,2,mean,na.rm=na.rm))}
}
negskewdata<-rbeta(10000,5,2)
hist(negskewdata)
abline(v=mean(negskewdata),col="blue",lwd=2)
abline(v=median(negskewdata),col="red",lwd=2)
abline(v=geometric.mean(negskewdata),col="green",lwd=2)
abline(v=harmonic.mean(negskewdata),col="black",lwd=2)
legend("topleft",c("Arithmetic","Median","Geom. Mean","Harm. mean"),
lty=1,col=c("blue","red","green","black"),bty="n")