# Sum problem about closing form

1. Jan 14, 2013

### joshmccraney

$$\sum_{i=1}^{n} |(y_i-\theta)|=n\theta$$

where theta is a fixed constant and $y_i$ is a discrete random variable. does anyone know how to rewrite in close form?? also, everytime i use latex it starts a new line. how can i fix this so i can type directly with my sentances?

thanks

Last edited: Jan 14, 2013
2. Jan 14, 2013

### HallsofIvy

Instead of using "tex" use "itex".

3. Jan 16, 2013

### Stephen Tashi

It isn't clear what you mean by that equation. Are the $y_i$ random variables that are dependendent on each other in a way that forces $\sum_{i=1}^n |(y_i-\theta)|$ to always add up to be $n \theta$?

Or are you using the notation "|...|" to mean "expected value" instead of "absolute value"?