Editing
Decision Making and Rationality
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== <span style="color: #FFFFFF;">Applying</span> == '''Calculating Expected Value vs. Utility (The St. Petersburg Paradox):''' <syntaxhighlight lang="python"> import math def expected_value(p_win, win_amount, p_loss, loss_amount): """Calculates the mathematical expected value of a gamble.""" return (p_win * win_amount) + (p_loss * loss_amount) def logarithmic_utility(amount): """Bernoulli's proposal: Utility increases logarithmically with wealth.""" return math.log(amount) if amount > 0 else -float('inf') # Gamble: 50% chance to win $200, 50% chance to lose $50 ev = expected_value(0.5, 200, 0.5, -50) print(f"Expected Value: ${ev}") # +$75 # Now consider utility for someone with $1000 base wealth base_wealth = 1000 u_no_gamble = logarithmic_utility(base_wealth) u_gamble = 0.5 * logarithmic_utility(base_wealth + 200) + \ 0.5 * logarithmic_utility(base_wealth - 50) print(f"Utility of not gambling: {u_no_gamble:.4f}") print(f"Utility of gambling: {u_gamble:.4f}") # If u_gamble > u_no_gamble, a rational agent (Bernoulli sense) takes the bet. </syntaxhighlight> ; Practical Applications : '''Finance''' β Avoiding panic-selling during market dips (loss aversion). : '''Medicine''' β Understanding how "80% survival" vs "20% mortality" frames patient choices. : '''Public Policy''' β Designing "Save More Tomorrow" programs that leverage hyperbolic discounting. : '''Management''' β Overcoming the "planning fallacy" (underestimating time/cost) in projects. </div> <div style="background-color: #8B4500; color: #FFFFFF; padding: 20px; border-radius: 8px; margin-bottom: 15px;">
Summary:
Please note that all contributions to BloomWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
BloomWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information