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
3
votes
1 answer

Estimating mean time to failure with survreg/flexsurvreg with standard error

I am trying to estimate the mean time to failure for a Weibull distribution fitted to some survival data with flexsurvreg from the flexsurv package. I need to be able to estimate the standard error for use in a simulation model. Using flexsurvreg…
peedeerich
  • 253
  • 3
  • 10
3
votes
1 answer

Use the cumulative distribution function of Weibull in R

I have to simulate a system's fail times, to do so I have to use the Weibull distribution with a "decreasing hazard rate" and a shape of "0.7-0.8". I have to generate a file with 100 results for the function that uses random numbers from 0 to 1. So…
Golan_trevize
  • 2,353
  • 5
  • 22
  • 22
3
votes
2 answers

Using SCIPY.OPTIMIZE.FMIN_CG to extract Weibull distribution parameters

I am attempting to extract Weibull distribution parameters (shape 'k' and scale 'lambda') that satisfy a certain mean and variance. In this example, the mean is 4 and the variance is 8. It is a 2-unknowns and 2-equations type of problem. Since this…
TimY
  • 5,256
  • 5
  • 44
  • 57
2
votes
2 answers

How to predict survival at certain time points, using a survreg model?

Data library(survival) kidney Model model = survreg(Surv(time, censored) ~ sex + age, data = kidney) Call: survreg(formula = Surv(time, censored) ~ sex + age, data = kidney) Coefficients: (Intercept) sexfemale age 8.44411429…
st4co4
  • 445
  • 3
  • 10
2
votes
1 answer

Generate random data based on existing data

is there a way in python to generate random data based on the distribution of the alreday existing data? Here are the statistical parameters of my dataset: Data count 209.000000 mean 1.280144 std 0.374602 min 0.880000 25% …
qwertz
  • 619
  • 1
  • 7
  • 15
2
votes
1 answer

Fréchet distribution parameters estimation in R?

I would need to calculate the parameters of a Fréchet distribution. I am using the packages fitdistrplus and evd of R. But I don't know what values to initialize the…
2
votes
1 answer

How does scipy.stats.weibull_min.fit produce its initial guess?

I was looking at the source code for scipy.stats.weibull_min.fit. This can be found at https://github.com/scipy/scipy/blob/v1.3.0/scipy/stats/_distn_infrastructure.py#L2157. This function returns three fitted parameters. E.g.: import…
Simd
  • 19,447
  • 42
  • 136
  • 271
2
votes
1 answer

How to get the confidence interval of a Weibull distribution using Python?

I want to perform a probability Weibull fit with 0.95% confidence bounds by means of Python. As test data, I use fail cycles of a measurement which are plotted against the reliability R(t). So far, I found a way to perform the Weibull fit, however,…
waldi
  • 31
  • 4
2
votes
0 answers

mle2-class Weibull three-parameter probability density function plot

I am fitting my data (wind data) to different distributions (two and three parameter weibull and gamma distributions). I used the method explained here (mle2 using "L-BFGS-B" method) to estimate the parameters of the three-parameter weibull…
Ayik
  • 21
  • 2
2
votes
1 answer

Shading subregion under Weibull curve in R

I want to do sth like in the figure with a Weibull distribution. But somehow I can't get it to work using stat_function. I get argument missing errors. Adding args=list(..) does not work. limitRange <- function(fun, min, max) { function(x) { …
user7295926
2
votes
1 answer

Convert to dataframe: Model fit summaries of full factorial subsets of a dataframe

I have a dataframe with a variable and two factors test <- data.frame(variable = rnorm(100,10,5), factor_1 = as.factor( rep(1:2,50)), factor_2 = as.factor( rep(1:5,20))) test <- test[test$variable>0,] I fit a…
user7295926
2
votes
1 answer

Create a Weibull Probability Paper Plot in R

I am trying to create a base plot for a weibull probability plot. I have been exploring the survival package in R but have not found the exact tool I need yet. So far I have been able to recreate the plot I need by hand (which is terrible - tons of…
user9842212
2
votes
1 answer

Wind rose diagram plot in matlab

I am currently trying to plot in matlab a wind rose diagram with data wind velocities and directions for a given period. The main program is such that after plotting several plots on the Weibull distribution, it calls another matlab program to…
2
votes
0 answers

How to estimate weibull hazard rate function for a feature based on components failure data?

A mechanical component was run continuously till it failed (test-to-failure). We have data of one such experiment. Data Dictionary age --> time in mins. life_per --> age/total time to failure life_status --> faliure==1 and 0== non failure (note:…
GeorgeOfTheRF
  • 8,244
  • 23
  • 57
  • 80
2
votes
1 answer

scipy.stats.weibull_min.fit() - how to deal with right-censored data?

Non-Censored (Complete) Dataset I am attempting to use the scipy.stats.weibull_min.fit() function to fit some life data. Example generated data is contained below within values. values = np.array( [10197.8, 3349.0, 15318.6, 142.6, 20683.2, …
slightlynybbled
  • 2,408
  • 2
  • 20
  • 38