Jensen's inequality for medians

We prove an analogue of Jensen's inequality, with medians instead of means. A novel definition of a median is given, which allows a natural extension to higher dimensions.