Skip to main content

It doesn’t matter much if the tape is straight

Suppose a contractor is measuring the length of a wall. He starts in one corner of the room, and lets out a tape measure heading for the other end of the wall. But something is in the way, so instead of measuring straight to the corner, he measures to a point near the corner on the adjacent wall.

If you looked down on the room from a bird’s eye view, the contractor wants to measure the distance from (0, 0) to (x, 0), but instead measures from (0, 0) to (x, y) where y is small relative to x. How much difference does this make?

The measurement error, as a function of y, is given by

(x² + y²)1/2x.

Expanding this function in a Taylor series around y = 0 shows that the error is approximately

y²/2x.

So the error is not on the order of y but of y²/x. The latter is much smaller if y is small relative to x.

For example, suppose a room is 10 feet (120 inches) long. If someone were to measure the length of the room by running a tape measure to a point 4 inches up the joining wall, the measurement error would not be anywhere near 4 inches but rather nearly 16/240 = 1/15 of an inch.

Let’s work this example out and see how good the approximation was. The hypotenuse of a right triangle with sides 120 and 4 is

√14416 = 120.066648…

which is very close to

120 + 1/15 = 120.06666…

The fact that the measurement wasn’t exactly corner-to-corner would likely not be the largest source of measurement error.

The post It doesn't matter much if the tape is straight first appeared on John D. Cook.



from John D. Cook https://ift.tt/36afLyi
via IFTTT

Comments

Popular posts from this blog

Controlling legend appearance in ggplot2 with override.aes

[This article was first published on Very statisticious on Very statisticious , and kindly contributed to R-bloggers ]. (You can report issue about the content on this page here ) Want to share your content on R-bloggers? click here if you have a blog, or here if you don't. In ggplot2 , aesthetics and their scale_*() functions change both the plot appearance and the plot legend appearance simultaneously. The override.aes argument in guide_legend() allows the user to change only the legend appearance without affecting the rest of the plot. This is useful for making the legend more readable or for creating certain types of combined legends. In this post I’ll first introduce override.aes with a basic example and then go through three additional plotting scenarios to how other instances where override.aes comes in handy. Table of Contents R packages Introducing override.aes Adding a guides() layer Using the guide argument in scale_*() Changing multiple aesthetic par...

Using RStudio and LaTeX

(This article was first published on r – Experimental Behaviour , and kindly contributed to R-bloggers) This post will explain how to integrate RStudio and LaTeX, especially the inclusion of well-formatted tables and nice-looking graphs and figures produced in RStudio and imported to LaTeX. To follow along you will need RStudio, MS Excel and LaTeX. Using tikzdevice to insert R Graphs into LaTeX I am a very visual thinker. If I want to understand a concept I usually and subconsciously try to visualise it. Therefore, more my PhD I tried to transport a lot of empirical insights by means of  visualization . These range from histograms, or violin plots to show distributions, over bargraphs including error bars to compare means, to interaction- or conditional effects of regression models. For quite a while it was very tedious to include such graphs in LaTeX documents. I tried several ways, like saving them as pdf and then including them in LaTeX as pdf, or any other file ...