1 Non-Profit Joint Stock Company PROBABILITY THEORY AND MATHEMATICAL STATISTICS Methodological Guidelines for carrying out the laboratory works for students of speciality 5В070200 - Automation and management Almaty 2017 ALMATY UNIVERSITY OF POWER ENGINEERING AND TELECOMMUNICATIONS The department of Mathematical modeling and software
62
Embed
libr.aues.kzlibr.aues.kz/facultet/104_FIT/108_Visshaya_matematika/90_Probability... · 2 COMPILERS: Astrakhantseva L. N., Baisalova M.Zh., Probability theory and mathematical statistics.
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
1
Non-Profit Joint Stock Company
PROBABILITY THEORY AND MATHEMATICAL STATISTICS
Methodological Guidelines for carrying out
the laboratory works for students of speciality
5В070200 - Automation and management
Almaty 2017
ALMATY UNIVERSITY OF
POWER ENGINEERING AND
TELECOMMUNICATIONS
The department of Mathematical
modeling and software
2
COMPILERS: Astrakhantseva L. N., Baisalova M.Zh., Probability theory and
mathematical statistics. Methodological Guidelines for carrying out the laboratory
works for students of speciality 5В070200 - Automation and management. –
Almaty, 2017. – 62 p.
Methodological Guidelines contain four laboratory works. First two works
introduce students to MathCAD system. Third and fourth works contain tasks from
basic parts of probability theory and statistical mathematics course. Methodological
Guidelines for students of specialty 5В070200 – Automation and management, are
compiled in accordance with syllabus “Probability theory and mathematical
statistics”.
Tables 20, figures 10, bibl. 6.
Reviewer: candidate of sciences (PhD) in Physics and Mathematics,
R.E.Kim
Printed according to the Publishing plan of Non-Profit Joint Stock Company
“Almaty University of Power Engineering and Telecommunications” for 2017
Non-Profit Joint Stock Company
“Almaty University of Power Engineering and Telecommunications”, 2017
3
1 Laboratory work №1
The aim of the laboratory work is introduction to computer system MathCAD
and solution of tasks of elementary mathematics, vector and linear algebra in this
system.
Task 1. Calculate.
1.1
68
531:775,6:25,1:5,2
4
9:
26
9
18
13625,4
1.2 3,1:4796,1358,0:
12
7
6
5125,0375,0
2
1
1.3
147
22:
49
23
72
11
2
12
4
33:5,1
2
11:75,3
1.4 3,1:384,20
9,60125,08
725,6:53,26
7
64,8
1.5
2
175,5:5,1225,0
17
16275,14,3
1.6
3
12114
5
312:5,31
7
3221726,0:43,0520
1.7
2
11:75,3
2
12
4
33:6,0
147
22:
47
23
7
11
1.8 5,09,1
20
175,2:
16
9125,0:125,0
1.9
2
12:5
5
234
3
2:6,29,88
8
71
1.10 6,18
36
17
18
52
3
2:13:
4
13
5
13:2
1.11 5,2207,0:
9
212:
33
4
88
1523275,0
1.12
11
2
2
1209,024,02,2
33
18
9
713
2
116
1.13 6,033,0:2,0
11
426,075,4
3
115,3
1.14 35,124,1
15
1
18
1135,0:175,010:
3
13
1.15 96,03,0:22,0
11
4166,075,6
3
215,4
1.16
6
51:975,6:25,1:5,2
4
5:
24
9
18
12625,3
1.17 3,1:47,135,0:
12
5
6
7325,0175,0
2
1
4
1.18
17
2:
49
2
7
11
2
12
4
33:2,1
4
31:75,2
1.19 3,1:38,2
9,40125,08
725,6:53,25
7
12,8
1.20
2
175,1:5,1223,0
17
125,14,1
1.21
3
1214
5
212:5,30
5
322126,0:4,020
1.22
2
11:15,3
2
11
4
34:3,0
47
22:
47
2
5
12
1.23 5,08,1
20
75,1:
16
31125,0:25,0
1.24
2
12:5
5
23
3
2:6,19,67
7
21
1.25 6,1
36
7
8
52
3
1:13:
4
15
5
23:4
1.26 5,2108,0:
9
22:
33
4
8
52275,0
1.27
13
2
2
1109,04,02,1
33
8
9
213
2
16
1.28 15,35,8
36
17
8
52
3
1:13:
4
16
5
12:4
1.29 25,122,1
15
1
18
1315,0:125,011:
3
12
1.30 6,033,0:2,0
11
426,075,4
3
115,3
Task 2. Remove brackets and collect terms.
2.1 knknnknknknkn 4422525
2.2 zaazzzazazaza 322322323
2.3 xaxaxaxaxa 535327423652
2.4 bababababa 525232323
2.5 xyyxyxyx 174322253274
2.6 abbababa 162732292253
2.7 25322253 yxyx
2.8 3 2 2 3 3 2 2 33 2 6 2 5 6 2 2 3y y z yz z y z y y z yz z y z
2.9 21432
372 xaxa
5
2.10 3 2 2 3 3 2 2 32 3 5 2 3 5 2x x y xy y x y x x y xy y x y
2.11 2 2 2 24 2 5 2a ax x a x a ax x a x
2.12 2 2 2 22 2 2a ab b a b a ab b a b
2.12 3 2 1 1b b b b
2.14 3 22 2 1 1a a a a
2.15 2422
453 xaxa
2.16 knknnknknknkn 222
42
4
2.17 zaazzzazazaza 222
42
4
2.18 xaxaxaxaxa 332
6264
2.19 bababababa 2323222
2.20 xyyxyxyx 73222
522
4
2.21 abbababa 2617322
722
3
2.22 2522
24 yxyx
2.23 3 2 2 3 3 2 2 32 3 4 2 2 3y y z yz z y z y y z yz z y z
2.24 21532
354 xaxa
2.25 3 2 2 3 3 2 2 33 3 2 2 2 4 3x x y xy y x y x x y xy y x y
2.26 2 2 2 24 2 5 2a ax x a x a ax x a x
2.27 2 2 2 22 2 2 2a ab b a b a ab b a b
2.28 3 22 3 1 2b b b b
2.29 3 23 2 1 1a a a a
2.30 2732
35 xaxa
Task 3.
1) Factorize the given linear polynomial f x .
2) Solve the equation 0f x .
Make conclusions comparing results obtained in 1) and 2):
f(x) f(x)
3.1 9955 2345 xxxxx 3.2 452923 xxx
3.3 1234567 xxxxxxx 3.4 482887 234 xxxx
3.5 4182727 23 xxx 3.6 6116 23 xxx
3.7 24202 23 xxx 3.8 142310 23 xxx
3.9 613272 234 xxxx 3.10 15239 23 xxx
3.11 51392 234 xxxx 3.12 306 23 xxx
6
3.13 4432 234 xxxx 3.14 30511 234 xxxx
3.15 3612112 234 xxxx 3.16 2438122 234 xxxx
3.17 152162 234 xxxx 3.18 2442 234 xxxx
3.19 414927 24 xxx 3.20 65442 2345 xxxxx
3.21 19412 234 xxx 3.22 311146 2345 xxxxx
3.23 324832166 2345 xxxxx 3.24 84275 2345 xxxxx
3.25 3212 24 xx 3.26 9620 24 xx
3.27 156 24 xx 3.28 4872366 23 xxx
3.29 6420 24 xx 3.30 axxx 22496128 234
Task 4. Vectors a , b , c and numbers , , are given. Find:
1) a ;
2) a b c ;
3) inner (scalar, dot) product of vectors a and b ;
4) vector (cross) product of vectors a and b ;
5) length of vector a and vector obtained in previous item;
6) triple product of vectors a , b , c .
a b
4.1 (2, -3, 1) (1, 2, 5) (6, 2, -3) 2 1 3
4.2 (4, -2, 0) (4, -2, 0) (1, 2, -5) 1 2 2
4.3 (5, -1, 0) (3, 2, 4) (3, 2, -3) -1 -2 1
4.4 (1, 2,-3) (1, -2,5) (4, 1, -3) 7 3 -1
4.5 (5, 1, 2) (2, 1, -4) (6, 2, -3) 2 4 -3
4.6 (7, -1, 0) (3, -6, 5) (1, 5,- 4) 5 1 2
4.7 (2, -3, 4) (7, 2, 4) (6, 2,-3) 6 2 -1
4.8 (5, -1, 3) (3, -1, 6) (7, 2,-3) 3 -3 2
4.9 (6, 2, -5) (2, 2, -3) (1,-7, 5) 4 -5 1
4.10 (4, -1, 0) (3, -3, 4) (5, 2, -1) -2 4 2
4.11 (7, 0, 6) (1, 2, -5) (3, -2,-1) 1 3 4
4.12 (1, -1, 5) (-1, -5, 1) (1, 3,-3) 2 4 3
4.13 (5, -1, 2) (-3, 2, 4) (4, 2,-5) 4 2 5
4.14 (6, -1, 4) (1, 0, 7) (2, -1, 0) 3 -1 1
4.15 (5, -1, 3) (6, 2, -3) (-5, 1 ,-3) 1 -2 5
4.16 (5, -1, 0) (4, 3, 1) (4, 6, -1) 2 1 3
4.17 (4, -2, 0) (3, 1, 4) (2, 2, -5) 1 2 2
4.18 (5, -5, 4) (7, 2, 4) (1, 2, -3) -1 -2 1
4.19 (7, 2,-3) (1, 2, 4) (4, 1, -3) 7 3 -1
4.20 (4, 1, 2) (3, 1, -4) (6, 2, -3) 2 4 -3
4.21 (7, -1, 0) (3, -6, 5) (1, 5,- 4) 5 1 2
4.22 (2, -3, 4) (7, 2, 4) (6, 2,-3) 6 2 -1
4.23 (5, -1, 3) (3, -1, 6) (7, 2,-3) 3 -3 2
c
7
4.24 (6, 2, -5) (2, 2, -3) (1,-7, 5) 4 -5 1
4.25 (4, -1, 0) (3, -3, 4) (5, 2, -1) -2 4 2
4.26 (7, 0, 6) (1, 2, -5) (3, -2,-1) 1 3 4
4.27 (1, -1, 5) (-1, -5, 1) (1, 3,-3) 2 4 3
4.28 (5, -1, 2) (-3, 2, 4) (4, 2,-5) 4 2 5
4.29 (6, -1, 4) (1, 0, 7) (2, -1, 0) 3 -1 1
4.30 (5, -1, 3) (6, 2, -3) (-5, 1 ,-3) 1 -2 5
Task 5. Matrices А, В, С are given. Find:
- determinants of matrices A and C;
- matrix TB ;
- inverse matrices to matrices A and C (if it is possible);
- ranks of matrices A and C;
- product of matrices A and B;
- matrix 2A .
A B C
5.1 1 2 1
3 5 0
4 2 1
2
3
1
3 7 1
2 4 1
1 1 1
5.2 3 0 1
2 4 1
9 7 5
4
2
3
3 1 2
2 2 5
5 3 7
5.3 1 4 1 2
2 2 1 1
4 1 1 2
1 1 2 1
1
2
3
0
1 2 3 5
5 1 4 3
2 4 6 8
3 0 1 9
5.4 5 4 1
2 1 1
0 6 13
7
1
2
1 2 3
4 5 6
7 8 9
5.5 3 6 4
7 0 1
2 2 5
1 2
0 3
4 1
3 2 3
4 5 6
2 6 6
5.6 11 6 1
2 4 3
5 0 2
1
4
3
2 1 3
5 7 0
4 2 6
5.7 6 1 3
5 1 0
21 4 2
7
1
2
1 1 1
2 1 4
3 1 7
8
5.8 6 2 1
4 3 2
5 9 1
2
5
8
1 2 3
4 5 6
1 4 7
5.9 5 1 3
1 2 4
6 0 2
1 2
0 3
4 1
1 2 3
4 5 6
1 5 9
5.10 2 1 3
6 0 1
7 3 5
2
5
1
1 2 3
4 5 3
5 6 3
5.11 6 2 1
1 3 21
2 4 0
2
3
7
1 1 3
1 4 6
1 7 9
5.12 3 1 2
0 4 5
7 3 1
1
3
4
1 1 3
4 1 6
7 1 9
5.13 4 2 1
3 0 5
9 1 1
0
1
6
1 2 3
4 5 6
5 6 7
5.14 3 1 0 2
1 1 1 1
2 1 1 2
1 1 2 1
0
3
1
2
4 2 1
1 1 1
7 3 1
5.15 3 5 2
4 1 3
0 1 1
3
1
1
1 2 3
4 2 6
7 2 9
5.16
013
721
514
3
1
2
415
431
012
5.17
011
721
519
5
0
3
111
032
214
5.18
065
721
512
3
1
2
633
125
211
5.19
113
210
158
2
0
3
215
217
634
9
5.20
115
421
106
0
1
6
462
085
231
5.21
017
723
511
4
0
5
113
741
226
5.22
011
724
515
1
3
1
213
427
215
5.23
011
725
511
6
5
1
264
132
057
5.24
010
722
515
5
1
2
213
427
635
5.25
011
725
513
1
2
6
217
215
423
5.26
011
724
515
0
1
8
862
431
072
5.27
013
721
512
5
1
4
369
451
123
5.28
011
724
513
3
1
2
286
143
521
5.29
017
725
512
2
5
3
845
210
423
5.30
011
725
511
3
1
7
633
211
072
Task 6. System of equations AX=B is given. Solve the system:
- by Cramer’s rule;
- by matrix method, i.e. by formula X=A1B;
- by means of operation lsolve(A,B);
- by means of operation rref(A).
10
А В А В
6.1
1211
2141
1131
2112
3
10
2
6
6.2
1211
2114
1122
2141
1
6
2
6
6.3
1251
1216
1121
2512
8
1
7
3
6.4
2103
1211
2213
4111
5
1
4
4
6.5
1212
2113
1121
2102
6
7
3
6
6.6
2103
1211
2213
4112
6
1
4
4
6.7
1211
2113
1121
2201
5
7
6
4
6.8
2123
1210
2112
4123
5
4
1
3
6.9
1212
2113
1122
1341
5
7
3
6
6.10
1212
2113
1121
1364
4
3
7
9
6.11
1212
2543
1322
1415
7
5
6
4
6.12
1512
2113
1122
1412
2
6
1
4
6.13
1318
0141
9125
1317
7
8
8
4
6.14
1512
2113
1122
1121
7
7
2
3
6.15
1512
1116
1122
1102
4
8
4
4
6.16
2103
1211
2116
4121
7
7
2
3
6.17
1211
2112
1111
2013
2
1
3
5
6.18
1211
2114
1102
2115
0
6
4
6
6.19
1211
2141
1131
2115
2
5
3
4
6.20
2813
1273
0191
3128
3
0
2
10
11
6.21
1217
2142
1121
3516
5
9
1
5
6.22
1211
2114
1101
2112
3
2
1
4
6.23
1211
2121
1131
2114
2
5
1
6
6.24
1211
2114
1121
2013
3
6
3
6
6.25
2113
1211
0111
3127
2
3
4
1
6.26
1121
2013
1121
2107
3
2
1
6
6.27
1211
2021
1131
2113
4
3
2
7
6.28
2113
1221
0111
2114
5
5
1
5
6.29
1211
2112
1121
2115
2
0
6
8
6.30
1121
2013
1121
2126
4
3
2
5
Questions to the laboratory work №1.
1. How to call the bar “Mathematics”, where shortcuts of all basic working
mathematical bars are indicated?
2. How many basic working mathematical bars do you know and what are
their names?
3. What is the sense of three types of equals sign in MathCAD?
4. Function and control by blue angular cursor.
5. What you should keep in mind working with formulas (decimal
recording, expression place for calculation)?
6. How to solve equation in MathCAD?
7. How to record vector in coordinate form?
8. Which ways to solve systems of linear equations there are in MathCAD?
Recommendations for performing of laboratory work №1
Task 1. Calculate 62,0215,37,1:6
58:7,2
5
24
.
R e c o m me n d a t i o n . Input the expression from the keyboard. Mixed
fraction is entered as sum of integer and fractional parts. In decimal fraction instead
of comma the point is entered. Multiplication sign is not removed. Highlight
everything by blue angular cursor and press the button “=”. Performing of the example
12
or
Task 2. Remove brackets and collect terms in the expression
1111 22 xxxxxx .
R e c o m me n d a t i o n . Enter the expression from the keyboard (see the 1-st
example), highlight everything by blue angular cursor, click position “Symbols”,
“Expand” or call the bar “Symbolic”, “Expand”.
Performing of the example:
2 2 6x 1 x 1 x x 1 x x 1 expand, x x 1 .
Task 3.
1) Factorize the polynomial 4 3 24 4f x x x x .
2) Solve the equation 0f x
.
Make conclusions comparing results obtained in 1) and 2):
R e c o m me n d a t i o n :
1) Enter the expression from the keyboard (see the 1-st example), highlight
everything by angular cursor, click position “Symbols”, “Factor”
Performing of the example 4 3 2x 4x 4x
Answer: 2 2x (x - 2)
2) Reduce the equation to the form f(x)=0, input from the keyboard the
left part of the equation, call the bar “Symbolic”, “Solve”, in the gap - write the
variable and click the free place of the page.
Performing of the example in the working window of MathCAD program
42
5
2.7
85
6
1.73.521 0.62 75.288
42
52.7 8
5
6
1.7 3.521 0.62 75.288
13
4 3 2
0
0x 4x 4x solve, x
2
2
.
Since equation 234 44 xxx =0 has two double roots x=0 and x=2, then the
left part of the equation expands into factors - 22 2xx , which coincides with
result in the item 1.
Task 4. Vectors 1,2,3,1,2,4,3,2,1 cba and numbers
2,3,2 are given. Find:
- a ;
- a b c ;
- inner (scalar, dot) product of vectors a and b ;
- vector (cross) product of vectors a and b ;
- length of vector a and vector obtained in previous item;
- triple product of vectors a , b , c .
R e c o m me n d a t i o n . Type from the keyboard expressions a and
a b c (sing of multiplication should not be omitted), highlight
everything by blue angular cursor and press sign “=”: Enter, using bar Matrix,
three vectors as matrices-columns (three rows and one column) and three numbers.
Then sequentially perform all 6 tasks.
Performing of the example
1 4 3
a : = 2 b : = 2 c : = 2
3 1 1
2 3 2
1) - 2) Enter from the keyboard expressions a and a b c (sign
of multiplication should not be omitted), highlight everything by blue angular
cursor and press sign “=”.
3) - 4) Call the bar Matrix, Dot product (then Cross product), put multipliers
(factors) in gaps, highlight everything by blue angular cursor and press sign “=”:
4
a b = - 3 a b = 13
10
.
14
5) Call the bar Matrix, Determinant, put vector a or ba in the gap,
highlight everything by blue angular cursor and press sign “=”:
.
6) Enter by means of bar Matrix, Dot product and Cross product the
expression cba , highlight everything by blue angular cursor and press sign
“=”:
24)( cba or 24)(: cbaabc .
Task 5. Given matrices
254
2911
256
A ,
9
0
2
B,
051
151
2101
C.
- find determinants of matrices А and С;
- find matrix TB ;
- if there are matrices inverse to matrices А and С, find them;
- find rank of matrices А and С;
- find product of matrices А and В;
- find matrix 2A .
R e c o m me n d a t i o n . Enter, using bar Matrix, these three matrices and then
sequentially perform all 6 tasks.
Performing of the task 6 5 2 2 1 10 2
: 11 9 2 , : 0 , : 1 5 1 .
4 5 2 9 1 5 0
A B C
- find determinants of matrices А and С as it is indicated in task 5:
16A , 0C ;
- the task is performed by means of bar Matrix, Transpose: 2 0 9TB ;
- the task performs by means of bar Matrix, Inverse, if the determinant of the
matrix is zero, then the matrix doesn’t have inverse matrix: 1C - doesn’t exist because determinant of matrix C is zero.
1
0.5 0 0.5
0.875 0.25 0.625
1.188 0.625 0.063
A
;
- matrices ranks can be found by means of function “rank”, which can be
entered from the keyboard: ( ) 3, ( ) 2;rank A rank C
- tasks are performed by means of operations of multiplication and powering
from the keyboard or by using bar Arithmetic:
15
A B
30
40
26
A2
99
173
87
85
146
75
26
44
22
.
Task 6. Given system of equations AX B , where
1111
1110
4321
4321
A ,
10
3
10
30
B ,
t
z
y
x
X .
- solve this system by Cramer’s formulas;
- solve the system by matrix method;
- solve the system by means of function lsolve(A,B).
- solve the system by means of function rref (A).
R e c o m me n d a t i o n . Enter matrices A and B using bar Matrix, then
sequentially perform first 3 tasks.
Performing of the tasks:
A
1
1
0
1
2
2
1
1
3
3
1
1
4
4
1
1
B
30
10
3
10.
1. To solve the system by Cramer’s rule you should enter four matrices and
find solution by Cramer’s formulas:
A1
30
10
3
10
2
2
1
1
3
3
1
1
4
4
1
1
A2
1
1
0
1
30
10
3
10
3
3
1
1
4
4
1
1
A2
1
1
0
1
30
10
3
10
3
3
1
1
4
4
1
1
A3
1
1
0
1
2
2
1
1
30
10
3
10
4
4
1
1
A4
1
1
0
1
2
2
1
1
3
3
1
1
30
10
3
10
xA1
Ay
A2
Az
A3
At
A4
A
x y z t .
Thus, the system has one solution 4,3,2,1X .
2. To solve the system by matrix method you need enter matrix 1A , multiply 1A to B and press the sign “=”:
16
A1 A
1B
.
Answer: 4,3,2,1X .
3. To solve the system by means of function lsolve you should enter this
function from the keyboard, write A and B as arguments, call sing “→” from the bar
Symbolic, click at white space and after appeared notes press sign “=”:
lsolve A B( ) lsolve
1
1
0
1
2
2
1
1
3
3
1
1
4
4
1
1
30
10
3
10
1
2
3
4
.
Answer: 4,3,2,1X .
4. To solve the system by means of function rref (A), you should enter
expanded matrix of the system. Operation rref (A) transforms matrix A to matrix
A1 where rows are corresponded by equations of system resolving with respect to
unknowns. Operation rref (A) is entered from the keyboard.
1 2 3 4 30
1 2 3 4 10A : =
0 1 1 1 3
1 1 1 1 10
; A1 : = ( )rref A ;
1 0 0 0 1
0 1 0 0 2A1 : =
0 0 1 0 3
0 0 0 1 4
.
From the first row of matrix A1 we have x=1, from the second row – y=2, from
the third row – z=3, from the fourth – t=4.
2 Laboratory work №2
The aim of this laboratory work is study by students the MathCAD rules and
techniques for construction of functions graphs, calculation of limits, derivatives,
integrals and research of functions by means of derivatives.
Task 1. Function f(x) and point 0
x are given:
- find limit of f(x) at point 0
x ;
- find derivatives )(),(),(),(00
xfxfxfxf ;
- construct graph of function y=f(x) in Cartesian coordinates. Construct
tangent and normal to the function at the indicated point in the same graph.
17
f(x) 0
x f(x) 0
x f(x) 0
x
1.1 3 2)3( xx -1 1.11 3 2)2( xx 1 1.21 3 2 )2( xx -5
1.2
4
22
2
x
x
-3 1.12
4
82
2
x
x
3 1.22
14
82
2
x
x
-5
1.3 3 2)6( xx -8 1.13 3 2 )6( xx 8 1.23 3 2 )6( xx -3
1.4
2
)2(
x
xx
-3 1.14
2
)1(
x
xx
3 1.24
1
62
2
x
x
-5
1.5
x
12 -1 1.15
x
12 1 1.25
x
3 -1
1.6
x
4
-2 1.16
x
2
2 1.26
x
5
5
1.7
x
11
-1 1.17
x
11
1 1.27
14
32
2
x
x 5
1.8
1
)1(
x
xx
-2 1.18
1
)4(
x
xx
2 1.28
1
62
2
x
x
3
1.9 x2sin 0,5 1.19 x3sin -0,5 1.29 3 2 )1( xx 5
1.10 x2cos 0,5 1.20 x3cos -0,5 1.30 3 2 )2( xx 1
Task 2. Construct graph of function y=f(x), which is given parametrically.