The median price is that which is midway in the range between the cheapest and the dearest.
The mean price is the sum of all the prices divided by the number
For example, lets say we have seven houses in a particular road. I haven't a clue how much Californian houses cost, so I'm going to list seven arbitrary values in order of cheapest to dearest.
1) $100,000
2) $130,000
3) $130,000
4) $250,000
5) $310,000
6) $800,000
7) $900,000
If the size n, of the range is odd, then the median value is at the (n+1)/2 th position in the range
For n = 7, (n+1)/2 = (7+1)/2 = 8/2 = 4
The fourth cheapest house is priced at $250,000, which is the median
The sum of the cost of all seven houses is $2,620,000
The mean = Sum/n
= $2,620,000 / 7
= $374,285.71
In summary
Median = $250,000
Mean = $374,285.71
The reason why the mean is much greater than the median is because of the skewed values at the top of the range. They are much higher than the others. If the prices of the sixth and seventh houses were $350,000 and $360,000 respectively, the median would still be $250,000, but now the mean would be $232,857.14 which is less than the median.
Unlike the median, the mean is very sensitive to the extreme points within the range.
If it's a single home, or all homes are the same price, then the mean and the median are equal.