Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a function $f(k) = \pm 2^k$ with probability $1/2$ of either sign. How would I express this in a cleaner notation? I'm guessing to use the Kronecker delta somehow, but I can't put a finger on it.

share|cite|improve this question
up vote 1 down vote accepted

You might try $f(k)=2^kX_k$ where $X_k$ is a symmetric Bernoulli random variable (this means that $\mathbb P(X_k=+1)=\mathbb P(X_k=-1)=\frac12$).

share|cite|improve this answer
I like this idea as you've managed to one-line it. – elleciel Feb 18 '13 at 23:13

How about using 2 cases? \begin{align} f(k)&=\cases{+2^k\qquad w.p.\;1/2\\-2^k\qquad w.p.\;1/2} \qquad k\in \text{Whatever} \end{align}

share|cite|improve this answer
Thanks for the suggestion. I was hoping for something more elegant but I'll give you an upvote once I have the reputation score >_<; – elleciel Feb 18 '13 at 23:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.