Menu Close

You-have-a-1×1-cm-square-If-you-pick-two-random-points-inside-the-square-what-is-the-average-distance-between-those-points-




Question Number 6609 by Temp last updated on 05/Jul/16
You have a 1x1 cm square. If you pick  two random points inside the square,  what is the average distance between  those points?
Youhavea1×1cmsquare.Ifyoupicktworandompointsinsidethesquare,whatistheaveragedistancebetweenthosepoints?
Commented by prakash jain last updated on 05/Jul/16
Let X and Y be two random variable.  f_X (x) and f_Y (y) are probability density function  of X and Y.     In the above case we can assume uniform.  We define a new random variable  Z=(√(X^2 +Y^2 ))  Then mean value of Z will be given by:  E(Z)=∫Zf_Z (z)dz  We need to find f_Z (z) from f_X  and f_Y .  will continue to find f_Z (z)
LetXandYbetworandomvariable.fX(x)andfY(y)areprobabilitydensityfunctionofXandY.Intheabovecasewecanassumeuniform.WedefineanewrandomvariableZ=X2+Y2ThenmeanvalueofZwillbegivenby:E(Z)=ZfZ(z)dzWeneedtofindfZ(z)fromfXandfY.willcontinuetofindfZ(z)
Commented by prakash jain last updated on 05/Jul/16
f_X (x)= { (1,(0≤x≤1)),(0,(elsewhere)) :}  f_Y (y)= { (1,(0≤y≤1)),(0,(elsewhere)) :}  for uniform density
fX(x)={10x10elsewherefY(y)={10y10elsewhereforuniformdensity
Commented by prakash jain last updated on 05/Jul/16
Since X and Y are independent variable  we can write joint probablity distribution  as  f_(XY) (x,y)=f_X (x)∙f_Y (y)  Expected value of distance  z=g(x,y)=(√(x^2 +y^2 ))  E(g(x,y))=∫_(−∞) ^∞ ∫_(−∞) ^∞ (√(x^2 +y^2 ))f_X (x)f_Y (y)dxdy  =∫_0 ^1 ∫_0 ^1 (√(x^2 +y^2 ))dxdy=(1/2)((√2)+sinh^(−1) 1)  Please check. I am not 100% sure.
SinceXandYareindependentvariablewecanwritejointprobablitydistributionasfXY(x,y)=fX(x)fY(y)Expectedvalueofdistancez=g(x,y)=x2+y2E(g(x,y))=x2+y2fX(x)fY(y)dxdy=0101x2+y2dxdy=12(2+sinh11)Pleasecheck.Iamnot100%sure.
Commented by Temp last updated on 05/Jul/16
What if you integrate for polar coordinates  over half of the square, and double the  integral?    y=rsinθ  x=rcosθ  etc...
Whatifyouintegrateforpolarcoordinatesoverhalfofthesquare,anddoubletheintegral?y=rsinθx=rcosθetc
Commented by prakash jain last updated on 07/Jul/16
If we tranform to polar the limits for r  will dependent on θ.  For half square (triangle)  r=1/cos θ  =∫_0 ^( π/4) ∫_1 ^( 1/cos θ) r^2 drdθ
Ifwetranformtopolarthelimitsforrwilldependentonθ.Forhalfsquare(triangle)r=1/cosθ=0π/411/cosθr2drdθ

Leave a Reply

Your email address will not be published. Required fields are marked *