Post Reply 
Little explorations with HP calculators (no Prime)
03-27-2017, 08:44 PM (This post was last modified: 03-27-2017 09:18 PM by pier4r.)
Post: #48
RE: Little explorations with the HP calculators
(03-27-2017 08:36 PM)Han Wrote:  Since the distance between two points \( x_1 , y_1 \) and \( x_2, y_2\) is
\[ d = \sqrt{ (x_2 - x_1)^2 + (y_2 - y_1)^2}, \]
I took the approach of looking at the probability density function for the distance between each of the coordinates: \( |x_2 - x_1| \) and \( |y_2 - y_1| \). Since they are independent and identically distributed, just consider the probability density of \( |x_2 - x_1| \). Once I got the probability distribution function, the integral I ended up with was indeed a double integral. (I had to pull out my calculus textbook because it is quite a tedious computation to do by hand.)


My suspicion is that it is due to precision.

Interesting, both parts. I do indeed take only the integer part of the random value, after 3 digits (with IP). I will check what happens if I extend it to 6. Now I compute... poor batteries.

[Image: bW6WDYp.png]

Wikis are great, Contribute :)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Little explorations with the HP calculators - pier4r - 03-27-2017 08:44 PM



User(s) browsing this thread: 4 Guest(s)