Practica 2 Simul Rep
Practica 2 Simul Rep
Practica 2 Simul Rep
Xo 17
a 11
m 23
Xn
n valor (mod m) Residuo #aleatorio
0 17
1 187 3 0.1304
2 33 10 0.4348
3 110 18 0.7826
4 198 14 0.6087
5 154 16 0.6957
6 176 15 0.6522
7 165 4 0.1739
8 44 21 0.9130
9 231 1 0.0435
10 11 11 0.4783
11 121 6 0.2609
12 66 20 0.8696
13 220 13 0.5652
14 143 5 0.2174
15 55 9 0.3913
16 99 7 0.3043
17 77 8 0.3478
18 88 19 0.8261
19 209 2 0.0870
20 22 22 0.9565
21 242 12 0.5217
22 132 17 0.7391
23 187 3 0.1304
METODO CONGRUENCIAL MIXTO
Xn = a * Xn-1 + C (mod m)
Xo 41
a 33
c 13
m 73
MEDIA 8
#aleatorio variable
1 0.62119534 3.80887746
2 0.52157415 5.20723069
3 0.74626154 2.34143319
4 0.75850331 2.2112649
5 0.35611765 8.25995305
6 0.72124098 2.61425575
7 0.13328487 16.1221324
8 0.12417192 16.6887058
9 0.45837355 6.2405666
10 0.88443936 0.98241057
11 0.19062758 13.2594689
12 0.76866697 2.10477978
13 0.49195891 5.67488073
14 0.69960806 2.85788014
15 0.16734769 14.3014532
16 0.34628184 8.4840181
17 0.7455161 2.34942842
18 0.58737976 4.25666968
19 0.63824074 3.5923179
20 0.09884423 18.5136809
21 0.19858188 12.9324301
22 0.37385557 7.8710858
23 0.14024147 15.7151164
24 0.55170556 4.75792621
25 0.58297817 4.31684425
26 0.59673692 4.13023152
27 0.21581055 12.2668347
28 0.33764102 8.68617611
29 0.92506564 0.62312469
30 0.10991758 17.6641958
31 0.90803248 0.77180106
32 0.63942675 3.57746562
33 0.49880712 5.5642863
34 0.60206759 4.05908455
35 0.33639664 8.71571471
36 0.835537 1.43744514
37 0.29856183 9.6702259
38 0.31282743 9.29682857
39 0.93188219 0.564391
40 0.41295884 7.0752588
41 0.43054459 6.7416351
42 0.78368862 1.94994809
43 0.07885445 20.3212121
44 0.71585176 2.67425741
45 0.35075593 8.38131713
46 0.76979096 2.0930903
47 0.52806007 5.10836183
48 0.15117087 15.114756
49 0.51132445 5.36600763
50 0.8556631 1.24702839
PROMEDIO 6.97130979
GENERACION DE VARIABLES ALEATORIAS
R1 R2 R3 R4 R5 R6 R7 R8 R9 R10
VARIABLE
1 0.322 0.243 0.335 0.982 0.876 0.754 0.650 0.797 0.802 0.091
2 0.182 0.626 0.232 0.662 0.900 0.323 0.896 0.728 0.500 0.342
3 0.773 0.576 0.461 0.537 0.664 0.649 0.992 0.361 0.923 0.736
4 0.663 0.397 0.839 0.239 0.934 0.005 0.810 0.236 0.084 0.670
5 0.143 0.466 0.248 0.260 0.581 0.354 0.922 0.858 0.048 0.071
6 0.051 0.398 0.706 0.000 0.204 0.604 0.933 0.389 0.840 0.097
7 0.479 0.208 0.132 0.033 0.703 0.091 0.739 0.169 0.786 0.695
8 0.528 0.871 0.429 0.169 0.316 0.544 0.668 0.377 0.508 0.600
9 0.356 0.651 0.096 0.476 0.160 0.056 0.083 0.943 0.330 0.182
10 0.720 0.469 0.223 0.108 0.803 0.155 0.951 0.525 0.719 0.454
11 0.319 0.245 0.245 0.753 0.059 0.174 0.910 0.766 0.803 0.755
12 0.513 0.986 0.605 0.200 0.888 0.569 0.416 0.790 0.362 0.013
13 0.712 0.010 0.356 0.922 0.271 0.378 0.639 0.022 0.823 0.211
14 0.786 0.811 0.133 0.696 0.157 0.475 0.453 0.626 0.694 0.252
15 0.237 0.549 0.545 0.826 0.906 0.964 0.582 0.377 0.616 0.407
16 0.840 0.719 0.113 0.553 0.160 0.216 0.414 0.397 0.737 0.509
17 0.703 0.376 0.674 0.390 0.590 0.064 0.865 0.275 0.445 0.073
18 0.395 0.607 0.594 0.106 0.914 0.913 0.151 0.262 0.773 0.264
19 0.327 0.640 0.881 0.676 0.898 0.624 0.884 0.793 0.724 0.356
20 0.535 0.231 0.487 0.450 0.882 0.543 0.380 0.678 0.627 0.240
21 0.317 0.872 0.721 0.148 0.987 0.614 0.722 0.161 0.158 0.663
22 0.148 0.031 0.228 0.711 0.116 0.767 0.788 0.911 0.865 0.633
23 0.549 0.427 0.802 0.516 0.165 0.926 0.636 0.353 0.060 0.993
24 0.620 0.011 0.155 0.833 0.285 0.198 0.455 0.078 0.260 0.798
25 0.255 0.614 0.284 0.910 0.434 0.507 0.071 0.332 0.909 0.669
26 0.617 0.491 0.555 0.393 0.316 0.492 0.697 0.286 0.107 0.769
27 0.185 0.409 0.107 0.206 0.572 0.937 0.826 0.767 0.785 0.952
28 0.783 0.467 0.857 0.285 0.538 0.223 0.218 0.580 0.553 0.934
29 0.418 0.328 0.181 0.644 0.478 0.288 0.041 0.529 0.233 0.364
30 0.406 0.142 0.688 0.246 0.879 0.684 0.904 0.929 0.948 0.919
31 0.490 0.545 0.501 0.436 0.288 0.314 0.679 0.516 0.276 0.722
32 0.659 0.945 0.066 0.270 0.336 0.256 0.951 0.915 0.044 0.885
33 0.760 0.162 0.452 0.345 0.278 0.795 0.746 0.062 0.456 0.785
34 0.984 0.298 0.547 0.280 0.149 0.281 0.873 0.221 0.097 0.700
35 0.887 0.910 0.035 0.335 0.135 0.588 0.612 0.733 0.610 0.265
36 0.268 0.694 0.156 0.379 0.655 0.641 0.624 0.949 0.379 0.178
37 0.488 0.942 0.324 0.479 0.737 0.432 0.406 0.383 0.592 0.061
38 0.294 0.887 0.867 0.282 0.881 0.694 0.040 0.549 0.956 0.195
39 0.210 0.691 0.831 0.682 0.280 0.586 0.740 0.708 0.711 0.568
40 0.199 0.244 0.092 0.717 0.878 0.045 0.334 0.826 0.450 0.444
41 0.714 0.013 0.226 0.484 0.735 0.824 0.083 0.196 0.148 0.579
42 0.788 0.860 0.770 0.557 0.265 0.287 0.837 0.799 0.754 0.751
43 0.087 0.633 0.440 0.552 0.623 0.476 0.288 0.757 0.952 0.905
44 0.597 0.621 0.518 0.811 0.429 0.611 0.485 0.757 0.384 0.633
45 0.823 0.283 0.572 0.767 0.808 0.579 0.201 0.676 0.092 0.800
46 0.880 0.989 0.446 0.730 0.534 0.996 0.627 0.986 0.743 0.979
47 0.770 0.247 0.456 0.017 0.417 0.681 0.806 0.555 0.205 0.602
48 0.523 0.754 0.349 0.474 0.531 0.884 0.100 0.974 0.069 0.809
49 0.484 0.841 0.400 0.513 0.948 0.161 0.394 0.678 0.792 0.911
50 0.282 0.875 0.094 0.886 0.742 0.774 0.185 0.773 0.946 0.864
R11 R12 VARIABLE
SUMA NORMAL
0.860 0.418 7.130 9.130
0.277 0.783 6.451 8.451
0.857 0.467 7.996 9.996
0.736 0.157 5.770 7.770
0.513 0.690 5.154 7.154
0.396 0.739 5.358 7.358
0.445 0.229 4.710 6.710
0.841 0.163 6.014 8.014
0.802 0.748 4.883 6.883
0.749 0.466 6.342 8.342
0.519 0.704 6.250 8.250
0.636 0.323 6.301 8.301
0.627 0.489 5.459 7.459
0.303 0.051 5.438 7.438
0.676 0.289 6.974 8.974
0.397 0.979 6.035 8.035
0.788 0.104 5.348 7.348
0.795 0.460 6.234 8.234
0.308 0.481 7.592 9.592
0.694 0.354 6.102 8.102
0.052 0.499 5.916 7.916
0.890 0.847 6.936 8.936
0.390 0.113 5.931 7.931
0.954 0.061 4.709 6.709
0.439 0.711 6.136 8.136
0.323 0.776 5.822 7.822
0.079 0.937 6.762 8.762
0.371 0.170 5.979 7.979
0.853 0.100 4.457 6.457
0.180 0.273 7.198 9.198
0.595 0.332 5.694 7.694
0.277 0.949 6.553 8.553
0.877 0.391 6.110 8.110
0.377 0.400 5.208 7.208
0.939 0.093 6.143 8.143
0.358 0.166 5.448 7.448
0.393 0.336 5.572 7.572
0.709 0.290 6.644 8.644
0.793 0.495 7.297 9.297
0.365 0.606 5.203 7.203
0.437 0.092 4.532 6.532
0.903 0.201 7.772 9.772
0.800 0.314 6.827 8.827
0.673 0.525 7.044 9.044
0.727 0.423 6.753 8.753
0.841 0.781 9.535 11.535
0.943 0.460 6.159 8.159
0.321 0.315 6.102 8.102
0.432 0.879 7.433 9.433
0.874 0.248 7.542 9.542
MEDIA 8.219
DESV.EST 0.98865558
LLEGADA DE AUTOS A UN LAVADO
MEDIA 20
V.A. EXPONENCIAL
ALEATORIO TIEMPO ENTRE LLEGADAS TIEMPO DE LLEGADA
1 0.4948 14.07 14.07
2 0.6554 8.45 22.52
3 0.1652 36.01 58.53
4 0.8482 3.29 61.82
5 0.3739 19.67 81.50
6 0.8518 3.21 84.70
7 0.9062 1.97 86.67
8 0.5571 11.70 98.38
9 0.9898 0.20 98.58
10 0.5993 10.24 108.82
11 0.1681 35.66 144.48
12 0.4284 16.96 161.44
13 0.1969 32.50 193.94
14 0.3314 22.09 216.02
15 0.6115 9.84 225.86
16 0.1141 43.41 269.27
17 0.7961 4.56 273.83
18 0.5816 10.84 284.67
19 0.5142 13.30 297.97
20 0.6423 8.85 306.83
21 0.7034 7.04 313.86
22 0.4710 15.06 328.92
23 0.0122 88.11 417.03
24 0.4951 14.06 431.09
25 0.7164 6.67 437.76
26 0.4360 16.60 454.36
27 0.7426 5.95 460.32
28 0.9153 1.77 462.09
29 0.4590 15.57 477.66
30 0.4561 15.70 493.36
31 0.0837 49.60 542.96
32 0.3231 22.59 565.55
33 0.9151 1.77 567.33
34 0.9840 0.32 567.65
35 0.6804 7.70 575.35
36 0.2704 26.15 601.51
37 0.4440 16.24 617.75
38 0.4646 15.33 633.08
39 0.4304 16.86 649.94
40 0.1622 36.38 686.32
41 0.4099 17.84 704.16
42 0.8071 4.29 708.45
43 0.2589 27.02 735.47
44 0.2259 29.75 765.23
45 0.7555 5.61 770.83
46 0.8054 4.33 775.16
47 0.2778 25.61 800.78
48 0.9404 1.23 802.00
49 0.9143 1.79 803.80
50 0.1702 35.41 839.21
SIMULAR LA TEMPERATURA DE UN HORNO
UNIFORME
MINIMO 150
MAXIMO 180
MEDIA 20
DESV.EST. 0.8
0.1400 1.0000
0.1200 0.8000
0.1000
0.6000
0.0800
0.4000
0.0600
0.2000
0.0400
0.0000
0.0200 0 1 2 3 4 5 6 7
0.0000
0 1 2 3 4 5 6 7
3 4 5 6 7
Chart Title
4.5
4
3.5
3
2.5
2
1.5
4.5
4
3.5
3
2.5
2
1.5
1
0.5
0
0 50 100 150 200 250
SIMULACION MONTECARLO
DEMANDA DE PRODUCTOS
0.2000 0.8000
0.6000
0.1500
0.4000
0.1000 0.2000
0.0500 0.0000
60 62 64 66 68 70 72 74
0.0000
60 62.5 65 67.5 70 72.5 75 77.5 80 82.5 85
70
68
76
74
72
189 0.5137 70 69.7884
190 0.4821 70 69.7895 70
191 0.1648 60 69.7382
192 0.5343 70 69.7396 68
193 0.5529 70 69.7409
194 0.4736 70 69.7423 66
195 0.3835 65 69.7179
64
196 0.5536 70 69.7194 0 50 1
197 0.2461 65 69.6954
198 0.4490 70 69.6970
199 0.6551 75 69.7236
200 0.8310 75 69.7500
FUNCIONDE DENSIDAD ACUMU-
LADA f(X)
00
00
00
00
00
00
00
60 62 64 66 68 70 72 74 76 78 80 82 84
Chart Title
76
74
72
70
68
76
74
72
70
68
66
64
0 50 100 150 200 250
SIMULACION MONTECARLO
DEMANDA DE LLANTAS
0.3000 0.8000
0.2500 0.6000
0.2000 0.4000
0.1500 0.2000
0.1000
0.0000
0 1 2 3
0.0500
0.0000
0 1 2 3 4 5
1.5
4
3.5
00
00
00
00
00
00
0 1 2 3 4 5
Chart Title
4
3.5
2.5
1.5
4
3.5
2.5
1.5
0.5
0
0 50 100 150 200 250