Assignment 4 Workshop
Assignment 4 Workshop
Note: Please write down all commands used to complete the following questions and
submit a hardcopy on or before 10 May 2015, Sunday.
2) To construct a vector A = (1 3 5 7 9)
To change ‘7’ to ’70 and ‘1’ to -10 in vector A
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)
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