News for hackers. Stuff that matters.
Re:Is the average sinuosity of the world's rivers equal to pi? by oofabz on Tuesday July 21, 2015 @10:35PM (#9927413)
Do rivers actually have a well-defined length? I know coastlines do not, and rivers seem similar.

https://en.wikipedia.org/wiki/Coastline_paradox

Re:Is the average sinuosity of the world's rivers equal to pi? by zamalek on Wednesday July 22, 2015 @04:40AM (#9928374)
The coastline paradox is a matter of accuracy (significant digits). As you "zoom in" on the coast this is what happens to the length:

100km > 120km > 128km > 129.5km > 129.52km > 129.528km > 129.6281km > ...

If you have to "zoom in" to see a length feature it means that the length feature is small and therefore the contribution to the overall length that these features provide diminishes. Something like a sigmoid[1], it would approach a limit (except in the case of some fractals, but not coastlines) - it can increase infinitely but at tinier and tinier increments. Eventually you reach the size of atoms and you are now talking about fractals and not real-life coastlines.

While it would technically apply to rivers as well, the website seems to be using a single significant digit. The above example becomes:

100km > 120km > 128km > 129.5km > 129.5km > 129.5km > 129.6km > ...

So we can accurately measure a coast/river length up to a specific significant digit.

[1]: https://upload.wikimedia.org/wikipedia/commons/5/55/Sigmoid_...

Re:Is the average sinuosity of the world's rivers equal to pi? by Osmium on Wednesday July 22, 2015 @04:51AM (#9928412)
> As you "zoom in" on the coast this is what happens to the length: 100km > 120km > 128km > 129.5km > 129.52km > 129.528km > 129.6281km > ...

I don't think that's true. In real life this series does not converge unless you specify a minimum feature size, which you hinted at. This isn't just a mathematical curiosity; real life coastlines are fractal and have no well-defined length, as the parent poster's link explains.

[Edited wording.]

Re:Is the average sinuosity of the world's rivers equal to pi? by zamalek on Wednesday July 22, 2015 @04:54AM (#9928422)
> To measure a coastline you have to specify a minimum feature size.

Not coastlines: only fractals. The name of the paradox is really unfortunate because it doesn't apply the coastlines "all the way down." You can't keep subdividing a coastline because eventually you start working with curves meaning that you can use calculus and meaning that you can work out limits.

The actual issue with real-life coastline (and river) length is that it's continuously changing.

[Edit to your edit]: yep. However the important result is that we can actually arrive at a length for a river, regardless of the mathematical thought experiment.

Re:Is the average sinuosity of the world's rivers equal to pi? by Osmium on Wednesday July 22, 2015 @04:58AM (#9928433)
Agreed that the fact it's continuously changing is an additional issue, but I don't see the "eventually you start working with curves" argument. Where are these curves on a typical coastline?

If you're measuring the coastline on a map, that argument holds, but the map is only one representation of the reality, and they've already made decisions regarding minimum feature size implicit in the construction of the map.

But yes, also agreed that measuring rivers should be fine, because you can represent it as a one-dimensional line along the 'centre of mass' of each segment of the river, which should give well-defined values regardless of what the 'edges' of the river look like.

Re:Is the average sinuosity of the world's rivers equal to pi? by zamalek on Wednesday July 22, 2015 @05:00AM (#9928448)
> Where are these curves on a typical coastline?

Between atom nuclei.

Re:Is the average sinuosity of the world's rivers equal to pi? by Osmium on Wednesday July 22, 2015 @05:02AM (#9928452)
How so? Do you fit the positions of your nuclei to a spline to get your curve? How about quantum uncertainty in its position? How do you assign whether a given nuclei belongs to the 'coast' or to the 'sea', etc. I don't think it holds.
Re:Is the average sinuosity of the world's rivers equal to pi? by zamalek on Wednesday July 22, 2015 @05:07AM (#9928467)
> How about quantum uncertainty in its position?

Aw crap, really good point. You're right.

Re:Is the average sinuosity of the world's rivers equal to pi? by Strilanc on Tuesday July 21, 2015 @11:14PM (#9927539)
Suppose you expanded every point of a coastline into a small disk (i.e. take the minkowski sum [1] of the coastline and a disk). Is the perimeter of the resulting shape still infinite?

The coastline had infinite perimeter because as you zoomed it got jankier and jankier. But once the janks get smaller than the disk, they start being hidden by disks from the surrounding points. You can't jump in and out anymore on tiny scales, because you run into the adjacent disks. This smooths out the noise and things converge instead of diverging.

... I think.

A river's length would smooth out for essentially the same reason. The set of points equidistant from both sides of the river is smoothed out compared to the sides because points on the side that are closer to the center of the river will hide jank from the nearby further points.

That's my intuition anyways. Not sure how it actually plays out.

Edit And if you go by "shortest path within the river from source to sink" as the length then it's definitely finite.

1: https://en.wikipedia.org/wiki/Minkowski_addition

Re:Is the average sinuosity of the world's rivers equal to pi? by unholiness on Tuesday July 21, 2015 @10:52PM (#9927475)
Yes.

With a coastline, the closer you measure, the more length-increasing features you observe, causing the measured length to diverge.

Rivers have a finite width, so once the distance between your measurements is smaller than the width of the river, the measured length will converge to the true length.

Re:Is the average sinuosity of the world's rivers equal to pi? by pmalynin on Tuesday July 21, 2015 @11:42PM (#9927623)
Indeed, one would reach the plank length -- and hence the distance simply cannot be infinite.
Re:Is the average sinuosity of the world's rivers equal to pi? by thedufer on Tuesday July 21, 2015 @11:53PM (#9927647)
The planck length is simply the base length when you set up your units such that c, G, and h are all 1. There's currently no reason to believe it has any sort of physical meaning beyond that.
Re:Is the average sinuosity of the world's rivers equal to pi? by iaw on Wednesday July 22, 2015 @01:12AM (#9927846)
I think wikipedia disagrees with your assessment: "According to the generalized uncertainty principle (a concept from speculative models of quantum gravity), the Planck length is, in principle, within a factor of 10, the shortest measurable length – and no theoretically known improvement in measurement instruments could change that."[1]

[1] https://en.wikipedia.org/wiki/Planck_length

Re:Is the average sinuosity of the world's rivers equal to pi? by thedufer on Wednesday July 22, 2015 @02:17AM (#9927992)
"within a factor of 10" is a curiosity rather than anything of real significance. And even that is based on untested theories. It is possible that the Planck length will end up being significant in the way described upthread, but given our scientific record it seems somewhat more likely that such an idea will end up looking similar to the theory about atoms being the smallest unit of matter.
Re:Is the average sinuosity of the world's rivers equal to pi? by placeybordeaux on Tuesday July 21, 2015 @10:48PM (#9927457)
The complexities there don't seem to have a correlary to the rivers.
Re:Is the average sinuosity of the world's rivers equal to pi? by reilly3000 on Wednesday July 22, 2015 @03:30AM (#9928178)
Why on earth would the rivers of the world have an average sinuosity of pi? Rivers are super dynamic and are effectively a side effect of localized water cycles and geology. This seems like Music of the Spheres... Aka looking for harmony in a chaotic universe.
Re:Is the average sinuosity of the world's rivers equal to pi? by brittonsmith on Wednesday July 22, 2015 @04:38AM (#9928371)
An explanation of this is put forth in both the video and paper linked to in the opening paragraph. The principle is that bends in rivers tend to grow as erosion happens on the outside of the bend and soil deposition on the inside. This increases sinuosity until the point at which the bend comes full circle, forms an oxbox lake, and returns the local region of the river to a straight line with sinuosity of 1. The value of pi is supposed to come out when you consider all of a river's curves and wiggles on all length scales.

The right answer may not be pi, but the data shown make a compelling case that rivers do tend to some average value.

As a sidenote, there are active human efforts to keep certain rivers, like the Mississippi, from meandering too far from their current locations. I don't know how many of the world's rivers have such efforts being applied to them, but it's not unreasonable to think that this could have some effect.

Re:Is the average sinuosity of the world's rivers equal to pi? by eitally on Wednesday July 22, 2015 @04:51AM (#9928413)
I suspect damming (and other human intervention as you note) in general causes restrictions in sinuosity, artificially either preventing on creating local regions of sinuosity = 1.
Re:Is the average sinuosity of the world's rivers equal to pi? by dspillett on Wednesday July 22, 2015 @04:26AM (#9928349)
They could tend towards that value though, if it is somehow more efficient in the general case, with variation being due to local conditions which cancel out if you consider a large enough data set of locations.

Or I could just be babbling and made that sentence up off the top of my head!

Or both the above could be true...

Re:Is the average sinuosity of the world's rivers equal to pi? by hobarrera on Wednesday July 22, 2015 @04:34AM (#9928360)
It would have been quite interesting if it had been, and probably something we'd spend the next few centuries banging our heads trying to understand.

The project is still interesting, since it seems to indicate a strong convergence to a certain sinuosity (~1.5?).

Re:Is the average sinuosity of the world's rivers equal to pi? by bbcbasic on Wednesday July 22, 2015 @12:35AM (#9927751)
One thought - should it be a weighted average? I.e. the longer the river, the more bearing it's ratio has on the result.
Re:Is the average sinuosity of the world's rivers equal to pi? by te on Wednesday July 22, 2015 @02:28AM (#9928027)
Re:Is the average sinuosity of the world's rivers equal to pi? by aaron695 on Wednesday July 22, 2015 @01:38AM (#9927892)
Crowd sourcing to disprove a published paper is the real story here.

(Although I'm not sure the paper actually said it was true, just the hundreds of articles that reported on it)

Re:Is the average sinuosity of the world's rivers equal to pi? by gus_massa on Tuesday July 21, 2015 @08:26PM (#9926897)
It would be nice if the distribution graphic of the sinuosity has units.

Also, there is a clear outlier with sinuosity 7.6. Which river is it?

Re:Is the average sinuosity of the world's rivers equal to pi? by ggchappell on Tuesday July 21, 2015 @09:57PM (#9927276)
The Lukuga -- #40 on the list.

I suspect there is an error in the data. The project lists the Lukuga River as being 1904 km long. But Wikipedia[1] only has 320 km, which would give it a much more ordinary sinuosity of 1.27.

For a river that might actually have a very high sinuosity, take a look at the Fraser River -- #20 on the list, with sinuosity listed as 5.12.

[1] https://en.wikipedia.org/wiki/Lukuga_River

Re:Is the average sinuosity of the world's rivers equal to pi? by votingprawn on Wednesday July 22, 2015 @05:12AM (#9928482)
And also numerous rivers with sinuosity < 1, i.e. the river is shorter than the straight line distance between the source and mouth.
Re:Is the average sinuosity of the world's rivers equal to pi? by PhasmaFelis on Tuesday July 21, 2015 @11:57PM (#9927654)
What's going on with the HN title font? That square-with-the-bottom-missing character seems to be the proper codepoint for lowercase-pi, but it's definitely a not a recognizable rendering of lowercase-pi. Even in sans serif, the top bar should extend past the corners on the left and right.
Re:Is the average sinuosity of the world's rivers equal to pi? by tgb on Tuesday July 21, 2015 @10:05PM (#9927302)
Great project! Seems like one could scrape the data from Wikipedia. I entered a few rivers by just copying data out of the Wikipedia side bars for them. Any reason that wasn't done?
Re:Is the average sinuosity of the world's rivers equal to pi? by lsjroberts on Thursday July 23, 2015 @04:46AM (#9934636)
Author here, feel free to contact me if you're interested in this or a scientist in a related field - lsjroberts [at] outlook {dot} com

Thanks for the feedback, I'm working on expanding the project to import data from a couple of sources, you can follow it at http://github.com/lsjroberts/pi-me-a-river

Re:Is the average sinuosity of the world's rivers equal to pi? by IsaacL on Tuesday July 21, 2015 @11:00PM (#9927505)
What's the reasoning behind why this should be the case? Something to do with the curvature of the Earth?
Re:Is the average sinuosity of the world's rivers equal to pi? by mistercow on Tuesday July 21, 2015 @11:29PM (#9927578)
There's a link to a video that explains it.

tl;dw: when rivers are very sinuous, the kinks turn into oxbow lakes and separate from the river, so that limits how sinuous they can get. On the other hand, rivers' bends are constantly amplified by erosion. Researchers modeling these phenomena showed that under certain assumptions, these forces are in equilibrium at a sinuosity of ᴨ.

Re:Is the average sinuosity of the world's rivers equal to pi? by tofupup on Tuesday July 21, 2015 @11:44PM (#9927629)
from visual inspection the histogram seems to peak at 1.6 the golden mean
Re:Is the average sinuosity of the world's rivers equal to pi? by spacehome on Tuesday July 21, 2015 @10:38PM (#9927424)
I guess the answer is no.
Re:Is the average sinuosity of the world's rivers equal to pi? by plonh on Wednesday July 22, 2015 @12:59AM (#9927811)
Need a really good reason to read past "equal to π (3.141593)".
Re:Is the average sinuosity of the world's rivers equal to pi? by matt_kantor on Tuesday July 21, 2015 @11:59PM (#9927660)
This is somewhat pedantic, but the average anything of anything can never be equal to π; it's an irrational number, and averages (arithmetic means) are ratios.

What should be said is that the average might approach π.

EDIT: I'm wrong, read the replies.

Re:Is the average sinuosity of the world's rivers equal to pi? by StefanKarpinski on Wednesday July 22, 2015 @12:06AM (#9927681)
If you're going to be pedantic, do it right.

The average of 0 and 2π is π, so an average can certainly be π. Yes, the average of a finite number of rational numbers cannot be π since π is irrational. But why would the sinuosity of any river be rational? The sinuosity of a circle is exactly π, for example. The true sinuosity of any given river is almost certainly irrational as well, since irrational numbers vastly outnumber rational ones in a very relevant sense: if you pick a real number uniformly at random between 0 and 1, there is literally zero chance that you will pick a rational number. Similarly, there is zero chance that the sinuosity of any river will be π or that the average of any finite number of rivers will be π. However, what they mean when they say this is this more precise fact: if there were an infinite number of rivers formed like those on Earth, the average sinuosity of that infinite collection of rivers would be exactly π.

There. That's how to be pedantic.

Re:Is the average sinuosity of the world's rivers equal to pi? by eru on Wednesday July 22, 2015 @01:17AM (#9927861)
> The true sinuosity of any given river is almost certainly irrational as well, since irrational numbers vastly outnumber rational ones in a very relevant sense [...]

Though, at these levels of precision any physical quantity stops being a number, and becomes more like a distribution that varies over time.

Re:Is the average sinuosity of the world's rivers equal to pi? by pash on Wednesday July 22, 2015 @01:00AM (#9927817)
> If you're going to be pedantic, do it right.

Let's do it.

> The true sinuosity of any given river is almost certainly irrational as well, since irrational numbers vastly outnumber rational ones in a very relevant sense: if you pick a real number uniformly at random between 0 and 1, there is literally zero chance that you will pick a rational number.

Apparently you have access to measuring devices that can spit out irrational numbers. I'm impressed. No other scientist has ever seen such a thing. Unfortunately, because the computable numbers are countable, the set of irrational numbers that you will almost surely see in your setup will almost surely be uncomputable. In other words, not only will you almost surely select a number that cannot be the result of a measurement of finite precision, but you will almost surely select one that has no finite description at all.

So you will almost surely never get a measurement of the length of a river. The average of an empty set is undefined, and oofabz's objection above pertains: rivers almost surely lack lengths.

(Less pedantically: matt_kantor's pedantry was essentially correct, even if in an unintended way. Irrational numbers do not exist in the world of physical measurements. Abstracting from this reality, as StefanKarpinski did, can lead to ridulous models, because the real numbers are wholly artificial. Make probabilistic assertions about physical realities modeled with real numbers at your own peril.)

Re:Is the average sinuosity of the world's rivers equal to pi? by dogecoinbase on Wednesday July 22, 2015 @02:10AM (#9927974)
This is a trivially absurd argument for two reasons:

First, it would be extremely straightforward to make a measuring device that spits out irrational numbers. Take the output, truncate at half the accuracy, and append an irrational to the output.

Second, outputting an irrational number as a measurement does not imply that it's able to output any member of the complement of the rationals in the reals. You also conflate the computable numbers with the describable numbers -- but I'll give you the benefit of the doubt and assume you believe strong Church-Turing and aren't just committing an elementary error.

There are ways in which set theoretic concerns apply to the real world, but they are few and far between, and this is not among them. You're essentially in line with people who attempt to use Goedel's proofs to make grandiose pronouncement about human thought. It. Does. Not. Apply.

Re:Is the average sinuosity of the world's rivers equal to pi? by pash on Wednesday July 22, 2015 @03:53AM (#9928241)
> ... outputting an irrational number as a measurement does not* imply that it's able to output any member of the complement of the rationals in the reals.*

It's my fault, I'm sure, but you have missed the point entirely. The argument to which I responded, and which I extended absurdly, does imply that every real number is a valid output of a chance setup, and further assumes that each real number, including "any member of the complement of the rationals in the reals", is an equally likely outcome of that setup. That is anyway the conventionally understood definition of "pick a real number uniformly at random between 0 and 1".

I would attempt to clarify the rest of what I wrote, but your condescension dissuades me.

Re:Is the average sinuosity of the world's rivers equal to pi? by black_knight on Wednesday July 22, 2015 @01:22AM (#9927874)
> > if you pick a real number uniformly at random between 0 and 1, there is literally zero chance that you will pick a rational number.

> Unfortunately, because the computable numbers are countable, the set of irrational numbers that you will almost surely see in your setup will almost surely be uncomputable.

That only applies if you assume some continous distribution. The world may for all we know be discrete and finitary, and so it may be that any real number which pops up is computable.

And surely there is nothing preventing a measuring instrument to produce irrational numbers. It is just that it will still be an approximation, and thus there are rational numbers which are just as close to the real value.

Re:Is the average sinuosity of the world's rivers equal to pi? by LukeShu on Wednesday July 22, 2015 @03:13AM (#9928135)
> measuring devices that can spit out irrational numbers. ... No other scientist has ever seen such a thing.

There are devices that indirectly measure something, and relate it to the desired measurement involving pi.

Stupid example: Take a measuring wheel that counts encoder clicks. Say the encoder has 300 clicks/revolution. The device is quite likely calibrated to output clicks(2pi*radius/300).

Re:Is the average sinuosity of the world's rivers equal to pi? by pash on Wednesday July 22, 2015 @04:05AM (#9928275)
This sort of thing exists and is apparently what other commenters also have in mind, but I would argue that in your example the measuring device's output is a natural number n in the range [0, 300] and that its interpretation as a fraction of a circle's circumference is just that.

Clearly the existence of describable irrational numbers implies that we can describe a measurement using an irrational number. That does not make a finite measurement essentially irrational in any meaningful sense.

Re:Is the average sinuosity of the world's rivers equal to pi? by matt_kantor on Wednesday July 22, 2015 @12:24AM (#9927723)
Good call, I'm not sure why I hadn't considered that. I blame the whiskey!
Re:Is the average sinuosity of the world's rivers equal to pi? by StefanKarpinski on Wednesday July 22, 2015 @12:29AM (#9927736)
No worries. You gave me an excellent excuse to exercise my pedantry in a way that I usually try to avoid so as not to be a social pariah :-)
Re:Is the average sinuosity of the world's rivers equal to pi? by plonh on Wednesday July 22, 2015 @12:58AM (#9927805)
If you are going to be pedantic, please explain how anything in the Heisenberg Uncertainty-bounded universe can have a transcendental size.
Re:Is the average sinuosity of the world's rivers equal to pi? by IvyMike on Wednesday July 22, 2015 @12:04AM (#9927674)
What's the average of 0 and 2pi?