Register | Sign In


Understanding through Discussion


EvC Forum active members: 64 (9164 total)
8 online now:
Newest Member: ChatGPT
Post Volume: Total: 916,793 Year: 4,050/9,624 Month: 921/974 Week: 248/286 Day: 9/46 Hour: 1/3


Thread  Details

Email This Thread
Newer Topic | Older Topic
  
Author Topic:   Three Curtains
PurpleYouko
Member
Posts: 714
From: Columbia Missouri
Joined: 11-11-2004


(3)
Message 42 of 48 (729360)
06-10-2014 11:02 AM


a coder's perspective
Ok so somebody further up the thread said that I could replace the host with a computer program so I just did that.
The rules I used are these.
1) car is placed randomly in one of three places
2) The first guess is made as 1, 2 or 3
3) Host chooses one of the unchosen places and eliminates it
4) contestant either sticks or changes
5) results are evaluated and spit out as count rates
Once put into code form it becomes pretty obvious what the result will be without even running the simulation.
The logic is inescapable.
First of all there is one thing to check
1) Was my guess correct? (remember there are only 2 choices now since the host already opened a curtain/door that wasn't the car)
YES (1 in 3 chance) --> Sticking wins, changing loses so add 1 to StickCount
NO (2 in 3 chance) --> Sticking loses, changing wins so add 1 to ChangeCount
The results of 1 million games comes out as follows
StickCount = 332654
ChangeCount = 667346
Until putting this into code form I would have sworn that the chances were 50:50 but as soon as I wrote the problem in code form it's obvious that changing is going to win twice as often as sticking

Replies to this message:
 Message 43 by rstrats, posted 06-10-2014 1:40 PM PurpleYouko has replied

  
PurpleYouko
Member
Posts: 714
From: Columbia Missouri
Joined: 11-11-2004


Message 44 of 48 (729373)
06-10-2014 1:50 PM
Reply to: Message 43 by rstrats
06-10-2014 1:40 PM


Re: a coder's perspective
meh.. I don't smoke.
How about you make it a nice pina collada that i can sip while sitting in a swimming pool

This message is a reply to:
 Message 43 by rstrats, posted 06-10-2014 1:40 PM rstrats has seen this message but not replied

  
Newer Topic | Older Topic
Jump to:


Copyright 2001-2023 by EvC Forum, All Rights Reserved

™ Version 4.2
Innovative software from Qwixotic © 2024