代写PHYS5033 Environmental Footprints and IO Analysis Week 2代做Java语言

PHYS5033 Environmental Footprints and IO Analysis

Reading Material

Week 2

Week 2   Matrix manipulation

A matrix is a rectangular array of numbers in the form.

where m is the number of rows and n is the number of columns

The size of the matrix is denoted by (m x n), and the numbers represented by cmn are known as the elements of the matrix, with m indicating which row the element is found in, and n indicating which column the element is found in. A square matrix is one which has the same number of rows as it does columns. A matrix with only one row (i.e. a 1 x n matrix) is also known as a row vector, while a matric with only one column (i.e. a m x 1 matrix) is also known as a column vector.

In week 1 we noted that input-output tables are made up of three different matrices T, Y, and v. Using the hypothetical input-output table provided in Figure 2.1, we can see that the matrices have the following dimensions:

             T   Intermediate demand matrix   (6 x 6)

 Y   Final demand matrix   (6 x 3)

v   Value-added matrix   (3 x 6)

The intermediate demand matrix T must always be a square matrix, since each sector is represented in both the rows and the columns.

Figure 2.1: A hypothetical input-output table, with total output and total input calculated.

In order to undertake input-output analysis, the matrix manipulation techniques which are outlined in the following pages are employed. The size of the matrices being manipulated is important, so it is good practice to note down the matrix size before undertaking any manipulations.

Matrix techniques

i) Matrix addition

Matrices can only be added together if they are the same size, i.e. they have the same number of rows and the same number of columns.

ii) Matrix subtraction

Matrices can only be subtracted from each other if they are the same size, i.e. they have the same number of rows and the same number of columns.

iii) Element-wise multiplications

Two matrices can be multiplied together using element-wise multiplication only if they are the same size.

iv) Matrix multiplication

Two matrices can be multiplied together using matrix multiplication only if the number of rows in the second matrix equals the number of columns in the first matrix. The size of the resultant matrix will be based on the number of rows in the first matrix and the number of columns in the second matrix.

Given two matrixes with dimensions (m1 x n1) and (m2 x n2), if n1 = m2 these matrices can be multiplied together using matrix multiplication, and the answer will be a matrix with dimensions (m1 x n2).

Once the dimension check confirms that matrix multiplication can be used, it is calculated following mathematical convention, which involves both multiplication and addition. This can be represented mathematically as follows, where cij represents the elements of the answer matrix C.

The following example provides workings for the matrix multiplication of two (2x2) matrices.

The properties of matrix multiplication are as follows:

• Matrix manipulation is associative, i.e. assuming that their dimensions allow for it:

(AB) C = A (BC)

• Matrix manipulation is distributive, i.e. assuming that their dimensions allow for it:

(A + B) C = AC + BC

• Matrix manipulation is NOT commutative, i.e. even if their dimensions allow for it:

AB ≠ BA

• The cancellation law does not apply:

AB = 0 does not necessarily imply that A = 0 or B = 0

v) Matrix transposition

A matrix can be transposed by ‘swapping’ the rows and columns of the matrix so that the first row becomes the first column, the second row becomes the second column, and so on.

vi) Diagonal matrices

A square matrix which contains zero values in all elements above and below the main diagonal is known as a diagonal matrix.

A diagonal matrix with all elements on the diagonal equal to one (1) is known as the Identity matrix (I).

vii) Inverse of a matrix

The inverse of a square matrix can be calculated by considering that the Identity matrix (I) has similar properties to the number one (1) in non-matrix mathematics. Just as any number multiplied by its inverse will have a value of one:

any matrix (A) multiplied by its inverse (A-1) will return the Identity matrix (I), with dimensions equal to the original matrix:

Summation operators

As noted in (i), matrices can only be added together when they are the same size. When using input-output techniques the totals across the intermediate demand matrix (T) and final demand matrix (Y), and the intermediate demand matrix (T) and value-added matric (v), are required however these matrices are not the same size. The use of summation operators enables us to calculate these totals efficiently.

A column summation operator is a row vector with all values equal to one (1). This is used to calculate the sum of all values ‘down’ the columns.

A row summation operator is a column vector with all values equal to one (1). This is used to calculate the sum of all values ‘across’ the rows.

Calculating total output and total input of input-output tables

The first step in any input-output analysis is to calculate the total output and the total input for each sector within the input-output table. The total output for each sector is a column vector represented by x, with dimensions (m x 1), where m is the number of sectors in the input-output table. It is calculated by adding across each row, such that:

total output (x) = total intermediate demand (T) + total final demand (Y)

The total input for each sector is calculated by adding down each column, such that

total input (x’) = total intermediate demand (T) + total value-added (v)

Noting that the input-output system must be balanced, the total input vector will be equal to the transpose of the total output vector, and can therefore be denoted as x‘.

These additions are not possible unless summation operators are used since the matrices T, Y, and v are all different sizes. Consider the example input-output table shown in Figure 2.1, which consists of the following matrices

              T   Intermediate demand matrix   (6 x 6)

   Y   Final demand matrix   (6 x 3)

v   Value-added matric  (3 x 6)

In order to calculate the sub-total of T along the rows, it must be multiplied by a row summation operator with dimensions (6 x 1), which can be annotated as 1T . Likewise, to calculate the sub-total of T along the columns, it must be multiplied by a column summation operator with dimensions (1 x 6), which can be annotated as 1T’ .

The sub-total of Y is calculated using a row summation operator with dimensions (3 x 1), which can be annotated as 1Y, and the sub-total of v is calculated using a column summation operator with dimensions (1 x 3), which can be annotated as 1V.

The total output can then be calculated as follows, noting that row summation operators are the second term in the required matrix multiplication:

and, noting that column summation operators are the first term in the required matrix multiplication, the total input can be calculated using:

Figure 2.2 highlights each of these operators using the example input-output table shown in Figure 2.1.

Figure 2.2: A hypothetical input-output table, with row and column summation operators included.

Once these subtotals are calculated using row and column summation operators, the total output and total input can be calculated using matrix addition, since the relevant matrices are now the same size. In the hypothetical table presented in Figures 2.1 and 2.2 these calculations would be as follows:



热门主题

课程名

mktg2509 csci 2600 38170 lng302 csse3010 phas3226 77938 arch1162 engn4536/engn6536 acx5903 comp151101 phl245 cse12 comp9312 stat3016/6016 phas0038 comp2140 6qqmb312 xjco3011 rest0005 ematm0051 5qqmn219 lubs5062m eee8155 cege0100 eap033 artd1109 mat246 etc3430 ecmm462 mis102 inft6800 ddes9903 comp6521 comp9517 comp3331/9331 comp4337 comp6008 comp9414 bu.231.790.81 man00150m csb352h math1041 eengm4100 isys1002 08 6057cem mktg3504 mthm036 mtrx1701 mth3241 eeee3086 cmp-7038b cmp-7000a ints4010 econ2151 infs5710 fins5516 fin3309 fins5510 gsoe9340 math2007 math2036 soee5010 mark3088 infs3605 elec9714 comp2271 ma214 comp2211 infs3604 600426 sit254 acct3091 bbt405 msin0116 com107/com113 mark5826 sit120 comp9021 eco2101 eeen40700 cs253 ece3114 ecmm447 chns3000 math377 itd102 comp9444 comp(2041|9044) econ0060 econ7230 mgt001371 ecs-323 cs6250 mgdi60012 mdia2012 comm221001 comm5000 ma1008 engl642 econ241 com333 math367 mis201 nbs-7041x meek16104 econ2003 comm1190 mbas902 comp-1027 dpst1091 comp7315 eppd1033 m06 ee3025 msci231 bb113/bbs1063 fc709 comp3425 comp9417 econ42915 cb9101 math1102e chme0017 fc307 mkt60104 5522usst litr1-uc6201.200 ee1102 cosc2803 math39512 omp9727 int2067/int5051 bsb151 mgt253 fc021 babs2202 mis2002s phya21 18-213 cege0012 mdia1002 math38032 mech5125 07 cisc102 mgx3110 cs240 11175 fin3020s eco3420 ictten622 comp9727 cpt111 de114102d mgm320h5s bafi1019 math21112 efim20036 mn-3503 fins5568 110.807 bcpm000028 info6030 bma0092 bcpm0054 math20212 ce335 cs365 cenv6141 ftec5580 math2010 ec3450 comm1170 ecmt1010 csci-ua.0480-003 econ12-200 ib3960 ectb60h3f cs247—assignment tk3163 ics3u ib3j80 comp20008 comp9334 eppd1063 acct2343 cct109 isys1055/3412 math350-real math2014 eec180 stat141b econ2101 msinm014/msing014/msing014b fit2004 comp643 bu1002 cm2030
联系我们
EMail: 99515681@qq.com
QQ: 99515681
留学生作业帮-留学生的知心伴侣!
工作时间:08:00-21:00
python代写
微信客服:codinghelp
站长地图