0% found this document useful (0 votes)
28 views

Assignment 4 Workshop

This document provides instructions for completing a matrix algebra and statistics assignment using MATLAB and Excel. It includes 6 questions - the first asks the student to perform operations with vectors in MATLAB such as finding lengths, modifying values, and plotting histograms. The second asks the student to calculate probabilities, statistics, and a confidence interval using data provided in a table in Excel. The student is instructed to show all commands used and submit their work by a specified deadline.

Uploaded by

hei kwong
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views

Assignment 4 Workshop

This document provides instructions for completing a matrix algebra and statistics assignment using MATLAB and Excel. It includes 6 questions - the first asks the student to perform operations with vectors in MATLAB such as finding lengths, modifying values, and plotting histograms. The second asks the student to calculate probabilities, statistics, and a confidence interval using data provided in a table in Excel. The student is instructed to show all commands used and submit their work by a specified deadline.

Uploaded by

hei kwong
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Assignment part IV (workshop) for SCE 4104 Matrix Algebra & Statistics

by Dr. Chengyu Hong

Note: Please write down all commands used to complete the following questions and
submit a hardcopy on or before 10 May 2015, Sunday.

Question 1 (Matlab workshop)


1) To find out the length of each follow vectors:
a) x = (1 1.01 1.02 …… 5)
b) y = (2 2.005 2.01 2.015 ……. 3)
c) z = (100 100.5 101 …… 200)

2) To construct a vector A = (1 3 5 7 9)
To change ‘7’ to ’70 and ‘1’ to -10 in vector A

3) To make a vector B as a column vector with same values in vector A

4) To find out the sum of row vectors of A and C if C = (12 65 95 42 36)

5) To plot the histogram of a vector with 1000 random numbers of mean =0 and standard
deviation 1.

3 3 1 1 3 1
6) Given the matrices 𝐴 = [ ], 𝐵 = [ ],𝐶 = [ ]
2 1 2 3 5 8

Find out
a) A+B=B+A
b) (A+B)+C=A+B(B+C)
c) A+0=A
d) A+(-A)=0
e) Adj of matrix A
f) Cofactor of matrix AB
g) Inverse of matrix (ABC)
h) Dot product of row 1 of matrix A and row 2 of matrix B

1
Question 2 (Excel workshop)

1). What is the z-score of 3 under the distribution of N(5,22)?

2). What is the cumulative probabilities p(x<-1) and p(x>1) under standard normal
distribution?

3). What is the probability of values less than 1 under standard normal distribution?

4). Assume the people’s age distribution follows normal distribution as shown in the
following table. Please use excel to find out the Variance, Standard deviation, Mean
value, Median, Quantile 25%, Quantile 50%, and Quantile 75%. What is the interval
estimation for90% confidence interval? (Note that standard deviation of population is
unknown.)

No. AGE
1 46
2 30
3 57
4 65
5 70
6 70
7 46
8 42
9 52
10 78
11 75
12 63
13 59
14 85
15 83
16 54
17 72
18 65
19 49
20 25
21 32
22 26
23 67
24 19
25 78
26 54
27 66
28 79
29 53
30 85
31 55
32 50

2
33 50
34 56
35 54
36 48
37 67
38 45
39 51
40 64

You might also like