• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 09:14
CET 15:14
KST 23:14
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
RSL Revival - 2025 Season Finals Preview8RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12
Community News
ComeBackTV's documentary on Byun's Career !1Weekly Cups (Dec 8-14): MaxPax, Clem, Cure win1Weekly Cups (Dec 1-7): Clem doubles, Solar gets over the hump1Weekly Cups (Nov 24-30): MaxPax, Clem, herO win2BGE Stara Zagora 2026 announced15
StarCraft 2
General
ComeBackTV's documentary on Byun's Career ! Weekly Cups (Dec 8-14): MaxPax, Clem, Cure win Did they add GM to 2v2? RSL Revival - 2025 Season Finals Preview Weekly Cups (Dec 1-7): Clem doubles, Solar gets over the hump
Tourneys
Sparkling Tuna Cup - Weekly Open Tournament $5,000+ WardiTV 2025 Championship StarCraft2.fi 15th Anniversary Cup RSL Offline Finals Info - Dec 13 and 14! Tenacious Turtle Tussle
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 504 Retribution Mutation # 503 Fowl Play Mutation # 502 Negative Reinforcement Mutation # 501 Price of Progress
Brood War
General
FlaSh on: Biggest Problem With SnOw's Playstyle How Rain Became ProGamer in Just 3 Months [BSL21] RO8 Bracket & Prediction Contest BGH Auto Balance -> http://bghmmr.eu/ BW General Discussion
Tourneys
[Megathread] Daily Proleagues [BSL21] RO8 - Day 2 - Sunday 21:00 CET [ASL20] Grand Finals [BSL21] RO8 - Day 1 - Saturday 21:00 CET
Strategy
Current Meta Simple Questions, Simple Answers Game Theory for Starcraft Fighting Spirit mining rates
Other Games
General Games
Stormgate/Frost Giant Megathread Path of Exile Dawn of War IV ZeroSpace Megathread The 2048 Game
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Mafia Game Mode Feedback/Ideas Survivor II: The Amazon Sengoku Mafia TL Mafia Community Thread
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine YouTube Thread European Politico-economics QA Mega-thread
Fan Clubs
White-Ra Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion
World Cup 2022
Tech Support
Employee Retention in Behavioral Health: Building Computer Build, Upgrade & Buying Resource Thread
TL Community
TL+ Announced Where to ask questions and add stream?
Blogs
How Sleep Deprivation Affect…
TrAiDoS
I decided to write a webnov…
DjKniteX
James Bond movies ranking - pa…
Topin
Thanks for the RSL
Hildegard
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1359 users

Fun probability problem (and your thoughts?) - Page 2

Blogs > Empyrean
Post a Reply
Prev 1 2 3 Next All
vAltyR
Profile Blog Joined July 2008
United States581 Posts
December 01 2009 17:56 GMT
#21
On December 02 2009 02:52 roflcopter420 wrote:
Show nested quote +
On December 02 2009 02:06 Empyrean wrote:
I have already solved the problem, being a statistics major and all


O RLY?

Good SIR, I do believe you have made a great discovery then! I shall inform my professor at once, considering he has failed to solve the problem even after putting in many many hours.

http://en.wikipedia.org/wiki/Two_envelopes_problem
Show nested quote +
This is still an open problem among the subjectivists as no consensus has been reached yet

This problem is very different. In that problem, we do not know the amount of money in the envelope we choose, and we can switch infinite times.
내 호버크라프트는 장어로 가득 차 있어요
JeeJee
Profile Blog Joined July 2003
Canada5652 Posts
December 01 2009 17:56 GMT
#22
On December 02 2009 02:50 vAltyR wrote:
Ugh, probability. My least favorite area of mathematics.



=( =(
i loooove stats
its by far the most fun and the most USEFUL area of math that i've learned in like 3+ years of uni. unlike, say, calculus where applications of that are limited to pretty much.. more calculus :S
hell, once i get to pick some courses, i'm taking more stats, no questions asked
(\o/)  If you want it, you find a way. Otherwise you find excuses. No exceptions.
 /_\   aka Shinbi (requesting a name change since 27/05/09 ☺)
Phrujbaz
Profile Blog Joined September 2008
Netherlands512 Posts
December 01 2009 17:56 GMT
#23
Wait, I've been doing assumptions. I should know better than to trust my intuition. Let's calculate the EV of switching:

ev(switch)= p(y)*2y + p(0.5y)*0.5y.

you should switch if p(y)*2y + p(0.5y)*0.5y > y

What does this imply? Hum, I don't know.
Caution! Future approaching rapidly at a rate of about 60 seconds per minute.
BottleAbuser
Profile Blog Joined December 2007
Korea (South)1888 Posts
Last Edited: 2009-12-01 18:04:05
December 01 2009 18:00 GMT
#24
Considering the third part:

+ Show Spoiler +
Well, as before, we want to switch if E[second bag] > Y. Given the amount Y, the second bag has 2Y with probability p(Y), and has Y/2 with probability p(Y/2). Switch if 2Y*p(Y) + Y/2*p(Y/2) > Y.


Eh, Phrujbaz beat me to it. I think there's something a bit wrong with it though... something about having p(Y) + p(Y/2) having to equal 1, given Y...
Compilers are like boyfriends, you miss a period and they go crazy on you.
Sadistx
Profile Blog Joined February 2009
Zimbabwe5568 Posts
December 01 2009 18:04 GMT
#25
Whether you want to switch or not will very from person to person because it depends on how risk averse a certain person is, once you get past EV, it's an economics problem :p.
Phrujbaz
Profile Blog Joined September 2008
Netherlands512 Posts
December 01 2009 18:04 GMT
#26
I just realized the following has to be true, since we have EITHER x or 2x:

1 = p(y) + p(0.5y)

2y * p(y) + 0.5y * (1- p(y)) > y
2y * p(y) + 0.5y - 0.5p(y) > y
1.5p(y) + 0.5y > y
1.5p(y) > 0.5y

3p(y) > y

This is when we have to switch. That seems such a stupid result. I must have made a mistake somewhere.
Caution! Future approaching rapidly at a rate of about 60 seconds per minute.
BottleAbuser
Profile Blog Joined December 2007
Korea (South)1888 Posts
December 01 2009 18:14 GMT
#27
That looks right to me.. maybe the setup is wrong:

1 = p(x2 = 2y | x1 = y) + p(x2 = y/2 | x1 = y)

Where x2 denotes the other envelope, and x1 denotes the first opened envelope.
Compilers are like boyfriends, you miss a period and they go crazy on you.
underscore
Profile Joined August 2009
252 Posts
December 01 2009 18:17 GMT
#28
In school this is always the introduction to probabilities.
Exciting stuff. Going back to sleep...
Phrujbaz
Profile Blog Joined September 2008
Netherlands512 Posts
Last Edited: 2009-12-01 18:21:19
December 01 2009 18:19 GMT
#29
haha good job BottleAbuser. p(y) + p(0.5y) doesn't have to equal one. I don't remember why I thought that it did anymore. What does have to equal one is p(x2=2y) + p(x2=0.5y), something entirely different

Edit: The probability that grandma chose y for the first envelope changes once you know y, so you cannot use p(y) anymore. That's the source of my original confusion.
Caution! Future approaching rapidly at a rate of about 60 seconds per minute.
meeple
Profile Blog Joined April 2009
Canada10211 Posts
December 01 2009 18:20 GMT
#30
Grrr... I've done probability questions like this, but I've always found probability in general frustrating compared to number theory and calculus, where I feel much more at home.

I agree that fundamentals of probability and statistics should always be taught, there are far too many playing the lottery these days.
Phrujbaz
Profile Blog Joined September 2008
Netherlands512 Posts
December 01 2009 18:23 GMT
#31
So we have the probability that we see y when we open the envelope:

0.5(p(y) + p(0.5y))
Caution! Future approaching rapidly at a rate of about 60 seconds per minute.
Mastermind
Profile Blog Joined April 2008
Canada7096 Posts
Last Edited: 2009-12-01 18:31:39
December 01 2009 18:27 GMT
#32
Probability and Statistics are the only math classes I have ever taken that I hated(I have a minor in math). Having said that, I think it is important for everyone to know basic probability and statistics, but the depth they go into those subjects in introductory courses in university is more than what the layman needs. I would say the first 1/3 of the stats and probability courses I took are what every person should know by the time they are an adult(in an ideal world).

I can remember my probability prof going over that envelope question(or a similar one) in my class, but dont expect me to even attempt it because I will not do that kind of math ever again unless I am forced to.

On December 02 2009 02:56 JeeJee wrote:
Show nested quote +
On December 02 2009 02:50 vAltyR wrote:
Ugh, probability. My least favorite area of mathematics.



=( =(
i loooove stats
its by far the most fun and the most USEFUL area of math that i've learned in like 3+ years of uni. unlike, say, calculus where applications of that are limited to pretty much.. more calculus :S
hell, once i get to pick some courses, i'm taking more stats, no questions asked

I guess you have never heard of science or economics.

edit: calculus is also used in probability lol.
Phrujbaz
Profile Blog Joined September 2008
Netherlands512 Posts
December 01 2009 18:37 GMT
#33
What is the probability that grandma chose y once we know that one of the envelopes contains y?

She either chose 0.5y or y for x, if we see y in one of the envelopes . Which is it? It depends on the relative probabilities of choosing 0.5y or y. If she chooses x to be y twice as often as she chooses x to be 0.5y, then the probability she chose y is 2/3 !

In general, if she chooses x to be y a times as often as she chooses x to be 0.5y, the probability she chose y is a / (a+1).

p(grandma chose y) = (p(y) / p(0.5y)) / ((p(y) / p(0.5y) + 1)

Don't know how to simplify xD

Caution! Future approaching rapidly at a rate of about 60 seconds per minute.
BottleAbuser
Profile Blog Joined December 2007
Korea (South)1888 Posts
December 01 2009 18:39 GMT
#34
I dunno, you could argue that in using calculus you are also using results from geometry... or arithmetic.... I think he's talking about the direct application of a field.

I think the inequality we came up with first is right. We can easily calculate p(y) and p(y/2) given that p is exponential with mean 100.

Which reminds me: the exponential function is memoryless, so given Y... oh, fuck..
Compilers are like boyfriends, you miss a period and they go crazy on you.
Phrujbaz
Profile Blog Joined September 2008
Netherlands512 Posts
December 01 2009 18:44 GMT
#35
The inequality we came up with is the answer for question number 1.

We distracted ourselves by calculating expected value, which doesn't depend on the probability p(y) but on the ratio p(y)/p(y/2). My original answer was right: for switching to make no difference, p(y) must equal p(y/2), which means grandma's wealth is infinite, as she must choose twice the amount of money with equal probability as any other amount of money.

As for the answer to question 3, maybe I should first read what a probability distribution is. And what an exponential probability distribution is.
Caution! Future approaching rapidly at a rate of about 60 seconds per minute.
BottleAbuser
Profile Blog Joined December 2007
Korea (South)1888 Posts
Last Edited: 2009-12-01 18:48:48
December 01 2009 18:47 GMT
#36
Wikipedia page ftw. In short: where the mean of an exponential distribution is 1/L, p(x) = Le^(-L*x) (ofc this is for x>0)
Compilers are like boyfriends, you miss a period and they go crazy on you.
Osmoses
Profile Blog Joined October 2008
Sweden5302 Posts
December 01 2009 18:51 GMT
#37
Ah hehe classic problem, made me furious in the same way the Monty Hall problem did ^^
Excuse me hun, but what is your name? Vivian? I woke up next to you naked and, uh, did we, um?
Phrujbaz
Profile Blog Joined September 2008
Netherlands512 Posts
December 01 2009 18:54 GMT
#38
but what the hell is ell
Caution! Future approaching rapidly at a rate of about 60 seconds per minute.
prOxi.Beater
Profile Joined December 2008
Denmark626 Posts
December 01 2009 19:59 GMT
#39
Sounds a bit like the monty hall problem, yes?
Nobody beats the Beater
datscilly
Profile Blog Joined November 2007
United States529 Posts
December 01 2009 20:00 GMT
#40
Here's what I got from the hint.
What is the conditional probability that your envelope holds $X (and hence it would be advantageous to trade), conditional on the observed value of $Y?

Using Bayes' Theorem here:
Notation-- let x be the observed value, Y be the event of observing amount x in the open envelope, and X be the event that 2x dollars is in the other, unopened, envelope
P(X|Y) = P(Y|X)P(X) / P(Y)
P(X|Y) = (0.5)*f(x) / .5*f(x)+.5*f(x/2)
P(X|Y) = f(x) / ( f(x) + f(x/2) )

We are asked to maximize our EV.
EV(keep) = x
EV(switch) = 2x*P(X|Y) + 0.5x(1 - P(X|Y) )
EV(switch) = ( 2xf(x) + 0.5xf(x/2) ) / ( f(x) + f(x/2) )

Third part: normalizing from 100 to 1.
Assuming you know where parentheses are-
EV(switch) = 2xe^-x + .5xe^(-x/2) / e^-x + e^(-x/2)
Should switch if
2e^-x + .5e^(-x/2) / e^-x + e^(-x/2) > 1
2e^-x + .5e^(-x/2) > e^-x + e^(-x/2)
e^-x > .5e^(-x/2)
e^(-x/2) > .5
-x/2 > ln(.5)
x < -2ln(.5)
x < 1.39

We are switching if we see less than $1.39 in the envelop, for the $1 average case; for the mean of $100 dollars case we switch if we see less than $138.63.
Prev 1 2 3 Next All
Please log in or register to reply.
Live Events Refresh
WardiTV 2025
12:00
Playoffs
Spirit vs RogueLIVE!
Scarlett vs Reynor
TBD vs Clem
uThermal vs Shameless
WardiTV1087
ComeBackTV 499
TaKeTV 243
IndyStarCraft 135
Rex124
LiquipediaDiscussion
Sparkling Tuna Cup
10:00
Weekly #115
Percival vs KrystianerLIVE!
CranKy Ducklings107
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Lowko348
IndyStarCraft 135
Rex 124
BRAT_OK 71
ProTech22
StarCraft: Brood War
Sea 3883
Rain 3326
Bisu 1678
Jaedong 1038
Larva 661
GuemChi 634
Soma 624
actioN 399
BeSt 397
EffOrt 343
[ Show more ]
Hyuk 338
Mini 325
Stork 294
Light 276
Snow 184
firebathero 172
Rush 146
hero 136
Hyun 92
Sea.KH 64
Killer 53
JYJ 51
sorry 32
Aegong 28
Mind 28
Terrorterran 27
scan(afreeca) 25
GoRush 20
yabsab 20
Mong 15
Movie 9
Bale 8
Oya187 6
Dota 2
Gorgc3899
qojqva2358
BananaSlamJamma333
420jenkins322
XcaliburYe188
syndereN139
capcasts56
Counter-Strike
olofmeister2116
x6flipin654
byalli374
allub272
markeloff72
Other Games
B2W.Neo2087
hiko345
Pyrionflax320
Fuzer 302
Hui .271
RotterdaM138
ArmadaUGS55
QueenE54
Trikslyr29
Chillindude18
Organizations
StarCraft: Brood War
UltimateBattle 1319
lovetv 7
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• HerbMon 16
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• WagamamaTV752
League of Legends
• Jankos3046
• TFBlade650
Upcoming Events
PiGosaur Cup
10h 46m
WardiTV 2025
21h 46m
MaNa vs Gerald
TBD vs MaxPax
ByuN vs TBD
TBD vs ShoWTimE
OSC
1d
YoungYakov vs Mixu
ForJumy vs TBD
Percival vs TBD
Shameless vs TBD
The PondCast
1d 19h
WardiTV 2025
1d 22h
Cure vs Creator
TBD vs Solar
WardiTV 2025
2 days
OSC
2 days
CranKy Ducklings
3 days
SC Evo League
3 days
Ladder Legends
4 days
[ Show More ]
BSL 21
4 days
Sparkling Tuna Cup
4 days
Ladder Legends
5 days
BSL 21
5 days
Replay Cast
5 days
Monday Night Weeklies
6 days
Liquipedia Results

Completed

Acropolis #4 - TS3
RSL Offline Finals
Kuram Kup

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
YSL S2
BSL Season 21
Slon Tour Season 2
WardiTV 2025
META Madness #9
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22

Upcoming

CSL 2025 WINTER (S19)
BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Big Gabe Cup #3
ESL Pro League Season 23
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.