Posts

Showing posts from October, 2022

Death process

Image
  Defining the death process Consider a population where individuals only die, and nobody is born. We now study the death process under the following assumptions. The probability that each individual dies in a short period of time δt is μδt+o(δt) where μ>0 is the  death rate . For a population of n individuals, the probability of each death is nμδt+o(δt). We assume that the probability of multiple deaths in δt is negligible.  Thus, the population size N(t) is a random variable that only decreases. Let pn(t)=Pr(N(t)=n), the probability that the population size is n at time t. Suppose the initial population size is N(0)=n0, and hence the initial condition is given as (Eq:Init)pn(t)=δn,n0. A sample path of a death process is shown below: Differential-difference equations Now, let's find the differential-difference equations for the death process. Fir...

Birth process

Image
  Defining the birth process  Consider a colony of bacteria that never dies. We study the following process known as  the birth process , also known as  the Yule process . The colony starts with n0 cells at time t=0. Assume that the probability that any individual cell divides in the time interval (t,t+δt) is proportional to δt for small δt. Further assume that each cell division is independent of others. Let λ be the  birth rate.  The probability of a cell division for a population of n cells during δt is λnδt. We assume that the probability that two or more births take place in the time interval δt is o(δt). That is, it can be ignored. Consequently, the probability that no cell divides during δt is 1λnδto(δt). Note that this process is an example of the Markov chain with states \({n_0}, {n_0 + 1}, {n_0 + 2}...

Change of variables in multiple integrals

Image
Sometimes, we need to integrate a function on a bounded closed region other than a rectangle or a region sandwiched by two curves. Even when the bounded closed region is simple, it may still be difficult to integrate a function on it. We may calculate the integral in such cases by changing the integration variables. Consider two R2 planes, the (u,v) plane and (x,y) plane. Suppose we have a map Φ Φ(u,v)=(x(u,v),y(u,v)) defined on a neighbor of the bounded closed region E in the (u,v) plane. Suppose Φ maps E to the bounded closed region D in the (x,y) plane (Figure 1): Φ(E)=D. Figure 1. Change of variables by the mapping Φ(u,v)=(x(u,v),y(u,v)). We further assume the following: Φ(u,v) is injective. The functions x(u,v) and y(u,v) are of class C1, and at an arbitrary point (u0,v0)E, we have \[\frac{\partial x}{\partial u}(u_0,v_0)\frac{\partial y}{\partial v}(u_0,v_0)-\frac{\...

Multivariate normal distribution is normalized (of course): A proof

Image
Let X=(X1,X2,,Xn) be a vector of random variables. We say it follows the multivariate normal (Gaussian) distribution if its density is given by (Eq:density)f(x)=1(2π)n|Σ|exp(12(xμ)Σ1(xμ)) where μ=(μ1,μ2,,μn)Rn is a vector, Σ is a symmetric   positive definite n×n matrix, and Σ1 and |Σ| are the inverse and determinant of Σ, respectively. It turns out that μ and Σ are the mean vector and covariance matrix of X, respectively. But we will not prove that here. In this post, we will show this density (Eq:density) is normalized (of course). That is, we prove that Rnf(x)dx=1. We assume that you already know how to prove the univariate nor...

Iterated integral on a bounded closed set

Image
We saw the method of iterative integral for a rectangular region. We now extend the method to the case of non-rectangular regions. See also : Iterated integral on a rectangular region Consider two continuous functions y=φ(x) and  y=ψ(x) on [a,b] such that ψ(x)<φ(x) for all x[a,b]. We can define the following region D in R2 sandwiched by these functions: (Eq:Dsand)D={(x,y)axb,ψ(x)yφ(x)}. Clearly, D is a closed Jordan region . Let f(x,y) be a continuous function on D. Then, f(x,y) is integrable on D. We can calculate the integral of f(x,y) on D by the method of iterated integral. See also : Multiple integral on a bounded closed set  for the explanation of closed Jordan regions. First, fix an x[a,b], and define the univariate function F1(x) by  (Eq:F1)F1(x)=ψ(x)φ(x)f(x,y)dy. Lemma...

Any covariance matrix is positive semi-definite: A proof

Let X=(X1,X2,,Xn)Rn be a vector of random variables. The covariance matrix Σ of X is a square (n×n) matrix whose elements are covariances between the components of X. That is, Σij=Cov(Xi,Xj) where Cov(Xi,Xj) is the covariance between Xi and Xj , i,j=1,2,,nCov(Xi,Xj)=E[(XiE[Xi])(XjE[Xj])]. Here, E[] indicates the expectation value of a random variable . Any covariance matrix has the following properties: Symmetric. That is, Σ=Σ. Positive semi-definite. That is,vRn,vΣv0. See also : Positive definite matrix (Wolfram MathWorld) The symmetry is obvious from the definition of the covariance matrix.  Now, let us prove that the covariance matrix is positive semi-...

Iterated integral on a rectangular region

Image
Defining the multiple integral is one thing; calculating it is another. The iterated integral is a technique to calculate a multiple integral. Simply put, an iterated integral is a technique where we apply one-variable integration iteratively, thereby reducing a multiple integral to one-variable integrals. Here, we consider an iterated integral over a rectangular region. Let f(x,y) be a continuous function on the rectangular region D=[a,b]×[c,d]. Fix an arbitrary x0[a,b]. Then, f(x0,y) can be regarded as a univariate function of y. f(x0,y) is continuous on [c,d] so it is integrable. The integral cdf(x0,y)dy contains x0 as a parameter. Replacing x0 with x, let us define the function F1(x) of x on [a,b] by F1(x)=cdf(x,y)dy. We have the following lemma: Lemma The function F1(x) defined above is continuous on [a,b]. Proof . The proof will be given in another post when we prov...

Multiple integral on a bounded closed set

Image
In a previous post, we defined the multiple integral on a (closed) rectangular region and saw that continuous functions were integrable on such regions.  But more functions are integrable. Some functions are not necessarily defined on a rectangular region. Yet other functions may not be continuous everywhere. To describe a wider class of integrable functions, we define the notion of the "null" sets. Null sets Definition (Null set) The subset A of R2 is said to be a  null set  if the following condition is satisfied: For all ε>0, there exist a finite number of open rectangular regions  Li=(ai,bi)×(ci,di) (ai<bi,ci<di,i=1,2,,r)  such that  Ai=1rLi  and  i=1r(biai)(dici)<ε. This means that if a set is a null set if it can be "covered" by a finite number of open rectangular regions, and the total area of...

Some test problems

Image
Here are some problems to test your basic knowledge and understanding. Problem 1 The absolute value |x| of a real number x is defined as |x|={xif x0,xif x<0. Prove the following. For any xR, |x|x|x|. Let a>0. For any xR, if axa, then |x|a.  [5 marks each; 10 marks in total] Problem 2 Let a=(2,3), b=(1,5), and r=(x,y) be position vectors. The equation r=sa+(1s)b with 0s1 defines the line segment between a and b.  Draw the line segment defined above in the x-y plane. Find the closest point on this line segment from the origin o=(0,0).  [5 marks each; 10 marks in total] Problem 3 Compute the matrix determinant ...

Multiple integral on a rectangular region

Image
We extend the notion of integral to multivariate functions. For a bivariate function f(x,y) on a closed region D, its double integral Df(x,y)dxdy is defined similarly to what we did for univariate functions, using the Riemann sums . In this and the following posts, we mainly deal with integrating bivariate (two-variable) functions (i.e., double integral). Roughly speaking, a double integral corresponds to the volume of a solid between a region on the x-y plane and a two-variable function z=f(x,y) in R3. Riemann sums The integral of multivariate functions can be defined in much the same manner as univariate functions. In the case of univariate functions, we first considered integrals on a closed interval. In the case of bivariate functions, we first consider integrals on a bounded closed region, but the region can be of any shape. We start with a rectangular region. Let f(x,y) be a bounded function on the rectangular region \(D = [a,b]\t...

Examples are not proofs.

Image
Consider the following problem. For any xR, prove that |x|x|x|. In case you forgot, the absolute value of a real number x is defined as follows: |x|={xif x0,xif x<0. A notable property of the absolute value is that it is always non-negative (positive or zero). Proof (wrong!): Let x=3. Then |x|=3. Thus, we have  333.  So the proposition is true. Let x=3. Then |x|=|3|=3. Thus, we have 333. So the proposition is also true. In either case, the proposition is true. Proved! ■ What is exactly wrong with this "proof"? It is that it only proves the cases when x=3 or x=3. But we need to prove that for any real number x, and there are infinitely many (in fact, uncountably many) real numbers! What about x=2.3, or x=π2, or ...? Unless we prove the proposit...

Differentiation of more general maps RnRm

Image
 We now consider the differentiation of more general maps RnRm. We can import many results from the case of bivariate functions, R2R. Multivariate functions RnR First, we consider the general multivariate function y=f(x):RnR where x=(x1,x2,,xn)Rn. Definition (Total differentiability) Let U be an open region in Rn. For the function f(x) on U and a=(a1,a2,,an)U, f(x) is said to be (totally) differentiable at a if there exist constants m1,m2,,mn such that f(x)=f(a)+m1(x1a1)+m2(x2a2)++mn(xnan)+o(xa) as xa. f(x) is said to be totally differentiable on U if f(x) is totally differentiable at all points in U. When n=2, this definition matches the definition of total differentiability of two-variabl...