User:RiverStyx23/sandbox

From Wikipedia, the free encyclopedia

Links[edit]

Math[edit]

Please don't get scared by a little mathematics. This appendix is written to be easy to follow, thought provoking, and worthwhile to read. There is nothing involved in the equations other than addition, subtraction, multiplication, and division. All the important stuff is explained using high school English sentences – in logic you can follow.

Locating the center of a population is easy if one is satisfied with some assumptions and mathematics. From the internet one can get the latitude and longitude for each member’s address. Ignoring some minor effects related to the non-flatness of the Earth, the “geometric mean center” of a population is the point defined by the average latitude and longitude. That's the answer. The computation to prove it will be discussed after some other details.

Given the latitudes and longitudes of two points, there are complications involved in calculating their separation in miles. For our purposes we will assume that Ohio is flat, and small enough that miles per degree of latitude, or longitude, are constant statewide. This allows us to use the Pythagorean relation you remember from your high school class in trigonometry – – to compute theoretical straight line distances between points. The error introduced by these assumptions is negligible inasmuch as we generally travel by roads, and not “as the crow flies.”

At the Equator there area approximately 69.17 miles per degree of either latitude or longitude. Distances between degrees of latitude (from North to South) are constant regardless of how far one is from the Equator. For our calculations, let's round up to an even 69.20 miles per degree of latitude.

Distances between degrees of longitude (from West to East), however, vary with the cosine of the latitude at which the distance is being measured, falling to zero at the poles. Ohio’s latitude, which is to say it's distance from the Equator, is about 38.50° at _____________ and about 41.50° at _____________. In order to calculate the distance between degrees of longitude, we will split the difference and assume 40°. To calculate the distances between degrees of longitude in Ohio, then, we just apply a simple formula: 69.20·cos(40°), which comes to 53 miles per degree of longitude.

The point we want to find is the center of population. If we knew this point (its latitude and longitude), we could compute its distance from each of the member's homes. To be called the center of population, there must be something minimum about these distances. We will choose the point such that the sums of the squares of all these distances is that minimum. The point thus computed is called the geometric mean center. Other “somethings to be minimum” are possible, but this “minimum sum of squares” is not only the most generally accepted definition, but differs only a little from a location computed by other practical choices (and it also simplifies the math.)

Now for the math: Let the home of member be located at – that is, at latitude and longitude . Let the candidate center point be at . (We have let run East-West and run North-South, but these are arbitrary choices.)

The distance squared between and is . That is, is the diagonal distance between the address of member and the candidate center. The distance , and likewise , may be either positive or negative – consequently, the direction of the diagonal can be along any point of the compass.

Given members, the sum of distances squared for all members is:

.



The big (the Greek capital letter sigma) is the addition symbol. Together with its subscript and superscript, it tells us to sum all of the distances squared.

is just a number – it is the sum of all the distances squared. Our problem is to solve for the unknowns, and . The equation is true for any and , and, in fact, any location close enough to Ohio that the Earth can be considered flat. The problem is to compute the pair that gives the smallest value of . This will be done using 1950's high school mathematics.

Before proceeding, note that the and variables can be summed separately and then added together:

.



That is, the and terms can be summed separately and then added together.

Still needs to be proofread below this line


Consider the point , close to . Think of as a tiny distance, although this condition is not important until later. Computing the sum of squares of distances from members homes to this new point, we get:



Subtracting gives:



_________



Now we square the terms in parentheses. Squaring the triple term will not be too hard, will it?

Also note that is a distance, so is the same as . We get:



The next three steps use basic high school algebra. Combining like terms, we are left with:



Summing the terms separately gives:



In the first term is added to itself times, so this term simplifies to . Similarly, the third term is . The second term involves the sum of all , which is simply times the average . Average is commonly denoted by an overbar, so the middle term simplifies to . ( is pronounced " sub bar").

Next, we factor from each term, and get:



Now its time for some straight thinking. Suppose we had considered a point , instead of : The end result would have been an identical equation, and the same concluding logic, but with instead of . If the point was offset in both directions, we would have:



Recall that the point is the population center point that we are solving for. If this point is at the average coordinate values, the terms in braces are and . Either or , may be negative, but must be either zero or positive.

Proofreading of following has been done


Thus, if and and if and each equal one mile, then the sum of distances squared from to all members' homes is square miles. If the 's are each one foot, then the sum of distances squared is square feet. Likewise for inches, millimeters, etc.

Now for the punchline: Any candidate center point, different than and has a larger sum of squared distances to the members homes.

Now, remember: We said is to be tiny. That was an understatement – we really want it to be infinitesimal. OK, you've got to think a little harder now about what that means. But if you've read this far you must be having fun. Since is infinitesimal, what's in the parentheses is just . Finally, summing the and terms separately, we get the change in due to a very tiny :



Surely, there was no problem noting that .

For defining population centers, one may wish to favor locations closer to certain members' addresses, e.g., officers, ritual team members, etc. Such favoring is arbitrary but is easily accomplished in the math. For example, if one wants to favor a point nearer the Worthy Chief's address, one can weight the distance to his address as more important than the distances of other members. The computation with weighted distances is essentially the same as without.