Sign In
Bivariate categorical data provides insights into relationships between two categorical variables. Within this realm, understanding joint and marginal relative frequencies is crucial. These frequencies help analysts discern patterns and relationships in a data set. The joint relative frequency measures the proportion of occurrences of a specific combination of two categories. On the other hand, marginal relative frequencies focus on a single category, disregarding the other variable. Moreover, conditional relative frequency comes into play when we are keen to understand the proportion of a category given that another specific category has occurred. With these tools, researchers and analysts can derive meaningful conclusions and make informed decisions.
Show less Show more expand_more| Student Learning Objectives: |
|---|
|
| | 11 Theory slides |
| | 8 Exercises - Grade E - A |
| | Each lesson is meant to take 1-2 classroom sessions |
Paulina loves dramas and wants to know what her classmates think about them. She decided to conduct a survey asking 50 students if they enjoy watching dramas. Paulina also noted if her classmates were 16 years and under or older than 16. Paulina wrote her findings in a notebook.
How can these results be displayed in a single table?
Is there an association between classmates who enjoying dramas and their age?
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.
How to make two-way frequency tables and interpret the information presented in those tables has been shown. Next, how to recognize associations in data that come from a two-way table will be discussed.
Studying the conditional relative frequencies of a two-way frequency table, it is possible to find potential associations in the data. As an example, the following survey results will be analyzed.
First, the conditional relative frequencies can be found by dividing each joint frequency by the corresponding column's marginal frequency.
As can be seen, 64% of people with a driver's license own a car, while 88% of people without a drivers license do not own a car. Therefore, an association between having a driver's license and owning a car might exist. On the other hand, finding the conditional relative frequencies using the row's marginal frequencies gives a slightly different result.
As can be seen, among car owners, almost everyone has a driver's license. Meanwhile, among the people who do not own a car, roughly half have a driver's license. This observation shows that car ownership is associated with having a driver's license, while not owning a car is not associated with not having a driver's license. Car &⇒ Driver's license ✓ No car & ⇒ No driver's license * Consider a different two-way frequency table that illustrates a stronger association when using the marginal frequencies of only one variable.
A person's bed time might be dependent on their age, but their age is not dependent on their bed time. Because of this, it is recommended to use the age's marginal frequencies when finding the conditional relative frequencies. This gives the distribution of bed time given a certain age span.
The challenge at the beginning of this lesson showed the following information that Paulina gathered when she conducted a survey at her school.
The following challenge questions were then asked.
How can these results be displayed in a single table?
Is there an association between a student enjoying watching dramas and their age?
Yes, younger students are more likely to watch dramas.
Use a two-way frequency table.
Analyze the conditional relative frequencies.
A two-way frequency table can be used to display the given information using a single table. Whether the students enjoy dramas or not and their age ranges can be chosen as the two main categories of the table. The data Paula collected can then be entered into the appropriate cells.
The conditional relative frequencies of the data can be found and analyzed to help determine if the data values are related. Begin by calculating the marginal frequencies. Add the joint frequencies of each row and each column of the table to the Total's row and column, respectively.
First, focus on the cells related directly to the student's age. There are 20 students under the age of 16 and there are 30 students who are 16 or older. These marginal frequency totals occur regardless of the student's interest in dramas.
Next, divide each joint frequency by the corresponding marginal frequency related to age.
The table shows that 70% of the students 16 years old or younger watch dramas. Whereas, only 13% of the students older than 16 watch dramas. A similar analysis can be done with the marginal frequencies according to the Yes
or No
rows.
Using the marginal frequencies of 18 and 32, make the necessary calculations.
The results indicate that there are associations between watching dramas and a student's age. It is seen that 80% of the students under 16 watch dramas. Whereas, 80% of students 16 or older do not watch dramas.
While Paula feels excellent about her interpretations of the data, she knows that these associations are limited to this survey's sample. Her interpretations apply only to her classmates who joined the survey, not how everyone at the school feels about dramas.
The two-way table displays the results of a survey that asked students what their favorite sport is.
| Baseball | Basketball | Volleyball | Football | |
|---|---|---|---|---|
| Man | 17 | 20 | 15 | 30 |
| Woman | 23 | 19 | 32 | 11 |
Given that a student prefers volleyball, what is the conditional relative frequency that the student is a man? Round the answer to three decimal places.
A conditional relative frequency is the ratio of a joint frequency to a marginal frequency. Consider the given frequency table.
| Baseball | Basketball | Volleyball | Football | |
|---|---|---|---|---|
| Man | 17 | 20 | 15 | 30 |
| Woman | 23 | 19 | 32 | 11 |
Let's pay close attention to the students who prefer volleyball. Since volleyball is a column category, we can start by finding the marginal frequencies of the columns. This is done by adding the joint frequencies on each column.
| Baseball | Basketball | Volleyball | Football | |
|---|---|---|---|---|
| Men | 17 | 20 | 15 | 30 |
| Women | 23 | 19 | 32 | 11 |
| Total | 17 + 23 40 | 20 + 19 39 | 15 + 32 47 | 30 + 11 41 |
We can find the conditional relative frequencies by dividing each joint frequency by the marginal frequency on the corresponding column.
| Baseball | Basketball | Volleyball | Football | |
|---|---|---|---|---|
| Men | 17÷ 40 0.425 | 20÷ 39 0.513 | 15÷ 47 0.319 | 30÷ 41 0.732 |
| Women | 23÷ 40 0.575 | 19÷ 39 0.487 | 32÷ 47 0.681 | 11÷ 41 0.268 |
| Total | 40 | 39 | 47 | 41 |
Given that a student prefers volleyball, looking at the table we see that the conditional relative frequency that this student is a man is 0.319.
The graph shows the results of a survey that asked students about their favorite series genre.
The information can be displayed in a two-way table.
| Comedy | Drama | Crime | |
|---|---|---|---|
| Male | A | B | C |
| Female | D | E | F |
Below, write the joint frequencies A, B, C, D, E, and F in that order.
We will begin by looking at the graph that shows the results of a survey that asked students about their favorite movie genre.
From the graph, we know that 60 students like comedy series, of which 40 are male and 20 are female. Additionally, 70 like drama series, of which 30 are male and 40 are female. Finally, 40 like crime series, of which 20 are male and 20 are female. These are the joint frequencies of the two-way table.
| Comedy | Drama | Crime | |
|---|---|---|---|
| Male | 40 | 30 | 20 |
| Female | 20 | 40 | 20 |
Finally, we can write the joint frequencies in the given order. Let's do it! 40,30,20,20,40,20