Reference no: EM132340805
Please provide the full R code for all questions and the charts in png format.
Project 1
Plot the following PDFs in one chart
1. PDFF_B = (10-6/365) x Binominal (365, 0.74) x Lognormal(-5.16, 5.58).
Please plot the PDFI_B in red color and label it as "I-B hybrid model"
Note:
Bionominal (n,p)= Bionominal (365, 0.74)
Lognormal (μ,σ2) = Lognormai(-5.16, 5.5B)
2. PDFI_B = (10-6/365) x Binominal (365, 0.74) x Lognormal(-5.16, 0.94).
Please plot the PDFF_B in blue color and label it as "F-B hybrid model"
Note:
Bionominal (n,p)= Bionominal (365, 0.74)
Lognormal (μ,σ2) = Lognormai(-5.16, 0.94)
3. PDFF = (10-6/365) x350x Lognormal(-5.16, 6.23).
Please plot the PDFF in blackcolor and label it as "Frequentist model"
Note: Lognormal (μ,σ) = Lognormal(-5.16, 6.23)
4. Label x axis as "ADD (mg kg-1d-1) and label y axis as 'PDF'. The fonds needs to be clear and good size.
Project 2
Plot the following four CDFs in a different chart
Note: a. it is "ln(x)"; b.Φ is the CDF of normal distribution of ln(x) i.e., in our question, it is the CDF of the lognormal distribution of x; c. F is the CDF of the binomial distribution, k is integer 0 ≤ k ≤ 365
1. CDF1 = (10-6/365) xΦ⌈(ln(x)+7.39)/1.58⌉ x F(k, 365, 0.70)
Don't label it but CDF1 in red color
2. CDF2 = (10-6/365) x Φ ⌈(ln(x)+7.39)/1.58⌉ x F(k, 365, 0.77)
Don't label it, but CDF2 in blue color
3. CDF3 = (10-6/365) x Φ⌈(ln(x)+2.95)/4.97⌉ x F(k, 365, 0.70)
Don't label it, but CDF3 in yellow color
4. CDF4 = (10-6/365) x Φ⌈(ln(x)+2.95)/4.97⌉ x F(k, 365, 0.77)
Don't label it, but CDF4 in green color
5. Label x axis as "ADD (mg kg-1d-1) and label y axis as "CDF". The fonds needs to be clear and good size.
6. Provide the values for all CDFs at the 95th percentile (in R code, not in the chart)
7. Make a horizontal dash line at the 95th percentile
Project 3
Plot the following four CDFs in a different chart
1. CDF4 = (10-6/365) x Φ⌈(ln(x)+5.16)/0.97⌉ x F(k, 365, 0.70)
Don't label it but CDF1 in red color
2. CDF4 = (10-6/365) x Φ⌈(ln(x)+2.95)/0.97⌉ x F(k, 365, 0.77)
Don't label it but CDF1 in Blue color
3. Label x axis as "ADD (mg kg-1d-1) and label y axis as "CDF". The fonds needs to be clear and good size.
4. Provide the values for all CDFs at the 95th percentile (in R code, not in the chart)
5. Make a horizontal dash line at the 95th percentile
Please let me know if you have any questions. The full R codes for all questions are needed. All charts need to be provided in png format.