Exercise Sheet 2

From ECLR
Jump to: navigation, search

Introduction

Blackboard is the University’s virtual learning environment. All of the material for this module, including formative assessments, and summative assessments, will be available in Blackboard.

You will normally enter the Blackboard site for this course through MyManchester at https://my.manchester.ac.uk/ .

All of the Blackboard material for the course is organised into Lecture topics, so that lecture notes, lecture slides, and exercise sheets can be found in the folder for each Lecture topic.

The questions on each exercise sheet may be answered in the traditional way, on paper, and handed in to be marked. Alternatively you can answer the majority (but not all) of the exercise sheet questions online, using Maple TA. All of the questions on this exercise sheet can be answered in Maple TA. The name of the matching Maple TA assignment is indicated in each question in this exercise sheet.

Using Maple TA

Maple T.A. is an easy-to-use web-based system for creating tests and assignments, and automatically assessing student responses and performance. In this module, most of the questions on the paper Exercise Sheets are also available as Maple TA assignments. The idea is that you can answer the questions at your leisure, and have them correctly graded by Maple TA. Once you have answered a question, the correct answers and/or sketch answers are immediately available. You can go back and attempt the same question as many times as you like.

Maple TA is located at

http://place36.placementtester.com/manchester
and this link is also given in each Lecture folder, for convenience. Login with your registration number (first 7 digits only): the password is also your registration number. Once you have logged in, there is generally a wait whilst the assignments are loaded. On the page that follows, you can click on MyProfile and then Password Update to change your password.

You should select the course

ECON61001 Econometric Methods 2013-14
by clicking on the entry for this course. This will bring up a page of assignments. You can click on the assignment you want to do - the notation follows that in the exercise sheets. The assignments are organised by question group, as in the Exercise Sheets, or by individual question - a component of the question group. Picking a question group means that you have to answer all the questions in that group before you can grade your answers. Picking an individual question enables you to grade your answers immediately.

When you click an an assignment, you are given choice between “Print assignment for off-line work” or Work assignment on-line right now. If you choose to print, wait for the questions to be printed. When you have answered the questions, you can login and click on the assignment again, and choose the Work ... online option to enter your answers.

Usually, you are given information on the type of response (number, formula etc) you are expected to give. If not, a textual response is required. In general, it is better to show arithmetic operators ([math] +, -, *, /, ^ [/math]) explicitly in your answers. Use of brackets to make clear meaning is also encouraged: what exactly is meant by [math]1/x-1[/math] - is it [math](1/x)-1[/math] or [math]1/(x-1)[/math]? Information about the entry of vectors and matrices in your answers is given in the next section, although the instructions are often repeated in questions.

When you have finished one page of questions, click Next to go to the next part of the main question. You can also use the drop down menu of the Question item. When you have finished, click Grade and View Details to see the marked version of your answers. This screen also contains a Comments section, which gives sketch answers. You can also click on Quit and Save, or on Print.

You can save your work and return to it later if you clicked on Quit and Save when doing the assignment, but before clicking on Grade. To return, simply find the assignment in the Class Homepage list, and click on it.

To inspect completed and marked assignments, start from the Assignments page by clicking on Class Homepage if necessary. Click on Gradebook, and select View Past Results. Select the assignment you want to inspect, click on Search, find the assignment in the list at the bottom of the page, and click on Details.

Most of the Exercise Sheets have additional randomised questions associated with them in Maple TA. These are questions where Maple TA generates the numbers, which are different every time the question is attempted. These questions are intended for additional practice, should this be required, or for revision. These randomised questions are sometimes easier than, and sometimes harder than, the corresponding Exercise Sheet questions. If you find one of these randomised questions to be to hard, simply click on the Refresh button at the top of the page to get another question.

Using the equation editor in Maple TA

Usually it is quicker to enter your answers directly in Maple TA rather than using the Equation Editor. Using the Equation Editor is straightforward: see Figure 1. To select a symbol, click on the required panel and select the symbol required. Figure 2 shows the subscript and superscript panel, and Figure 3 shows the array selection panel. Usage is fairly self-evident - keep trying until you find the required symbol.

Figure 1

Equation editor001.png

Figure 2

Equation editor subscripts.png

Figure 3

Equation editor arrays.png

Entering vectors and matrices into Maple TA

Many questions on this exercise sheet require vectors, matrices or indexed expression as their answers. Some questions provide an array of the right size for the answer, so that none of the methods below are required.

There are a variety of ways of entering these expressions into Maple TA - choose the way you feel most comfortable in using.

  1. Vector entry.
    1. You can use Maple “text entry” for column vectors, e.g. for the [math]3\times1[/math] vector,: [math]\left(\begin{array}{c} 1\\ 2\\ 3 \end{array}\right),[/math] enter (without the quotes) Vector([math][1,2,3][/math]).
    2. A quicker version is [math]\lt 1,2,3\gt [/math].
    3. For a row vector, use [math]\lt 1|2|3\gt [/math], as above, or Vector[row]([math][1,2,3][/math]).
    4. Or, you can right click in the “Equation Editor”, select the array object, choose the correct matrix size and enter the elements of the vector.
  2. Matrix entry.
    1. You can use Maple “text entry” for matrices, e.g. for a [math]2\times3[/math] matrix, enter (without the quotes) Matrix([math][[1,2,3],[345]][/math]) for the matrix: [math]\left(\begin{array}{ccc} 1 & 2 & 3\\ 4 & 5 & 6 \end{array}\right).[/math] For more columns, include more elements in each [.] block. For more rows, add more [.] blocks, each separated by a comma. This is “row - by - row” construction.
    2. A quicker version is [math]\lt 1,2,3;4,5,6\gt [/math].
    3. Column by column construction is also possible using [math]\lt 1,4|2,5|3,6\gt [/math] or [math]\lt \lt 1,4\gt |\lt 2,5\gt |\lt 3,6\gt \gt [/math].
    4. A matrix with one row, say [math]\left[\begin{array}{ccc} 1 & 2 & 3\end{array}\right][/math] can be entered as Matrix([math][1,2,3][/math]), or as [math]\lt 1|2|3\gt [/math].
    5. A matrix with one column, say [math]\left[\begin{array}{c} 1\\ 4 \end{array}\right],[/math] can be entered as Matrix([math][[1],[4]][/math]) or as [math]\lt 1,4\gt [/math].
    6. Or, you can right click in the “Equation Editor”, select the array object, choose the correct matrix size and enter the elements of the product.
  3. Entering indexed elements in vectors and matrices - the methods below can be used with any of the vector or matrix entry schemes.
    1. To insert [math]x_{1}[/math] into an answer, you can use [math]x[1][/math], or you can use the Equation Editor. NB: select the right palette in the equation editor before entering any symbols!
    2. To insert [math]x_{11},[/math] use x[1,1], or use the Equation Editor, subject to the previous warning.

On the whole, the entry methods using [math]\lt ...\gt [/math] are the quickest to use.

Arithmetic operators are best shown explicitly in entering answers. These operators are the standard ones, [math]+,-,*,/[/math] and .

Question 1: Vectors

  1. (XS1 Q1 Part 1) Given the vectors: [math]\mathbf{0}=\left[\begin{array}{r} 0\\ 0 \end{array}\right],\ \ \ \mathbf{x}=\left[\begin{array}{r} -2\\ 3 \end{array}\right],\ \ \ \mathbf{y}=\left[\begin{array}{r} 3\\ 5 \end{array}\right],\ \ \ \mathbf{z}=\left[\begin{array}{r} 4\\ 2 \end{array}\right],[/math] find: [math]\mathbf{0}-\mathbf{x,x}+\mathbf{y,\mathbf{x-y},x-}2\mathbf{z,}3\mathbf{z}-2\mathbf{y,x}-2\mathbf{y}+\mathbf{z.}[/math]
  2. (XS1 Q1 Part 2) Can you find a linear combination [math]\alpha\mathbf{x}+\beta\mathbf{y}[/math] of [math]\mathbf{x=}\left[\begin{array}{r} 1\\ -1 \end{array}\right][/math] and [math]\mathbf{y=}\left[\begin{array}{r} 1\\ 1 \end{array}\right][/math] to generate (in turn) the vectors: [math]\mathbf{w}_{1}=\left[\begin{array}{c} 4\\ -2 \end{array}\right],\mathbf{w}_{2}=\left[\begin{array}{r} -2\\ 4 \end{array}\right],\mathbf{w}_{3}=\left[\begin{array}{r} -2\\ 2 \end{array}\right]?[/math]

Additional “randomised” questions in Maple TA are in ExSheet2 Randomised Questions. The individual questions are XS2 Random Question 1 Part 1 and Part 2.

Question 2: 3 - d vectors

  1. (XS1 Q2 Part 2) For the vectors: [math]\mathbf{x}=\left[\begin{array}{c} 1\\ 2\\ 0 \end{array}\right],\ \ \ \mathbf{y}=\left[\begin{array}{c} 1\\ -1\\ 0 \end{array}\right][/math] find [math]-2\mathbf{x,\ }3\mathbf{x}+2\mathbf{y,\ }4\mathbf{x}-2\mathbf{y.}[/math]
  2. (XS1 Q2 Part 2) For the vectors: [math]\mathbf{x}=\left[\begin{array}{c} x_{1}\\ \vdots\\ x_{n} \end{array}\right],\ \ \ \mathbf{y}=\left[\begin{array}{c} y_{1}\\ \vdots\\ y_{n} \end{array}\right][/math] find [math]10\mathbf{x}-\alpha\mathbf{y,}\beta\mathbf{y.}[/math]
  3. (XS1 Q2 Part 3) Use the vector [math]\mathbf{x}=\left[\begin{array}{c} 1\\ 2\\ 0 \end{array}\right][/math] and the vector [math]\mathbf{z}=\left[\begin{array}{r} 4\\ 2 \end{array}\right][/math] to find [math]2\mathbf{x-z,}[/math] [math]\mathbf{x}+3\mathbf{z.}[/math]

Additional “randomised” questions in Maple TA are in ExSheet2 Randomised Questions. The individual questions are XS2 Random Question 2 Part 1 and Part 2.

Question 3: Matrices

  1. (XS1 Q3 Part 1) Arrange the vectors: [math]\mathbf{0}=\left[\begin{array}{r} 0\\ 0 \end{array}\right],\ \ \ \mathbf{x}=\left[\begin{array}{r} -2\\ 3 \end{array}\right],\ \ \ \mathbf{y}=\left[\begin{array}{r} 3\\ 5 \end{array}\right],\ \ \ \mathbf{z}=\left[\begin{array}{r} 4\\ 2 \end{array}\right].[/math] as the columns of a matrix [math]A.[/math] What is the dimension of [math]A?[/math] Find a suitable vector [math]\boldsymbol{\alpha}[/math] so that the product [math]A\boldsymbol{\alpha}[/math] is equal to the following linear combinations in turn: [math]\mathbf{0}-\mathbf{x,\ x}+\mathbf{y,\ \mathbf{x-y},\ 2z}-\mathbf{x,}[/math] [math]\mathbf{y}-2\mathbf{z,\ x}+\mathbf{y}-\mathbf{z.}[/math]
  2. (XS1 Q3 Part 2) Arrange the vectors: [math]\mathbf{x}=\left[\begin{array}{c} 1\\ 2\\ 0 \end{array}\right],\ \ \ \mathbf{y}=\left[\begin{array}{c} 1\\ -1\\ 0 \end{array}\right][/math] as the columns of a matrix [math]A.[/math] What is the dimension of [math]A?[/math] Find a suitable vector [math]\boldsymbol{\alpha}[/math] so that the product [math]A\boldsymbol{\alpha}[/math] is equal to the following linear combinations in turn: [math]-2\mathbf{x,\ }3\mathbf{x}+2\mathbf{y,\ }4\mathbf{x}-2\mathbf{y.}[/math]
  3. (XS1 Q3 Part 3) Arrange the vectors: [math]\mathbf{x}=\left[\begin{array}{c} 1\\ 2\\ 0 \end{array}\right],\ \ \ \mathbf{z}=\left[\begin{array}{r} 4\\ 2 \end{array}\right][/math] as the columns of a matrix [math]A.[/math] What is the dimension of [math]A?[/math]
  4. (XS1 Q3 Part 4) Arrange the vectors [math]\mathbf{x}=\left[\begin{array}{c} 1\\ 1\\ 1 \end{array}\right],\ \ \ \mathbf{y}=\left[\begin{array}{c} 1\\ -1\\ -1 \end{array}\right],\ \ \ \mathbf{z}=\left[\begin{array}{c} 1\\ 0\\ 0 \end{array}\right][/math] as the columns of a matrix [math]A.[/math] What is the dimension of [math]A?[/math] If [math]\boldsymbol{\alpha}=\left[\begin{array}{c} 2\\ 1\\ 3 \end{array}\right][/math] find [math]A\boldsymbol{\alpha.}[/math]
  5. (XS1 Q3 Part 5) Arrange the vectors : [math]\mathbf{x}=\left[\begin{array}{c} 1\\ 1\\ 1 \end{array}\right],\ \ \ \mathbf{y}=\left[\begin{array}{c} 1\\ -1\\ -1 \end{array}\right],\ \ \ \mathbf{w}=\left[\begin{array}{c} -1\\ -1\\ 1 \end{array}\right][/math] as the columns of a matrix [math]A.[/math] What is the dimension of [math]A?[/math] If [math]\boldsymbol{\alpha}=\left[\begin{array}{c} 0\\ -1/2\\ -1/2 \end{array}\right][/math] find [math]A\boldsymbol{\alpha.}[/math]
  6. (XS1 Q3 Part 6) Arrange the vectors: [math]\mathbf{x}=\left[\begin{array}{c} 1\\ 1\\ 1 \end{array}\right],\ \ \ \mathbf{y}=\left[\begin{array}{c} 1\\ -1\\ -1 \end{array}\right],\ \ \ \mathbf{w}=\left[\begin{array}{c} -1\\ -1\\ 1 \end{array}\right],\ \ \ \mathbf{v}=\left[\begin{array}{c} 0\\ 1\\ 0 \end{array}\right][/math] as the columns of a matrix [math]A.[/math] What is the dimension of [math]A?[/math] If [math]\boldsymbol{\alpha}=\left[\begin{array}{c} 0\\ 1/2\\ 1/2\\ 1 \end{array}\right][/math] find [math]A\boldsymbol{\alpha}.[/math]

Additional “randomised” questions in Maple TA are in ExSheet2 Randomised Questions. The individual questions are XS2 Random Question 3 Part 1, Part 2, Part 4, Part 5 and Part 6.

Question 4: Inner products

  1. (XS1 Q4 Part 1) Find the inner product of the vectors: [math]\mathbf{x}=\left[\begin{array}{r} -2\\ 3 \end{array}\right],\ \ \ \mathbf{y}=\left[\begin{array}{r} 3\\ 5 \end{array}\right].[/math] What is [math]\mathbf{x}^{T}\mathbf{x}[/math] and [math]\mathbf{y^{T}y?}[/math] Is it true that [math]\left(\mathbf{x}^{T}\mathbf{y}\right)^{2}\leq[/math] [math]\mathbf{x}^{T}\mathbf{x\times y^{T}y?}[/math] This is called the Cauchy-Schwartz Inequality; equality holds only when [math]\mathbf{x}=\lambda\mathbf{y,}[/math] for some [math]\lambda.[/math]
  2. (XS1 Q4 Part 2) Find a vector [math]\mathbf{z}[/math] with the property that [math]\mathbf{x}^{T}\mathbf{z}=0[/math] for [math]\mathbf{x}=\left[\begin{array}{r} -2\\ 3 \end{array}\right].[/math] Draw a diagram showing [math]\mathbf{x}[/math] and [math]\mathbf{z:}[/math] how would you describe the relationship between [math]\mathbf{x}[/math] and [math]\mathbf{z?}[/math]
  3. (XS1 Q4 Part 3) For: [math]\mathbf{x}=\left[\begin{array}{c} 1/3\\ 1/3\\ 1/3 \end{array}\right],\ \ \ \mathbf{y}=\left[\begin{array}{c} 1\\ 1\\ 1 \end{array}\right],\ \ \ \mathbf{z}=\left[\begin{array}{c} 6\\ 2\\ -1 \end{array}\right][/math] find [math]\mathbf{x}^{T}\mathbf{y,\ x}^{T}\mathbf{z,\ y}^{T}\mathbf{z.}[/math] How would you describe the value of these inner products from a statistical perspective?
  4. (XS1 Q4 Part 4) If [math]\mathbf{x}=\left[\begin{array}{c} x_{1}\\ \vdots\\ x_{10} \end{array}\right],[/math] what is [math]\mathbf{x}^{T}\mathbf{x?}[/math]
  5. (XS1 Q4 Part 5) If [math]\mathbf{z}=\left[\begin{array}{c} 3\\ 7\\ 1\\ 9 \end{array}\right][/math] and [math]\mathbf{1}_{4}[/math] is a [math]4\times1[/math] vector with every element equal to [math]1,[/math] what is the quantity [math]c=\dfrac{1}{4}\mathbf{1}_{4}^{T}\mathbf{z?}[/math] Find the elements of the vector [math]\mathbf{z}-c\mathbf{1}_{4}.[/math] From a statistical perspective, what are the elements of this vector? Find the value of the inner product [math]\mathbf{1}_{4}^{T}\left(\mathbf{z}-c\mathbf{1}_{4}\right).[/math] What statistical information does this illustrate?
  6. (XS1 Q4 Part 6) Using [math]\mathbf{z}=\left[\begin{array}{c} 3\\ 7\\ 1\\ 9 \end{array}\right],[/math] [math]\mathbf{1}_{4}[/math] and [math]c[/math] from part (5), what is the inner product of [math]\left(\mathbf{z}-c\mathbf{1}_{4}\right)[/math] with itself? If this distance is divided by [math]3[/math] or [math]4,[/math] what statistical quantity is the result?

Additional “randomised” questions in Maple TA are in ExSheet2 Randomised Questions. The individual questions are XS2 Random Question 4 Part 1, Part 2, Part 3, and Part 4.

Question 5: Across and down

  1. (XS1 Q5 Part 1) Suppose that [math]B[/math] is an [math]r\times s[/math] matrix with typical element [math]\left\Vert b_{ij}\right\Vert ,[/math] and [math]\mathbf{z}[/math] is an [math]s\times1[/math] vector, with typical element [math]z_{j}.[/math] What is the second element of the product [math]B\mathbf{z?}[/math] What is the [math]k[/math]th element?
  2. (XS1 Q5 Part 2) If [math]A=\left[\begin{array}{rrr} 2 & 1 & 3\\ 1 & 0 & 4 \end{array}\right],[/math] and [math]\mathbf{b}_{1}=\left[\begin{array}{r} 4\\ 1\\ 2 \end{array}\right],[/math] [math]\mathbf{b}_{2}=\left[\begin{array}{r} 1\\ 2\\ -1 \end{array}\right],[/math] find [math]A\mathbf{b}_{1},[/math] [math]A\mathbf{b}_{2}.[/math]
  3. (XS1 Q5 Part 3) If [math]A=\left[\begin{array}{rrr} 2 & 1 & 3\\ 1 & 0 & 4 \end{array}\right],[/math] and [math]\mathbf{b}_{1}=\left[\begin{array}{r} 4\\ 1\\ 2 \end{array}\right],[/math] [math]\mathbf{b}_{2}=\left[\begin{array}{r} 1\\ 2\\ -1 \end{array}\right],[/math] make [math]\mathbf{b}_{1}[/math] and [math]\mathbf{b}_{2}[/math] the columns of a matrix [math]B[/math] and find the matrix which is equal to [math]AB.[/math]
  4. (XS1 Q5 Part 4) If [math]A=\left[\begin{array}{cc} 1 & 2\\ 3 & 4 \end{array}\right][/math] and [math]B=\left[\begin{array}{cc} 1 & 4\\ 6 & 7 \end{array}\right],[/math] find [math]AB[/math] and [math]BA.[/math] What property do the matrices [math]A[/math] and [math]B[/math] have?
  5. (XS1 Q5 Part 5) If [math]A_{4}=\left[\begin{array}{rrr} -3 & 9 & 4\\ 0 & 5 & 2 \end{array}\right][/math] and [math]A_{10}=\left[\begin{array}{rr} -3 & 2\\ 4 & 9\\ 1 & -2 \end{array}\right],[/math] find [math]A_{4}A_{10}[/math] and [math]A_{10}A_{4}.[/math] Why are [math]A_{4}A_{10}[/math] and [math]A_{10}A_{4}[/math] not equal?
  6. (XS1 Q5 Part 6) If [math]A_{4}=\left[\begin{array}{rrr} -3 & 9 & 4\\ 0 & 5 & 2 \end{array}\right][/math] and [math]A_{11}=\left[\begin{array}{rrr} 2 & 4 & 4\\ 3 & 1 & -1\\ 2 & 0 & 4 \end{array}\right],[/math] find [math]A_{4}A_{11}[/math] and [math]A_{11}A_{4}.[/math]
  7. (XS1 Q5 Part 7) If [math]A_{11}=\left[\begin{array}{rrr} 2 & 4 & 4\\ 3 & 1 & -1\\ 2 & 0 & 4 \end{array}\right][/math] and [math]A_{12}=\left[\begin{array}{rrr} 3 & 0 & -1\\ -2 & -1 & -1\\ 1 & 2 & 3 \end{array}\right][/math] , find [math]A_{11}A_{12}[/math] and [math]A_{12}A_{11}.[/math]
  8. (XS1 Q5 Part 8) If [math]A_{1}=\left[\begin{array}{rrr} 4 & 0 & -3\\ 1 & -1 & 4\\ 2 & 2 & -11 \end{array}\right][/math] and [math]A_{8}=\left[\begin{array}{rrr} 4 & 2 & 6\\ 1 & 3 & 4\\ 5 & 0 & 5 \end{array}\right][/math] , find [math]2A_{8}-3A_{1}.[/math]

Additional “randomised” questions in Maple TA are in ExSheet2 Randomised Questions. The individual questions are XS2 Random Question 5 Part 1, Part 2, Part 4, and Part 8.

Question 6: Transposition

  1. (XS1 Q6 Part 1) Find the transpose of the following matrices:

    [math]\begin{aligned} A_{1} & = & \left[\begin{array}{cc} -2 & 3\\ 3 & 5 \end{array}\right];\ \ \ A_{2}=\left[\begin{array}{rrr} 1 & 0 & 9\\ 6 & -2 & 15 \end{array}\right];\ \ \ A_{3}=\left[\begin{array}{rr} 1 & 1\\ 2 & -1\\ 0 & 0 \end{array}\right];\\ A_{4} & = & \left[\begin{array}{rrr} 1 & 1 & -1\\ 1 & -1 & -1\\ 1 & -1 & 1 \end{array}\right];\ \ \ A_{5}=\left[\begin{array}{rrr} 1 & 1 & -1\\ 1 & -1 & -1\\ -1 & -1 & 1 \end{array}\right];\ \ \ A_{6}=\left[\begin{array}{rr} 4 & 2\\ 3 & 5\\ -2 & 3 \end{array}\right].\end{aligned}[/math]

  2. (XS1 Q6 Part 1) What is the dimension of [math]A^{T}[/math] for each matrix in part (1)?

  3. Check that [math]\left(A^{T}\right)^{T}=A[/math] for each of the matrices in part (1).

  4. (XS1 Q6 Part 1) What properties do the matrices [math]A_{1}[/math] and [math]A_{5}[/math] have that are not shared by the other matrices in part (1)?

  5. (XS1 Q6 Part 5) If [math]A_{4}=\left[\begin{array}{rrr} -3 & 9 & 4\\ 0 & 5 & 2 \end{array}\right][/math] and [math]A_{10}=\left[\begin{array}{rr} -3 & 2\\ 4 & 9\\ 1 & -2 \end{array}\right],[/math] find [math]A_{4}^{T}[/math] and [math]A_{10}^{T}.[/math] Confirm that [math]\left(A_{4}A_{10}\right)^{T}=A_{10}^{T}A_{4}^{T}.[/math]

Additional “randomised” questions in Maple TA are in ExSheet2 Randomised Questions. The individual questions are XS2 Random Question 6 Part 1, Part 4, and Part 5.

Question 7: Special Matrices

  1. (XS1 Q7 Part 1) If [math]A_{4}=\left[\begin{array}{rrr} -3 & 9 & 4\\ 0 & 5 & 2 \end{array}\right],[/math] confirm that [math]I_{2}A_{4}=A_{4}I_{3}.[/math]
  2. (XS1 Q7 Part 2) If [math]D=\left[\begin{array}{cc} 3 & 0\\ 0 & 5 \end{array}\right],[/math] [math]A_{4}=\left[\begin{array}{rrr} -3 & 9 & 4\\ 0 & 5 & 2 \end{array}\right][/math] and [math]A_{10}=\left[\begin{array}{rr} -3 & 2\\ 4 & 9\\ 1 & -2 \end{array}\right],[/math] find [math]DA_{4}[/math] and [math]A_{10}D.[/math] What pattern can you detect in the results?
  3. (XS1 Q7 Part 3) If [math]A_{4}=\left[\begin{array}{rrr} -3 & 9 & 4\\ 0 & 5 & 2 \end{array}\right],[/math] find [math]A_{4}A_{4}^{T}[/math] and [math]A_{4}^{T}A_{4}.[/math] Are these two matrices equal? What property do these two matrices possess?
  4. (XS1 Q7 Part 4) If [math]\mathbf{x}=\left[\begin{array}{r} -2\\ 3 \end{array}\right][/math] and [math]\mathbf{y}=\left[\begin{array}{c} 1\\ -1\\ -1 \end{array}\right],[/math] find [math]\mathbf{xx}^{T}[/math], [math]\mathbf{yy}^{T}[/math]. Are these symmetric? Do they equal [math]\mathbf{x}^{T}\mathbf{x,}[/math] [math]\mathbf{y}^{T}\mathbf{y?}[/math] Find [math]\mathbf{xy}^{T}:[/math] is [math]\mathbf{xy}^{T}[/math] equal to [math]\mathbf{yx}^{T}[/math] or [math]\mathbf{y}^{T}\mathbf{x?}[/math]
  5. (XS1 Q7 Part 5) If [math]L=\left[\begin{array}{rrr} 1 & 0 & 0\\ 2 & 1 & 0\\ 3 & 2 & 1 \end{array}\right],[/math] show that [math]L^{T}[/math] is an upper triangular matrix.

Additional “randomised” questions in Maple TA are in ExSheet2 Randomised Questions. The individual questions are XS2 Random Question 7 Part 3 and 4.

Question 8: Partitioned matrices

  1. (XS1 Q8 Part 1) Write [math]A_{2}=\left[\begin{array}{rrrr} 1 & 2 & 1 & -3\\ 6 & 0 & 10 & 9\\ 2 & 0 & 3 & 4 \end{array}\right][/math] in the form [math]A_{2}=\left[\begin{array}{rr} B_{1} & B_{2}\end{array}\right],[/math] where both [math]B_{1}[/math] and [math]B_{2}[/math] have two columns. What are [math]B_{1}[/math] and [math]B_{2}?[/math] Write [math]A_{9}=\left[\begin{array}{rr} 2 & 0\\ -1 & 3\\ 4 & -2\\ 7 & 7 \end{array}\right][/math] as [math]A_{9}=\left[\begin{array}{r} C_{1}\\ C_{2} \end{array}\right],[/math] where both [math]C_{1}[/math] and [math]C_{2}[/math] have 2 rows. Express the product [math]A_{2}A_{9}[/math] in terms of [math]B_{1}[/math], [math]B_{2},[/math] [math]C_{1}[/math] and [math]C_{2}.[/math] Do the same for the product [math]A_{9}A_{2},[/math] carefully stating the dimensions of any submatrices.
  2. (XS1 Q8 Part 1) If [math]A_{2}=\left[\begin{array}{rrrr} 1 & 2 & 1 & -3\\ 6 & 0 & 10 & 9\\ 2 & 0 & 3 & 4 \end{array}\right]=\left[\begin{array}{rr} B_{1} & B_{2}\end{array}\right],[/math] where both [math]B_{1}[/math] and [math]B_{2}[/math] have two columns, and [math]\mathbf{z}=\left[\begin{array}{c} 5\\ 1\\ -3\\ 2 \end{array}\right]=\left[\begin{array}{r} \mathbf{z}_{1}\\ \mathbf{z}_{2} \end{array}\right][/math] where [math]\mathbf{z}_{i}[/math] is [math]2\times1,[/math] given an expression for [math]A_{2}\mathbf{z}[/math] in terms of [math]B_{1},B_{2},\mathbf{z}_{1},\mathbf{z}_{2}.[/math]
  3. (XS1 Q8 Part 3) If [math]A=\left[\begin{array}{cc} A_{11} & A_{12}\\ A_{21} & A_{22} \end{array}\right][/math] and [math]\mathbf{z}=\left[\begin{array}{r} \mathbf{z}_{1}\\ \mathbf{z}_{2} \end{array}\right],[/math] where [math]A_{11}[/math] is [math]2\times2,[/math] [math]A_{12}[/math] is [math]2\times1,[/math] [math]A_{21}[/math] is [math]1\times2,[/math] [math]A_{22}[/math] [math]1\times1[/math] and [math]\mathbf{z}_{1}[/math] is [math]1\times1,[/math] [math]\mathbf{z}_{2}[/math] [math]2\times1,[/math] is the matrix [math]A[/math] well defined? Does the product [math]A\mathbf{z}=\left[\begin{array}{cc} A_{11} & A_{12}\\ A_{21} & A_{22} \end{array}\right]\left[\begin{array}{r} \mathbf{z}_{1}\\ \mathbf{z}_{2} \end{array}\right]=\left[\begin{array}{c} A_{11}\mathbf{z}_{1}+A_{12}\mathbf{z}_{2}\\ A_{21}\mathbf{z}_{1}+A_{22}\mathbf{z}_{2} \end{array}\right][/math] exist in this form?

Additional “randomised” questions in Maple TA are in ExSheet2 Randomised Questions. The individual questions are XS2 Random Question 8 Part 1.

Question 9: Data matrices

A small data set on variables [math]y[/math] and [math]x[/math] is: [math]D=\left[\begin{array}{rr} 14 & 2\\ 17 & 4\\ 8 & 3\\ 16 & 5\\ 3 & 2 \end{array}\right].[/math]

  1. (XS1 Q9 Part 1) Define a vector of observations on [math]y[/math] and a matrix [math]X[/math] so that the two variable regression model [math]y_{i}=\alpha+\beta x_{i}+u_{i}[/math] can be represented, using the data in [math]D,[/math] as [math]\mathbf{y}=X\boldsymbol{\delta}+\mathbf{u.}[/math]
  2. (XS1 Q9 Part 1) Compute for your choice of [math]X,[/math] [math]X^{T}X[/math] and [math]X^{T}\mathbf{y.}[/math] Check your answers in Matlab.

Additional “randomised” questions in Maple TA are in ExSheet2 Randomised Questions. The individual questions are XS2 Random Question 9 Part 1.