/* */ .search { float: right; margin-top: -10px; position: relative; display: none; } /* Pop up fancy box for mute and ban */ #popUp { width: 400px; height: 300px; margin-top:4px; } #popUp #header { width: 100%; height: 75px; border-bottom: 1px solid #ccc; background: #ffffff; /* Old browsers */ background: -moz-linear-gradient(top, #ffffff 0%, #f9f9f9 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#f9f9f9)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #ffffff 0%,#f9f9f9 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #ffffff 0%,#f9f9f9 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #ffffff 0%,#f9f9f9 100%); /* IE10+ */ background: linear-gradient(to bottom, #ffffff 0%,#f9f9f9 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f9f9f9',GradientType=0 ); /* IE6-9 */ } #popUp #header span { font-size: 20px; margin: 28px 30px; color: #3E90B9; text-shadow: 0 1px 4px rgba(255, 255, 255, 0.7); display: inline-block; line-height: 1em; } #popUp #body { margin: 30px; margin-top:25px; font-size: 12px; } #popUp #okay-button { margin-top: 30px; background: -webkit-linear-gradient(top, #f6fdff 0%,#b8dcea 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #f6fdff 0%,#b8dcea 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #f6fdff 0%,#b8dcea 100%); /* IE10+ */ background: -moz-linear-gradient(center top , #f6fdff, #b8dcea) repeat scroll 0 0 transparent; background: linear-gradient(top, #f6fdff, #b8dcea) repeat scroll 0 0 transparent; background: -webkit-linear-gradient(top, #f6fdff, #b8dcea) repeat scroll 0 0 transparent; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f6fdff', endColorstr='#b8dcea'); outline: 0; border: 1px solid #85c2e0; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; color: #4990b4; cursor: pointer; display: inline-block; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-weight: bold; line-height: 15px; padding: 5px 15px; position: relative; text-align: center; text-shadow: 0 1px 3px rgba(255, 255, 255, 0.6); -webkit-box-shadow: 0px 1px 4px #eaeaea; -moz-box-shadow: 0px 1px 4px #eaeaea; box-shadow: 0px 1px 4px #eaeaea; vertical-align: center; text-decoration: none; } #verificationDialog { margin: 0; padding: 0; } #validate-header { width: 100%; height: 70px; border-bottom: 1px solid #E5E5E5; background-color: #F8F8F8; border-radius: 7px 7px 0 0; } #validate-header h1 { display: inline-block; line-height: 1em; font-family: Helvetica; margin: 0; padding: 26px 25px; color: #5EA1C3; font-size: 23px; font-weight: normal; text-shadow: 0px 2px 2px #DDD; } #validate-body { padding: 15px 25px; color: #333; } #validate-body span { display: block; font-family: Arial; font-size: 12px; color: #555; padding-bottom: 15px; } .resend { color: #777; font-family: Arial; font-size: 13px; } .resend:hover { color: #3E90B9; } #joinCommunityDialog { width: 650px; height: 445px; } #header { width: 100%; height: 75px; border-bottom: 1px solid #ccc; border-radius: 7px 7px 0 0; background: #ffffff; /* Old browsers */ background: -moz-linear-gradient(top, #ffffff 0%, #f9f9f9 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#f9f9f9)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #ffffff 0%,#f9f9f9 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #ffffff 0%,#f9f9f9 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #ffffff 0%,#f9f9f9 100%); /* IE10+ */ background: linear-gradient(to bottom, #ffffff 0%,#f9f9f9 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f9f9f9',GradientType=0 ); /* IE6-9 */ } #header span { font-size: 23px; font-family: Helvetica; margin: 28px 29px; color: #5EA1C3; text-shadow: 0 2px 2px #DDD; display: inline-block; line-height: 1em; } #agreement ol li { font-size: 12px; display: inline-block; padding-right: 5px; color: #73bbdd; min-width: 125px; } .tou-tabs { display: flex; margin: 15px 0px 4px 30px; } .tou-tabs li { margin-right: 10px } ol li span { color: #7c7c7c; font-size: 13px; font-family: Arial; } label { color: #666666; } .tab-text { position: absolute; margin-top: 11px; } .tab-num-box { color: #7c7c7c; background-color: #e2e2e2; width: 41px; height: 36px; text-align: center; margin-right: 8px; display:block; float:left; } .tab-num-text { padding: 0px; margin-left: 15px; margin-top: 11px; font-family: 'Museo500'; font-size: 19px; display:block; float:left; } .finished { border: 1px solid #d7edf5; margin-bottom: -1px; background-color: #f8f8f8; } .finished .tab-num-box { color: white; font-family: 'Museo300'; background-color: #c5e3f2; } .finished .tab-num-text { color: #5A9ABA; } .finished .tab-text { font-family: 'Arial'; font-weight: bold; color: #c4e2f2; font-size: 13px; } .active .tab-num-box { background-color: #73bbdd; width: 41px; height: 41px; box-shadow: 0px 0px 5px (0, 0, 0 0.35); } .active .tab-num-text { color: white; margin-top: 13px; margin-left: 16px; } .active .tab-text { font-family: Arial; font-weight: bold; color: #5A9ABA; margin-top: 13px; } .wolframIdTab { width: 275px; } .wolframIdTab .tab-text { padding: 0px; } .acceptTouTab { border: 1px solid #b7dbed; border-bottom: none; opacity: 1; background-color: #f7fdff; width: 291px; height: 41px; margin-bottom: -5px; } .panel { background-color: #f7fdff; border: 1px solid #b7dbed; margin: 0px 30px; } .panel .label { display: block; font-family: Arial; font-size: 12px; color: #555; margin: 5px 15px; } .sub-panel { border-top: 1px solid #B7DBED; background: #fff; padding: 20px; padding-left: 25px; } .sub-panel a { padding: 0px 15px; text-decoration: none; font-size: 12px; color: #3187a7; } .sub-panel a:hover { color: #0a6089; } input[type="submit"] { background: -moz-linear-gradient(center top , #f6fdff, #b8dcea) repeat scroll 0 0 transparent; background: linear-gradient(top, #f6fdff, #b8dcea) repeat scroll 0 0 transparent; background: -webkit-linear-gradient(top, #f6fdff, #b8dcea) repeat scroll 0 0 transparent; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f6fdff', endColorstr='#b8dcea'); outline: 0; border: 1px solid #85c2e0; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; color: #4990b4; cursor: pointer; display: inline-block; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-weight: bold; line-height: 15px; padding: 5px 15px; position: relative; text-align: center; text-shadow: 0 1px 3px rgba(255, 255, 255, 0.6); -webkit-box-shadow: 0px 1px 4px #eaeaea; -moz-box-shadow: 0px 1px 4px #eaeaea; box-shadow: 0px 1px 4px #eaeaea; vertical-align: center; text-decoration: none; } input[type="submit"]:hover { background: -moz-linear-gradient(center top , #f6fdff, #90cae1) repeat scroll 0 0 transparent; background: linear-gradient(top, #f6fdff, #90cae1) repeat scroll 0 0 transparent; background: -webkit-linear-gradient(top, #f6fdff, #90cae1) repeat scroll 0 0 transparent; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f6fdff', endColorstr='#90cae1'); border: 1px solid #85c2e0; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; color: #3e90b9; cursor: pointer; display: inline-block; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-weight: bold; line-height: 15px; padding: 5px 15px; position: relative; text-align: center; text-shadow: 0 1px 4px rgba(255, 255, 255, 0.7); vertical-align: center; text-decoration: none; } .cancel-button { background: -moz-linear-gradient(center top , #f6fdff, #b8dcea) repeat scroll 0 0 transparent; background: linear-gradient(top, #f6fdff, #b8dcea) repeat scroll 0 0 transparent; background: -webkit-linear-gradient(top, #f6fdff, #b8dcea) repeat scroll 0 0 transparent; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f6fdff', endColorstr='#b8dcea'); outline: 0; border: 1px solid #85c2e0; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; color: #4990b4; cursor: pointer; display: inline-block; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-weight: bold; line-height: 15px; padding: 5px 15px; position: relative; text-align: center; text-shadow: 0 1px 3px rgba(255, 255, 255, 0.6); -webkit-box-shadow: 0px 1px 4px #eaeaea; -moz-box-shadow: 0px 1px 4px #eaeaea; box-shadow: 0px 1px 4px #eaeaea; vertical-align: center; text-decoration: none; } .cancel-button:hover { background: -moz-linear-gradient(center top , #f6fdff, #90cae1) repeat scroll 0 0 transparent; background: linear-gradient(top, #f6fdff, #90cae1) repeat scroll 0 0 transparent; background: -webkit-linear-gradient(top, #f6fdff, #90cae1) repeat scroll 0 0 transparent; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f6fdff', endColorstr='#90cae1'); border: 1px solid #85c2e0; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; color: #3e90b9; cursor: pointer; display: inline-block; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-weight: bold; line-height: 15px; padding: 5px 15px; position: relative; text-align: center; text-shadow: 0 1px 4px rgba(255, 255, 255, 0.7); vertical-align: center; text-decoration: none; } #join-text { padding: 25px; color: #555; font-size: 13px; font-family: 'Arial'; height: 160px; line-height: 18px; color: #777; } #join-text a { text-decoration: none; color: #3187a7; } #join-text a:hover { text-decoration: none; color: #0a6089; } #join-text span { display: block; padding-bottom: 15px; } #confirm-cancel-text { padding: 25px; color: #777; font-size: 13px; line-height: 18px; font-family: 'Arial'; height: 160px; } #confirm-cancel-text h1 { font-family: Museo500; font-size: 17px; color: #146F9D; margin: 0px; font-weight: normal; } #confirm-cancel-text span { display: block; padding-bottom: 5px; } #cancel-reg { cursor: pointer; }

Message Boards Message Boards

Answer (Unmark) Mark as an Answer
.root-post .like-component { align-items: center; } .root-post .like-button { margin-left: 10px; } WOLFRAM COMMUNITY 0 | 396 Views | 2 Replies | 3 Total Likes View groups... Follow this post Share Share this post: GROUPS: Economics Mathematics Calculus

Conditional expectation of variable drawn from uniform distribution with different domains

Anne Shirley Anne Shirley Anne Shirley Posted 23 days ago .root-post .like-component { align-items: center; } .root-post .like-button { margin-left: 0; }

I have two variables a and b, both independently drawn from uniform distribution. a is drawn from uniform distribution (m, m+1) while b is drawn from uniform distribution (0,1). Here, m is 0<m<1. The game is not fair and chances of picking a is more. It is theorized simply as - Condition for picking a is given by : a>= tb. For t as 0<t<1.
Put in words, lower the value of t, more unfairly a is chosen despite b being better.
If we have to compute the expected value of b when a is observed to be chosen then basically we need to compute - E(b|a>=t
b). I computed this

(t - m) * Integrate[b, {a, m, t}, {b, 0, (1/t)*a}] / Integrate[1, {a, m, t}, {b, 0, (1/t)*a}] + (1+m-t)*Integrate[b, {a, t, 1 + m}, {b, 0, 1}] / Integrate[1, {a, t, 1 + m}, {b, 0, 1}]

[t-m is the probability that a is between m and t. Similarly, 1+m-t is also the probability].

Am I correct in this approach? Please guide me.

POSTED BY: Anne Shirley 2 Replies Sort By: .root-post .like-component { align-items: center; } .root-post .like-button { margin-left: 0; } 0 Anne Shirley Anne Shirley Anne Shirley Posted 22 days ago

Thank you so much!

POSTED BY: Anne Shirley .root-post .like-component { align-items: center; } .root-post .like-button { margin-left: 0; } 3 Jim Baldwin Jim Baldwin Jim Baldwin Posted 22 days ago

I think a direct integration over the conditioned area works:

(* Set parameters *)
m = 1/16;
t = 3/4;

(* Mean by integration *)
bMean = Integrate[b, {a, m, m + 1}, {b, 0, Min[a/t, 1]}]/
        Integrate[1, {a, m, m + 1}, {b, 0, Min[a/t, 1]}] // N
(* 0.410541 *)

This can be checked with simulations:

(* Mean by simulations *)
n = 1000000;
aa = RandomVariate[UniformDistribution[{m, m + 1}], n];
bb = RandomVariate[UniformDistribution[{0, 1}], n];
data = Transpose[{aa, bb}];
data2 = Select[data, #[[1]] >= t  #[[2]] &];
Mean[data2[[All, 2]]]
(* 0.410485 *)

Or one can do it without specific values for $m$ and $t$:

t =.;
m =.;
bMean = Integrate[b, {a, m, m + 1}, {b, 0, Min[a/t, 1]}, Assumptions -> {0 < m < 1, 0 < t < 1}]/
    Integrate[1, {a, m, m + 1}, {b, 0, Min[a/t, 1]}, Assumptions -> {0 < m < 1, 0 < t < 1}] // PiecewiseExpand // FullSimplify

Conditional expectation of b given a >= b t

POSTED BY: Jim Baldwin
Reply to this discussion in reply to Community posts can be styled and formatted using the Markdown syntax. Tag limit exceeded Note: Only the first five people you tag will receive an email notification; the other tagged names will appear as links to their profiles. Reply Preview Attachments Remove or Discard

Group Abstract Group Abstract

Be respectful. Review our Community Guidelines to understand your role and responsibilities. Community Terms of Use Feedback © 2024 Wolfram. All rights reserved.