You are on page 1of 6

In[1]:= (*Exercitiul 1*)

In[2]:=

In[3]:= (*Introducerea repartitiei VAD*)

In[4]:= ξ = {{1, 3, 4, 5}, {0.2, 0.6, 0.1, 0.1}}


MatrixForm[ξ]

Out[4]= {{1, 3, 4, 5}, {0.2, 0.6, 0.1, 0.1}}


Out[5]//MatrixForm=
1 3 4 5
0.2 0.6 0.1 0.1

In[6]:= {{1, 3, 4, 5}, {0.2`, 0.6`, 0.1`, 0.1`}}


Out[6]= {{1, 3, 4, 5}, {0.2, 0.6, 0.1, 0.1}}

In[7]:=
1 3 4 5
0.2` 0.6` 0.1` 0.1`
Out[7]= {{1, 3, 4, 5}, {0.2, 0.6, 0.1, 0.1}}

In[8]:= (*Functia de repartitie si graficul ei*)


F[x_] := 0 /; x ≤ 1;
F[x_] := 0.1 /; 1 < x ≤ 3;
F[x_] := 0.3 /; 3 < x ≤ 4;
F[x_] := 0.4 /; 4 < x ≤ 5; F[x_] := 1 /; x > 5;

In[9]:= Plot[F[x], {x, -10, 10}, AxesLabel → {"x", "F(x)"}]


F(x)

1.0

0.8

0.6
Out[9]=

0.4

0.2

x
-10 -5 5 10

In[10]:=

In[11]:=

In[12]:=

In[13]:=
2 LAB7-MS.nb

In[14]:= (*Probabilitatea ca ξ va lua valori din intervalul [1,4 *)

P 1 ≤ ξ < 4 = F[4] - F[1]


Set: Tag Times in P (1 ≤ {{1, 3, 4, 5}, {0.2, 0.6, 0.1, 0.1}} < 4) is Protected.

Out[14]= 0.3

Set: Tag Times in P (1 ≤ {{0, 1, 2, 3}, {0.1, 0.6, 0.2, 0.1}} < 4) is Protected.

In[15]:=

In[16]:= Clear[F]

In[17]:= (*Valoarea medie*)


4
mξ = ξ[[1, j]] × ξ[[2, j]]
j=1

Out[17]= 2.9

In[18]:= (*Dispersia*)
4
Dξ = ξ[[1, j]] - mξ ^2 ξ[[2, j]]
j=1

Out[18]= 1.29

In[19]:= (*Abaterea medie patratica*)


σ[ξ] = Dξ
Out[19]= 1.13578

In[20]:= (*Momentele initiale de ordine pana la 4 inclusiv*)


4
α1 = ξ[[1, j]] ^1 ξ[[2, j]]
j=1

Out[20]= 2.9

4
In[21]:= α2 = ξ[[1, j]] ^2 ξ[[2, j]]
j=1

Out[21]= 9.7

4
In[22]:= α3 = ξ[[1, j]] ^3 ξ[[2, j]]
j=1

Out[22]= 35.3

4
In[23]:= α4 = ξ[[1, j]] ^4 ξ[[2, j]]
j=1

Out[23]= 136.9
LAB7-MS.nb 3

In[24]:= (*Momentele centrate de ordine pana la 4 inclusiv*)


4
μ1 = ξ[[1, j]] - mξ ^1 ξ[[2, j]]
j=1

Out[24]= 8.32667 × 10-17

4
In[25]:= μ2 = ξ[[1, j]] - mξ ^2 ξ[[2, j]]
j=1

Out[25]= 1.29

4
In[26]:= μ3 = ξ[[1, j]] - mξ ^3 ξ[[2, j]]
j=1

Out[26]= - 0.312

4
In[27]:= μ4 = ξ[[1, j]] - mξ ^4 ξ[[2, j]]
j=1

Out[27]= 4.6977

In[28]:= (*Asimetria*)
μ3
Ks[ξ] =
(σ[ξ]) ^3
Out[28]= - 0.212946

In[29]:= (*Excesul*)
μ4
Ex[ξ] = -3
(σ[ξ]) ^1
Out[29]= 1.13609

In[30]:= Clear[ξ, mξ, Dξ, σ[ξ], α1, α2, α3, α4, μ1, μ2, μ3, μ4, Ks[ξ], Ex[ξ]]
Clear: σ[ξ] is not a symbol or a string.

Clear: Ks[ξ] is not a symbol or a string.

Clear: Ex[ξ] is not a symbol or a string.

General: Further output of Clear::ssym will be suppressed during this calculation.

In[31]:=
4 LAB7-MS.nb

In[32]:=
(* Exercitiul 2 *)
(* B={ un copil nou nascut sa fie baiat} *)
p = 0.51;
k = 6;
k1 = 306;
k2 = 506;
(* Repartitia VA ξ care reprezinta numarul
de baieti printre 1000 de copii nou nascuti *)
1000 1000! * 0.51 ^k * 1 - 0.51 ^ 1000 - k
ξ= ;
k=0 k! * 1000 - k !
(* Probabilitatea ca printre 1000 de copii nou
nascuti numarul baietilor va fi cuprins intre k1 si k2*)
519 1000! * 0.51 ^k * 1 - 0.51 ^ 1000 - k
N
k=319 k! * 1000 - k !
General: 0.491000 is too small to represent as a normalized machine number; precision may be lost.

General:
1.57065 ×10-310 (402387260077093773543702433923003985719374864210714632543799910429938512398629020592044208
4869694048004799886 2350 000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000) is too small to represent as a normalized machine
number; precision may be lost.

General: 0.49999 is too small to represent as a normalized machine number; precision may be lost.

General: Further output of General::munfl will be suppressed during this calculation.

General:
1.05568 ×10-211 (179781320771269763697723894173117317214395099810890216975391985062280633567440384918622824
0123686471580955890 2080 000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000) is too small to represent as a normalized machine
number; precision may be lost.

General:
2.15444 ×10-211 (844787410378947494614855303016116615398038648156899697975410208809541890478427653068418556
2989422480262935167 2079 000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000) is too small to represent as a normalized machine
number; precision may be lost.

General:
4.39682 ×10-211 (398789351075944332016718459217902108151132950085830592720745113276269039475845995051415230
2528830317888826747 2079 000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000) is too small to represent as a normalized machine
number; precision may be lost.

General: Further output of General::munfl will be suppressed during this calculation.

Out[37]= 0.
LAB7-MS.nb 5

In[38]:= Clear[p, k, k1, k2, ξ]

(* Exercitiul 3 *)

In[39]:= (* particule alfa emise de un gram de substanta radioactiva intr-o secunda*)

∞ 1 + 0.25 * 6 ^k
In[40]:= ξ= * ⅇ-(1+0.25*6);
k=0 k!

In[41]:= (* A={ intr-o secunda vor fi emise nu mai mult de doua particule alfa} *)
p1 =
1 + 0.25 * 6 ^0 -(1+0.25*6)
1 + 0.25 * 6 ^1 -(1+0.25*6)
1 + 0.25 * 6 ^2 -(1+0.25*6)
N *ⅇ + *ⅇ + *ⅇ
0! 1! 2!
Out[41]= 0.543813

In[42]:=

In[43]:= (* B={ intr-o secunda vor fi emise cinci particule alfa} *)


1 + 0.25 * 6 ^5
p2 = N * Exp - 1 + 0.25 * 6
5!
Out[43]= 0.0668009

In[44]:=

In[45]:= (* C={ intr-o secunda vor fi emise mai mult de zece particule alfa} *)
10 1 + 0.25 * 6 ^k
p3 = 1 - N * ⅇ-(1+0.25*6)
k=0 k!
Out[45]= 0.0000616269

In[46]:=

In[47]:= (* Numarul de particule alfa care corespunde celei mai mari probabilitati *)
Mo[ξ] = N 1 + 0.25 * 6 + 1
Out[47]= 3.5

In[48]:=

In[49]:=

(* Exercitiul 4 *)
(* Legea de repartitie a VA ξ care reprezinta numarul de aruncari
nereusite ale unui zar pana la prima aparitie a numarului 4 *)
(* A={ aparitia numarului 4}; P(A) = p1
N={ numarul 4 nu apare}; P(N) = p2 *)
p1 = 1 6;
p2 = 1 - p1;
-
p = 1 6 × (5 / 6)k 1;
1 5 x-1
Repartitie[x_] := * ;
6 6
For[i = 0, i < 4, i++, Print[i];
Print[Repartitie[i]]]
Thank you for using PDFelement 6 Professional.
You can only convert up to 5 pages in the trial version.

To get the full version, please purchase the program here:

http://cbs.wondershare.com/go.php?pid=2990&m=db

You might also like