Lec2 PDF
Lec2 PDF
Lecture 2:
REVIEW OF DISTRIBUTIONS CONTD
DISCRETE DISTRIBUTIONS:
THE BINOMIAL DISTRIBUTION
Definition
A population or process distribution for a discrete variable
mass function
p(x)
and
p(x) 1 ;
and
p(x)
values. In particular if
a b , then proportion of x
p(a) p(a 1) ... p(b)
(inclusive)
is specified by a
satisfying
p( x) 0
values between
STAT3010: Lecture 2
Alternative Hypothesis ( H1 or Ha )
Statement which is true if the null hypothesis is false. The
type of test (left, right, or two-tail) is based on the
alternative hypothesis which will include one of , , .
In the past you have seen several different types of hypothesis
testing such as: Hypothesis tests concerning a single mean with
both large and small sample sizes, hypothesis tests concerning
two means with either paired data, independent data or
pooled data.
STAT3010: Lecture 2
Single Mean
General breakdown of hypothesis testing:
In order to perform a test of significance, it is necessary to learn
how to set up your hypotheses, compare your calculated and
critical values, and draw appropriate conclusions. To complete
this task, you will follow the six-step procedure outlined below.
1. State one of the following:
H o : o
versus
H a : o
H o : o
versus
H a : o
H o : o
versus
H a : o
t critical for t.
Recall: If P-value , we reject the null hypothesis (H0)
If P-value , we do not reject the null hypothesis
Or
If t observed - t critical or t observed t critical , we reject H0
If - t critical < t observed < t critical , we do not reject H0
6. State the appropriate conclusions.
3
STAT3010: Lecture 2
STAT3010: Lecture 2
STAT3010: Lecture 2
SAS CODE:
options LS=80 PS=60
nodate;
Data salary;
input x;
y=x-29.5;
cards;
32
27
31
27
26
26
30
22
25
36
;
proc ttest;
var y;
run;
SAS OUTPUT:
Variable
y
N
10
Upper CL
Lower CL
Mean
Mean
Std Dev
Std Dev
-1.3
1.597
2.7855
4.0497
Statistics
Std Err
Minimum
Maximum
1.2806
-7.5
6.5
T-Tests
DF
t Value
Pr > |t|
9
-1.02
0.3366
Upper CL
Std Dev
7.3932
STAT3010: Lecture 2
(ii)
(iii)
Ha : 1 2 is 2P ( T t ) 2 tail test
STAT3010: Lecture 2
Males
15
15.8
4.2
Females
12
12.4
3.6
to
x1 x2 ( 1 2 )
1 1
sp
n1 n2
(n1 1) s12 (n 2 1) s 22
s
n1 n 2 2
2
p