Probability Sam
Probability Sam
: DOSEN FEB-UGM
: JL WELING II / 39 A. DEPOK-SLEMAN
: EKONOMI-PUBLIK
STATISTIKA TERAPAN
TEORI EKONOMI MAKRO/MIKRO
PENGALAMAN KERJA : DOSEN FEB-UGM
: ASSISTEN WADEK III & SEK-JURUSAN IE.
: PENGELOLA S2/S3 FEB-UGM
: SUPERVISOR BSNP DIKNAS
: PENGELOLA PENELITIAN EKONOMI
: KONSULTAN PERENC/PEMB DIY
: KONSULTAN & FASILITATOR KEU-DA
HP: 0811253224.
Email :[email protected]
NAMA
PEKERJAAN
JABATAN
ALAMAT
BIDANG MINAT
Text-Books
PROBABILITY
PROBABILITY IS A NUMERICAL MEASURE OF THE
LIKELIHOOD OF AN EVENT OR MORE OCCURRING or
CHANCE AN EVENT OR MORE WILL OCCUR AS A RESULT
OF AN EXPERIMENT.
THE CONCEPTS OF PROBABILITY ARE SPECIALLY
RELEVANT IN BUSINESS. BUSINESSMEN MAKE DECISIONS
IN THE FACE OF UNCERTAINTY DAY BY DAY. FOR
EXAMPLE:
1. WHEN COMPANY LAUNCHES A NEW PRODUCT.
2.THE LIKELIHOOD OF A NEW INVESTMENT PROJECT
BEING PROFITABLE MAY BE UNKNOWN. THEREFORE,
DECISION MAKING HAS TO BE BASED ON SOME
ASSESSMENT OF THE PROBABILITY OF POSSIBLE
OUTCOMES OCCURRING.
3.ENGINEERING INSTALATION DESIGN.
EXPERIMENT:
ALL POSSIBLE
OUTCOMES
SOME POSSIBLE
EVENTS
TOSS 2 COINS
HH
HT
TH
TT
TAIL WILL APPEAR
AT LEAST ONCE
ROLL 2 DICE
THERE ARE 36
POSSIBLE OUTCOMES
TOTAL NUMBER OF
BOTH DICE = 2 OR 10
Example
a.
b.
c.
d.
e.
CONDITIONAL PROBABILITY
EXAMPLE
SCORES : A
CLASSES
X
Y
Z
10
13
8
15
16
11
8
7
6
2
4
5
2. P ( X or C )
5. P ( C/X )
3. P ( Y or Z )
6. P ( Z/F )
Example
P ( Ai ) P ( B/Ai )
P ( Ai/B ) = ---------------------------------------------------------P ( A1) P ( B/A1 ) + -------+ P ( An ) P ( B/An )
EXAMPLE 1:
A car repair firm employs four paint sprayers, Tomy, Dicky , John and Harry.
Tomy is responsible for painting 20 % of all the cars produced, Dicky for 25 %,
John for 15 % and Harry for the remaining 40 %. On the basis of frequent
quality inspections it is discovered that, on average, 15 % of the car sprayed by
Tomy fall below the minimum standard, while for Dicky is 8 %, for John is 5%
and for Harry 10 %. If a car is selected at random is judged to be substandard.
a.
What is the probability that it was sprayed by Harry?
b. If a car is selected at random is judged to be standard, what is the probability
that it was sprayed by Tomy or John?
Example:2
Mathematical Expectation
Example
Example
The quantity of X demanded probability
200 units
0.15
225
0.20
250
0.30
275
0.25
300
0.10
a. What is the mean of quantity of X demanded.
b. What is the variance of the distribution?
c. When the price of X = $ 10 and AC = $ 8
What is the expected value of the profit?
Probability distributions
1. Discrete probability distribution:
Binomial distribution:
a.
In each trials only two outcomes are possible:
success or failure, good or defect, pass or fail, girl
or boy, odd number or even number.
b.
Each trial is independent to each other.
c.
Probability of an event is assumed to remain
constant over all trials ( n trials ).
Binomial Distribution
The probability of obtaining the outcome success denoted by and the outcome failure
denoted q or (1 ).
If we are interested in the number of success or failure ( x ) occuring in ( n ) trials, then, the
probability binomial distribution is given by the formula:
n
nx
x
Example:
The four engines of a commercial aircraft are design so that they each operate independently. Test,
carried out over a long period of time, show that there is a one-in-a hundred chance of in-flight
failure of a single engine.
What is the probability that on a given flight:
a.
No failures occur?
b.
No more than two failures occur?
c.
At least two failures occurs.
d.
Two of the engines run well.
e.
At most one of the engine run well.
BINOMIAL DISTRIBUTION
Example
Example : 2
a.
b.
c.
d.
Example : 3
a.
b.
c.
NORMAL DISTRIBUTION
1. Xi ~ N ( , )
2. Zi ~ N ( 0, 1 )
Xi -
Zi = ---------------
PROBABILITY( AREAS )
0.4505
0.4750
0.3997
0.1915
0.3413
a.
b.
c.
d.
e.
f.
Normal Distribution
An electrical firm manufactures light bulbs that have a
length of life that is normally distributed with mean 800
hours and variance of 1600 hours. Find the probability:
a. That a bulb burns between 778 and 834 hours.
b. That a bulb burns 850 hours or 775 hours.
c. That a bulb burns between 720 and 780 hours.
d. The minimum length of life for 12.5% the longest.
e. The minimum length of life for 22% below the average.
MID-EXAM QUESTIONS
1. MEASURES OF CENTRAL TENDENCY:
MEAN, MEDIAN AND MODE AND
COEFFICIENT OF VARIATION.
2. MEASURES OF LOCALITY:
QUARTILE, DECILE AND PERCENTILES.
3. DISPERSION: VARIANCE, STANDARD
DEVIATION AND COEFFICIENT OF
VARIATION FOR UNGROUPED DATA.
Example
a.
b.
c.
Extra-Bonus
A manufacture produces 10.000 units of product
daily. On the basis of frequent inspections it is
dicovered, 500 unit of product is classified as
defective. What is the probability that:
a.
b.
c.
d.
1. Binomial distribution
2. Normal distribution
3. From Binomial to Normal.
The quiz will be given on Tuesday next
week. ( dont forget to bring your calculator
and statistics tables.
Sampling Methods
REASONS TO SAMPLE
1. TO OBSERVE THE WHOLE POPULATION WOULD BE
TIME CONSUMING AND VERY EXPENSIVE.
2. THE PHYSICAL IMPOSSIBILITY OF CHECKING ALL
ITEMS IN THE POPULATION.
3. THE DESTRUCTIVE NATURE OF SOME TESTS.
4. THE SAMPLE RESULTS ARE ADEQUATE TO INFER
THE CHARACTERISTICS OF POPULATION.
SAMPLING METHODS
Sampling Methods
1.118
x = ----- = ----------- = 0.79
n
2
Note that when we increase n, the x will decrease.
Without Replacement
All possible samples
Sample means
1.2
1.5
1.3
2.0
1.4
2.5
2.3
2.5
2.4
3.0
3.4
3.5
x = ( 1.5 + 2.0 + ------- + 3.5 ) : 6 = 2.5
x2 = ( 1.5 2.5 )2 + ( 2.0 2.5 )2 +----- + ( 3.5 2.5)2 : 6
= (1 + 0.25 + 0 + 0 + 0.25 + 1) = 2.5 : 6 = 0.417
Level of Confidence
Required level
value of
value of Z table
of confidence
90 %
10 %
1.65
95 %
5%
1.96
99 %
1%
2.58
Example : The prices at which certain type of instant coffee was
being sold on a given day were collected from a random
sample of 45 shops around the country. The mean price was $
1.95 with a standard deviation of $ 0.27. Compute a 80 %
confidence interval for the population mean.
P Zv
P( 1- P ) / n
page:300 no:18
Application
Example :
The operating life of rechargeable cordless screwdrivers
produced by a firm is assumed to be normally distributed. A
sample of 15 screwdrivers is tested and the mean life is found
to be 8900 hours, with a sample std deviation of 500 hours.
Construct a 90% confidence interval estimate for the
population mean.
Finding t - value
Example : n = 10, confidence level = 90%.
( X1 X2 ) Zv x
Example
A study was made to estimate the difference in salaries
of college professors in the private and state colleges
of Virginia. A random sample of 100 professor in the
private colleges showed an average of $ 15.000 per
month with a standard deviation of $ 1200. A random
sample of 200 professors in state colleges showed an
average salary of $ 16.000 with a standard deviation
of $ 1400. Find a 90% confidence interval for the
difference between the average salaries of professors
teaching in state and private colleges in Virginia.
Example:
The performance of stocks between Cement
Industries and Oil industries in 2007 ( in % ).
Final grades
82
66
78
80
95
Hypotheses testing
TESTING HYPOTHESES
( CH: 10 P 116-521)
START
TEST STATISTIC:
P
Zh = -------------- ( 1 )/n
Example:2
Brand of bath soap Number of Household
Palmolive
1000
Lux
1500
Zest
1000
Beauty
750
Minty
1250
Maya
1000
Other Brands
3500
a. Can you conclude that the proportion of HH that like Lux is
different from 14%.
b. Can you conclude that the proportion of HH that like Lux is
higher than 14 %. ( Alpha = 15 % ).
Test Statistic:
X -
th = -----------SD / n
Example
Range
1
54 km/l
2
53
3
56
4
52
5
50
6
55
The manufacture claimed that the average of gasoline
Consumption was 55 km/l. Can you conclude that this claim is
overestimate? ( use alpha = 5 % ).
PARAMETRIC STATISTICS:
1. SPSS: PAIRED SAMPLES
2. EVIEWS: UNPAIRED SAMPLES:
EQUALITY OF VARIANCE TEST
3. EXCEL: DATA ANALYSIS
NON PARAMETRIC STATISTICS:
SPSS : RELATED SAMPLES, WILCOXON
SIGN RANK TEST.
Ho:
Ha:
TEST STATISTIC:
X1 X2
Zh = --------------------------var1/n1 + var2/n2
EXAMPLE
AVERAGE PROD
VARIANCE
SAMPLE SIZE
450 UNITS
90 UNITS
40 WORKERS
460 UNITS
110 UNITS
50 WORKERS
TEST STATISTIC:
X1 - X2
th = ------------------------------------------( n1-1) var1+ (n2-1) var2
1 +1
(n1 + n2 2)
n1 n2
6. Testing (1 - 2 ), n < 30
Productivity of Workers
After Training
Before Training d
( d-d ) ( d d ) 2
235 units
228 units
7
2.4
5.76
210
205
5
0.4
0.16
231
219
12
7.4
54.76
242
240
2
-2.6
6.76
205
198
7
2.4
5.76
230
223
7
2.4
5.76
231
227
4
-0.6
0.36
210
215
-5
-9.6
92.16
225
222
3
-1.6
2.56
249
245
4
-0.6
0.36
Can you conclude that the training program increase the
productivity of the employees? ( alpha = 5% ).
d = 46
SD =
d = 46/10 = 4.6
( d d )2
(n1)
Test statistic:
d
SD / n
Example:2
Sample of customer Score of: New Menu
Old menu
1
36
35
2
48
46
3
50
51
4
76
74
5
55
56
6
60
59
7
71
72
8
66
64
9
62
61
Can you conclude that the new menu is more delicious than
the old one? ( alpha = 5% ).
Chy-Square test
Test statistic:
( Oij Eij )2
Xh2 = -------------Eij
Oij = observed frequencies in ith row & jth column
Eij = expected frequencies in ith row & jth column
EXAMPLE
Woman
25
20
5
What is your conclusion? ( UseAlpha = 5 % )
ANALYSIS of VARIANCE
9. ANALYSIS OF VARIANCE
FERTILIZER:
SAMPLE
1
2
3
4
5
A
10 kgs
12
13
11
14
12 kgs 11 kgs
11
10
10
9
10
10
12
10
D
9 kgs
10
8
8
10