The distribution of function of random variable

6 replies · 3K views · last reply
ecesiu
Messages
7
Reaction score
0
i have this question
Text problem: A fair coin is tossed 10 times and x equals the number of heads. (a) Find Fx(x). (b) Find Fy(y) if y = (x - 3)^2.

i do find the distribution like this figure :
Staircase-shaped step function in red drawn over black x and y axes, rising from the origin with equal-width steps; red tick marks and dashes sit along the x-axis.

and i plot the y like this:
Graph of the parabola y=(x-3)^2 with its vertex at x=3 on the x-axis. A horizontal line at height y meets the curve, with vertical drops to the x-axis at x=-sqrt(y)+3 and x=sqrt(y)+3.

now i want to find the distribution of y
i tried to take the distribution for each interval in Fx(x) like this :
Piecewise expression for the CDF Fy(y) over intervals: 0 for y < 0; p3 + p4 for 0 ≤ y < 1; P2 + P3 + P4 + P5 for 1 ≤ y < 4; P1 + P2 + P3 + P4 + P5 for 4 ≤ y < 9; then cumulative sums P0 through P7, P8, P9 and P10 for later intervals.

but the solution in the book said :
Printed problem text with part (a) defining a random variable x taking values k = 0 to 10 with P(x = k) = p_k = C(10,k)/2^10, and part (b) a table of y = (x - 3)^2 values with probabilities q_k in terms of p_k.

who is wrong me or the book please help
 
Hey ecesiu and welcome to the forums.

You missed out giving us any of the information.
 
Like the solution the book gave, the distribution definition, all the other relevant information: stuff like that.
 
firest i found the density of x which is Bernoulli trial :
PK=Cn(10,k) * p^k * q^(10-k) , k= 0,1,...,10
the distribution is a staircase of the density
which i sketch , the book solution is here :
Printed solution text: (a) RV x takes values k = 0 to 10 with P(x = k) = p_k = C(10,k) times 1/2^10, and its CDF is a staircase function with jumps p_k; (b) RV y = (x - 3)^2 with a table of probabilities q_k for k = 0 to 7.
 
p=q=0.5 because the coin is fair
where p is the probability of getting head , q is the probability of getting tail
 
So what are you trying to do? Are you trying to figure out whether you think a coin is fair given a number of tosses for heads and tails?