Stat110part5 6
Stat110part5 6
Stat110part5 6
Biostatistics
Lecturer: Sabriye Topal KARANFİLLER
Office: ST249
Email: skaranfiller@ciu.edu.tr
Textbook:
Wayne W. Daniel, BIOSTATISTICS: Basic Concepts and Methodology for the
Health Sciences, 9th ed., Wiley
Probability
1. Introduction to Probability Theory
• Introduction to SETs
• Complement of set
• Null set
• Subset of a set
• Venn diagram representation of a set
• SET Operations
• equality
• union
• intersection
What is probability?
Probability is a numerical measure of the likelihood that an event will occur.
Ex:
• What is the probability of raining today?
• What is the probability of getting 6 when you roll a die?
• What is the probability of getting head when you flip a coin?
• Set theory provides a useful vehicle for presenting and discussing probability concepts.
Introduction to SETs
Keywords: Set, element, enumeration method, descriptive property
method
Ex: Set of positive odd integers, where all elements in the set are less then 10.
A= {1, 3, 5, 7, 9}
• Which implies that: "A is the set consisting elements x such that x is a positive
even integer have a values less then 12”
EX: Redefine the following set using the enumerative method
2 ∈ 𝐵,
1∈𝐵
Complement of A : A’= {b/ b is a student which is not from management department of CIU}
Example :
If U= {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} and
B={2, 4, 6, 8}
Solution
B’={1, 3, 5, 7, 9, 10}
Null (empty) Set
• The empty or null set is the set consisting of no elements and is
denoted by Ø.
Example : If U is the set consisting of all positive integers and
T equals the set of all positive integers, define T’ (complement of T)
T={2, 4, 6, 8, ....}
Since T and U define the same set, T’ is the set with no elements;
T’= Ø
Example : Consider the system of equations below, determine the solution set, S.
4𝑥 + 3𝑦 = 10
4𝑥 + 3𝑦 = −5
Solution Since there are no values for x and y which satisfy both equations,
the solution set S, for the system of equations is the null set,
S= Ø or
A={a, b, c, d, e, f, g, h}
B={ a, b, c },
C={ d, ı, j },
D={ e, f, g }
E={ j }
Write down the subset relations
B⊂A,
C⊂A,
Solution
D⊂A,
E⊂C
Venn Diagram Representation of Sets
• Venn Diagrams are conventional way of envisioning sets and sets
relationships. In a Venn diagram circles are used to represents subsets
of a set U (denoted by a large rectangle)
U
A
Remarks:
• A ⊂ A and
• Ø ⊂A
Universe (U): Real numbers
??? So check the following statements and answer them whether they are true
or false.
T A. Rational and Irrational Numbers are disjoint/discrete sets.
F B. Whole Numbers are the subset of Natural Numbers.
F C. The difference of Integer Numbers from Whole numbers includes Positive
Numbers.
T D. The complement of Natural numbers includes Irrational Numbers.
Set Operations
• Equality of Set
Two sets A and B are equal if and only if (iff) every element of A is an
element of B and every element of B is an element of A.
A=B iff A ⊂ B and B ⊂ A
• If A and B are not equal, it is denoted by 𝐴 ≠ 𝐵
Example : Given the following sets, determine whether any sets are equal
A={1, 2},
B={1, 2, 3} ,
C={ x/ (x-1)(x-2)(x-3)=0 },
D={z / 𝑧 2 − 3𝑧 + 2 = 0}
C={1, 2, 3},
x-1=0 x=1
x-2=0 x=2
x-3=0 x=3
Solution
(z-1)(z-2)=0, z=1, z=2
D= {1, 2}
A=D
B=C
• Union of Sets
The union of sets A and B, defined by 𝐀 ∪ 𝐁 is a subset of U that
contains elements that are in A, or in B, or possibly in both.
𝐴 ∪ 𝐵 = 𝑥 ∈ 𝑈 | 𝑥 ∈ 𝐴 𝑜𝑟 𝑥 ∈ 𝐵, 𝑜𝑟 𝑏𝑜𝑡ℎ
A B
Some facts about the union:
• 𝐴∪∅=𝐴
• 𝐴∪𝐴=𝐴
• 𝐴∪𝐵 =𝐵∪𝐴
• 𝐴′ ∪ 𝐴 = 𝑈 (the union of the set A and its complement result in the
universal set U)
Example : Given the following sets, find
a. A ∪ B
b. A ∪ C
c. B ∪ C
A={1, 2, 3, 4, 5}, B={1, 3, 5, 7, 9} , C={ 2, 4, 6, 8, 10 },
A B
𝐴∩𝐵 =∅ 𝐴∩𝐵 =𝐵
(A and B are disjoint sets with no common elements. )
Example : Given the following sets, find
a. A ∪ C
b. B ∩ C
c. A ∩ B ∪ C
A={1, 3, 5, 7, -1, -3, -5, -7}, B={-3, -2, -1, 0, 1, 2, 3} , C={ -4, -3, -1, 2, 4 },
a. A U C= {1, 3, 5, 7, -1, -3, -5, -7} U { -4, -3, -1, 2, 4 } = {1, 2, 3, 4, 5, 7,9, -1,-2,-3, -5, -7}
U U
A B A’
No intersection
A’
• Draw the Venn diagram and find the results of the following sets
• A’
• B’
• A UB
• A∩B
• AUA’
• A′ ∩ B′
• 𝐴 ∩ A′
• A′ ∪ B′
Random process (experiment)
•Random experiment
•is a process which results in one of a number of possible outcomes.
Example:
•Flipping/tossing a coin
•Rolling a die
•Drawing a card from a desk
•Selecting a ball from a box which contain number of balls
•Examining the number of products whether it is defective or non
defective.
Trial
•Each repetition of an experiment can be thought as a trial.
•Each trial has an observable outcome.
Sample space
1
2
n1
...
6
10 n1 × n2 × ⋯ × n6 =
10 × 10 × 10 × 10 × 10 × 10 = 10
1
2
n2
..
10
1
2
n3
...
10
1
2
n4
...
10
1
2
n5
...
10
1
2
n6
...
10
Ex: How many breakfasts consisting of a drink and a sandwich are possible if we can
select from 3 drinks and 4 kinds of sandwiches?
Ex: A certain shoe comes in 5 different styles with each style available in 4 distinct colors. If the store
wishes to display pairs of these shoes showing all of its various styles and colors, how many different pairs
would the store have on display?
Solution : n1 = 5 and n2 = 4 , 5 x 4 = 20 different pairs are available.
• Ex: Determine the number of possible seven-digit telephone number if none of the
first three digits can equal to zero and:
a) Any digit can be used for the remaining numbers
b) The first digit must be odd, alternating after that between even and odd digits (assume that
zero is even)
c) All digits must be even
d) No digit can be repeated.
• Solution: To answer this you have to understand that there are seven experiments
and combined outcomes gives the seven digit number.
• Experiments are selecting number for each digit.
• The set which the numbers are selected for the digits is {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}
•
d1 d2 d3 d4 d5 d6 d7
Ex: Consider the three numerals 1, 2, and 3. The permutation of these three numbers are
Permutation Rule: The number of permutations of size n that can be formed from the n individuals or objects in a group
will be denoted by nPn or P(n,n) where
nPn=n x (n-1)x (n-2) x .….x 2 x 1=n!
! factorial notation
0!=1
1!=1
2!=2.1=2
3!=3.2.1=6
…
10!=10.9.8. … . 2. 1= 3628800
n!= n(n-1)(n-2). … . 3. 2. 1
In the previous example : the number of permutations of three numbers 1, 2, and 3 taken three at a time is
3P3=3!=3. 2. 1=6
Permutation counting:
• The number of permutations of n different objects taken r at a time, is
denoted by 𝑛𝑃𝑟 where,
𝑛!
𝑃(𝑛, 𝑟) = 𝑛𝑃𝑟 =
𝑛−𝑟 !
•
Ex: List 2 permutations of 4 letters A, B, C, D
Solution:
• 1. Way: listing elements
• 2. Way: multiplication rule
• 3. Permutation rule
Ex: In how many ways can a Society schedule 3 speakers for 3 different meetings if they are
available on any of 5 possible dates?
Ex: Four football teams, Team 1, Team 2 , Team 3, Team 4 are competing in a tournament. Assuming
no ties, how many different end-of tournament ranking are possible.
Solution:
# of rankings= 4𝑃4 = 4.3.2.1 = 𝟐𝟒 end-of tournament ranking
Ex: How many different ways can 3 red, 4 yellow, and 2 blue bulbs be arranged in a string of Christmas tree
lights with 9 sockets?
Solution : The total number of distinct arrangements is
9!
= 1260
3! 4! 2!
COMBINATION
• An unordered subset is called a combination.
• Permutations are dealing with the number of different ways in which set of items
can be arranged. A combination is a set of items with no consideration given to
the order or arrangement of the items.
• In combination one is interested only in which individuals or objects selected.
𝑛𝑃𝑟 > 𝑛𝐶𝑟
Ex: In how many ways can a teacher select 3 students in a class of 25 students.
Ex: From 4 mathematicians and 6 computer scientists, find the number of committees that can be
formed consisting of 2 mathematicians and 4 computer scientists.
Solution:
4 6 4! 6!
= . = 2.3.3.5 = 90
2 4 2! 4−2 ! 4! 6−4 !
Ex: In one year, three awards (research, teaching and service) will be given to class
of 25 students in a statistics department. If each student can receive at most one
award, how many possible selection are there.
Ex:
7 7 7
• = =
3 7−3 4
5 5
• = =1
0 5
Ex: List 2 combinations of 4 letters, A, B, C, D
4 4!
= = 3.2 = 6
2 2! 4 − 2 !
Ex: From a group of 4 men and 5 women, how many committees of size 3 are possible
• (a) with no restrictions?
• (b) with 1 man and 2 women?
• (c) with 2 men and 1 woman if a certain man must be on the committee?
Solution: arrangement/ order not important
a) Total # of candidate, n= 4+5=9
# of selected candidate, r= 3
9 9! 9.8.7
= = = 84
3 3! 9 − 3 ! 3.2.1
b) There is a restriction=> 1 man, 2 woman
First operation- choose man---- n=4, total # of men
4
r=1 # of selected man 𝑛1 =
1
2nd operation- choose 2 women--- n=5, total # of women
5
r=2 𝑛2 =
2
4 5 5! 5.4
. = 4. = 4. = 40
1 2 2! 5 − 2 ! 2
c) There is restriction => 2 men, 1 woman, but certain man must be in commitee
• Choose 1 man among 3 other men
• Choose 1 woman among 5 women
3 5
. = 3.5 = 15
1 1
Ex: From a group of 4 men and 5 women, how many committees of size 3 are possible
• (a) with no restrictions?
• (b) with 1 man and 2 women?
• (c) with 2 men and 1 woman if a certain man must be on the committee?
Solution: arrangement/ order not important
a) Total # of candidate, n= 4+5=9
# of selected candidate, r= 3
9 9! 9.8.7
= = = 84
3 3! 9 − 3 ! 3.2.1
b) There is a restriction=> 1 man, 2 woman
First operation- choose man---- n=4, total # of men
4
r=1 # of selected man 𝑛1 =
1
2nd operation- choose 2 women--- n=5, total # of women
5
r=2 𝑛2 =
2
4 5 5! 5.4
. = 4. = 4. = 40
1 2 2! 5 − 2 ! 2
c) There is restriction => 2 men, 1 woman, but certain man must be in commitee
• Choose 1 man among 3 other men
• Choose 1 woman among 5 women
3 5
. = 3.5 = 15
1 1