Rounding Error

A number is uniformly chosen from [ 0.15 , 0.25 ] [0.15, 0.25] . It was rounded to two decimal places and then to one decimal place. The probability that the final value is 0.2 0.2 is X % X \% . What is X ? X?

Assumption: Use rounding "half away from zero". That is, if the number is equally far from the two closest numbers, choose the one away from zero. For example, 2.5 is equally far from 2 and 3, so round 2.5 to 3.


The answer is 95.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Ivan Koswara
Jul 15, 2014

Let the initial number be n n and it after rounded to two decimal places be m m . Then we need m [ 0.15 , 0.25 ) m \in [0.15, 0.25) in order to be rounded to 0.2, which means m [ 0.15 , 0.24 ] m \in [0.15, 0.24] as m m has two decimal places. This means n [ 0.145 , 0.245 ) n \in [0.145, 0.245) ; the value 0.145 0.145 is rounded to 0.15 0.15 , and the value near 0.245 0.245 is rounded to 0.24 0.24 . But since we pick n n from the interval [ 0.15 , 0.25 ] [0.15, 0.25] , only their intersection matters: we round to 0.2 if and only if n [ 0.15 , 0.245 ) n \in [0.15, 0.245) .

Assuming n n is uniformly distributed on this interval, the chance of it lying in [ 0.15 , 0.245 ) [0.15, 0.245) is equal to its length, 0.095 0.095 , divided by the length of the interval where we sample n n from [ 0.15 , 0.25 ] ) [0.15, 0.25]) , namely 0.1 0.1 . This is 95 % \boxed{95}\% .

Well I got different answer its because rounding off when 5 appears is as below. .25 -> .2 .35 -> .4 Round up a number when odd is before Round down a number when even is before.

That way n € [ .145, 255) Correct me if I am wrong.

Sanath Kumar B P - 6 years, 6 months ago

Log in to reply

0 - 4 is left of center, 5 - 9 is to the right.

John Boucher - 2 years, 4 months ago

0.25 always rounds up to 0.3, not 0.2 as you claim, just as 0.35 always rounds up to 0.4. We all learn that in grade school.

Daniel Tinsley - 7 months, 2 weeks ago

Why did you say n in [0.145,0.245) when the interval [0.145,0.15) should not be included in this.

Davy Ker - 4 years, 11 months ago

Log in to reply

A number in the interval [ 0.145 , 0.15 ) [0.145, 0.15) (or if you're pedantic, ( 0.145 , 0.15 ) (0.145, 0.15) , because some people rounds 0.145 0.145 down) gets rounded to 0.15 0.15 , then further rounded to 0.2 0.2 .

Ivan Koswara - 4 years, 11 months ago

Log in to reply

I agree with Davy. [.145, .15] is irrelevant because it's not in the original interval from which n can be chosen. It didn't end up factoring into your answer but it's quite confusing the include.

A R - 3 years, 5 months ago

Log in to reply

@A R Yes, as I noted afterwards, it is irrelevant. The numbers that round to 0.2 are those with n [ 0.145 , 0.245 ) n \in [0.145, 0.245) . Since the interval we're picking from is [ 0.15 , 0.25 ] [0.15, 0.25] , this means only n [ 0.15 , 0.245 ) n \in [0.15, 0.245) will be included.

Ivan Koswara - 3 years, 5 months ago

@A R It took me three years to realize the error in my proof. Now fixed.

Ivan Koswara - 3 years, 5 months ago

It took me three years to realize the error in my proof. Now fixed.

Ivan Koswara - 3 years, 5 months ago

According to rules of significant figures 0.145 rounded to two decimal places is 0.14 and that further rounded to one decimal place is 0.1.I don't think 0.145 is included. further rounding .246 to decimals will give me .25 and that further rounded will give .2. So I have lot of confusion by what you mean by rounding. it is clear that you are not talking about significant figures rounding.

Vishal Mishra - 3 years, 8 months ago

Log in to reply

In this problem, the rounding used is "half away from zero"; if a number is exactly halfway, round it away from zero. So 0.145 is rounded away to 0.15 and 0.25 is rounded away to 0.3.

Ivan Koswara - 3 years, 8 months ago

Log in to reply

Ohh but that was not mentioned in the problem , in physics the convention that we follow is is the preceding digit to 5 is odd, we round it one ahead and otherwise in even. 0135 is approx. 0.14 but .0125 is 0.12. Thank you for clarifying. Is there a advised order while reading wikis?

Vishal Mishra - 3 years, 8 months ago

Log in to reply

@Vishal Mishra Yeah. I was taught to round half away from zero, but recently I see that round half to even seems to be more common (which as you notice changes the answer); the problem might need to have this clarified.

If you're asking what rounding convention the wiki uses, I'm not sure, I don't read it much myself. Most of the time it doesn't matter; only in problems like this where it does matter.

Ivan Koswara - 3 years, 8 months ago

Log in to reply

@Ivan Koswara I am very sorry. The second part was completely unrelated from the first part. I recently started using brilliant and there is no meta here I mean I can't ask questions about the site itself. My question about wikis is there a preferred order of reading them I mean like algebra then geometry and so. What is your advice?How do I start with brilliant?

Vishal Mishra - 3 years, 8 months ago

Log in to reply

@Vishal Mishra I have now added the clarification.

You can join Brilliant Lounge on Slack to ask questions about that. I don't really use the wiki, so I don't know much about it.

Ivan Koswara - 3 years, 8 months ago

All right, but how can you include 0.145 0.145 when choosing a number from [ 0.15 , 0.25 ] [0.15,0.25] , since 0.145 < 0.15 0.145<0.15 ??? You round number to two decimal places then to one decimal place, but after choosing it!!! Read properly: A number is uniformly chosen from [ 0.15 , 0.25 ] [0.15,0.25] . So your solution is not acceptable!

A Former Brilliant Member - 3 years, 5 months ago

But the number 0.145 0.145 doesn't belong to [ 0.15 , 0.25 ] [0.15,0.25] , and a number is supposed to be chosen from [ 0.15 , 0.25 ] [0.15,0.25] !!! I just wonder how it occurred to you?!

A Former Brilliant Member - 3 years, 5 months ago

Log in to reply

It took me three years to realize the error in my proof. Now fixed.

Ivan Koswara - 3 years, 5 months ago

The length of the segment which results in 0.2 after rounding, is 0.244 - 0.15 = 0.094. (That's because 0.245 will result in 0.25 after rounding to two places, which will result in 0.3 after rounding to one decimal place.) The length of full line is 0.25 - 0.15 = 0.10 Hence P() = 0.094/0.01 = 94%.

Vikram h - 1 year, 11 months ago

Log in to reply

I had the same solution and when I saw that my answer was wrong , I was surprised seeing that 0.245 was included also. I see that I was not the only one to think that 0.244 is correct limit, because it is the largest number that can be rounded to 0.2. I am actually interested to know why 0.245 should be included if that is the correct way to solve it.

Sven Anton - 1 year, 6 months ago

Your solution is better than mine. I've solved by using the tree diagram, there are a lot of different cases, but I got the same result.

Dieuler Oliveira - 6 years, 10 months ago
Carsten Meyer
Apr 22, 2020

Let x [ 0.15 ; 0.25 ] = : Ω R x\in[0.15;\:0.25]=:\Omega\subset\mathbb{R} be the randomly chosen number and x 1 , x 2 x_1,\:x_2 the results after the first and second rounding process, respectively. Note that after the first rounding, x 1 Ω x_1\in \Omega . We are interested in P ( x 2 = 0.2 ) = P ( x 1 [ 0.15 ; 0.25 ) ) = x 1 Ω 1 P ( x 1 = 0.25 ) = 1 P ( x [ 0.245 ; 0.25 ] ) = 1 0.25 0.245 0.25 0.15 = 0.95 = 95 % \begin{aligned} P(x_2=0.2) &= P(x_1\in[0.15;\:0.25\red{)}) \underset{x_1\in \Omega}{=} 1 - P(x_1=\red{0.25}) \\[1em] &= 1 - P(x\in[0.245;\:0.25]) = 1 - \frac{0.25-0.245}{0.25-0.15}=0.95=\boxed{95}\% \end{aligned}

In the last step, we can calculate the probability by comparing the lengths of Ω \Omega and [ 0.245 ; 0.25 ] [0.245;\:0.25] .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...