This post is a solution to the problem taken from Abu-Mostafa, Yaser S., Malik Magdon-Ismail, and Hsuan-Tien Lin. Learning from data. Vol. 4. New York, NY, USA:: AMLBook, 2012..
Quoted text refers to the original problem statement, verbatim.
For more solutions, see dsevero.com/blog.
Consider leaving a Star if this helps you.
A sample of heads and tails is created by tossing a coin a number of times independently. Assume we have a number of coins that generate different samples independently.