Consider the magic matrix:
A = np.array([[17, 24, 1, 8, 15],
[23,
5, 7, 14, 16],...
Consider the magic matrix:
A = np.array([[17, 24, 1, 8, 15],
[23,
5, 7, 14, 16],
[
4, 6, 13, 20, 22],
[10,
12, 19, 21, 3],
[11,
18, 25, 2, 9]])
The matrix A has 5 row sums (one for each row), 5 column
sums (one for each column) and two diagonal sums. These 12 sums
should all be exactly the same. Verify that they are the same by
printing them and “seeing” that they are the same.
Returns
Year
X
Y
1
17
%
22
%
2
31
32
3
12
16
4...
Returns
Year
X
Y
1
17
%
22
%
2
31
32
3
12
16
4
–
24
–
29
5
10
23
Using the returns shown above, calculate the arithmetic average
returns, the variances, and the standard deviations for X and Y.
Fill in the table below. (Do not round intermediate
calculations. Enter your average return and standard deviation as a
percent rounded to 2 decimal places, e.g., 32.16, and round the
variance to 5 decimal places, e.g., .16161.)...