0
$\begingroup$

$X$ is a discrete uniform distribution on $1, 2, \ldots,n$. I know that the median is $\frac{n+1}2$ for odd $n$. I need to find median when $n$ is even. Would it be $\frac{n}2$ or $\frac{n}2+1$, whichever is greater?

Also, is every point mode as PDF has highest values there? So there are $n$ modes - $1,2,\ldots,n$?

$\endgroup$

closed as off-topic by Did, J. M. is a poor mathematician, José Carlos Santos, Namaste, JonMark Perry Nov 14 '17 at 5:11

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question is missing context or other details: Please improve the question by providing additional context, which ideally includes your thoughts on the problem and any attempts you have made to solve it. This information helps others identify where you have difficulties and helps them write answers appropriate to your experience level." – Did, J. M. is a poor mathematician, José Carlos Santos, Namaste, JonMark Perry
If this question can be reworded to fit the rules in the help center, please edit the question.

1
$\begingroup$

Guide:

To answer the first question, think of how to handle the case where $n=2$.

what is the median for uniform distribution on $1,2$?

For the second question, yes, there are $n$ modes.

$\endgroup$
  • $\begingroup$ 1 and 2 both will be the medians, right? $\endgroup$ – user492699 Nov 8 '17 at 6:58
  • $\begingroup$ what is the definition of median to you? $\endgroup$ – Siong Thye Goh Nov 8 '17 at 6:59
  • $\begingroup$ For median m, P(X<=m) = P(X>=m) = 1/2 $\endgroup$ – user492699 Nov 8 '17 at 7:00
  • $\begingroup$ Here that point would be 0.5 $\endgroup$ – user492699 Nov 8 '17 at 7:00
  • $\begingroup$ But as this is discrete random variable, we can choose only 1 or 2 $\endgroup$ – user492699 Nov 8 '17 at 7:00