Gallery¶

Example 1: Multiple-Censored Data¶

The code:

import weibull

fail_times = [
    42.1, 105.9, 151.3, 195.6,
    77.8, 117.0, 157.3, 207.0,
    83.3, 126.9, 163.8, 215.3,
    88.7, 138.7, 177.2, 217.4,
    101.8, 148.9, 194.3, 258.8
]

suspensions = [1, 0, 1, 1,
               0, 0, 0, 0,
               1, 0, 0, 1,
               1, 0, 1, 0,
               0, 0, 1, 1]

# this is where the actual analysis and curve fitting occur
analysis = weibull.Analysis(fail_times, suspensions, unit='hour')
analysis.fit(method='mle', confidence_level=0.6)

print(analysis.stats)

analysis.probplot(file_name='gallery-probplot.png')

analysis.pdf(file_name='gallery-pdf.png')
analysis.hazard(file_name='gallery-hazard.png')
analysis.sf(file_name='gallery-survival.png')
analysis.fr(file_name='gallery-fr.png')
_images/gallery-probplot.png _images/gallery-pdf.png _images/gallery-hazard.png _images/gallery-survival.png _images/gallery-fr.png

Related Topics

  • Documentation overview
    • Previous: Examples
    • Next: Introduction to Reliability Analysis

Table of Contents

  • Installation
  • Analysis
  • Design
  • Weibayes
  • Examples
  • Gallery
    • Example 1: Multiple-Censored Data
  • Brief Introduction to Reliability Analysis

Quick search

©2017, Jason R. Jones. | Powered by Sphinx 1.8.5 & Alabaster 0.7.12 | Page source