Friday, October 18, 2013

Post 12: Matrix Operation

Matrix Equality: Two matrices and are said to be equal if and only if they have the same dimension and have identical elements in the corresponding locations in the array.

Addition and Subtraction of Matrices:
Two matrices can be added if and only if they have the same dimension. The addition rule can be stated as:
                                                 
                              

The subtraction operation A - B can be similarly defined if and only if a and B have the same dimension. The operation entails the result:

                              

Scalar Multiplication:
To multiply a matrix by a number - or in matrix algebra terminology, by a scalar - is to multiply every element of that matrix by the given scalar.

Multiplication of Matrices:
Suppose that, given two matrices A and B, we want to find the product of AB. The conformability condition for manipulation is that the column dimension of A (the "lead" matrix the expression AB) must be equal to the row dimension of B (the "lag" matrix).

In general, if A is of dimension m x n and B is of dimension p x q, the matrix product AB will be defined i and only if n = p. If defined, moreover, the product matrix AB will have the dimension m x q - the same number of rows as the lead matrix A and the same number of columns as the lag matrix B.

An example of matrix multiplication is given below:

                                               

For the metrics given, AB will be 1 x 3. So let's consider,

                              

The placeholder values of , mentioned above, can be calculated as:

                              
                              
                              

           
           


Given two vectors u and v with n elements each, say, and , arranged either as two rows or as two columns, or as one row and one column, their inner product, written as u . v, is defined as:
        
                              

Note: A square matrix with 1s in its principal diagonal and 0s everywhere else - examplifies the important type of matrix known as identity matrix.

Division:
It is not possible to divide one matrix by another.

  Notation:

The summation shorthand makes use of the Greek letter (sigma). To express the sum of , for instance, we may write:

                                
 
Extending this to the multiplication of an m x n matrix and an n x p matrix , we may now write the elements of the m x p product matrix AB = C = as,

                                  

or more generally,

                                  

Thursday, October 17, 2013

Post 11: Matrices and Vectors

Matrix algebra can enable us to do many things.

1) It provides a compact way of writing an equation system, even an extremely large one.
2) It leads to a way of testing the existence of solution by evaluation of a determinant
3) It gives a method of finding that solution (if it exists)

However, one slight catch is that matrix algebra is applicable only to linear-equation system. In many cases, even if some sacrifice of realism is entailed by the assumption of linearity, an assumed linear relationship can produce sufficiently close approximation to an actual nonlinear relationship to warrant its use.

In other cases, while preserving the non-linearity in the model, we can effect a transformation of variables so as to obtain a linear relation to work with. For example, the nonlinear function,

                                        

can be readily transformed, by taking the logarithm on both sides as:

                                      log y = log a + b logx

Matrices and Vectors
In general, a system of m linear equations in n variables can be arranged into such a format:

                               
                                                                (11.1)
                                ...............................................................
                               

There are essentially three types of ingredients in the equation system 11.1. The first is set of coefficients ; the second is the set of variables ; and the last is the set of constant terms . If we label them, respectively, as A, x, and d, then we have:


                                         

As a shorthand device, the array in matrix A can be written more simply as:

              

Some matrices may contain only one column, such as x and d above. Such matrices are given the special name column vectors. If we arrange the vector x in horizontal way, though, there would result a 1 x n matrix, which is called row vector. A row vector is often distinguished from a column vector by the use of a prime symbol, X'.

A vector, whether row or column, is merely an ordered n-tuple, and as such it may sometimes be interpreted as a point in an n-dimensional space. With the matrices defined above, we can express the equation system in 11.1 as,

                                                     Ax = d

However, the equation Ax = d prompts at least two questions. How do we multiply two matrices A and x? What is meant by the equality of Ax and d? Since matrices involve whole block of numbers, the familiar algebraic operations defined for single numbers are not directly applicable, and there is a need for a new set of operational rules, which would be discussed in Post 12 onwards.

Post 10: Equilibrium in National-Income Analysis

The static analysis can be applied to other areas of economics, like Keynesian national-income model too. If we consider the simplest Keynesian national-income model below:

                                  
                                  

where Y = Endogenous variable National Income
           C = Endogenous variable Planned Consumption Expenditure
           = Exogenous variable Investment
          = Exogenous variable Government Expenditure
           a = Parameter variable Autonomous Consumption
           b = Parameter variable Marginal Propensity to Consume

The equations above give us the Y* and C* values as:

                                  
                                  

Both Y* and C* have the expression (1 - b) in the denominator, thus the restriction b 1 is necessary, to avoid division by zero.

Wednesday, October 16, 2013

Post 9: General Market Equilibrium

The equilibrium condition of an n-commodity market model will involve n equations, one for each commodity, in the form:

                                                            (9.1)

If a solution exists, there will be a set of prices and corresponding quantities such that all n equations in the equilibrium condition will be simultaneously satisfied.

Derivation with Two-Commodity Model
To illustrate the general market equilibrium equation, let us consider a simple 2 commodity model. For simplicity, the demand and supply functions of both commodities are assumed to be linear. In parametric terms, such a model can be written as:


                                  

                                  
                                                                                        (9.2)
                                  
                                  

                                  

where the a and b coefficients pertain to the demand and supply functions of the first commodity, and and coefficients are assigned to those of the second, and P1 and P2 are the prices of the two commodities in consideration.The restrictions and the other signs for the coefficients would be considered later.

From 9.2,
                                                   (9.3)       
                                

There are as many as 12 parameters involved in equations 9.3. Let us therefor define the shorthand symbols,
                                          (i = 0, 1, 2)
                                
gives,
                                                                                                  (9.4)
                                

which may be solved further to get
                       
                                
                                

For these two values to make sense, however, certain restrictions should be imposed on the model. First, since division by zero is undefined, so should be . Second, to assure positivity, the numerator must have the same sign as the denominator.

Also, a negative sign in coefficient before the prices would suggest that the two commodities are substitutes for each other.

 Derivation with n-Commodity
 If all commodities in an economy are included in a comprehensive market model, the result will be a Walrasian type of general-equilibrium model, in which the excess demand for every commodity is considered to be a function of the prices of all the commodities in the economy.

Some of the prices may, of course, carry zero coefficients when they play no role in the determination of the excess demand of a particular commodity. In general, however, with n-commodities in all, we may express the demand and supply functions as follows:

                                        (i = 1, 2, ..., n)
                               

 The equilibrium condition iss itself composed of a set of n equations:

                                     (i = 1, 2, ..., n)

So we there have a 3n equations.

Upon substitution, however, the model can be reduced to a set of n simultaneous equations only:

                       

 Alternatively,
                       
        
Solved simultaneously, these n equations can determine the n equilibrium prices , if a solution indeed exists. And then the may be derived from the demand or supply functions.

Solution of a General-Equation System
For a general-function model containing, say, a total of m parameters () - where m is not necessarily equal to n - the n equilibrium prices can be expected to take the general analytical form of

                     

But an important catch exists: the expression can be justified if and only if a unique solution does exist. Yet, there is no a priori reason to presume that every model will automatically yield a unique solution. So it is important to mention the consistency and functional independence as the two prerequisites for application of the process of counting equations and unknowns. In general, in order to apply that process, make sure that:
1) the satisfaction of any one equation in the model will not preclude the satisfaction of another and
2) no equation is redundant

For simultaneous-equation model, there exists systematic methods of testing the existence of unique solution. These would involve, for linear models, an application of the concept of determinants. In the non-linear models, such a test would also require a knowledge of so-called partial derivatives and a special type of determinant, called Jacobian determinant. Those will be discussed in later posts.