Interior peaks in a random sequence of readings
Eight distinct temperature readings are recorded in a row in a completely random order. We only count "interior peaks": positions 2 through 7 (not the two ends) whose reading is higher than both of its immediate neighbors.
On average, how many interior peaks are there?