You are on page 1of 40

Master Template a

Version 6.0 Thursday, May 07, 2020

For any questions, recommendations annd others, you can write Mig

1. Hyphotesis Test - one population


1.1. Mean
1.1.1. Using Z (knowing σ² or n>20)
1.1.2. Using T (unknowing σ² , X Normal and n<=20)
1.2. Proportion
1.2.1. Using Z (the only case of proportion ) - Validatio
2. Confidence Interval
2.1. Mean
2.1.1. Using Z (knowing σ² or n>20)
2.1.2. Using T (unknowing σ² , X Normal and n<=20)
2.2. Proportion
2.2.1. Using Z (the only case of proportion ) - Validatio
3. Hyphotesis Test - two populations
3.1. 2 Means
3.1.1. Using Z (knowing both σ² or n1+n2>40)
3.1.2. Using T (unknowing σ² but equal , X Normal and
3.1.3. Using T (unknowing σ² but non equal , X Norma
3.2. 2 Proportions
3.2.1. Using Z for equal proportions (Ho: p1-p2=0), usi
3.2.2. Using Z for unequal proportions (Ho: p1-p2<>0
3.3. 2 Means in parity (dependent sample)
3.3.1. Using Z (for samples n>=20) - NEW
3.3.1. Using T (for samples n<20) - NEW
3.4. 2 Variances
3.4.1. Using F distribution, Fisher (the only case) - NEW

4. Regression Lineal Simple - NEW!!!


4.1. Model and all the stuff about Regression
4.1.1. Using T (small samples, n<20) - NEW!!!

5. Non parametric Test (Chi2 + Kolmogorov Smirnov)

For any questions, recommendations annd others, you can write Mig

Design By: Miguel Patiño - 2012


plate about Inferential St
hers, you can write Miguel Patiño at: mpatino@pucp.pe

20)
Normal and n<=20)

roportion ) - Validation: np & npq>10

20)
Normal and n<=20)

roportion ) - Validation: np & npq>10

or n1+n2>40)
equal , X Normal and n1+n2<=40) + IC (μ1-μ2) - MODIFIED!!!
non equal , X Normal and n1+n2<=40) + IC (μ1-μ2) - MODIFIED!!!

ons (Ho: p1-p2=0), using p equivalent


rtions (Ho: p1-p2<>0), p1 and p2 of sample
0) - NEW
- NEW

(the only case) - NEW!!!

20) - NEW!!!

ogorov Smirnov) <------UNDER CONSTRUCTION IN THE NEXT VERSIO

hers, you can write Miguel Patiño at: mpatino@pucp.pe


erential Statistics ®
e

ODIFIED!!!
- MODIFIED!!!
STRUCTION IN THE NEXT VERSIONS (next cycle)

e
Come back Please, fill only the yellow cells:
Sample 34 Ho µo = 15
Mean 14 H1 µo <> 15
SD 2
Test Statistic Z -2.92

α 5%
Zcritic 1.9600
Critical Region {IZoI > Z1-alfa/2}

Since calculate Z falls under reject region: We reject own null hyphotesys. Fail
Conclusion:
to accept Ho bases on sample evidence (Rechazo Ho)
Come back
Please, fill only the yellow cells:
Sample 20 Ho µo = 15
Mean 14 H1 µo <> 15
SD 2
Test Statistic Z -2.24

α 5% If we need one tail, just put in the alpha value (cell D8) 2
Tcritic 2.0930 use t with alfa
Critical Region {IToI > T1-alfa/2,n-1}

Since calculate T falls under reject region: We reject own null hyphotesys. Fail
Conclusion:
to accept Ho bases on sample evidence (Rechazo Ho)
alpha value (cell D8) 2*alpha

wn null hyphotesys. Fail

echazo Ho)
Come back Please, fill only the yellow cells:
Sample 20 Ho p = 0.9 ~90%
sucess of sample 17 H1 p <> 0.9 ~90%
p sample 0.85 ~85% SE 0.07
q sample 0.15 ~15%

Test Statistic Z -0.75


α 5%
Zcritic 1.9600
Critical Region {IZoI > Z1-alfa/2}

Since calculate Z don't falls under reject region: We fail to reject own null hyphote
Conclusion:
on sample evidence (No puedo rechazar Ho)
o reject own null hyphotesys. Accept Ho bases
do rechazar Ho)
Come back Please, fill only the yellow cells:
Sample 20
Mean 15
SD 2 Answer
Li 14.12
Ui 15.88
α 5%
Zcritic 1.9600
Come back Please, fill only the yellow cells:
Sample 20
Mean 14
SD 2 Answer
Li 13.06
Ui 14.94
α 5%
Tcritic 2.0930
Come back Please, fill only the yellow cells:
Sample 30
Sucess 8
p of sample 0.27 ~27% Answer
q of sample 0.73 ~73% Li 0.11 ~11%
Ui 0.42 ~42%
α 5%
Zcritic 1.9600
Come back Please, fill only the yellow cells:
Sample1 50 Sample2 50 100 mu1 3
mean1 55 mean2 50 Use Z, big sample mu2
sd1 10.00 sd2 10.00 SE 2.00

T Cal 1.00 If i we know the variances of population, is Zcal


M
α 5% If we need one tail, just put in the alpha value (cell D9) 2*alpha Th
Zcritic 1.9600 cr

Critical Region {IZoI > Z1-alfa/2}

Since calculate Z don't falls under reject region: We fail to reject own null hyphotes
Conclusion:
sample evidence (No puedo rechazar Ho)
Miguel Patiño:
If you have Ho: mu1=mu2 vs H1:
mu1<>mu2, then don't put
anything here. On the other hand,
if u have a difference, put the
difference!

Miguel Patiño:
) 2*alpha The Test Statistics are called "Tcal" but the
critical region are calculated with Z normal

ect own null hyphotesys. Accept Ho bases on


echazar Ho)
Come back Please, fill only the yellow cells:
Sample1 18 Sample2 13 31 gl 29
mean1 15 mean2 14 Use T, small sample Sp 2.221
sd1 2.00 sd2 2.50 SE 0.81

T Cal 1.24 Miguel Patiño:


The Test Statistics are called "
calculated with Z normal if n1
α 5%
Tcritic 2.0452 If we need one tail, just put in the alpha value (cell D9) 2
Critical Region {IToI > T1-alfa/2,gl}

So, as the absolute value of TCal isn’t greater than Tcritical, we cannot reject the Null Hypothesis. In other words
Conclusion: under reject region, we fail to reject own null hypothesis. Then, we must Accept Ho bases on sample evidence, so
significance level of 5% is that μ1=μ2
Confidence Interval (mu1-mu2):
Li -0.65
Ui 2.65
There is no significative difference between mu1 a

So, as the absolute value of TCal isn’t greater than Tcritical, we cannot reject the Nu
calculate TCal don't falls under reject region, we fail to reject own null hypothesis. T
sample evidence, so the conclusion at a significance level of 5% is that μ1=μ2

So, as the absolute value of TCal is greater than Tcritical, we can reject the Null Hypo
TCal falls under reject region, we reject own null hypothesis. Then, we must Accept
conclusion at a significance level of 5% is that μ1<>μ2.
guel Patiño:
e Test Statistics are called "Tcal" but the critical region are
culated with Z normal if n1+n2<40

value (cell D9) 2*alpha

ull Hypothesis. In other words, since calculate TCal don't falls


o bases on sample evidence, so the conclusion at a

between mu1 and mu2

we cannot reject the Null Hypothesis. In other words, since


ct own null hypothesis. Then, we must Accept Ho bases on
f 5% is that μ1=μ2

e can reject the Null Hypothesis. In other words, since calculate


s. Then, we must Accept H1 bases on sample evidence, so the
Come back Please, fill only the yellow cells:
Sample1 18 Sample2 13 31 v 22
mean1 15 mean2 14 Use T, small sample SE 0.84
sd1 2.00 sd2 2.50
Miguel Patiño:
T Cal 1.19 The Test Statistics are called "Tcal" bu
region are calculated with Z normal if

α 5%
Tcritic 2.0739 If we need one tail, just put in the alpha value (cell D9) 2
Critical Region {IToI > T1-alfa/2,v}

So, as the absolute value of TCal isn’t greater than Tcritical, we cannot reject the Null Hypot
Conclusion: calculate TCal don't falls under reject region, we fail to reject own null hypothesis. Then, we
sample evidence, so the conclusion at a significance level of 5% is that μ1=μ2

Confidence Interval (mu1-mu2):


Li -0.74
Ui 2.74
There is no significative difference between mu1 a

So, as the absolute value of TCal isn’t greater than Tcritical, we cannot reject the Nu
calculate TCal don't falls under reject region, we fail to reject own null hypothesis. T
evidence, so the conclusion at a significance level of 5% is that μ1=μ2

So, as the absolute value of TCal is greater than Tcritical, we can reject the Null Hyp
falls under reject region, we reject own null hypothesis. Then, we must Accept H1 b
at a significance level of 5% is that μ1<>μ2.
Miguel Patiño:
The Test Statistics are called "Tcal" but the critical
region are calculated with Z normal if n1+n2>40

he alpha value (cell D9) 2*alpha

tical, we cannot reject the Null Hypothesis. In other words, since


reject own null hypothesis. Then, we must Accept Ho bases on
el of 5% is that μ1=μ2

erence between mu1 and mu2

han Tcritical, we cannot reject the Null Hypothesis. In other words, since
we fail to reject own null hypothesis. Then, we must Accept Ho bases on sample
vel of 5% is that μ1=μ2

n Tcritical, we can reject the Null Hypothesis. In other words, since calculate TCal
ypothesis. Then, we must Accept H1 bases on sample evidence, so the conclusion
Come back Please, fill only the yellow cells:
Sample1 25 Sample2 20 p_eq
Success 1 3 Success 2 5 SE
p sample 1 0.12 p sample 2 0.25
q sample 1 0.88 q sample 2 0.75

Z -1.13
α 5%
Zcritic 1.9600
Critical Region {IZoI > Z1-alfa/2}

Since calculate Z don't falls under reject region: We fail to reject own nul
Conclusion:
evidence (No puedo rechazar Ho)
0.18
0.11

We fail to reject own null hyphotesys. Accept Ho bases on sample


Come back Please, fill only the yellow cells: Miguel Patiño
If you have Ho:
Sample1 25 Sample2 20 Ho: p1-p2 = 0.2 here. This is a v

Success 1 3 Success 2 5 H1: p1-p2 <> 0.2


p sample 1 0.12 p sample 2 0.25 SE 0.12
q sample 1 0.88 q sample 2 0.75

Z -2.83 unequal
α 5%
Zcritic 1.9600
Critical Region {IZoI > Z1-alfa/2}

Since calculate Z falls under reject region: We reject own null hyphotesys. Fail to
Conclusion:
sample evidence (Rechazo Ho)
Miguel Patiño:
If you have Ho: p1<>p2, then put difference
here. This is a value give us in the problem

reject own null hyphotesys. Fail to accept Ho bases on


Come back Please, fill only the yellow cells and copy the formula of difference u
Before After Dif
30 20 10 mu dif 0 no change
15 14 1 n 20
11 17 -6
11 10 1 mean dif 0.7
22 18 4 sd dif 6.85
13 10 3
18 18 0 Zcal 0.46
20 22 -2
10 23 -13 α 5%
13 17 -4 Zcritic 1.9600
24 28 -4 Critical Region {IZcalI > Z1-alfa/2}
24 13 11
10 10 0 Since calculate T don't falls under reject region: We fail
Conclusion:
12 14 -2 rechazar Ho, so μ1=μ2)
29 19 10
25 26 -1
17 24 -7
19 24 -5
29 14 15
30 27 3
formula of difference until the end of your data:

Ho: mu1=mu2 (no change)


H1: mu1<>mu2 (change)

't falls under reject region: We fail to reject own null hyphotesys. Accept Ho bases on sample evidence (No puedo
2)
nce (No puedo
Come back Please, fill only the yellow cells and copy the formula of difference u
Before After Dif
22 27 -5 mu dif 0 no change
22 14 8 n 20
16 17 -1
16 24 -8 mean dif -1.35
13 15 -2 sd dif 7.96
15 26 -11
25 20 5 Tcal -0.76
18 29 -11
24 13 11 α 5%
14 26 -12 Tcritic 2.0930
19 30 -11 Critical Region {ITcalI > T1-alfa/2,n-1}
24 27 -3
16 13 3 Since calculate T don't falls under reject region: We fail
Conclusion:
14 23 -9 rechazar Ho, so μ1=μ2)
28 18 10
22 13 9
15 23 -8
10 12 -2
30 21 9
24 23 1
formula of difference until the end of your data:

Ho: mu1=mu2 (no change)


H1: mu1<>mu2 (change)

't falls under reject region: We fail to reject own null hyphotesys. Accept Ho bases on sample evidence (No puedo
2)
nce (No puedo
Come back Please, fill only the yellow cells:
Ho: σ₁² = σ₂²
Sample1 10 Sample2 10 H1: σ₁² ≠ σ₂²
sd1 2.17302 sd2 6.467

α 5%

Fcal 8.86 v1 = 9
v2 = 9

Critical Region: {Fcal > F (α/2,v1,v2)}

Ftable 4.03

Since calculate F falls under reject region: We reject own null hyphotesys. Fail to accept Ho
Conclusion: so: σ₁² ≠ σ₂²)
ull hyphotesys. Fail to accept Ho bases on sample evidence (Rechazo Ho,
Come back Please, fill only the yellow cells: Miguel Angel Patiño Antonioli:
Please, copy the formulas of cells "C4:F4" until the last ro

Xi Yi xy Y est Y est-Yi Indicator x y 1) Model: Y = β0 + β1*X+ Ԑ, so:


12 25 300 24.06 -0.94 Mean 14.40 30.80 β1 2.81
14 27 378 29.68 2.68 SD 2.33 7.03 β0 -9.65
16 32 512 35.29 3.29 Cov(x,y) 15.28 Then, the Regression LS Model is:
18 44 792 40.91 -3.09 n 5
12 26 312 24.06 -1.94
Y = -9.65 + 2.81 * X + Ԑ
0 -9.65 -9.65 α 5% Where, Ԑ ~ N (0, σ²)
0 -9.65 -9.65 df 3
0 -9.65 -9.65 S (Sy.x) 3.2764758686 2) Descriptive measures
0 -9.65 -9.65 SSx 27.2 r 0.9325 93% -------->
0 -9.65 -9.65 S(b1) 0.6282355695 R² 0.8695 87%
0 -9.65 -9.65
0 -9.65 -9.65 3) Test about the Correlation
Ho: ρ = 0
Continue H1: ρ ≠ 0
Tcal = 4.471
Ttable = 3.182
Since calculate T falls under reje
Conclusion:
(Rechazo Ho)

4) Test about the Slope


Ho: β1= 0
H1: β1 ≠ 0

Tcal = 4.471
Ttable = 3.182

Since calculate T falls under reje


Conclusion:
(Rechazo Ho)

5) Confidence Interval for the Slope


Li 0.81
Ui 4.81

6) Confidence Interval for the expected valu


Insert the given value of X: Xo =
Estimate Y given this X:

Li 46.39
Ui ###

7) Confidence Interval for the any value of Y


Insert the given value of X: Xo =
Estimate Y given this X:

Li 45.04
Ui ###

8) Suggested steps:
1. Calculate and interpretate Correlation
2. Correlation Analysis: Validate that ρ≠
3. Calculate and interpretate R² as the m
4. Regression Analysis: Validate that the
5. Estimate the model (Calculate B0 and
6. Calculate Interval of Y: 6) CI...expecte
7. Validate that the Error must be Norm
8. Validate that the error belongs to the
o Antonioli:
ulas of cells "C4:F4" until the last row of the data in yellow…

+ β1*X+ Ԑ, so: Lr Ur
-1.0 -0.9
-0.9 -0.7
on LS Model is: -0.7 -0.5
-0.5 -0.3
+ 2.81 * X + Ԑ -0.3 -0.1
-0.1 0.1
0.1 0.3
asures 0.3 0.5
This value show us that ther is a Very high positive correlation 0.5 0.7
0.7 0.9
0.9 1.0
Correlation
Test statistics: T = r*RAIZ [(n-2)/(1-r2)]

Critical Region: {ITcalI > T(alfa/2,n-2)}


calculate T falls under reject region: We reject our null hyphotesis. Fail to accept Ho bases on sample evidence
hazo Ho)

Slope

Test statistic: T = b1/S(b1)

Critical Region: {ITcalI > T(alfa/2,n-2)}

calculate T falls under reject region: We reject our null hyphotesis. Fail to accept Ho bases on sample evidence
hazo Ho)

erval for the Slope

IC(β1) = [ b1 ± T(alfa/2,n-2)* S(b1)]

erval for the expected value of Y given a specific value of X


n value of X: Xo = 34
n this X: 85.85

erval for the any value of Y given a specific value of X


n value of X: Xo = 34
n this X: 85.85

ps:
nd interpretate Correlation "r" (Association between X and Y in sample): Descriptive way
Analysis: Validate that ρ≠ 0 (Association between X and Y in population): Inferential way - 3) Test about the Correlation
nd interpretate R² as the main explanation of the goodness of the model (variability of Y explained by variability of X)
Analysis: Validate that the Slope must be different of zero (β1 ≠ 0) - 4) Test about the Slope
he model (Calculate B0 and B1): Model: Y = β0 + β1*X+ Ԑ
nterval of Y: 6) CI...expected value of Y given a specific value of X, 7) CI...any value of Y given a specific value of X
at the Error must be Normal - Ԑ ~ N (0, σ²)
at the error belongs to the normal curve.
Interpretation
Very high negative correlation This value show us that ther is a Very high negative correlation

High negative correlation This value show us that ther is a High negative correlation

Moderate negative correlation This value show us that ther is a Moderate negative correlation

Low negative correlation This value show us that ther is a Low negative correlation

Little if any negative correlation This value show us that ther is a Little if any negative correlation

No correlation This value show us that ther is a No correlation

Little if any positive correlation This value show us that ther is a Little if any positive correlation

Low positive correlation This value show us that ther is a Low positive correlation

Moderate positive correlation This value show us that ther is a Moderate positive correlation

High positive correlation This value show us that ther is a High positive correlation

Very high positive correlation This value show us that ther is a Very high positive correlation

ept Ho bases on sample evidence

ept Ho bases on sample evidence


riptive way
erential way - 3) Test about the Correlation
iability of Y explained by variability of X)
bout the Slope

alue of Y given a specific value of X

You might also like