Analyze nestle csr initiative plan focuses on society issues
This is a CSR project, and choose to nestle as our company Note: Please give answer on mentioned words (must add intext citation) and required
Project: R code for the following items.
Question 1: Plot the following probability density functions (PDFs) in one chart and label them
1. Plot (use a black line) beta distribution (350,15) and label it as Prior ∼ Beta(350,15).
2. Plot (use a red line) beta distribution (538,192) and label it as Posterior ∼ Beta(538,192).
3. For the “2” above, please provide the 95% highest probability density (HPD) intervals in R code and show the area in the plot.
Note:
Label x axis as θ.
Label y axis as PDF.
Make sure the fonts are in right size and clear.
Please provide the pic in png format and the R codes.
Question 2: 1. Plot the following PDF in another different chart: Beta-Binomial (365,538,192)
This is the Beta-Binomial distribution.
Note:
Label x axis as EF (d).
Label y axis as PDF.
Make sure the fonts are in right size and clear.
Please provide the pic in png format and the R codes.
2. Use R to generate the cumulative distribution function (CDF) of the Beta-Binomial (365,538,192) (i.e., the PDF in “1” above) and plot the CDF in another different chart:
Note:
Label x axis as EF (d).
Label y axis as CDF.
Make sure the fonts are in right size and clear.
Please provide the pic in png format and the R codes.