I would appreciate some help on this problem.
"Let the random variable X have pmf $p_X(k)=\frac{1}{2^k}$ for $k=1,2,...$ and let $Y=\frac{1}{X}$. Find the cdf of $Y$."
This is my solution: $F_Y(x) := P(Y\leqq x) = P(\frac{1}{X}\leqq x) = P(X \geqq \frac{1}{x}) = P(X>\frac{1}{x}) -P(X=\frac{1}{x}) = 1 - P(X\leqq\frac{1}{x}) + P(X=\frac{1}{x}) = 1 - F_X(\frac{1}{x}) + P_X(\frac{1}{x})$.
I now note that (since $X$'s only can take on integer values)
$F_X(x) = P(X\leqq x) = P(X \leqq [x])$ if $[\cdot]$ denotes the rounded of (downward) integer part of $\cdot$.
This is then equal to $\sum_{k=1}^{[x]} P_X(k)=\sum_{k=1}^{[x]} (\frac{1}{2})^k$
And this is later (geometric sum) equal to
$1-(\frac{1}{2})^{[x]-1}$.
So far so good. (I think).
Thus,
$F_Y(x) = 1 + P(X=\frac{1}{x}) - P(X \leqq \frac{1}{x})$
Now I am not sure how to think.
I'm thinking that $P(X=\frac{1}{x}) = p_X(\frac{1}{x}) $ if $x \in Q\setminus (0,1]^c$ OR zero elsewhere.
That is, because $\frac{1}{x} \in \{1,2,3,...\} \implies x \in \{\frac{1}{1},\frac{1}{2},\frac{1}{3},...\}$ because $X$ only can take on positive integers.
And also
$P(X \leqq \frac{1}{x}) = P(X \leqq [\frac{1}{x}]) = F_X(\frac{1}{x})$ if $x \in (0,1]\subseteq $ ℝ and zero elsewhere.
The answer to the question in my text book states that
"If $x=1/n$ for some integer n, then $F_Y(x) = (1/2)^{n-1}$, for other $x \in (0,1]$, $F_Y(x)=(1/2)^{[1/x]}$."
I dont understand what they mean. Is my solution correct, and if not what am i doing wrong? How does my text book's answer translate to mine above?
Thanks!