[Solved] STAT823 Homework 10-Matrix Approach to Linear Regression

$25

File Name: STAT823_Homework_10_Matrix_Approach_to_Linear_Regression.zip
File Size: 527.52 KB

SKU: [Solved] STAT823 Homework 10-Matrix Approach to Linear Regression Category: Tag:
5/5 - (1 vote)

Using RMarkdown in RStudio, complete the following questions. Launch RStudio and open a new RMarkdown file and save it on your working directory as a name.Rmd file. At the end of the activity, knit your document to pdf generated from RMarkdown+Knitr and submit your homework on the Blackboard.

If you have questions, please post them on the lesson discussion board.

All Two questions are mandatory.

R code and output must be clearly shown.

Homework submitted after the due date will attract a penalty of 10 points per day after the due date.

1(a). Let A be defined as follows:

1A = 11 500 05 5
  • are the column vectors of A linearly dependent?
  • What is the rank of A?
  • What must be the determinant of A? (iv) Find the trace of A.

1(b). Let B be defined as follows:

5B = 41 109 35 6

Page -1- of 2

  • are the column vectors of B linearly dependent?
  • What is the rank of B?
  • Calculate the determinant of B.
  • Find the trace of B.
  • Find the inverse of B.
  1. The data below show, for a consumer finance company operating in six cities, the number of competing loan companies in the city (X) and the number per thousand of companys loans made in that city that are currently delinquent (Y ):

## Y X

## 1 16 4 ## 2 5 1 ## 3 10 2

## 4 15 3

## 5 13 3 ## 6 22 4

Assume that the first-order regression model Y = X + is applicable. Using the matrix methods, obtain the following:

  • YTY
  • XTX
  • XTY
  • (XTX)1
  • a vector of estimated regression coefficients
  • a vector of residuals e
  • SSR
  • SSE
  • estimated variance-covariance matrix of

2

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] STAT823 Homework 10-Matrix Approach to Linear Regression[Solved] STAT823 Homework 10-Matrix Approach to Linear Regression
$25