Está en la página 1de 25

Favorite Color Hand using to write Career

Amarillo Derecha Negocios Internacionales


Azul Derecha Administración de Negocios
Azul Derecha Administración de Negocios
Azul Derecha Negocios Internacionales
Blanco Derecha Administración de Negocios
Blanco Derecha Negocios Internacionales
Blanco Derecha Negocios Internacionales
Morado Derecha Negocios Internacionales
Negro Derecha Negocios Internacionales
Negro Derecha Negocios Internacionales
Negro Derecha Negocios Internacionales
Negro Derecha Administración de Negocios
Negro Derecha Negocios Internacionales
Rojo Derecha Negocios Internacionales
Rojo Derecha Negocios Internacionales
Rojo Derecha Negocios Internacionales
Rosado Derecha Administración de Negocios
Rosado Derecha Administración de Negocios
Verde Derecha Negocios Internacionales
Azul Derecha Mercadeo
Azul Derecha Negocios Internacionales
Azul Derecha Administración de Negocios
Azul Derecha Administración de Negocios
Azul Derecha Administración de Negocios
Azul Derecha Administración de Negocios
Azul Derecha Administración de Negocios
Azul Derecha Mercadeo
Blanco Derecha Administración de Negocios
Morado Derecha Negocios y Derecho
Morado Derecha Mercadeo
Morado Derecha Negocios Internacionales
Negro Derecha Negocios Internacionales
Negro Derecha Negocios Internacionales
Negro Derecha Administración de Negocios
Negro Derecha Mercadeo
Rojo Derecha Administración de Negocios
Rosado Derecha Negocios Internacionales
Rosado Derecha Mercadeo y Comunicación social
Rosado Derecha Negocios Internacionales
Verde Derecha Negocios Internacionales
Vinotinto Derecha Negocios Internacionales
Azul Izquierda Negocios Internacionales
Azul Izquierda Negocios Internacionales
Morado Izquierda Contaduria pública
Naranja Izquierda Administración de Negocios
Rojo Izquierda Mercadeo
Vinotinto Izquierda Negocios Internacionales
Transportation to the university Gender Wearing glasses Age
Carro Femenino No 19
Carro Femenino No 20
Uber Masculino Sí 19
Carro Masculino No 23
Metro Femenino No 19
Carro Femenino No 19
Bus Femenino Sí 20
Bus Femenino Sí 19
Bus Femenino No 19
Carro Femenino No 20
Carro Femenino No 19
Carro Femenino No 20
Carro Masculino No 21
Carro Femenino Sí 19
Caminando Femenino Sí 18
Carro Masculino No 21
Bicicletica Femenino No 19
Carro Femenino No 19
Metro Masculino Sí 19
Carro Femenino Sí 20
Carro Femenino Sí 19
Carro Masculino No 19
caminando Masculino No 19
Carro Masculino Sí 22
Carro Masculino Sí 19
caminando Masculino No 23
caminando Masculino Sí 20
Metro Femenino No 22
Carro Femenino No 20
Carro Femenino No 20
Bus Femenino Sí 19
Carro Femenino Sí 20
Carro Femenino No 18
Carro Masculino Sí 20
Moto Masculino Sí 21
Carro Masculino No 19
Carro Femenino Sí 19
Carro Femenino No 21
Carro Femenino No 18
Carro Masculino No 20
Carro Femenino No 18
Bus Masculino Sí 18
Bus Masculino Sí 20
Carro Femenino Sí 19
Carro Masculino Sí 21
Carro Femenino No 20
Bus Masculino Sí 18
Height Weight Pet
1.67 54 Gato
1.67 61 Perro
1.7 68 No
1.75 76 Perro
1.62 52 No
1.78 68 Perro
1.67 63 Perro
1.53 50 Gato
1.7 53 No
1.64 58 No
1.74 60 No
1.71 53 Perro
1.83 73 No
1.68 49 Gato
1.73 57 Perro
1.88 71 Perro
1.6 53 Perro
1.53 42 Perro
1.75 70 Gato
1.57 47 perro
1.70 53 No
1.75 70 No
1.81 75 perro
1.75 70 Gato
1.76 70 perro
1.76 70 No
1.82 85 No
1.61 61 perro
1.60 50 perro
1.67 50 Gato
1.64 53 No
1.65 50 No
1.63 57 No
1.63 65 No
1.79 75 No
1.78 70 perro
1.58 68 Gato
1.67 59 No
1.58 53 perro
1.85 64 No
1.58 62 No
1.7 73 No
1.7 96 No
1.65 57 Perro
1.80 77 perro
1.70 55 perro
1.82 73 No
A survey was conducted with 47 randomly selected students. The survey requested information related
to 10 variables, among which were the means of transportation used to go to university and gender.
The results are summarized in the following contingency table:

Transportation Gender
Transportation to thFemenino Masculino Total Result
Bicicletica 1 1
Bus 4 3 7
Caminando 1 3 4
Carro 20 10 30
Metro 2 1 3
Moto 1 1
Uber 1 1
Total Result 28 19 47
The university is interested in understanding the likelihood that a student will walk to the
campus. This information is useful for making decisions regarding the implementation of new
transportation alternatives (mass and individual transportation) that will be offered by the
university. Determine the probability of selecting a student who:

a. Walks to the University.


b. Be of the feminine gender.
c. Go to the University on foot and by metro
d. Go to the University on foot OR by metro.
e. He walks to the University AND is female
f. He goes to the University walking OR is of the female gender.
g. Be of the female gender GIVEN THAT are walking to the University.
h. Walks to the University SINCE he is female.

Additionally, answer the following questions:


i. Stablish the independence between the means of transportation and gender variables.

j. The probability that a student walks to the university is 8.51%. If two students are selected at
random, what is the probability that both will walk to the University?

k. Structure a decision tree based on the gender variable.


l. Starting from the decision tree, identify and explain Bayes' theorem for the walked and metro levels.
If a student is chosen at random to walk to the University, what is the probability that it is female?
Answer this question based on the decision tree, and the probabilitiesboth a priori and based on
historical information.
formation related
ty and gender.

o the
n of new
by the

bles.

elected at

and metro levels.


t it is female?
nd based on
FEM MAS Profile tables
Etiquetas de fiFemenino Masculino Total general Etiquetas de fiFemenino
BIC Bicicleta 1 1 Bicicleta 2.13%
BUS Bus 4 3 7 Bus 8.51%
CAM Caminando 1 3 4 Caminando 2.13%
CAR Carro 20 10 30 Carro 42.55%
MET Metro 2 1 3 Metro 4.26%
MOT Moto 1 1 Moto 0.00%
UBE Uber 1 1 Uber 0.00%
Total general 28 19 47 Total general 59.57%

a. Walks to the University. Row Profile


P(CAM) 8.51% Etiquetas de fiFemenino
Bicicleta 100.00%
b. Be of the feminine gender. Bus 57.14%
P(FEM) 59.57% Caminando 25.00%
Carro 66.67%
c. Go to the University walking and by metro Metro 66.67%
P(CAM n MET) 0% Moto 0.00%
Uber 0.00%
d. Go to the University walking OR by metro. Total general 59.57%
P(CAM U MET) 14.89%
P(CAM) 8.51% Colum Profile
P(MET) 6.38% Etiquetas de fiFemenino
P(CAM U MET) 14.89% Bicicleta 3.57%
Bus 14.29%
e. He walks to the University AND is female Caminando 3.57%
P(CAM n FEM) 2.13% Carro 71.43%
Metro 7.14%
f. The student goes to the University walking OR is of the female gendeMoto 0.00%
P(CAM U FEM) 65.96% Uber 0.00%
Total general 100.00%
g. Be of the female gender GIVEN THAT are walking to the University.
P(FEM/CAM) =P(FEM n CAM)/P(CAM) 25.00%

h. Walks to the University SINCE he is female.


P(CAM/FEM) = P(FEM n CAM)/P(FEM) 3.57%
Masculino Total general
0.00% 2.13%
6.38% 14.89%
6.38% 8.51%
21.28% 63.83%
2.13% 6.38%
2.13% 2.13%
2.13% 2.13%
40.43% 100.00%

Masculino Total general


0.00% 100.00%
42.86% 100.00%
75.00% 100.00%
33.33% 100.00%
33.33% 100.00%
100.00% 100.00%
100.00% 100.00%
40.43% 100.00%

Masculino Total general


0.00% 2.13%
15.79% 14.89%
15.79% 8.51%
52.63% 63.83%
5.26% 6.38%
5.26% 2.13%
5.26% 2.13%
100.00% 100.00%
Mutually Excusive Not Mutually Excusive Result
ED Edwin 10.0% 16.7% Win
EL Eliana 10.0% 13.0% win
SA Sandra 10.0% 9.1% not win
MA Marcela 10.0% 9.5%

raffle of chicks
White balls 9 20
Black ball 1 4
Total 10 24
P(ED n EL n SA n MA) 0.01%
P(ED U EL) 20.0%
P(ED U EL U SA U MA) 40.0%
In Jorge's office, 40% of the patients pretend to have an illness (to obtain a medical
certificate). Additionally, 10% of the office's patients are men. The probability that a
patient will fake an illness, given that he is a man, is 50%. Calculate the probability that
a patient is male, given that he is faking an illness.

P (B) = 10.0%
A = Fake the illness P(A) 40.0%
B = He is a man P(B) 10.0%
Gender
P(A/B) 50%
P (B') = 90.0%
P(A∩B)=P(B)*P(A/B) 5.0%
P(B/A) = P(A∩B)/P(A) 12.5%
P(A∩B')=P(B'/A)P(A) 35.00%
P(A/B') = P(A∩B')/P(B´) 38.89%
P(B/A') =P(A'∩B)/P(A´) 8.3%

P (A) = 40.0%

illness

P (A') = 60.0%
P(A/B) = 50.0% P(A∩B) = 5.0% P(A) = 40.00%

P(A'/B) = 50.0% P(A'∩B) = 5.0% P(B) = 10.0%

P(A/B') = 38.89% P(A∩B') = 35.00% P(A') = 60.00%

P(A'/B') = 61.11% P(A'∩B') = 55.00% P(B') = 90.00%

P(B/A) = 12.50% P(A∩B) = 5.00%

P(B'/A) = 87.50% P(A∩B') = 35.00%

P(B/A') = 8.3% P(A'∩B) = 5.0%

P(B'/A') = 91.7% P(A'∩B') = 55.0%


Profile Table
B B' Total
A 5.0% 35.00% 40.00%
A' 5.0% 55.00% 60.00%
Total 10.0% 90.00% 100.00%

Row Profile
B B' Total
A 12.5% 87.50% 100.00%
A' 8.3% 91.67% 100.00%
Total 10.0% 90.00% 100.00%

Column Profile
B B' Total
A 50.0% 38.89% 40.00%
A' 50.0% 61.11% 60.00%
Total 100.0% 100.0% 100.0%
Tabla de contingencia
Edad
Menos de 30 30 hasta 60
Películas por B1 B2
mes
0 A1 15
1o2 A2 25

3, 4, o 5 A3 55

6 o más A4 5
Total 100
Matriz perfiles
Edad
Menos de 30 30 hasta 60
Películas por B1 B2
mes
0 A1 3.00%
1o2 A2 5.00%

3, 4, o 5 A3 11.00%

6 o más A4 1.00%
Total 20.00%

Matriz perfiles Fila


Edad
Menos de 30 30 hasta 60
Películas por
mes B1 B2
0 A1 20.00%
1o2 A2 12.50%

3, 4, o 5 A3 31.43%

6 o más A4 10.00%
Total 20.00%
Matriz perfiles Columna
Edad
Menos de 30 30 hasta 60
Películas por B1 B2
mes
0 A1 15.00%
1o2 A2 25.00%

3, 4, o 5 A3 55.00%

6 o más A4 5.00%
Total 100.00%
Edad
30 hasta 60 60 años o más
B2 B3 Total

50 10 75
100 75 200

60 60 175

15 30 50
225 175 500
Perfiles (P
Edad
30 hasta 60 60 años o más
B2 B3 Total
10.00% 2.00% 15.00%
20.00% 15.00% 40.00%

12.00% 12.00% 35.00%

3.00% 6.00% 10.00%


Edad
45.00% 35.00% 100.00%

Edad
30 hasta 60 60 años o más
B2 B3 Total
66.67% 13.33% 100.00%
50.00% 37.50% 100.00%

34.29% 34.29% 100.00%

30.00% 60.00% 100.00%


45.00% 35.00% 100.00%

Edad
30 hasta 60 60 años o más
B2 B3 Total
22.22% 5.71% 15.00%
44.44% 42.86% 40.00%

26.67% 34.29% 35.00%

6.67% 17.14% 10.00%


100.00% 100.00% 100.00%
Perfiles (Prob. Marginales) Perfiles Columna

Menos de 30 P(A1/B1)= 15.00%


P(B1)= 20.00% P(A2/B1)= 25.00%
P(A3/B1)= 55.00%
P(A4/B1)= 5.00%

30 hasta 60 P(A1/B2)= 22.22%

P(B2)= 45.00% P(A2/B2)= 44.44%


P(A3/B2)= 26.67%
P(A4/B2)= 6.67%

P(A1/B3)= 5.71%
60 años o más P(A2/B3)= 42.86%
P(B3)= 35.00% P(A3/B3)= 34.29%
P(A4/B3)= 17.14%

Homework: Create a diagram tree using row profile. You shou


start whit movies variable.
Perfiles

P(A1∩B1)= 3.00% 3.00%


P(A2∩B1)= 5.00% 5.00%
P(A3∩B1)= 11.00% 11.00%
P(A4∩B1)= 1.00% 1.00%

P(A1∩B2)= 10.00% 10.00%


P(A2∩B2)= 20.00% 20.00%
P(A3∩B2)= 12.00% 12.00%
P(A4∩B2)= 3.00% 3.00%

P(A1∩B3)= 2.00% 2.00%


P(A2∩B3)= 15.00% 15.00%
P(A3∩B3)= 12.00% 12.00%
P(A4∩B3)= 6.00% 6.00%

ofile. You shoul


P(A1) 0.1% Has COVID-19
P(A2) 99.9% Does not have COVID-19
𝑃(𝐵│𝐴_1 ) 99% Effectiveness of the test, if the patient have COVID-19(A1), the test is correct in 99% of cases
𝑃(𝐵│𝐴_2 ) 1% Test effectiveness, if the patient have COVID-19(A1), the test is wrong in 1% of cases

If the COVID-19 test is positive (B), what is the probability that the patient has COVID-19 (A1)?
𝑃(𝐴_1│𝐵)=(𝑃(𝐵│𝐴_1 )𝑃(𝐴_1 ))/(𝑃(𝐵│𝐴_1 )𝑃(𝐴_1
)+𝑃(𝐵│𝐴_2 )𝑃(𝐴_2 ) )
ect in 99% of cases

También podría gustarte