Sign in to follow this  

Average length of a line in a box

This topic is 2846 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm trying to come up with a statistical test for judging the quality of a prng. It involves randomly plotting 2 n-dimensional points in a n-dimensional box with sides of length 1, and finding the average distance between two points. I know the average squared distance should be dimensions/6, but I'm looking to find the unsquared distance. For 1 dimension I've calculated the average distance to be 1/3, but for dimensions 2 and higher I haven't been able to integrate the equations. For 2 dimensions the data looks like the average distance should be pi/6. Does anyone know how I could calculate these values?

Share this post


Link to post
Share on other sites

This topic is 2846 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this