Sign In
| Student Learning Objectives: |
|---|
|
| | 12 Theory slides |
| | 7 Exercises - Grade E - A |
| | Each lesson is meant to take 1-2 classroom sessions |
Zosia attends North High School in Honolulu. She asked 50 students whether they prefer a chocolate bar or a piece of fruit as a lunchtime snack and whether or not they surf. She obtained the following information.
Letting A be the event that a student surfs and B be the event that a student prefers fruit as a lunchtime snack, Zosia wants to calculate the following probabilities.
A two-way frequency table, also known as a two-way table, displays categorical data that can be grouped into two categories. One of the categories is represented in the rows of the table, the other in the columns. For example, the table below shows the results of a survey where 100 participants were asked if they have a driver's license and if they own a car.
Here, the two categories are car
and driver's license.
Both have possible responses of yes
and no.
The numbers in the table are called joint frequencies. Also, two-way frequency tables often include the total of the rows and columns — these are called marginal frequencies. Select any frequency in the table below to display more information.
Totalrow and the
Totalcolumn, which in this case is 100, equals the sum of all joint frequencies. This is called the grand total. A joint frequency of 43 shows that 43 people have a driver's license and own a car. A marginal frequency of 53 shows that 53 people do not have a car. The rest of the numbers from the table can also be interpreted.
Organizing data in a two-way frequency table can help with visualization, which in turn makes it easier to analyze and present the data. To draw a two-way frequency table, three steps must be followed.
Suppose that 53 people took part in an online survey, where they were asked whether they prefer top hats or berets. Out of the 18 males that participated, 12 prefer berets. Also, 15 of the females chose top hats as their preference. The steps listed above will now be used to analyze and present the data.
The total row and total column are included to write the marginal frequencies.
Zain has a job leading backpackers on excursions in the High Sierras. To better understand what time of day to plan certain activities, Zain posed a question to 50 backpackers about their sleep patterns: Are you a night owl or an early bird?
Zain then categorized the participants by sleep pattern and age — younger than 30 and 30 or older. Here is part of what was gathered.
Zain made a two-way frequency table with the data they collected. Unfortunately, some of the data values got smudged and are unable to be read! The missing data values have been replaced with letters, for now.
Find the missing joint and marginal frequencies to help Zain complete the table. Zain's next excursion depends on it.
With this information, the joint frequency B that represents the number of night owls aged 30 or older can be calculated. Of the 27 participants aged 30 or older, 11 are early birds. Therefore, the number of night owls aged 30 or older is the difference between these two values. 27-11= 16 This information can also be added to the table.
The missing marginal frequency C in the last row will now be calculated. Of the 50 participants, 28 said they are night owls. To find the number of early birds, the difference between these two values will be calculated. 50-28= 22 One more cell can be filled in!
Finally, the missing joint frequencies D and E in the first row can be found. D: & 22-11=11 E: & 28-16=12 The table can be completed with this information! Click on each cell to see its interpretation.
In a two-way frequency table, a joint relative frequency is the ratio of a joint frequency to the grand total. Similarly, a marginal relative frequency is the ratio of a marginal frequency to the grand total. Consider the following example of a two-way table.
Here, the grand total is 100. The joint and marginal frequencies can now be divided by 100 to obtain the joint and marginal relative frequencies. Clicking in each cell will display its interpretation.
Previously, Zain made a two-way frequency table about backpackers sleep patterns.
Zain wants to dig deeper into the data for even more clear interpretations, so they plan to calculate the joint and marginal relative frequencies.
Zain is beginning to feel a little tired themselves. Give them a hand and complete the table by matching each value with its corresponding cell.
The table below shows the joint and marginal relative frequencies.
One finding — of a variety — based on the joint and marginal relative frequencies, shows that about one-third of the participants who are 30 or older are night owls. Additionally, Zain can see that the participants are almost equally distributed among the categories, as both pairs of marginal relative frequencies have values close to 50-50.
A conditional relative frequency is the ratio of a joint frequency to either of its two corresponding marginal frequencies. Alternatively, it can be calculated using joint and marginal relative frequencies. As an example, the following data will be used.
Referring to the column totals, the left column of joint frequencies should be divided by 67 and the right column by 33. Furthermore, since the column totals are used, the sum of the conditional relative frequencies of each column is 1.
The resulting two-way frequency table can be interpreted to obtain the following information.
Using their two-way frequency table, Zain wants to continue improving the interpretation of their data by finding the conditional relative frequencies.
Zain will use the row totals to make the calculations.
Zain, really feeling close to being able to make some rock-solid interpretations, could still use a bit more help!
The table below shows the conditional relative frequencies.
Zain will now consider the two-way table that shows conditional relative frequencies obtained using row totals.
They want to calculate some conditional probabilities by using the table. Help Zain find these probabilities!
Likewise, the first cell of the second row shows the probability of a person being a night owl given that they aged 30 or older. Similarly, the second cell of the second row shows the probability of a person being an early bird given that they are aged 30 or older.
Paulina conducted a survey at Washington High. She asked 170 students whether they have cable TV and whether they took a vacation last summer. She displays the results in a two-way frequency table.
Using the table, Paulina wants to find out whether or not taking a vacation
and having cable TV
are independent events for this population of 170 students.
With this information, the probability of randomly choosing a student who took a vacation can be found.
Next, the probability that a random student who has cable TV took a vacation last summer P(A | B) will be found. The table shows that out of the 72 students who have cable TV, 41 took a vacation last summer.
Now, the probability of event A given event B can be found.
Comparing the found probabilities, it can be seen that they are not equal. P(A) & ≠ P(A|B) [0.5em] 0.33 & ≠ 0.57 This means that event B, a student having cable TV, affects event A, a student took a vacation last summer. Therefore, these events are not independent. Also, since P(A)< P(A|B), students with cable TV are more likely to have taken a vacation last summer.
At the beginning of the lesson, Zosia asked 50 students of North High School in Honolulu whether they prefer a chocolate bar or a piece of fruit as a lunchtime snack and whether they surf or not.
Letting A be the event that a student surfs and B the event that a student prefers a piece of fruit as a lunchtime snack, Zosia wants to calculate the following probabilities.
Next, the missing marginal frequencies can be calculated.
Now, two of the three missing joint frequencies can be calculated.
Finally, the last empty cell can be filled.
Now that the two-way table is complete, the desired probabilities can be found. Out of a total of 50 students, 42 surf and 28 prefer fruit as a lunch snack.
With this information, P(A) and P(B) can be calculated. c|c P(A) =42/50 & P(B)=28/50 ⇕ & ⇕ P(A)=21/25 & P(B)=14/25 Also, of the 28 students who prefer fruit, 27 surf. Likewise, of the 42 students who surf, 27 prefer fruit.
Knowing this, P(A|B) and P(B|A) can be calculated. c|c & P(B|A)=27/42 P(A|B)=27/28 & ⇕ & P(B|A)=9/14
Determine the contents of the cells labeled A through E.
Determine the contents of the cells labeled A through E.
Examining the two-way frequency table, we see that in the row and column containing the totals we only have one missing value. This means we can solve for both B and E. B+10=50 &⇔ B= 40 E+38=50 &⇔ E= 12 Let's add this to the two-way frequency table.
In the row describing a passing grade, now A is the only unknown. Similarly, in the column describing how many students did not study before the test, only D is unknown. This means we can find both A and D. A+6=40 &⇔ A= 34 6+D=12 &⇔ D= 6 Let's add this to the diagram.
We can determine C, too. 34+C=38 ⇔ C= 4 Now we can complete the two-way frequency table.
Let's summarize what we have found. A &→ 34 B &→ 40 C &→ 4 D &→ 6 E &→ 12
Here, A and D are the only unknowns in the Yes
and No
columns. Therefore, we can determine their values.
56+10=D &⇔ D= 66
A+7=49 &⇔ A= 42
Let's add this to the diagram.
Now we have enough information to calculate B, C, and E. 56+42=B &⇔ B= 98 10+7=C &⇔ C= 17 66+49=E &⇔ E= 115 With this information we can complete our table.
Let's summarize. A &→ 42 B &→ 98 C &→ 17 D &→ 66 E &→ 115
The joint frequencies in a two-way frequency table are the entries that are not the totals.
We know that Ignacio surveyed 190 men and 160 women, and from these 143 men and 130 women reported that they wash their hands regularly. Let's add this information to the two-way frequency table.
Now we can determine the unknown joint frequencies by subtracting the number of men and women answering Yes
from the totals in each of the corresponding rows. Let's label the number of men and women that answered No
as X and Y, respectively.
ccc
143+X=190 & ⇔ & X=47
130+Y=160 & ⇔ & Y=30
Let's add these results to the diagram.
We can see that the survey's lowest joint frequency is 30.
The marginal frequencies of a two-way frequency table are the sums of the rows and columns. In other words, we want to find the Total
of each category.
From the given information, we can identify two of the marginal frequencies. The total number of men surveyed is 190, and the total number of women surveyed is 160.
Now, let's calculate the marginal frequencies corresponding to Washes hands.
We can do this by adding the numbers in the Yes
and No
columns.
143+130&= 273
47+30&= 77
Let's add this to the information in our table.
We can see that lowest marginal frequency is 77.
In a two-way frequency table, the joint frequencies are the entries that are not the totals.
A joint relative frequency is the ratio of a joint frequency to the grand total. Therefore, to find the joint relative frequencies we need to divide each of the joint frequencies in the two-way frequency table by 100, which is the grand total. Joint Relative Frequencies [1em] A: 10/100=0.10 B: 24/100=0.24 [1em] D: 20/100=0.20 E: 46/100=0.46 [1em]
The marginal frequencies in a two-way frequency table are the totals of each row and column.
A marginal relative frequency is the ratio of the a marginal frequency to the grand total. Therefore, to find the marginal relative frequencies we need to divide each of the marginal frequencies in the table by 100, which is the grand total. Marginal Relative Frequencies [1em] G: 30/100=0.30 C: 34/100=0.34 [1em] H: 70/100=0.70 F: 66/100=0.66 [1em]
To calculate the probability that a student felt tired given that they had lunch, we will first make a two-way frequency table. After that, we will calculate the required conditional probability.
We know that there are 500 students at the school, therefore, this is our grand total. We also know that 40 out of the 430 students that had lunch reported that they felt tired and that 50 students who did not have lunch felt tired. Let's depict this information using a two-way frequency table. We will also label the empty cells using the letters A through E.
With the information known, we can set up equations to solve for the values of D, A, and C. 40+50&=D &&⇔ D=90 40+A&=430 &&⇔ A=390 430+C&=500 &&⇔ C=70 Let's add this information to the table.
We want to determine the conditional probability that a student felt tired given that they had lunch. P(felt tired|had lunch) This means that we are interested in the first row of the two-way frequency table.
Calculating the required conditional probability is equivalent to calculating the conditional relative frequency of the students who had lunch
and felt tired
by using the marginal frequency of students who had lunch.
The total number of students who had lunch is 430, and the number of students who felt tired and had lunch is 40.
The probability that a student felt tired given that they had lunch is about 9 %.
Now we are interested in the probability that a student did not have lunch given that they did not feel tired. Let's go back to our two-way frequency table.
Since the rest of the totals and the grand total are now known from the previous part, we can set up equations for B and E. 50+B&=70 &&⇔ B=20 90+E&=500 &&⇔ E=410 Let's add this information to the diagram.
We want to determine the conditional probability that a student did not have lunch given that they did not feel tired. P(no lunch|not tired) Since our population this time is the students who did not feel tired, we are only interested in the second column of the two-way table.
Calculating the required probability is equivalent to calculating the conditional relative frequency of the students who did not have lunch and did not feel tired by using the marginal frequency of students who did not feel tired. The total number of students who did not feel tired is 410. The joint frequency of students who did not have lunch and did not feel tired is 20.
The probability that a student did not have lunch given that the student did not feel tired is about 5 %.