A six-sided dice is being rolled $3$ times. Let $X$ be the median of the results. What is the probability for the event $\{X=k\}$ as a function of $k$?
I am not quite sure if I got it right, but my approach was to write down the cases for $k=1,2,3,4,5,6$. So for $k=1$ the dicing results that can occur are $111,112,113,114,115,116$ if I am not mistaken. Should I go on writing it down for the other cases and if so, how do I determine the probability subject to $k$?
Also how do I calculate the expectancy value and the variance of the random variable $X$? Just got introduced to this new topic, not too familiar with it.. Some hints are much appreciated.