Exercises: Contingency tables
In a high school, a survey has been carried out among the $100$ 11th grade students about their preferred social network. The data have started to be organized in the…
In a high school, a survey has been carried out among the $100$ 11th grade students about their preferred social network. The data have started to be organized in the following contingency table, but some values are missing.
| TikTok | Total | ||
|---|---|---|---|
| Girls | $35$ | $55$ | |
| Boys | $20$ | ||
| Total | $100$ |
Copy the table into your notebook and complete it by finding the missing absolute frequencies.
A video game store has recorded the sales from the last morning according to the type of console and the game format. $12$ Nintendo Switch games were sold in physical…
A video game store has recorded the sales from the last morning according to the type of console and the game format. $12$ Nintendo Switch games were sold in physical format and $8$ in digital format. For the PlayStation 5, $15$ were sold in physical format and $10$ in digital format.
Organize this information into a two-way table (contingency) including the marginal frequencies (the totals for each row and column).
A group of $50$ people have been asked if they play sports regularly and if they are smokers. The results are shown in the following table: | | Athlete | Non-athlete |…
A group of $50$ people have been asked if they play sports regularly and if they are smokers. The results are shown in the following table:
| Athlete | Non-athlete | Total | |
|---|---|---|---|
| Smoker | $5$ | $15$ | $20$ |
| Non-smoker | $25$ | $5$ | $30$ |
| Total | $30$ | $20$ | $50$ |
Calculate the joint relative frequency table. (Express each value as the result of dividing the absolute frequency by the total sample $N=50$).
From the previous table about athletes and smokers, answer the following questions: a) What is the marginal frequency of "Athletes"? What percentage do they represent of…
From the previous table about athletes and smokers, answer the following questions:
- a) What is the marginal frequency of "Athletes"? What percentage do they represent of the total?
- b) What is the marginal frequency of "Non-smokers"? What percentage do they represent of the total?
In a courier company, the mode of transportation used by its workers is analyzed according to their place of residence: | | Lives in city | Lives outside | Total |…
In a courier company, the mode of transportation used by its workers is analyzed according to their place of residence:
| Lives in city | Lives outside | Total | |
|---|---|---|---|
| Public Transportation | $40$ | $10$ | $50$ |
| Own Vehicle | $20$ | $30$ | $50$ |
| Total | $60$ | $40$ | $100$ |
If we randomly choose a worker who lives in the city, what is the relative frequency that they use public transportation? (Calculate the conditional frequency).
A study has been carried out on the use of glasses in a class of $30$ students. We know there are $16$ girls, of which $4$ wear glasses. We also know that in total there…
A study has been carried out on the use of glasses in a class of $30$ students. We know there are $16$ girls, of which $4$ wear glasses. We also know that in total there are $10$ students (boys and girls) who wear glasses.
Complete the contingency table and determine how many boys do not wear glasses.
A movie theater analyzes the preference for popcorn (salted or sweet) according to the type of movie (animation or horror). | | Animation | Horror | Total |…
A movie theater analyzes the preference for popcorn (salted or sweet) according to the type of movie (animation or horror).
| Animation | Horror | Total | |
|---|---|---|---|
| Salty | $24$ | $36$ | $48$ |
| Sweet | $56$ | $16$ | $72$ |
| Total | $80$ | $52$ | $132$ |
Observe the table and answer:
- a) What is the majority preference (mode) among viewers of animated movies?
- b) What percentage of viewers who prefer sweet popcorn have gone to see a horror movie?
Given the following relative frequency table on reading habits and the use of libraries: | | Reads a lot | Reads little | Total | |---|---|---|---| | Uses Library |…
Given the following relative frequency table on reading habits and the use of libraries:
| Reads a lot | Reads little | Total | |
|---|---|---|---|
| Uses Library | $0,25$ | $0,05$ | $0,30$ |
| Does not use Library | $0,15$ | $0,55$ | $0,70$ |
| Total | $0,40$ | $0,60$ | $1,00$ |
If the total sample is $200$ people, calculate how many people belong to the category of those who "Read a lot" and "Do not use the library".
In a study on digital content consumption among 200 teenagers, the preferred platform for watching shows and movies according to the main access device has been…
In a study on digital content consumption among 200 teenagers, the preferred platform for watching shows and movies according to the main access device has been analysed. The data collected are as follows: 65 mainly use a mobile phone (of which 40 prefer TikTok and the rest Netflix), 85 use a computer (50 prefer Netflix and the rest YouTube) and 50 use a Smart TV (35 prefer Netflix and the rest YouTube).
a) Organise the information into an absolute frequency contingency table relating the variables "Device" and "Platform".
b) Calculate the marginal frequencies of each variable.
c) What percentage of the total teenagers prefer Netflix?
A survey has been carried out among the students of a school about their favorite extracurricular activity (Sports or Music), differentiated by educational level (Grade…
A survey has been carried out among the students of a school about their favorite extracurricular activity (Sports or Music), differentiated by educational level (Grade $1^\circ$ or $2^\circ$). The results are shown in the following incomplete table:
| Year | Sports | Music | Total |
|---|---|---|---|
| Grade $1^\circ$ | $42$ | $70$ | |
| Grade $2^\circ$ | $24$ | ||
| Total | $78$ | $130$ |
a) Complete the missing values in the contingency table.
b) If we choose a student at random from $2^\circ$ of high school, what is the probability that their favorite activity is Sports?
c) Among the students who prefer Music, what percentage belongs to $1^\circ$ of high school?
To investigate the relationship between the use of Artificial Intelligence (AI) for homework and academic performance, $150$ students have been surveyed. The data show…
To investigate the relationship between the use of Artificial Intelligence (AI) for homework and academic performance, $150$ students have been surveyed. The data show that $60$ students use AI frequently, of which $15$ have excellent grades. On the other hand, of the students who do not use AI, $45$ have excellent grades.
a) Construct the relative frequency table with respect to the total.
b) Calculate the distribution of the variable "Use of AI" conditional on having "Excellent grades".
c) Can we state that the variables are independent? Justify your answer by comparing a joint relative frequency with the product of the corresponding marginals.
A video game company wants to know if the type of console users own is related to their subscription to premium services. $300$ users are analyzed: | Subscription |…
A video game company wants to know if the type of console users own is related to their subscription to premium services. $300$ users are analyzed:
| Subscription | Console A | Console B | Console C |
|---|---|---|---|
| Premium | $45$ | $60$ | $15$ |
| Basic | $75$ | $90$ | $15$ |
a) Find the relative frequency table conditional on columns (type of console).
b) In light of the results from the previous section, on which console is it most frequent to find a user with a Premium subscription?
c) Represent the distribution of the subscription according to the type of console using a stacked bar chart.
In a sports club, $60\%$ of the members are men and $40\%$ are women. It is known that $30\%$ of the men swim, while $55\%$ of the women swim. The rest of the members…
In a sports club, $60\%$ of the members are men and $40\%$ are women. It is known that $30\%$ of the men swim, while $55\%$ of the women swim. The rest of the members play tennis.
a) If the club has a total of $500$ members, construct the absolute frequency contingency table.
b) Calculate the marginal relative frequency of the members who play tennis.
c) What is the majority profile in the club (combination of gender and sport)?
The reading habits of a group of people are analyzed according to their level of education. The data are presented in this relative frequency table with respect to the…
The reading habits of a group of people are analyzed according to their level of education. The data are presented in this relative frequency table with respect to the total sample:
| Education | Reads daily | Reads occasionally | Does not read |
|---|---|---|---|
| High School | $0,12$ | $0,18$ | $0,10$ |
| College | $0,25$ | $0,20$ | $0,05$ |
a) Calculate the marginal relative frequencies of the variable "Education".
b) If we know that a person never reads, what is more probable: that they have a high school or college education? Reason by comparing the corresponding conditional frequencies.
c) If the total sample were $400$ people, how many of them would be college educated and read occasionally?
A study has been carried out on the preference for diet type (Omnivorous or Vegetarian) depending on the area of residence (Urban or Rural). The following data have been…
A study has been carried out on the preference for diet type (Omnivorous or Vegetarian) depending on the area of residence (Urban or Rural). The following data have been obtained:
| Residence | Omnivorous | Vegetarian | Total |
|---|---|---|---|
| Urban | $120$ | $80$ | $200$ |
| Rural | $90$ | $10$ | $100$ |
| Total | $210$ | $90$ | $300$ |
a) Calculate the relative frequency table by rows.
b) Is there a dependence between the area of residence and the type of diet? Compare the conditional distributions of diet for urban and rural residents.
c) What value should the frequency of "Rural-Vegetarian" have for the variables to be independent, maintaining the marginal totals for residence?
A high school wants to analyze whether the use of public transportation to go to class depends on the distance to the school. $120$ students are classified into "Near"…
A high school wants to analyze whether the use of public transportation to go to class depends on the distance to the school. $120$ students are classified into "Near" ($< 2$ miles) and "Far" ($\geq 2$ miles).
a) Complete the table knowing that $25\%$ of the students live near, and that of the students who live far, $80\%$ use public transportation. Furthermore, no student who lives near uses public transportation.
b) Find the relative frequency table with respect to the total.
c) Calculate the relative frequency of "living far" conditional on "not using public transportation".
A study on the impact of social networks on the emotional well-being of 11th grade teenagers has classified a sample of 200 students according to their daily screen time…
A study on the impact of social networks on the emotional well-being of 11th grade teenagers has classified a sample of 200 students according to their daily screen time and their self-reported level of life satisfaction. The incomplete data obtained are as follows:
-
40% of the total sample reports a "Low" life satisfaction.
-
Among those who use social networks for "More than 3 hours", 60% present a "Low" life satisfaction.
-
There are 50 students who use social networks for "Less than 1 hour", of which only 10% have a "Low" satisfaction.
-
The number of students with "High" satisfaction who use social networks for "Between 1 and 3 hours" is twice that of those with "High" satisfaction with "More than 3 hours".
-
In total, 70 students use social networks for "Between 1 and 3 hours".
From this information:
- a) Reconstruct the complete contingency table with the absolute frequencies.
- b) Calculate the distribution of the variable "Life Satisfaction" conditional on each of the levels of "Screen time".
- c) Can we state that the variables are independent? Justify your answer by comparing the conditional relative frequencies.
A technology consultancy analyzes the relationship between the use of Artificial Intelligence (AI) in studying and the mean grade in a sample of students. It is known…
A technology consultancy analyzes the relationship between the use of Artificial Intelligence (AI) in studying and the mean grade in a sample of students. It is known that:
-
$30\%$ of the students never use AI.
-
$25\%$ of the students have a mean grade of "Excellent".
-
The probability that a student has an "Excellent" grade given that they use AI regularly is $0,4$.
-
The total sample size is 400 students.
-
It has been observed that the events "Having an Excellent grade" and "Never using AI" are independent.
Calculate:
- a) The number of students who never use AI and have an Excellent grade.
- b) The probability that a student uses AI regularly given that their grade is not Excellent.
- c) Complete the contingency table by dividing the sample into two usage categories (AI / No AI) and two grade categories (Excellent / Rest).
A health center is investigating the relationship between playing federated sports and the type of injuries suffered by young people. We have the following table of…
A health center is investigating the relationship between playing federated sports and the type of injuries suffered by young people. We have the following table of relative frequencies conditional on columns (type of sport):
| Injury / Sport | Basketball ($D_1$) | Soccer ($D_2$) | Athletics ($D_3$) |
|---|---|---|---|
| Muscular ($L_1$) | $0,30$ | $0,55$ | $0,40$ |
| Bone ($L_2$) | $0,70$ | $0,45$ | $0,60$ |
If we know that $40\%$ of the young people in the sample play soccer, $35\%$ play basketball and the rest do athletics:
- a) Find the joint relative frequency table.
- b) Calculate the probability that a randomly chosen young person plays basketball given that they have suffered a bone injury.
- c) In which sport is it most probable to suffer a muscular injury? Does the answer change if we analyse the absolute frequencies with respect to the total population? Justify your answer.
A city council wants to promote the use of sustainable transport. After surveying 500 citizens about their main mode of transport ($X$) and their age group ($Y$), the…
A city council wants to promote the use of sustainable transport. After surveying 500 citizens about their main mode of transport ($X$) and their age group ($Y$), the following marginal frequency data have been obtained:
-
$n_{Bus} = 180$; $n_{Bici} = 120$; $n_{Coche} = 200$.
-
$n_{Joven} = 150$; $n_{Adulto} = 250$; $n_{Senior} = 100$.
Furthermore, the following information is known:
-
$60\%$ of those who use a bike are young.
-
Seniors do not use a bike at all.
-
$50\%$ of car users are adults.
-
The events "Being a Bus user" and "Being an Adult" have a joint absolute frequency of 90 people.
- a) Determine the complete absolute frequency table.
- b) Study the dependence between age and car use by comparing the marginal and conditional distributions.
- c) What is the most frequent transport profile for a Senior citizen?
The labor market for recent graduates in a region is analysed. The variables are "Type of Education" ($X$: University or Vocational Training) and "Employment Status"…
The labor market for recent graduates in a region is analysed. The variables are "Type of Education" ($X$: University or Vocational Training) and "Employment Status" ($Y$: Employed, Unemployed or Internship). Some records from a sample of 1,000 individuals have been lost, but the distributions conditional on rows (Type of Education) are preserved:
| $X \setminus Y$ | Employed | Unemployed | Internship |
|---|---|---|---|
| University | $0,65$ | $0,10$ | $0,25$ |
| Vocational Training | $0,75$ | $0,15$ | $0,10$ |
Knowing that the marginal frequency of "Employed" is 690 people:
- a) Calculate how many individuals in the sample have a university education and how many have vocational training.
- b) Determine the distribution of the variable "Type of Education" conditional on being "Unemployed".
- c) If a company is looking for profiles for an internship contract, in which education group will it find a greater absolute number of candidates according to this study?
A sociological study on reading habits analyses the relationship between the preferred format (Paper, E-book, Audio) and the number of books read per year (Fewer than 5,…
A sociological study on reading habits analyses the relationship between the preferred format (Paper, E-book, Audio) and the number of books read per year (Fewer than 5, Between 5 and 12, More than 12).
It is known that in the sample:
-
The "Paper" format is preferred by $50\%$ of readers.
-
The "Audio" format is the least frequent, with only $10\%$.
-
Among "E-book" readers, the three categories for the number of books have the same relative frequency ($1/3$ each).
-
The event "Reading more than 12 books" is independent of the "Paper" format, and it is known that $20\%$ of total readers read more than 12 books.
-
$10\%$ of the total sample are "Paper" readers who read "Fewer than 5" books.
-
None of the "Audio" users read fewer than 5 books per year.
Find:
- a) The joint relative frequency table.
- b) The distribution of the number of books read conditional on "Audio" users, knowing that none of them read fewer than 5 books a year.
- c) What percentage of readers who read "Between 5 and 12" books prefer the Paper format?
In a study on streaming music consumption among teenagers, two platforms ($A$ and $B$) and the account type (Free or Premium) are compared. The percentage data indicate:…
In a study on streaming music consumption among teenagers, two platforms ($A$ and $B$) and the account type (Free or Premium) are compared.
The percentage data indicate:
-
$60\%$ of users use platform $A$.
-
$70\%$ of users of platform $B$ have a Free account.
-
In the total sample, the percentage of Premium accounts is $40\%$.
- a) Calculate the percentage of users of platform $A$ who have a Premium account.
- b) If we choose a user with a Premium account, what is the probability that they belong to platform $B$?
- c) Determine if there is independence between the chosen platform and the account type. Justify numerically.
An e-commerce platform wants to analyse customer loyalty. It is recorded whether the customer has made a purchase in the last month ($C$) and whether they are subscribed…
An e-commerce platform wants to analyse customer loyalty. It is recorded whether the customer has made a purchase in the last month ($C$) and whether they are subscribed to the Newsletter ($S$). The data from a sample of 1,000 customers are:
-
$35\%$ of customers have made a purchase in the last month.
-
Of those who have not made a purchase, $80\%$ are not subscribed to the Newsletter.
-
The probability of having made a purchase in the last month given that they receive the Newsletter is $0,6$.
- a) Create the absolute frequency contingency table.
- b) If a customer is not subscribed to the Newsletter, what is the probability that they have made a purchase in the last month?
- c) An analyst states: "The Newsletter triples the probability of purchase". Based on the conditional relative frequencies, confirm or refute this statement with precise calculations.