Questions tagged [weibull]

The Weibull distribution is a probability distribution with applications in survival analysis, reliability engineering, failure analysis, industrial engineering, extreme value theory, weather forecasting, forestry, and more.

References

Wikipedia article


Tag usage

Questions on should be about implementation and programming problems, not about the statistical or theoretical properties of the technique.
Consider whether your question might be better suited to Cross Validated, the StackExchange site for statistics, machine learning and data analysis.

273 questions
5
votes
2 answers

Renewal Function for Weibull Distribution

The renewal function for Weibull distribution m(t) with t = 10 is given as below. I want to find the value of m(t). I wrote the following r code to compute m(t) last_term = NULL gamma_k = NULL n = 50 for(k in 1:n){ gamma_k[k] = gamma(2*k +…
score324
  • 687
  • 10
  • 18
5
votes
2 answers

Estimating Weibull density parameters (error: "...initial value in 'vmmin' is not finite")

I am trying to estimate the shape and scale of a data set. I used two different ways and for both I got an error message: First, I tried by moments using the survey package: survreg(Surv(all.ws)~1, dist="weibull") I got the error message: …
eliavs
  • 2,306
  • 4
  • 23
  • 33
5
votes
1 answer

How to plot the survival curve generated by multi-variate survreg

This question follows on from the question here in that we want to plot a multi-variate model. Lets say we want to plot the Survival function from the example in survreg from the package release notes Where the model is survreg(Surv(time, status) ~…
user08041991
  • 617
  • 8
  • 20
5
votes
1 answer

Is the build-in probability density functions of `scipy.stat.distributions` slower than a user provided one?

Suppose I have an array: adata=array([0.5, 1.,2.,3.,6.,10.]) and I want to calculate log likelihood of Weibull distribution of this array, given the parameters [5.,1.5] and [5.1,1.6]. I have never thought I need to write my own Weibull probability…
CT Zhu
  • 52,648
  • 17
  • 120
  • 133
4
votes
2 answers

Goodness of fit test for Weibull distribution in python

I have some data that I have to test to see if it comes from a Weibull distribution with unknown parameters. In R I could use https://cran.r-project.org/web/packages/KScorrect/index.html but I can't find anything in Python. Using scipy.stats I can…
Simd
  • 19,447
  • 42
  • 136
  • 271
4
votes
2 answers

Scipy Weibull parameter confidence intervals

I've been using Matlab to fit data to a Weibull distribution using [paramhat, paramci] = wblfit(data, alpha). This gives the shape and scale parameters for a Weibull distribution as well as the confidence intervals for each value. I'm trying to use…
4
votes
3 answers

Riemann sum of a probability density

I am trying to find the probability of an event of a random variable past a specific value, i.e. pr(x>a), where a is some constant, typically much higher than the average of x, and x is not of any standard Gaussian distribution. So I wanted to fit…
Niklas Lindeke
  • 380
  • 1
  • 7
  • 24
4
votes
2 answers

Include weibull fit in ggsurvplot

I would like to fit a weibull curve to some event data and then include the fitted weibull curve in a survival plot plotted by survminer::ggsurvplot. Any ideas of how? Here is an example to work on: A function for simulating weibull data: # N =…
jonas
  • 13,559
  • 22
  • 57
  • 75
4
votes
0 answers

Scipy: How to fit Weibull Distribution?

I was totally confused by fitting a weibull distribution, by weibull_params = sp.stats.exponweib.fit(df.speed, floc=0, f0=1) # Returns (1, 1.7358162061451901, 0, 9.4955614228786978) How do these params correspond to the Weibull Distribution in…
ZK Zhao
  • 19,885
  • 47
  • 132
  • 206
4
votes
2 answers

Fitting a Weibull distribution in python with stats.exponweib.fit

I've been trying to fit a Weibull distribution with stats.exponweib.fit - there is not a fit in Scipy for just Weibull, so, one needs to utilize the fit for exponential Weibull and set the first shape parameter to 1. However, when the…
TurboToad
  • 41
  • 1
  • 3
3
votes
0 answers

Fitting a bivariate or multivariate weibull distribution to observations in R

I'm looking to fit a bivariate Weibull distribution to my observations. I'm considering writing this myself but before starting I just want to check if anyone has come across a r-package including this functionality or similar. I'm considering using…
Johannes M
  • 31
  • 4
3
votes
1 answer

Heavy tail distribution - Weibull

I know that the Weibull distribution exhibits subexponential heavy-tailed behavior when the shape parameter is < 1. I need to demonstrate this using the limit definition of a heavy tailed distribution: for all How do I incorporate the cumulative…
ejf071189
  • 613
  • 1
  • 6
  • 8
3
votes
0 answers

Adjust Graph Size in R shiny

I have created the following weibull plot using shiny We first create a dataframe for the same DFF=data.frame('left'=c(13.5, 9.5, 5.5, 22.5, 4.5),'right'=c(13.5, 9.5, 5.5, 22.5, 4.5), 'qty'=c(3,4,3,4,1), 'event'=c(1,1,1,1,1), 'time'= …
Raghavan vmvs
  • 1,213
  • 1
  • 10
  • 29
3
votes
1 answer

mle failed to estimate the parameters with the error code 7

I'm trying to estimate the Weibull-Gamma Distribution parameters, but I'm encountering the following error: "the function mle failed to estimate the parameters, with the error code 7" What do I do? The Weibull-Gamma Distribution Density Function…
user55546
  • 37
  • 1
  • 15
3
votes
2 answers

Weibull function as straight-line (double-logarithmic with ggplot2 in R)

I hope some more knowledged people in R can help. Problem: I am trying for some time now to plot a Weibull probability plot with ggplott2. The 2-two factor Weibull should appear as a straight line in a double-logarithmic plot. But it is not…
Marvin
  • 31
  • 2
1
2
3
18 19