Академический Документы
Профессиональный Документы
Культура Документы
RECORDANDO
DISTRIBUCION t
STUDENT
x
t
s
n
n-1 G.L
PROPIEDADES:
Tiene =0
La variable t va de - hasta +
Es una familia de distribuciones
30 gl
< Variabilidad
> Variabilidad
5 gl
2 gl
=0
Distribucin normal
Distribucin t student
=0
PRUEBA t STUDENT
Comparacin de dos poblaciones
independientes.
Variable dicotmica y continua.
SUPUESTOS
Normalidad: En cada grupo
Varianza desconocida: Iguales o
diferentes
Normalidad
Estadsticas
descriptivas
Grficos
Test
de normalidad
Continuacin .
sum pad if fuma==0,d
presion arterial diastolica (mmHg)
------------------------------------------------------------Percentiles
Smallest
1%
46.35056
46.35056
5%
57.5482
55.05551
10%
61.07764
57.41988
Obs
77
25%
71.8108
57.5482
Sum of Wgt.
77
50%
79.01965
Mean
79.3093
Largest
Std. Dev.
12.7265
75%
88.69038
100.0606
90%
96.8728
102.9899
Variance
161.9639
95%
100.0606
106.0554
Skewness
.0152767
99%
108.78
108.78
Kurtosis
2.752186
. sum
pad if fuma==1,d
presion arterial diastolica (mmHg)
------------------------------------------------------------Percentiles
Smallest
1%
71.04926
71.04926
5%
73.80067
73.80067
10%
77.62933
77.62933
Obs
23
25%
79.18894
78.72028
Sum of Wgt.
23
50%
87.62447
Mean
87.70633
Largest
Std. Dev.
9.013789
75%
94.48155
99.34062
90%
99.43048
99.43048
Variance
81.24838
95%
100.4205
100.4205
Skewness
-.0398374
99%
102.0454
102.0454
Kurtosis
1.918243
Continuacin .
. histogram pad if fuma==0, frequency normal
bin(10) title(Presion Arterial Diastolica en no
fumadores)
. histogram pad if fuma==1, frequency normal
bin(8) title(Presion Arterial Diastolica en
fumadores)
Presion Arterial Diastolica en no fumadores
Frequency
2
Frequency
10
15
20
70
80
90
100
presion arterial diastolica (mmHg)
110
40
60
80
100
presion arterial diastolica (mmHg)
120
Continuacin .
bysort
fuma: swilk
pad
-> fuma = 0
Shapiro-Wilk W test for normal data
Variable |
Obs
W
V
z
-------------+--------------------------------pad |
77
0.99243
0.503
-1.501
Prob>z
0.93330
-> fuma = 1
Shapiro-Wilk W test for normal data
Variable |
Obs
W
V
z
-------------+--------------------------------pad |
23
0.96218
0.989
-0.022
Prob>z
0.50883
s
RV
s
H0 :
1
2
1
2
2
12
H1 : 2 1
2
. sdtest pad,by(fuma)
Variance ratio test
Group |
Obs
Mean
Std. Err.
Std. Dev.
[95% Conf. Interval]
---------+--------------------------------------------------0 |
77
79.3093
1.45032
12.7265
76.42074
82.19786
1 |
23
87.70633
1.879505
9.013789
83.80847
91.60418
---------+--------------------------------------------------combined |
100
81.24062
1.245008
12.45008
78.77025
83.71098
------------------------------------------------------------ratio = sd(0) / sd(1)
f =
1.9934
Ho: ratio = 1
degrees of freedom =
76, 22
Ha: ratio < 1
Pr(F < f) = 0.9648
Ha: ratio != 1
2*Pr(F > f) = 0.0703
X 1 X 2 1 2 0
S p2
n1
Donde:
S
2
p
S p2
g.l.
n1 n 2 2
n2
n1 1 S12 n2 1 S 22
n1 n 2 2
en stata:
.
Continuacin .
Ha: diff != 0
Pr(|T| > |t|) = 0.0040
Continuacin .
Prueba
X 1 X 2 1 2 0
Donde:
S12 S 22
n1 n2
t1( / 2)
1t1 2t 2
1 2
S12
1
n1
t1 t1( / 2 )
S 22
2
n2
t 2 t1( / 2 )
en stata:
.
Continuacin .
unequal
Ha: diff != 0
Pr(|T| > |t|) = 0.0009
.. ENTONCES
Cmo comparara las medias entre
tres o mas grupos o categoras?
OJO...........En trminos de
la prueba t student.
Continuacin .
poblaciones
C2 =10
CONCLUSIN FALSA.
C2a
P(x>0)=1-[(1-0,05)^10]= 0,40
Probabilidad de no rechazar una hiptesis
de no diferencia en cada caso seria de 0.95.
(0.95)10 = 0.5987
Rechazar la hiptesis nula: Error tipo I
ANOVA