Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problematic OR

Status
Not open for further replies.

SamBones

Programmer
Aug 8, 2002
3,186
US
I just got back from giving blood (you all should, it saves lives). Anyway, there was a screening questions I struggled with. Regardless of who you are or where you've been, it only has one valid answer. Yes.

Red Cross Screening Question said:
In the last three years, have you ever been outside the United States or Canada?

During the period of time in question I've only been in the US, therefore I have to answer "Yes", since I've been outside Canada.

Due to the sentence structure, the only valid answer is "Yes".

One other take-away is that overworked nurses have very little patience for smart alec programmers explaining boolean logic. They also can get their revenge in a micro-aggression called "find the vein".

 
I got the first taste of programmer humor years ago in college. I asked one of my fellow students a question about how to program something. Of course I said should I do this way or that way and his response was 'Yes'
 
[bugeyed]

James P. Cottingham
I'm number 1,229!
I'm number 1,229!
 
My father, though no programmer, often jokingly answered 'Yes' to questions like 'Do you want tea or coffee?'

Bye, Olaf.
 
OlafDoschke said:
My father, though no programmer, often jokingly answered 'Yes' to questions like 'Do you want tea or coffee?'

When getting a response like that, I usually just pick one and go with it. Make the Tea and tell them I had a 66% chance of giving them something they wanted. Which immediately degrades into an argument over probability and percentages.
[ol 1]
[li]Wants neither tea nor coffee = Reply "No"[/li]
[li]Wants tea only = Reply "Yes"[/li]
[li]Wants coffee only = Reply "Yes"[/li]
[li]Wants both tea and coffee = Reply "Yes"[/li]
[/ol]

Of the three options that would come from a "Yes" reply, "Tea" is an acceptable response for two of them (66%).

Now if the question was "Do you want tea xor coffee?", it would be much different.

 
@ SamBones

"Of the three options that would come from a "Yes" reply, "Tea" is an acceptable response for two of them (66%)."

Really? If that is True then the same can be said for Coffee. Both cannot be 66%

You Need to break it down further in that Tea is both 1/3 and (1/2 of 1/3) correct or 3/6 correct (50%)

**********************************************
What's most important is that you realise ... There is no spoon.
 
kwbMitel said:
Really? If that is True then the same can be said for Coffee. Both cannot be 66%

I see no inconsistency in both tea and coffee having a 66% chance. SamBones is apparently thinking of a scenario where in a group of 100 people, 25 dislike both tea and coffee, 25 like both, 25 like tea but dislike coffee, and 25 like coffee but dislike tea. Having already gotten a "yes" reply, we know we're not talking to someone who dislikes both, so we're talking to one of the 75 who likes one or the other, or both. In this group of 75, 50 of them like tea and 50 like coffee, so 66% would be satisfied to be served tea, as also would 66% be satisfied to be served coffee.
 
My father, though no programmer, often jokingly answered 'Yes' to questions like 'Do you want tea or coffee?'

He probably understood that 'tea or coffee' is not a true dichotomy :)

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.

Never mind this jesus character, stars had to die for me to live.
 
@ Karluk

I guess it comes down to how you define satisfaction.

[ul]
[li]If you want Tea and Coffee (4th option) and you only receive tea then are you satisfied?[/li]
[li]For me I am only 1/2 satisfied as I only got 1/2 of what I wanted.[/li]
[li]You and/or SamBones are calculating 100% satisfaction even though you didn't get something you wanted.[/li]
[/ul]

**********************************************
What's most important is that you realise ... There is no spoon.
 
>the same can be said for Coffee. Both cannot be 66%
Results of a random experiment don't need to be mutually exclusive. So their probabilities don't need to sum up to 100%.

As another example , rolling a dice you can ask for probabilities of getting 1 or 2, 2 or 3, 3 or 4,...,5 or 6,and 6 or 1. Each of these results would have a probability of 1/3 and these are 6 different results with a sum of probabilities of 6/3=2. The results overlap so always 2 are happening at the same time.

The result tea and coffee overlaps with both only tea and only coffee, so the 2/3 probability Sam talked about is totally in conjunction with that.

I would even put it simpler: My father said yes and each tea and coffee satisfy to be tea or coffee, so any can be served.

Bye, Olaf.
 
Olaf - I'm not sure what I'm missing here logically. The 4th item in the list says "Wants both tea and coffee"

By my assessment that means that Only Tea or Only Coffee does not satisfy that result. Receiving a tea only satisfies 1/2 of the requirement. As I said to Karluk. If I want both and only receive 1 or the other, I would not be satisfied. Although you guys seem to be ok with that.

**********************************************
What's most important is that you realise ... There is no spoon.
 
I'm not sure what I'm missing here logically. The 4th item in the list says "Wants both tea and coffee"

It's a probability of satisfaction rather than an exact measure. :)

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.

Never mind this jesus character, stars had to die for me to live.
 
Well, with the outset of only one beverage served "wants both coffee and tea" would never really be satisifed, if taken literally. But Sam said "I had a 66% chance of giving them something they wanted". Something they wanted also means partially fulfillment of a result. If you want tea and coffee, tea is in that. In that sense doing both would mean 100% satisfaction in all cases. Even if you only would want one, you can of course skip the other beverage, but that means more effort to get there.

If you take into account the result of the experiment will only be one beverage, I would interpret the question as a validity expression.
Is tea "tea or coffee": Yes
Is coffee "tea or coffee": Yes
Both drinks satisfy the answer "Yes" to the question "Do you want tea or coffee", 100% fulfillment.

Seeing it that way, my father is not withholding more specifications needed to serve him, what he will accept. So if the answer would be "no", no beverage would be the correct response, if the answer is "yes", any beverage is the correct response. Defining four results means you "accuse" my father of (impolitly) withholding informations/specifications.

Taking it to the context of IT project specifications, if I see specifications like that I most often ask for a better specification of customer demands, I sometimes try to not annoy and instead make assumptions I may or may not present as suggestion or recommendation and in the other case take as granted. Rarely, with customers I can do without I would implement the minimum and then let them either be satisfied or risc them leaving unsatisfied.

If you ever took part in a public tender you'd know how annoying it also can be to have very detailed specifications...Realistically there is a break even point for a good specification outlining the necessary solution and still staying assessible and not too long.

Getting towards total satisfaction the agile approach via iterations can save time on both ends, even if you implement something you need to scrap. You'll only stand out as a bad vendor or supplier, if you tend to only do minimum work and show no intererst to understand the gist of the needs and you're surely out, if you even fail to go at least in the right direction towards the goal. It's always easier to talk about the wanted solution when talking about partial solutions. In that sense my father could ask for the other beverage, if he really would want both and got one.

Back on topic of the real tea or coffee question of my mother, my father mostly meant to let my mother have the choice, obviously, besides to tease. Sometimes she wanted him to make the choice, but most important to state, perhaps: They are still married.

Bye, Olaf.
 
Ok, I was interpreting the word BOTH literally. I see now that you guys were interpreting it as EITHER.

**********************************************
What's most important is that you realise ... There is no spoon.
 
That's not the point, the difference is if you interpret something as the full wish or just something of it, even if sb wanted both in the literal sense of it. If you want both tea and coffee (literally) and you get tea, you get something you want. Not all you want, but something.

Bye, Olaf.
 
I was out to lunch with some former colleagues. One guy was asked if he wanted a soup or salad with his meal. He thought the waitress asked if he wanted a super salad with his meal. His response was "Yes, that sounds great!
 
I find the "I want both tea and coffee" group to be too poorly defined to conclusively decide whether they would really be unhappy to receive only one of their choices. In fact, I find kwbMitel's interpretation rather amusing - I have a vision of a bunch of multi-beverage aficionados aggressively turning themselves into two-fisted drinkers on social occasions, walking around with a mug of coffee in one hand and a cup of tea in the other, alternately sipping tea or gulping coffee as the mood strikes them.

My main reason for posting in this thread was to respond to kwbMitel's statement that "Both cannot be 66%". This is arguably true of the tea or coffee question, but is clearly false in general - you can only conclude that two probabilities can't add up to more than 100% if you know that the intersection of the two is empty.
 
I love you guys! [bigsmile]

I posted the "66%" knowing it would generate this conversation. I was not disappointed. I love this kind of thread.

Some of you have added the word "both". Neither "both" nor "neither" were in the original sentence. Just "or".

As Olaf points out, my wording was carefully chosen, "I had a 66% chance of giving them something they wanted". If they wanted both coffee and tea, giving them tea would still be giving them something they wanted. Just not everything they wanted. I never mentioned "satisfying" anyone. After all, some people are NEVER satisfied (is it hot enough? Is it strong enough? It's not Earl Grey? etc).

 
Just thinking through the whole satisfaction issue, the possibilities are...
[ol 1]
[li]Wants nothing (replied "No" to original question, so not counted in percentages)[/li]
[li]Wants tea[/li]
[li]Wants coffee[/li]
[li]Wants either tea or coffee (wants a hot beverage, but doesn't care what it is)[/li]
[li]Wants both tea and coffee (pretty demanding, might not be invited over again)[/li]
[/ol]

So a response of tea is now...
[ul]
[li]75% = giving them something they wanted[/li]
[li]50% = Satisfying them[/li]
[/ul]

 
Thanks SamBones, this is exactly what I meant by breaking it down a little further

And I guess I'm not invited next time. [sad]

**********************************************
What's most important is that you realise ... There is no spoon.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top