Mathematical Foundations of Artificial Intelligence--Probability and Statistics 14: Exponential Distribution, Weibull Distribution and Uniform Distribution of Continuous Random Variables

I. Introduction

In " Mathematics of Artificial Intelligence - Probability and Statistics 12: Probability Density Function and Normal Distribution of Continuous Random Variables ", the probability distribution, probability density function and normal distribution of continuous random variables are introduced, " Mathematics of Artificial Intelligence - Probability and Statistics 13 : The Standard Normal Distribution of Continuous Random Variables " introduces the standard normal distribution, and this article will continue to introduce the distribution functions of several continuous random variables.

2. Exponential distribution

2.1. Definition

If the random variable X has a probability density function: f ( x ) = { 0 when x ≤ 0 λ e − λ x when x > 0 f(x) = {\Huge \{}{\huge^{λe^{ -λx}\;\;\;\;When x>0}_{0\;\;\;\;\;\;\;\;\;\;\;\;When x≤0} }f(x)={ 0when x 0 _λeλxwhen x > 0 _
It is said that X obeys an exponential distribution , where λ is a parameter, and its value is greater than 0. When x is greater than 0, -λx is a negative number, so this distribution is also called a negative exponential distribution .

For the exponential distribution, when x≤0, f(x) = 0, which means that the probability of the random variable taking a negative value is 0, so X only takes a positive value, and the function f(x) is discontinuous at x=0.

2.2. Distribution function of exponential distribution

Distribution function of exponential distribution F ( x ) = ∫ − ∞ xf ( t ) d ( t ) = { 0 When x ≤ 0 1 − e − λ x When x > 0 F(x)=∫_{-∞ }^xf(t)d(t)\\\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\; \;\;\;= {\Huge \{}{\Large^{1-e^{-λx}\;\;\;\;When x>0}_{0\;\;\;\ ;\;\;\;\;\;\;\;\;When x≤0}}F(x)=xf(t)d(t)={ 0when x 0 _1eλxwhen x > 0 _

2.3. Applicable scenarios and derivation of exponential distribution

One of the most common scenarios for the exponential distribution is the lifetime distribution.

Imagine a mass-produced electronic component whose lifetime X is a random variable, and the distribution function of X is recorded as F(x). Proof: Under certain conditions, F(x) is the distribution function of the exponential distribution.

In order to prove the technical "no aging" assumption, that is to say, "under the condition that the component is still working normally at time x, its failure rate always remains a certain constant λ>0, which has nothing to do with x. The failure rate is the unit The probability of failure within a length of time. In the form of conditional probability, the above assumption can be expressed as:
P ( x ≤ X ≤ x + h ∣ X > x ) / h = λ ( h → 0 ) P(x≤X≤x+ h|X>x)/h=λ\;\;\;\;\;\;\;\;\;\;\;\;(h→0)P(xXx+hX>x)/h=l(h0 )
This formula is explained as follows:

  1. The component works normally at time x, which means its life is greater than x, that is, X>x;
  2. At x, it fails within a period of time h, that is, x≤X≤x+h;
  3. Divide this conditional probability by the length h of the time period to get the average failure rate at time x;
  4. Let h→0, the instantaneous failure rate is obtained, which should be a constant λ according to the assumption.

According to the definition of conditional probability, notice that P(X>x)=1-F(x), and { X > x } { x ≤ X ≤ x + h } = { x < X ≤ x + h } \{X >x\}\{x≤X≤x+h\}=\{x<X≤x+h\}{ X>x}{ xXx+h}={ x<Xx+h}
P ( x ≤ X ≤ x + h ∣ X > x ) / h = P ( x < X ≤ x + h ) / ( h ( 1 − F ( x ) ) ) = ( F ( x + h ) − F ( x ) ) / h ] / ( 1 − F ( x ) ) → F ′ ( x ) / ( 1 − F ( x ) ) = λ P(x≤X≤x+h|X>x)/h=P(x<X≤x+h)/(h(1-F(x)))\\=(F(x+h)-F(x))/h]/(1-F(x))\\→F'(x)/(1-F(x))=λ P(xXx+hX>x)/h=P(x<Xx+h)/(h(1F(x)))=(F(x+h)F(x))/h]/(1F(x))F(x)/(1F(x))=
The general solution of the differential equation λ is F ( x ) = 1 − C e − λ x F(x)=1-Ce^{-λx}F(x)=1Ceλ x (x>0), when x≤0, F(x) is 0. The constant C can be obtained as 1 with the initial condition F(0)=0.

Old Ape Note:

  1. The above derivation process uses the definition of limit, conditional probability formula, conditional probability definition, definition and properties of distribution function, which is quite an interesting derivation process;
  2. F ( x ) = 1 − C e − λ x F(x)=1-Ce^{-λx}F(x)=1Ceλ x (x>0) is obtained by solving the differential equation. This process is demonstrated as follows:
    Let F(x)=y, then F ′ (x)/(1−F(x))=λ can be simplified is dy/(dx(1-y))=λ, then we can get:
    dy/(1-y)=λdx, and integrate both sides of this formula: ∫dy/(1-y)=∫λdx, then we get:
    -ln(1-y)+c1 = λx+c2
    ∴ ln(1-y)=-λx+c3
    1 − y = e − λ x + c 3 = ec 3 e − λ x = C e − λ x 1-y=e^{-λx+c3}=e^{c3}e^{-λx}=Ce^{-λx}1y=eλx+c3=ec 3 eλx=Ceλ x
    ∴y=1-C e − λ x Ce^{-λx}Ceλx

Note that in the whole derivation process, the result of the constant and difference power operation is still a constant, so there are c1, c2, c3 and C.

2.4. Supplementary instructions

From the above derivation process, we can know that the meaning of λ is the failure rate, the higher the failure rate, the smaller the average life, so the exponential distribution describes the life distribution without aging, but in practice, "no aging" is impossible, so The exponential distribution is only an approximate lifetime distribution. For some long-lived components, in the initial stage, the aging phenomenon is very small, and the exponential distribution at this stage is more accurate and quite describes the life distribution.

3. Weibull distribution

If aging is considered during the derivation of exponential distribution, the failure rate will increase with time, so it should be taken as an increasing function of x λ xm λx ^mλxm , where both λ and m are constants greater than 0. Under this condition, according to the reasoning of exponential distribution, it will be concluded that the life distribution F(x) satisfies the differential equationF ′ ( x ) / [ 1 − F ( x ) ] = λ xm F'(x)/[1- F(x)]=λx^mFx/[1F(x)]=λxm
combined with F(0)=0, we get:F ( x ) = 1 − e − ( λ / ( m + 1 ) ) xm + 1 F(x) = 1-e^{-(λ/(m+ 1))x^{m+1}}F(x)=1e( λ / ( m + 1 ) ) xm + 1take
α = m+1(α>1),以把λ/(m+1)记的λ,电影:F ( x ) = 1 − e − λ x α ( x > 0 ) F( x)=1-e^{-λx^α} \;\;\;\;\;\;\;\;(x>0)F(x)=1eλxa(x>0 )
and when x≤0, F(x)=0, the function F(x) at this time is called Weibull distribution function. The density function of this distribution is:
f ( x ) = { 0 when x ≤ 0 λ α x α − 1 e − λ x α when x > 0 f(x) = {\Huge \{}{\huge^ {λαx^{α -1}e^{-λx^α }\;\;\;\;When x>0}_{0\;\;\;\;\;\;\;\;\ ;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;When x≤0}}f(x)={ 0when x 0 _λαxa 1 eλxawhen x > 0 _

Like the exponential distribution, the Weibull distribution plays an important role in reliability statistical analysis. In fact, the exponential distribution is a special case of α=1 of the Weibull distribution.

3. Uniform distribution

3.1. Definition

Let the random variable X have a probability density function:
f ( x ) = { 0 other 1 b − a when a ≤ x ≤ b f(x) = {\Huge \{} ^{ {\huge\frac {1}{ ba}}{\large\;\;\;\;\;\;\;\;\;\;\;\;when a≤x≤b}}_{\large0\;\;\;\ ;\;\;\;\;\;\;\;\;\;\;\;\;\;\;other}f(x)={ 0otherba1this axwhen b
Then it is said that X obeys the uniform distribution on the interval [a,b] , which is denoted as X~R(a,b), where a and b are constants and satisfy -∞<a<b<∞.

The distribution function for a uniform distribution is:
insert image description here

3.2 An application of uniform distribution

For the general distribution function F(x), if X~R(0,1), and F(x) is continuously and strictly monotonically increasing everywhere, its inverse function G exists, and G(x) ~ F.

Proof :
∵{G(X)≤x}
∴{F(G(X))≤F(x)}
∴{X≤F(x)}
∵X ~ R(0,1)
∴R(0,1 ) distribution function is F(x)=x(0<x<1)
∴P(G(X)≤x)=P(X≤F(x))=F(x)
∴G(X) ~ F

Therefore, a uniform distribution can be used to simulate the general distribution F satisfying the above conditions.

Four. Summary

This article is the summary and thinking of the old ape learning Mr. Chen Xiru's "Probability Theory and Mathematical Statistics" published by the University of Science and Technology of China Press. In the article, it introduces the concepts of exponential distribution, Weibull distribution and uniform distribution, as well as some of the derivation process , in the text, some derivation processes are supplemented according to Lao Yuan's own understanding.

For more mathematical foundations of artificial intelligence, please refer to the column " Mathematical Foundations of Artificial Intelligence ".

Blogging is not easy, please support:

If you have gained something from reading this article, please like, comment, and bookmark, thank you for your support!

Paid Columns About Old Ape

  1. The paid column " https://blog.csdn.net/laoyuanpython/category_9607725.html Using PyQt to Develop Graphical Interface Python Applications" specifically introduces the basic tutorial of Python-based PyQt graphical interface development, and the corresponding article directory is " https://blog.csdn .net/LaoYuanPython/article/details/107580932 Use PyQt to develop a graphical interface Python application column directory ";
  2. The paid column " https://blog.csdn.net/laoyuanpython/category_10232926.html moviepy audio and video development column ) introduces in detail the class-related methods of moviepy audio and video clip synthesis processing and the use of related methods to process related clip synthesis scenes, corresponding articles The directory is " https://blog.csdn.net/LaoYuanPython/article/details/107574583 moviepy audio and video development column article directory ";
  3. The paid column " https://blog.csdn.net/laoyuanpython/category_10581071.html OpenCV-Python Beginners Difficult Questions Collection " is " https://blog.csdn.net/laoyuanpython/category_9979286.html OpenCV-Python Graphics and Image Processing "The accompanying column is the integration of the author's personal perception of some problems encountered in the learning of OpenCV-Python graphics and image processing. To understand OpenCV, the corresponding article directory is " https://blog.csdn.net/LaoYuanPython/article/details/109713407 OpenCV-Python Beginners Difficult Problem Collection Column Directory "
  4. The paid column " https://blog.csdn.net/laoyuanpython/category_10762553.html Getting Started with Python Crawlers" introduces what you should know about crawler development from the perspective of an Internet front-end development novice, including the basics of getting started with crawlers, and how to crawl. Get CSDN article information, blogger information, give articles likes, comments and other actual combat content.

The first two columns are suitable for novice readers who have a certain Python foundation but no relevant knowledge. The third column please combine " https://blog.csdn.net/laoyuanpython/category_9979286.html OpenCV-Python Graphics and Image Processing " learning to use.

For colleagues who lack the foundation of Python, you can learn Python from scratch through Lao Yuan's free column " https://blog.csdn.net/laoyuanpython/category_9831699.html Column: Python Basic Tutorial Catalog ).

If you are interested and willing to support Laoyuan readers, you are welcome to purchase paid columns.

Old Ape Python, learn Python from Old Ape!

☞ ░ Go to Laoyuan Python blog post directory https://blog.csdn.net/LaoYuanPython

Guess you like

Origin blog.csdn.net/LaoYuanPython/article/details/128142832