
R Programming Dealing with pdfs and cdfs for Weibull and Created Xponential Distributions
- 30th Jun, 2022
- 15:04 PM
set.seed(1) n = 10000 alpha = 1 beta = 4 # W = alpha [-log(1 - U)]^{1/beta} U = runif(n,0,1) W = alpha*(-log(1-U))^(1/beta) # Part (a): # PDF: hist(W,probability = TRUE) # CDF: plot(ecdf(W)) # Part (b): # From empirical proportion prob_emp = mean(W<0>0.2) # From cdf F = function(x){ # CDF function 1 - exp(-(x/alpha)^beta) } prop_act = F(0.8) - F(0.2) prop_act - prob_emp # Part (c): # From emperical Q1_emp = quantile(W,0.25) M_emp = quantile(W,0.5) Q3_emp = quantile(W,0.75) # Inverse quantile F_inv = function(x){ # Inverse function for quantile alpha*(-log(1-x))^(1/beta) } Q1_act = F_inv(0.25) M_act = F_inv(0.50) Q3_act = F_inv(0.75) Q1_act - Q1_emp M_act - M_emp Q3_act - Q3_emp
Recent Blogs

Apr 26, 2023

Apr 16, 2023

Apr 16, 2023

Apr 13, 2023

Apr 13, 2023

Apr 11, 2023

Apr 11, 2023

Jan 26, 2023

Jan 26, 2023

Jan 19, 2023

Jan 19, 2023

Jan 19, 2023

Dec 29, 2022

Dec 22, 2022

Dec 22, 2022

Nov 24, 2022

Nov 24, 2022

Nov 24, 2022

Nov 17, 2022

Nov 17, 2022

Nov 17, 2022

Nov 11, 2022

Nov 11, 2022

Nov 11, 2022

Nov 04, 2022

Nov 04, 2022

Oct 20, 2022

Oct 20, 2022

Oct 20, 2022

Oct 20, 2022

Oct 20, 2022

Sep 20, 2022

Sep 20, 2022

Sep 20, 2022

Aug 18, 2022

Aug 18, 2022

Aug 12, 2022

Aug 12, 2022

Aug 05, 2022

Aug 05, 2022

Jul 29, 2022

Jul 29, 2022

Jul 22, 2022

Jul 22, 2022

Jul 15, 2022

Jul 15, 2022

Jul 08, 2022

Jul 08, 2022

Jun 30, 2022

Jun 17, 2022

Jun 17, 2022

Jun 09, 2022

Jun 02, 2022

Jun 02, 2022

May 26, 2022

May 26, 2022

May 20, 2022

May 13, 2022

May 05, 2022

May 05, 2022

Apr 29, 2022

Apr 29, 2022

Apr 14, 2022

Apr 14, 2022

Apr 06, 2022

Apr 06, 2022

Mar 31, 2022

Mar 31, 2022

Feb 11, 2022

Feb 04, 2022

Feb 04, 2022

Jan 27, 2022

Jan 27, 2022

Jan 20, 2022

Jan 20, 2022

Jan 07, 2022

Dec 23, 2021

Dec 23, 2021

Nov 23, 2021

Nov 23, 2021

Nov 10, 2021

Nov 02, 2021

Oct 27, 2021

Oct 27, 2021

Oct 12, 2021

Oct 12, 2021

Oct 05, 2021

Oct 05, 2021

Sep 28, 2021

Sep 22, 2021

Sep 22, 2021

Sep 15, 2021

Sep 07, 2021

Sep 07, 2021

Aug 26, 2021

Aug 26, 2021

Aug 20, 2019
Popular Tags
About Us
With their hectic schedules, university students need prompt support, and one of the services we provide for them is managing their statistics & programming assignments, homework, and projects. The Statistics Assignment Help is one such entity designed with the student’s busy schedule in mind. We put our efforts into offering high-quality statistics solutions to all our students so that they can get their desired grades. We give our clients exceptional statistics expert assistance so they may complete their academic assignments successfully. We have experts for 90+ statistical tools including SPSS, SAS, Python, R Programming, Excel, SQL, STATA, Tableau, Mintab etc. With data science, big data and machine learning algorithms gaining importance in college curriculum, we ensure that our statistics assignment experts are updated with the latest courses & curriculum.