Exercises: Bayes' Theorem
On a streaming* platform, $60\,\%$ of the series are in-house productions, while the rest are from external production companies. It is known that $15\,\%$ of the…
On a streaming platform, $60\,\%$ of the series are in-house productions, while the rest are from external production companies. It is known that $15\,\%$ of the in-house series are of the science fiction genre, whereas in the external ones this percentage rises to $25\,\%$. If we choose a series at random and it turns out to be science fiction, what is the probability that it is an in-house production of the platform?
A sneaker brand manufactures its models in two different factories: $70\,\%$ in factory $A$ and $30\,\%$ in factory $B$. Quality control has detected that $2\,\%$ of the…
A sneaker brand manufactures its models in two different factories: $70\,\%$ in factory $A$ and $30\,\%$ in factory $B$. Quality control has detected that $2\,\%$ of the sneakers from factory $A$ have some stitching defect, whereas in factory $B$ defects appear in $5\,\%$ of the production. A customer buys a pair of sneakers and discovers they have a stitching defect. Calculate the probability that they were manufactured in factory $B$.
In a high school, $40\,\%$ of the 12th grade students are in the Science track and $60\,\%$ in Social Sciences. It has been observed that $85\,\%$ of the Science…
In a high school, $40\,\%$ of the 12th grade students are in the Science track and $60\,\%$ in Social Sciences. It has been observed that $85\,\%$ of the Science students and $90\,\%$ of the Social Sciences students pass English class. If we choose a student at random who is known to have passed English, what is the probability that they belong to the Science track?
An influencer* distributes their posts between two social networks: Instagram ($75\,\%$) and TikTok ($30\,\%$). It is known that $40\,\%$ of their photos on Instagram…
An influencer distributes their posts between two social networks: Instagram ($75\,\%$) and TikTok ($30\,\%$). It is known that $40\,\%$ of their photos on Instagram receive more than 10,000 "likes", whereas on TikTok only $20\,\%$ of their videos exceed that figure. If we receive a notification that one of their posts has exceeded 10,000 "likes", what is the probability that it is a TikTok video?
A test to detect a food allergy gives a positive result in $98\,\%$ of the people who actually suffer from the allergy. However, it also gives a "false positive"…
A test to detect a food allergy gives a positive result in $98\,\%$ of the people who actually suffer from the allergy. However, it also gives a "false positive" (positive without having the allergy) in $4\,\%$ of healthy people. We know that in a population $10\,\%$ of the people are allergic. If a person chosen at random tests positive, calculate the probability that they are actually allergic.
A video game store sells consoles of two brands: "N-Switch" and "PlayPro". $65\,\%$ of the sales are of PlayPro and the rest are N-Switch. The technical service reports…
A video game store sells consoles of two brands: "N-Switch" and "PlayPro". $65\,\%$ of the sales are of PlayPro and the rest are N-Switch. The technical service reports that $3\,\%$ of the PlayPros are returned due to a factory defect, whereas for the N-Switch the return percentage is $2\,\%$. If a customer returns a defective console, what is the probability that it is a PlayPro?
To get to school, a student can go by bus ($80\,\%$ of the time) or by bicycle ($20\,\%$). When they go by bus, they arrive late $10\,\%$ of the days due to traffic.…
To get to school, a student can go by bus ($80\,\%$ of the time) or by bicycle ($20\,\%$). When they go by bus, they arrive late $10\,\%$ of the days due to traffic. When they go by bicycle, they only arrive late $5\,\%$ of the time. If one day the student arrives late to class, calculate the probability that they went by bus.
In a software development company, $70\,\%$ of the programmers use the Python language and $30\,\%$ use Java. It is estimated that $10\,\%$ of code written in Python…
In a software development company, $70\,\%$ of the programmers use the Python language and $30\,\%$ use Java. It is estimated that $10\,\%$ of code written in Python contain critical syntax errors, whereas in Java this percentage is $15\,\%$. If a critical syntax error is detected in a code snippet, what is the probability that it was programmed in Python?
At a health center, a study is being carried out on the effectiveness of a diagnostic test for a food allergy that affects $8\,\%$ of the youth population. Clinical data…
At a health center, a study is being carried out on the effectiveness of a diagnostic test for a food allergy that affects $8\,\%$ of the youth population. Clinical data indicates that, if a person suffers from the allergy, the test is positive in $95\,\%$ of cases. On the other hand, if the person does not suffer from the allergy, the test gives a "false positive" (positive result without having the allergy) on $4\,\%$ of occasions. If a young person is chosen at random and their test result is positive, calculate the probability that they actually suffer from the allergy.
A social network uses an artificial intelligence algorithm to detect hate comments. It is known that $5\,\%$ of the published comments are actually inappropriate. The…
A social network uses an artificial intelligence algorithm to detect hate comments. It is known that $5\,\%$ of the published comments are actually inappropriate. The algorithm correctly identifies as "inappropriate" $98\,\%$ of the comments that actually are. However, it mistakenly labels as "inappropriate" $3\,\%$ of the comments that are respectful. If the system has just blocked a comment for marking it as "inappropriate", what is the probability that the comment was actually respectful?
A last-mile logistics company distributes packages in a city using three types of vehicles: electric vans ($60\,\%$), motorcycles ($30\,\%$) and cargo bicycles…
A last-mile logistics company distributes packages in a city using three types of vehicles: electric vans ($60\,\%$), motorcycles ($30\,\%$) and cargo bicycles ($10\,\%$). The probability of a package arriving late is $2\,\%$ if it is delivered by van, $5\,\%$ if by motorcycle and $8\,\%$ if by bicycle. If a customer calls to complain because their package has arrived late, what is the probability that the delivery person was on a cargo bicycle?
In a college entrance exam preparation academy, $40\,\%$ of the students are enrolled in the Science group, $35\,\%$ in the Social Sciences group and $25\,\%$ in the…
In a college entrance exam preparation academy, $40\,\%$ of the students are enrolled in the Science group, $35\,\%$ in the Social Sciences group and $25\,\%$ in the Humanities group. At the end of the course, $92\,\%$ of the Science students, $88\,\%$ of the Social Sciences students and $80\,\%$ of the Humanities students have passed the entrance exam. If a student from the center is chosen at random who we know has passed the exam, calculate the probability that they belong to the Social Sciences group.
A manufacturer of electronic components for smartphones has three production lines: A, B and C. Line A produces $45\,\%$ of the components, B $30\,\%$ and C $25\,\%$. It…
A manufacturer of electronic components for smartphones has three production lines: A, B and C. Line A produces $45\,\%$ of the components, B $30\,\%$ and C $25\,\%$. It is known that the probability of a component being defective is $1\,\%$ on line A, $2\,\%$ on line B and $3\,\%$ on line C. If a component is selected at random and turns out to be defective, determine with reasoning which production line is most likely to have manufactured it.
In a city, $70\,\%$ of citizens use a mobile application to pay for public transportation, whereas the rest use a physical card. It is observed that $15\,\%$ of those…
In a city, $70\,\%$ of citizens use a mobile application to pay for public transportation, whereas the rest use a physical card. It is observed that $15\,\%$ of those who use the application have reading problems at the scanner, compared to $5\,\%$ of those who use a physical card. If a scanner emits a reading error signal, what is the probability that the user is trying to pay with the mobile application?
A recycling center processes containers coming from two districts of the city, North and South. $60\,\%$ of the containers come from the North district. At the…
A recycling center processes containers coming from two districts of the city, North and South. $60\,\%$ of the containers come from the North district. At the processing plant, it is detected that $10\,\%$ of the containers from the North are incorrectly sorted by citizens, whereas in the South district this percentage rises to $15\,\%$. If the conveyor belt operator selects a container at random and checks that it is correctly sorted, what is the probability that it comes from the North district?
An e-sports team plays its tournament matches under two network conditions: "Low Latency" ($P=0,75$) and "High Latency" ($P=0,25$). When the latency is low, the team…
An e-sports team plays its tournament matches under two network conditions: "Low Latency" ($P=0,75$) and "High Latency" ($P=0,25$). When the latency is low, the team wins $80\,\%$ of its matches. However, if the latency is high, its probability of winning drops to $40\,\%$. Knowing that the team has just won a match, what is the probability that they were playing with high latency?
A multinational technology company uses three different suppliers for the microchips in its new gaming* laptops. Supplier $A$ provides $45\%$ of the chips, supplier $B$…
A multinational technology company uses three different suppliers for the microchips in its new gaming laptops. Supplier $A$ provides $45\%$ of the chips, supplier $B$ provides $35\%$, and the rest come from supplier $C$. It is known from previous quality controls that $1\%$ of the chips from $A$ are defective, whereas for $B$ and $C$ these percentages are $2\%$ and $3\%$, respectively. A user buys a laptop and, after a month of use, suffers a critical failure due to the microchip. Calculate the probability that the defective chip was supplied by supplier $B$.
A social network's algorithm classifies content into three categories: "Viral" ($15\%$), "Trending" ($35\%$) and "Standard" ($50\%$). The probability of a user stopping…
A social network's algorithm classifies content into three categories: "Viral" ($15\%$), "Trending" ($35\%$) and "Standard" ($50\%$). The probability of a user stopping their scroll and watching a full video is $80\%$ if it is Viral, $40\%$ if it is Trending and only $10\%$ if it is Standard. If we observe that a user has just finished watching a video completely, what is the probability that the algorithm had not originally classified it as Viral?
At a high-performance sports center, a detection test for a banned substance is carried out. It is known that only $0,5\%$ of the athletes consume this substance. The…
At a high-performance sports center, a detection test for a banned substance is carried out. It is known that only $0,5\%$ of the athletes consume this substance. The test has a reliability such that it tests positive in $96\%$ of the cases where the athlete has consumed the substance (sensitivity). However, the test also yields $2\%$ of "false positives" in clean athletes. If an athlete tests positive, calculate the probability that they are actually innocent and have not consumed the substance.
A courier company uses electric ($60\%$) and combustion ($40\%$) vans. It has been observed that $5\%$ of the trips made by electric vans suffer delays due to the need…
A courier company uses electric ($60\%$) and combustion ($40\%$) vans. It has been observed that $5\%$ of the trips made by electric vans suffer delays due to the need for intermediate recharging, whereas delays in combustion vans occur in $8\%$ of cases due to traffic problems. Knowing that a package has arrived late, determine the probability that it was transported by an electric van.
Three streaming* channels ($N$, $H$ and $D$) share the subscriber market in a city in proportions of $40\%$, $30\%$ and $30\%$, respectively. The probability of a…
Three streaming channels ($N$, $H$ and $D$) share the subscriber market in a city in proportions of $40\%$, $30\%$ and $30\%$, respectively. The probability of a subscriber to $N$ canceling their subscription this month is $0,05$; for $H$ it is $0,08$ and for $D$ it is $0,12$. If we choose at random a citizen who has just canceled their subscription to one of these channels, what is the probability that they were a customer of $D$?
A biometric security system uses facial recognition or fingerprint. The face is used $70\%$ of the time and the fingerprint $30\%$. The system fails to identify an…
A biometric security system uses facial recognition or fingerprint. The face is used $70\%$ of the time and the fingerprint $30\%$. The system fails to identify an authorized user $2\%$ of the time with the face and $1\%$ with the fingerprint. On the other hand, it allows access to an intruder $0,5\%$ of the time with the face and $0,1\%$ with the fingerprint. Knowing that the system has denied access to an authorized user, calculate the probability that they were trying to enter using facial recognition.
In a study on reading habits in teenagers, the sample was divided into three groups according to daily screen time: Low ($20\%$), Medium ($50\%$) and High ($30\%$). The…
In a study on reading habits in teenagers, the sample was divided into three groups according to daily screen time: Low ($20\%$), Medium ($50\%$) and High ($30\%$). The probability of a young person in the Low group reading at least one book a month is $0,7$; for the Medium group it is $0,4$ and for the High group it is $0,15$. If we select a teenager at random and they claim not to have read any books in the last month, calculate the probability that they belong to the "High" screen consumption group.
A factory has two machines, $M_1$ and $M_2$, which produce the same part. $M_1$ produces three times as many parts as $M_2$. The percentage of defective parts from $M_1$…
A factory has two machines, $M_1$ and $M_2$, which produce the same part. $M_1$ produces three times as many parts as $M_2$. The percentage of defective parts from $M_1$ is $k\%$ and from $M_2$ is $4\%$. It is known that if a part is chosen at random and turns out to be defective, the probability that it comes from machine $M_2$ is $4/13$. Calculate the value of $k$ and, subsequently, the probability that a randomly chosen part is defective.