Answer to Question #190668 in Statistics and Probability for harsh

Question #190668

1.  (6 marks) A random variable, X, measures a European football team’s net goal differ ence (goals scored minus goals conceded) for matches in a semi-professional league. The values X =-1, 0, 1 indicate negative, null or positive goal difference, respectively. X is thought to follow the probability distribution below:

 



 

a.      (2 marks) Complete the table below by computing the values of the probability mass function, P (x), and the cumulative distribution function, F (x).                   

 

b.     (2 marks) Compute the expected value of X by writing an R function to do the calculation (show your R code).



1
Expert's answer
2021-05-12T01:56:07-0400

"(a) P_{X}(x)=\\dfrac{(x_i+2)^2}{36}"


"F(X)=P(X\\le x)=\\int_{0}^x P(X)dx\n\\\\[9pt]\n =\\int_{0}^x \\dfrac{x+2)^2}{12}dx\n\\\\[9pt]\n\n\n =\\dfrac{(x+2)^3}{36}|_{0}^x\n\n =\\dfrac{(x+2)^3}{36}-\\dfrac{8}{36}\\\\[9pt]=\\dfrac{x^3+8+4x^2+8x-8}{36}\\\\[9pt]=\\dfrac{x^3+4x^2+8x}{36}"



(b) The expected value is found as


"E(X) = \u03a3XP(X = x).=\u03a3_{X}\\dfrac{(x+2)^2}{14} \\Rightarrow E(X) = 0.5714286 X"


The R function to calculate the above expected value below.



EX <- function ()

{

X <- c(-1,0,1)

PX <- (X+2)^2/14

EX <- sum(X*PX)

return(EX)

}

E <- EX()




Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog