# How to calculate average distance from points to points?

I have a point layer of 400,000 voter residencies and a point layer of 500 polling places. I am trying to find the average distance it takes voters to get to their polling location. Distance by road would be optimal, but I would settle for as the crow flies as well. I have ArcGIS Basic with Network Analyst. I just got NA last week, so I have no experience with it. I have a related field that can match individual voters to a polling location.

I appreciate any ideas. Thanks!

-
Do you have a table matching residences with polling place? – whuber Jun 18 '13 at 15:28
I could easily make one. I have a polling place ID number for each residence in the residences attributes table. I also have that ID number for each polling place in the polling place attribute table. – brillo898 Jun 18 '13 at 16:31
Is it ok if the crow is named Jim? – Kirk Kuykendall Jun 19 '13 at 18:35
Have you looked at Location Allocation analysis? – Kirk Kuykendall Jun 19 '13 at 18:40

``````sqrt((residence.x - poll.x)^2 + (residence.y - poll.y)^2)
After that calculation is complete, a `summarize` operation will compute statistics such as overall average distance, average per polling location, etc.