




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





Prof. Thistleton STA100 Statistical Methods Lecture 6
Recall the table from Lecture 5.
Gender Male Female
Owns a Pet
Yes 15 27 No 6 3
We can think about this in a couple of ways. There are 51 students in this sample drawn from the population of SUNYIT students. With each of these students we have associated two variables: Gender and Owns a Pet. Both of these variables are categorical, as we discussed in the first lecture. You could also say that each is dichotomous. All we mean by that is that each one can occur in two ways: Yes or No. Later we’ll call that Success or Failure.
We could also think a little differently with each individual having membership in Male or Female and in Owns a Pet or Does Not Own A Pet. You might recall from earlier math courses that we can begin to talk about membership in a set. A picture, called a Venn Diagram, often helps.
Before proceeding further we need to develop a few ideas about collections of objects, or sets.
Example: If Mike owns a pet we would say that 𝑀𝑖𝑘𝑒 ∈ 𝑂𝑊𝑁𝑆 𝐴 𝑃𝐸𝑇. Note that we would also say that 𝑀𝑖𝑘𝑒 ∈ 𝑀𝐴𝐿𝐸.
Example: the New York Yankees 2008 40 man roster http://newyork.yankees.mlb.com/team/roster_40man.jsp?c_id=nyy includes subsets corresponding to pitchers, catchers, infielders, outfielders, and designated hitters. Note that these subsets don’t have any overlap- no one is both a pitcher and an infielder.
3. Definition 3 Two sets, A and B, are said to be equal if each element of A is also in B, and if each element of B is also in A. We write B = A. 4. Definition 4 We will call the set C the union of the sets A and B if every element of C is also in at least one of A or B (though maybe in both). We write 𝐶 = 𝐴 𝑜𝑟 𝐵. Note that other books will write 𝐶 = 𝐴 ∪ 𝐵.
Example: Suppose we toss a fair coin 3 times and observe the faces. What does our sample space look like? We can list these outcomes out in a straightforward way by noting that on one toss the sample space looks like 𝐻, 𝑇. (Note: exactly 2 outcomes). Build up from here by noting that if we toss twice then the sample space looks like 𝐻𝐻, 𝐻𝑇, 𝑇𝐻, 𝑇𝑇. (Note: exactly 4 outcomes. To help see this, draw a “tree diagram” as follows
outcomes. For the first subset, call it 𝐸 1 we can list the outcomes with “Heads on First”. Can you see that 𝐸 1 = 𝐻𝐻𝐻, 𝐻𝐻𝑇, 𝐻𝑇𝐻, 𝐻𝑇𝑇? Now let the second event, call it 𝐸 2 be those outcomes with “Heads on Second”. We can write this out as 𝐸 2 = 𝐻𝐻𝐻, 𝐻𝐻𝑇, 𝑇𝐻𝐻, 𝑇𝐻𝑇. Here’s something to think about: The event 𝐸 1 has 4 outcomes. The event 𝐸 2 has 4 outcomes. How many does 𝐸 1 𝑜𝑟 𝐸 2 have? It’s not 8- just write them out, being careful not to write any outcomes out twice: 𝐸 1 𝑜𝑟 𝐸 2 = 𝐻𝐻𝐻, 𝐻𝐻𝑇, 𝐻𝑇𝐻, 𝐻𝑇𝑇, 𝑇𝐻𝐻, 𝑇𝐻𝑇 This is a terrifically important result for us. To state it best we also need the following.
5. Definition 5 We will call the set C the intersection of the sets A and B if every element of C is also in both of 𝐴 𝑎𝑛𝑑 𝐵. We write 𝐶 = 𝐴 𝑎𝑛𝑑 𝐵. Note that other books will write 𝐶 = 𝐴 ∩ 𝐵.
Example: still working with the above, we have 𝐸 1 𝑎𝑛𝑑 𝐸 2 = 𝐻𝐻𝐻, 𝐻𝐻𝑇. That is, we include all those tosses with Heads on First and also Heads on Second. This allows us to say that “the number of elements in A or B is equal to the number of elements in A plus the number of elements in B minus the number of elements in both. Using the symbol 𝑛 𝐴 for “the number of elements in A” we can write this succinctly as
𝑛 𝐴 𝑜𝑟 𝐵 = 𝑛 𝐴 + 𝑛 𝐵 − 𝑛 𝐴 𝑎𝑛𝑑 𝐵
In our coin toss example this gives us
𝑛 𝐻 𝑜𝑛 1 𝑠𝑡 𝑜𝑟 𝐻 𝑜𝑛 2 𝑛𝑑 = 𝑛 𝐻 𝑜𝑛 1 𝑠𝑡 + 𝑛 𝐻 𝑜𝑛 2 𝑛𝑑 − 𝑛 𝐻 𝑜𝑛 1 𝑠𝑡 𝑎𝑛𝑑 𝐻 𝑜𝑛 2 𝑛𝑑
In our Pets and Gender example this gives us:
Gender Male Female
Owns a Pet
Yes 15 27 42 No 6 3 9 21 30 51
And so we see that 𝑛 𝑂𝑤𝑛𝑠 𝑎 𝑃𝑒𝑡 = 42 and 𝑛 𝑀𝑎𝑙𝑒 = 21_. We also have that_ 𝑛 𝑀𝑎𝑙𝑒 𝑎𝑛𝑑 𝑂𝑤𝑛𝑠 𝑎 𝑃𝑒𝑡 = 15 so that, finally,
𝑛 𝑂𝑤𝑛𝑠 𝑎 𝑃𝑒𝑡 𝑜𝑟 𝑀𝑎𝑙𝑒 = 42 + 21 − 15 = 48
Bringing this back home to probability (remember Kolmogorov’s third axiom!!)
𝑃 𝑂𝑤𝑛𝑠 𝑎 𝑃𝑒𝑡 𝑜𝑟 𝑀𝑎𝑙𝑒 =^4251 +^2151 − 1551 = (^4851)
6. Definition 6 Suppose we have 𝐵 ⊆ 𝑆. Then we denote the complement of the set B in 𝑆 as the set of elements which are in 𝑆 but not in 𝐵. That is, just those elements not in 𝐵. We write 𝑛𝑜𝑡 𝐵.
In particular, consider the set of all outcomes of an experiment. We will call this set the sample space of the experiment and denote it as S. An event is then just a subset of a sample space and we may speak of an event 𝐸 and its complement 𝑛𝑜𝑡 𝐸 and their probabilities.
We have a few relationships to help us do our work:
𝑝𝑟𝑜𝑏 𝐸 𝑂𝑅 𝐹 = 𝑝𝑟𝑜𝑏 𝐸 + 𝑝𝑟𝑜𝑏 𝐹 − 𝑝𝑟𝑜𝑏 𝐸 𝐴𝑁𝐷 𝐹 and so 𝑝𝑟𝑜𝑏 𝐸 𝑂𝑅 𝐹 = 0.5 + 0.2 − 0.15 = 0.
Similarly, the probability that we stop at the second but not the first is 0.
- 0.15 = 0.05. So, the probability we stop just once is 0.35 + 0.05 = 0.4.
0.35 0.1^5
0.
0.4 5
Example: You will roll a fair die three times.