Data Interview Qs - Selecting eggs from the grocery store

InterviewQs

Selecting eggs from the grocery store

Statistics Probability Theory Bayes' Theorem Conditional Probability

Forward this email to a friend or colleague and challenge them to solve it.

Hi, 

Suppose you’re at the grocery store looking to buy some eggs. Each egg carton holds 12 eggs. You’re given the following information regarding the state of the eggs inside:

  • There is a 60% chance that all the eggs are unbroken
  • There is a 30% chance that exactly one egg is broken
  • There is a 10% chance that exactly two eggs are broken

You buy a carton of eggs, and take out your first egg only to discover that it’s broken. Given this, what’s the probability that there is one additional broken egg in the holder?


 

You’ve accumulated 270 questions since joining our email list. Create a premium account to access detailed solutions to each problem (including this one) + our new Case studies.


Was this email forwarded to you? You can join our list here to receive questions

How did you like today's question?

15411 Boischatel, Montreal, QC, H9H1Y7, Canada
Don't want to get these emails anymore? We'll forgive you if you unsubscribe

Older messages

Flagging increasing stock prices in SQL

Monday, March 21, 2022

SQL, Database Querying, Window Function, Subquery, InterviewQs Flagging increasing stock prices in SQL SQL Database Querying Window Function Subquery Forward this email to a friend or colleague and

Large numbers in a raffle

Friday, March 18, 2022

Statistics, Probability Theory, Binomial, InterviewQs Large numbers in a raffle Statistics Probability Theory Binomial Forward this email to a friend or colleague and challenge them to solve it. Hi,

Happiness score correlation

Wednesday, March 16, 2022

Python, Arrays, Data Structures, Statistics, InterviewQs Happiness score correlation Python Arrays Data Structures Statistics Forward this email to a friend or colleague and challenge them to solve it.

Maximum revenue from a given ID

Monday, March 14, 2022

SQL, Database Querying, InterviewQs Maximum revenue from a given ID SQL Database Querying Forward this email to a friend or colleague and challenge them to solve it. Hi, Suppose you're given the

Random dog arrivals

Friday, March 11, 2022

Statistics, Probability Theory, Poisson, InterviewQs Random dog arrivals Statistics Probability Theory Poisson Forward this email to a friend or colleague and challenge them to solve it. Hi, Suppose

You Might Also Like

📧 EF Core Migrations: A Detailed Guide

Saturday, May 18, 2024

​ EF Core Migrations: A Detailed Guide Read on: m​y website / Read time: 10 minutes BROUGHT TO YOU BY ​ Low-code Framework for .NET Devs ​ Introducing Shesha, a brand new, open-source, low-code

Slack is under attack … and you don’t want that

Friday, May 17, 2024

Plus: OpenAI is not aligned with its Superalignment team View this email online in your browser By Christine Hall Friday, May 17, 2024 Good afternoon, and welcome back to TechCrunch PM. We made it to

Ilya Sutskever leaves OpenAI - Weekly News Roundup - Issue #467

Friday, May 17, 2024

Plus: Apple is close to using ChatGPT; Microsoft builds its own LLM; China is sending a humanoid robot to space; lab-grown meat is on shelves but there is a catch; hybrid mouse/rat brains; and more! ͏

SWLW #599: Surfing through trade-offs, How to do hard things, and more.

Friday, May 17, 2024

Weekly articles & videos about people, culture and leadership: everything you need to design the org that makes the product. A weekly newsletter by Oren Ellenbogen with the best content I found

💾 There Will Never Be Another Windows XP — Why Ray Tracing is a Big Deal in Gaming

Friday, May 17, 2024

Also: What to Know About Google's Project Astra, and More! How-To Geek Logo May 17, 2024 Did You Know The very first mass-manufactured drinking straw was made of paper coated in wax; the straw was

It's the dawning of the age of AI

Friday, May 17, 2024

Plus: Musk is raging against the machine View this email online in your browser By Haje Jan Kamps Friday, May 17, 2024 Image Credits: Google Welcome to Startups Weekly — Haje's weekly recap of

Daily Coding Problem: Problem #1444 [Medium]

Friday, May 17, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Yahoo. Recall that a full binary tree is one in which each node is either a leaf node,

(Not) Sent From My iPad

Friday, May 17, 2024

The future of computing remains frustrating (Not) Sent From My iPad By MG Siegler • 17 May 2024 View in browser View in browser I tried. I really did. I tried to put together and send this newsletter

iOS Dev Weekly - Issue 661

Friday, May 17, 2024

What's the word on everyone's lips? 🅰️👁️ View on the Web Archives ISSUE 661 May 17th 2024 Comment Did you catch Google I/O this week? It's Always Interesting to see what the Android

Your Google Play recap from I/O 2024

Friday, May 17, 2024

Check out all of our latest updates and announcements Email not displaying correctly? View it online May 2024 Google Play at I/O 2024 Check out the Google Play keynote to discover the latest products