⚡ Build the skills to land top-paying quant jobs. Offer ends in 25d 09h 52m 29s25 days 9 hours 52 minutes 29 seconds.
A stock closes either up or down on each trading day, each with probability , independently across days. You watch it for 7 consecutive trading days. You are told that the first and the last of these 7 days moved in opposite directions (one closed up, the other down). Given this, what is the expected number of up days among the 7? Give the answer as a decimal or fraction.