Data Interview Qs - Christmas M&Ms

Christmas M&Ms
Statistics Probability Theory Bayes' Theorem Conditional Probability

Suppose you have two different bags of M&Ms, one is a special Christmas edition while the other is a standard bag of M&Ms. The Christmas edition contains only red, green, and white M&Ms while the standard bag contains the full color offering. The distributions of drawing a given color are below:

Christmas bag of M&Ms

  • Green: 30%
  • Red: 40%
  • White: 30%

Standard bag of M&Ms

  • Green: 20%
  • Orange: 19%
  • Blue: 19%
  • Red: 15%
  • Yellow: 14%
  • Brown: 13%

You are given an M&M from each bag, but you do not know which M&M came from which bag. One M&M is Red and one is Green. What is the probability that the Red M&M came from the Standard bag?




Want the solutions? Upgrade to premium to access detailed solutions to each problem (including this one).

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


Unsubscribe

Older messages

Finding the value closest to 0

Friday, November 13, 2020

Data Interview Qs Finding the value closest to 0 Python Data Structures Arrays Suppose you are given a list of Q 1D points. Write code to return the value in Q that is the closest to value j. If two

Lifetime of a customer

Monday, November 9, 2020

Data Interview Qs Lifetime of a customer SQL Database Querying Suppose you work for a large eCommerce company. You're given the below table schema for a table called 'orders' that

Similarity Matrix and Heat Chart

Friday, November 6, 2020

Data Interview Qs Similarity Matrix and Heat Chart Data Analysis Python Pandas Data Manipulation Data Visualization Similarity Matrix Heat Chart External Dataset Suppose you have the following dataset

Reverse it

Monday, November 2, 2020

Data Interview Qs Reverse it Python String Manipulation Suppose you're given an array of strings, s. Write a function using Python to take each string in the array and reverse it. For example: #

Querying types of widgets

Friday, October 30, 2020

Data Interview Qs Querying types of widgets SQL Database Querying Rank Function Window Function Suppose that each day widgets are produced on 3 assembly lines (A, B, and C) and eventually end up on one

You Might Also Like

AI search engine startup Perplexity eyes a $3B valuation

Tuesday, April 23, 2024

Plus: It's Tesla earnings day and AWS wants to host your AI models View this email online in your browser By Cody Corrall Tuesday, April 23, 2024 Welcome back to TechCrunch PM. Today we have big

🎞️ We Tried 3D Printing a Photo — You'll Love This Secret Samsung Galaxy Bluetooth Feature

Tuesday, April 23, 2024

Also: Transferring Your Phone Number to a New Carrier, and More! How-To Geek Logo April 23, 2024 📩 Get expert reviews, the hottest deals, how-to's, breaking news, and more delivered directly to

You're invited – product sense, prioritization, careers

Tuesday, April 23, 2024

Product Sense Product Sense Wednesday, May 1st @ 01:00 PM EST Learn how to identify opportunities, assess risks, and make informed decisions that lead to successful product innovations by better

CTRL-C, Exceptions, Ruff Speed-up, and More

Tuesday, April 23, 2024

Asyncio Handle Control-C (SIGINT) #626 – APRIL 23, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo Asyncio Handle Control-C (SIGINT) When the user presses CTRL-C on the keyboard, the OS raises an

Writing Contests Just Landed On Product Hunt 🔥

Tuesday, April 23, 2024

Upvote us to keep the $$$ coming! 👍 ͏ ‌  ͏ ‌  ͏ ‌  ͏ ‌  ͏ ‌  ͏ ‌  ͏ ‌  ͏ ‌ ͏ ‌  ͏ ‌  ͏ ‌  ͏ ‌  ͏ ‌  ͏ ‌  ͏ ‌  ͏ ‌ ͏ ‌  ͏ ‌  ͏ ‌  ͏ ‌  ͏ ‌  ͏ ‌  ͏ ‌  ͏ ‌ ͏ ‌  ͏ ‌  ͏ ‌  ͏ ‌ 

Daily Coding Problem: Problem #1421 [Hard]

Tuesday, April 23, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Uber. Given an array of integers, return a new array such that each element at index i

Ranked | The Top 10 EV Battery Manufacturers 🔋

Tuesday, April 23, 2024

Asia dominates this ranking of the world's largest EV battery manufacturers in 2023. See which battery makers feature in the top 10. View Online | Subscribe Presented by: EnergyX's

Bringing PGO to the build pipeline

Tuesday, April 23, 2024

Plus how Go grew at Google, cmp.Or, and ways to visualize makefiles, Go binaries, and live Go processes. | #​504 — April 23, 2024 Unsub | Web Version Together with Three Dots Labs Go Weekly How Dolt

Noonification: Leetcode: Two-sum an Intuitive Approach

Tuesday, April 23, 2024

Top Tech Content sent at Noon! Get Algolia: AI Search that understands How are you, @newsletterest1? 🪐 What's happening in tech this week: The Noonification by HackerNoon has got you covered with

The best AI chatbot for coding

Tuesday, April 23, 2024

9 video gadget must-haves; 6 things Linux should borrow from MacOS -- ZDNET ZDNET Tech Today - US April 23, 2024 placeholder Can Meta AI code? I tested it against Llama, Gemini and ChatGPT - it wasn