**If you find any of this useful, please consider donating via PayPal to help keep this site going.**

**Email news@statisticool.com to sign up to receive news and updates**

# The effect of information on guessing the color of playing cards

**5/13/06**

If someone asked you to guess the color of cards from a standard deck of playing cards, you'd have a 50% chance of being correct for each attempt, and one would expect to get a total of 26 correct on average.

However, if you are allowed to see the outcome of the cards you attempted to guess, you can use that information to increase your success. Start out by guessing a color randomly. Then, if more Blacks came up, guess Red, and vice versa. If an equal number of Black and Red came up then guess the next color randomly. Using this method one can always get 26 or more.

Here is a program for my calculator that I wrote to simulate this.

cards(trials)

Prgm

ClrIO

{}->c

For n,1,trials

Disp n

#generate deck

Lbl start

{}->deck

For a,1,52

#Black = 1, Red = 0

rand(2)-1->deck[a]

EndFor

#to ensure equal Black and Red

If sum(deck) <> 26: Goto start

{}->guess

#initial guess

rand(2)-1->guess[1]

0->rights

For a,1,51

If sigma(deck[a],a,1,a)/a)>.5:0->guess[a+1]

If sigma(deck[a],a,1,a)/a)<.5:1->guess[a+1]

If sigma(deck[a],a,1,a)/a)=.5:rand(2)-1->guess[a+1]

EndFor

For a,1,52

If deck[a]=guess[a]:1+rights->rights

rights->c[n]

EndFor

EndFor

EndPrgm

Examine the vector c to see the number of cards guessed correctly for each trial. Simulations have shown the average is slightly over 30.

### Please anonymously VOTE on the content you have just read:

Like:Dislike:

If you enjoyed *any* of my content, please consider supporting it in a variety of ways:

**PLEASE**take a moment to check out two GoFundMe fundraisers I set up. The idea is to make it possible for me to pursue my passions. My goal is to be able to create free randomized educational worksheets and create poetry on a__full-time basis__.**THANK YOU**for your support!- Email news@statisticool.com to sign up to receive news and updates
- Donate any amount via PayPal
- Take my Five Poem Challenge
- Subscribe to my YouTube channel
- Visit my Amazon author page
- Buy what you need on Amazon using my affiliate link
- Follow me on Twitter here
- Buy ad space on Statisticool.com

AFFILIATE LINK DISCLOSURE: Some links included on this page may be affiliate links. If you purchase a product or service with the affiliate link provided I may receive a small commission (at no additional charge to you). Thank you for the support!