Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

  • Welcome Guests

    Welcome. You are currently viewing the forum as a guest which does not give you access to all the great features at Traders Laboratory such as interacting with members, access to all forums, downloading attachments, and eligibility to win free giveaways. Registration is fast, simple and absolutely free. Create a FREE Traders Laboratory account here.

BlueHorseshoe

Puzzles for Traders

Recommended Posts

I thought that I would post a series of coffee-break puzzles, partly because they're fun, but also because they can lead to a better understanding of the statistical processes that underlie the assumptions we often make when evaluating trading approaches . . .

 

A city has a large hospital and a small hospital. Each has a maternity ward. Yesterday, 60% of the births at one of these hospitals were boys.

 

Which hospital is this more likely to be?

 

BlueHorseshoe

Share this post


Link to post
Share on other sites

 

A city has a large hospital and a small hospital. Each has a maternity ward. Yesterday, 60% of the births at one of these hospitals were boys.

 

Which hospital is this more likely to be?

 

BlueHorseshoe

 

top of the head - the smaller one.

why: the larger one is more likely to have a great er number of babies and hence will be more likely to tend toward the average expected of 50%, and hence the smaller one might be more likely to have a number deviate from the expected number.

 

.........................

reminds of this......a logic problem rather than statisitcs - if you want to keep it stats then i apologize.

EASY VERSION of the 'worlds hardest problem'

 

The problem - A fork in a road - one way leads to a village, the other a cliff- is guarded by a liar (false) and a truth teller (true) - you dont know which is which.

 

What single question, demanding a yes or no answer can you ask to find out which road leads to the village and which over the cliff.

 

 

HARD VERSION (The Hardest Logic Puzzle Ever - Wikipedia, the free encyclopedia)

 

Three gods A, B, and C are called, in no particular order, True, False, and Random. True always speaks truly, False always speaks falsely, but whether Random speaks truly or falsely is a completely random matter. Your task is to determine the identities of A, B, and C by asking three yes-no questions; each question must be put to exactly one god. The gods understand English, but will answer all questions in their own language, in which the words for yes and no are da and ja, in some order. You do not know which word means which.

Boolos (The originator of the question) provides the following clarifications:

  • It could be that some god gets asked more than one question (and hence that some god is not asked any question at all).
  • What the second question is, and to which god it is put, may depend on the answer to the first question. (And of course similarly for the third question.)
  • Whether Random speaks truly or not should be thought of as depending on the flip of a coin hidden in his brain: if the coin comes down heads, he speaks truly; if tails, falsely.

Share this post


Link to post
Share on other sites

The larger one. Because I'm a contrarian.

;)

 

Besides, you didnt say where the hospital was. If it was in the 3rd world (where over half of the worlds population live), there is a high probability ant female births would have been killed at birth and not reported. :helloooo:

Share this post


Link to post
Share on other sites
The larger one. Because I'm a contrarian.

;)

 

Besides, you didnt say where the hospital was. If it was in the 3rd world (where over half of the worlds population live), there is a high probability ant female births would have been killed at birth and not reported. :helloooo:

 

"3rd World"? You can't call it that any more! And TPLAC ("Tin Pot Little African Country" - thanks, 'Yes, Minister!') is out as well. Does anyone know what the current politically correct term is? When I was at school it was "Economically Less Developed Country", but that's bound to have changed . . .

 

In Achebe's novels they don't bother killing babies - they place them in a large clay vessel and leave them in the jungle.

 

The closest I have come to the "third world" is Ghana, and there were certainly plenty of women there ;)

 

BlueHorseshoe

Share this post


Link to post
Share on other sites
I thought that I would post a series of coffee-break puzzles, partly because they're fun, but also because they can lead to a better understanding of the statistical processes that underlie the assumptions we often make when evaluating trading approaches . . .

 

A city has a large hospital and a small hospital. Each has a maternity ward. Yesterday, 60% of the births at one of these hospitals were boys.

 

Which hospital is this more likely to be?

 

BlueHorseshoe

 

I would say the smaller of the two hospitals due to the smaller sample size.

 

By the way... a link to a world map that shows the primary sex ratio (ratio at birth) for each country. Just as a matter of interest, or for those that harbor misconceptions about our 3rd world brothers and sisters:

 

Worldwide Human Sex Ratio at Birth

Share this post


Link to post
Share on other sites

The answer to the last puzzle was, according to current mathematical convention, the smaller hospital due to the smaller sample size.

 

If anyone wants to argue against that, then the ensuing discussion will probably be more interesting than the puzzle itself. The puzzle is taken from Taleb's "The Black Swan", and I personally disagree with the general thesis he promotes, as I think the whole issue he examines is a matter of (retrospectively) ascribing error to a model rather than to the selection of data to which it is applied. On the other hand, Taleb is a big fan of Umberto Eco, one of my favourite authors, so . . .

 

Here's another puzzle:

 

There are 4 shut doors in front of you. You know that each door has an animal painted on one side and a plant painted on the other side. The four doors have the following painted on the sides that you can see (one per door): a lily, a pine tree, a fox, and an eagle. You have been told that these doors satisfy the rule "if a door has a flower on its plant side, then it has a bird on its animal side". What is the smallest set of doors that you must check the hidden side of to determine conclusively whether this rule is true or false for these doors? *

 

  1. Just the door with the lily
  2. Just the door with the eagle
  3. Just the doors with the lily and the eagle
  4. Just the doors with the lily and the fox
  5. Just the doors with the lily, fox and eagle
  6. Just the doors with the pine tree and eagle
  7. All of the doors

 

This puzzle is taken directly from the application form for a quantitative hedge fund.

 

BlueHorseshoe

Share this post


Link to post
Share on other sites

There are 4 shut doors in front of you. You know that each door has an animal painted on one side and a plant painted on the other side. The four doors have the following painted on the sides that you can see (one per door): a lily, a pine tree, a fox, and an eagle. You have been told that these doors satisfy the rule "if a door has a flower on its plant side, then it has a bird on its animal side". What is the smallest set of doors that you must check the hidden side of to determine conclusively whether this rule is true or false for these doors? *

 

  1. Just the door with the lily
  2. Just the door with the eagle
  3. Just the doors with the lily and the eagle
  4. Just the doors with the lily and the fox
  5. Just the doors with the lily, fox and eagle
  6. Just the doors with the pine tree and eagle
  7. All of the doors

 

 

I always get these ones wrong - so my Answer in this case is all of the doors.

(I have PMd you my answer so as not to spoil it for anyone.)

............

there is probably an easier way to solve it....:)

Share this post


Link to post
Share on other sites

EASY VERSION of the 'worlds hardest problem'

 

The problem - A fork in a road - one way leads to a village, the other a cliff- is guarded by a liar (false) and a truth teller (true) - you dont know which is which.

 

What single question, demanding a yes or no answer can you ask to find out which road leads to the village and which over the cliff.

 

 

.................

Solution: "If I ask the other person if the left path leads to the village, what would he say?"

 

keep working on the hard one....good luck.

Share this post


Link to post
Share on other sites

Solution: "If I ask the other person if the left path leads to the village, what would he say?"

 

Nice! I didn't get that, despite spending about thirty minutes drawing out a boolean truth table exactly as you did for the doors question.

 

They're always so obvious once you know the answer!

 

Thanks,

 

BlueHorseshoe

Share this post


Link to post
Share on other sites

table should be

 

you ask true

if the left path goes to the village --- False would say no so true says NO

if the right path goes to the village ---- False would say yes so true says YES

 

you ask false

if the left path goes to the village --- true would say yes so false says NO

if the right path goes to the village ---- true would say no so false says YES

 

Hence NO = left path, YES=right path regardless of who you ask.

Share this post


Link to post
Share on other sites
The answer to the last puzzle was, according to current mathematical convention, the smaller hospital due to the smaller sample size.

 

If anyone wants to argue against that, then the ensuing discussion will probably be more interesting than the puzzle itself. The puzzle is taken from Taleb's "The Black Swan", and I personally disagree with the general thesis he promotes, as I think the whole issue he examines is a matter of (retrospectively) ascribing error to a model rather than to the selection of data to which it is applied. On the other hand, Taleb is a big fan of Umberto Eco, one of my favourite authors, so . . .

 

Here's another puzzle:

 

There are 4 shut doors in front of you. You know that each door has an animal painted on one side and a plant painted on the other side. The four doors have the following painted on the sides that you can see (one per door): a lily, a pine tree, a fox, and an eagle. You have been told that these doors satisfy the rule "if a door has a flower on its plant side, then it has a bird on its animal side". What is the smallest set of doors that you must check the hidden side of to determine conclusively whether this rule is true or false for these doors? *

 

  1. Just the door with the lily
  2. Just the door with the eagle
  3. Just the doors with the lily and the eagle
  4. Just the doors with the lily and the fox
  5. Just the doors with the lily, fox and eagle
  6. Just the doors with the pine tree and eagle
  7. All of the doors

 

This puzzle is taken directly from the application form for a quantitative hedge fund.

 

BlueHorseshoe

 

Lily door: Make sure it has a bird

Eagle door: Doesn't matter what is on the other side as the rule doesn't say anything about the reverse relationship

Fox door: Need to make sure it doesn't have a flower side

Pine tree door: Already on the plant side and not a flower so doesn't matter

 

I think the answer is 4

Share this post


Link to post
Share on other sites

I'll go for 8 - Lily, Pine Tree, Eagle

 

Is it something like you can never prove something 100%, but you can disprove it. I'm not sure if that's related to this and that's probably not right. Eg this is a letter B <- , yes it is a letter B, proved! But it's something like one instance of an event which disproves the theory is all you need.

 

Anyway:-

You have to open the Lily because it might have a bird type of animal (or another animal which would disprove the theory).

You have to open the Pine Tree for the same reason.

You don't have to open the Fox because it cannot have a ....... no hang on. Pine Tree's wrong.

 

Ok hold on. Let me rethink.

 

Got to check any flowers. We don't have to check any other plant (eg the tree).

 

Lily

Pine Tree

Fox

Eagle

 

So it's answer 5 - you need to open Lily, Fox, Eagle

Lily (if there's not a bird on the back then the theory is wrong)

Pine Tree (can only be an animal on the back so we don't care what type it is)

Fox (it might have a flower on the back)

Eagle (it might not have a flower on the back)

 

 

NO! Hang on, we don't need to open the Eagle do we??? Because if we open the eagle and it has a flower on the back, or if it doesn't, it doesn't aid the proving or the disproving of the theory!!!

 

So it's Lily and Fox, answer number 4!!

 

Edit - I see TradeRunner got here before me - I thought someone would so I didn't look on page 2 before before writing this! :) Does this mean we get to join a quantitative hedge fund? Please don't tell me they ask more than one question or I'll be here all day :)

 

(Just imagine how cool it would be if our brains were wired such that we could answer this question immediately, without the need for all the time of working out?!)

Share this post


Link to post
Share on other sites

Siuya, I've heard the problem that you asked before somewhere, but I still couldn't remember the answer. And even when I read your answer, it still seems so hard to get the solution into my tiny brain.

 

I'm not sure I like this thread. I didn't get into trading to solve complicated puzzles and problems!

 

:)

Share this post


Link to post
Share on other sites

a man came to a bridge that crossed a railroad track. he went across the bridge but yet went around the bridge at exactly the same time. how did he do it?

Edited by Patuca

Share this post


Link to post
Share on other sites

stumbled on this....not so much a brain teaser- or is it?

http://www.traderslaboratory.com/forums/general-discussion/4420-test-your-tool.html

 

Also Traderunner you might be best to answer this....or anyone else.

your answers thoughts....

 

Lily door: Make sure it has a bird

Eagle door: Doesn't matter what is on the other side as the rule doesn't say anything about the reverse relationship

Fox door: Need to make sure it doesn't have a flower side

Pine tree door: Already on the plant side and not a flower so doesn't matter

I read the quote ""if a door has a flower on its plant side, then it has a bird on its animal side" as a rule, and hence the inverse relationship must also be true......

my question was more along the lines of is this what is referred to as 'known known or unknown knowns' - or something similar i have heard this before apart from Donald Rumsfeld.

Refering to the point that you can see one side of the doors, and its irrelevant to think about if you were on the other side of the doors.

thanks

(the things that pop into my head while at the gym)

Share this post


Link to post
Share on other sites
a man came to a bridge that crossed a railroad track. he went across the bridge but yet went around the bridge at exactly the same time. how did he do it?

 

it was a different day - same time.

Share this post


Link to post
Share on other sites

Here's another puzzle:

 

There are 4 shut doors in front of you. You know that each door has an animal painted on one side and a plant painted on the other side. The four doors have the following painted on the sides that you can see (one per door): a lily, a pine tree, a fox, and an eagle. You have been told that these doors satisfy the rule "if a door has a flower on its plant side, then it has a bird on its animal side". What is the smallest set of doors that you must check the hidden side of to determine conclusively whether this rule is true or false for these doors? *

 

  1. Just the door with the lily
  2. Just the door with the eagle
  3. Just the doors with the lily and the eagle
  4. Just the doors with the lily and the fox
  5. Just the doors with the lily, fox and eagle
  6. Just the doors with the pine tree and eagle
  7. All of the doors

 

This puzzle is taken directly from the application form for a quantitative hedge fund.

 

BlueHorseshoe

 

I first answered this with the assumption that the hidden side of the doors used the same symbols as the known side... each symbol used once. In that case the answer would be #3. That is not how the text reads though... there is no mention of what is on the hidden side or what symbols are used. The symbols may be entirely different symbols, or the symbols can be used more than once. If that is the case then all the doors must be opened.

Share this post


Link to post
Share on other sites

I'm not sure I understand your question but I disagree with

 

""if a door has a flower on its plant side, then it has a bird on its animal side" as a rule, and hence the inverse relationship must also be true......

 

 

The rule doesn't say

 

if a door has a bird on its plant side, then it has a flower on its plant side

 

For example if I had a door with an eagle on its animal side and an Oak on its plant side then the original rule would not be broken

 

Programming wise the first rule could be enforced with

IF plant side is a flower THEN

Assert animal side is a bird

 

but to enforce the bidirectional rule then you would need

 

IF plant side is a flower THEN

Assert animal side is a bird

IF animal side is a bird THEN

Assert plant side is a flower

 

More code and more words in the rule would be required (IMO).

 

Makes you wonder what the interviewer is trying to assess by asking this type of questions. The question is asked on an application form so the candidate doesn't have to think on their feet.

 

TradeRunner

Share this post


Link to post
Share on other sites
The answer to the last puzzle was, according to current mathematical convention, the smaller hospital due to the smaller sample size.

 

If anyone wants to argue against that, then the ensuing discussion will probably be more interesting than the puzzle itself. The puzzle is taken from Taleb's "The Black Swan", and I personally disagree with the general thesis he promotes, as I think the whole issue he examines is a matter of (retrospectively) ascribing error to a model rather than to the selection of data to which it is applied. On the other hand, Taleb is a big fan of Umberto Eco, one of my favourite authors, so . . .

 

Here's another puzzle:

 

There are 4 shut doors in front of you. You know that each door has an animal painted on one side and a plant painted on the other side. The four doors have the following painted on the sides that you can see (one per door): a lily, a pine tree, a fox, and an eagle. You have been told that these doors satisfy the rule "if a door has a flower on its plant side, then it has a bird on its animal side". What is the smallest set of doors that you must check the hidden side of to determine conclusively whether this rule is true or false for these doors? *

 

  1. Just the door with the lily
  2. Just the door with the eagle
  3. Just the doors with the lily and the eagle
  4. Just the doors with the lily and the fox
  5. Just the doors with the lily, fox and eagle
  6. Just the doors with the pine tree and eagle
  7. All of the doors

 

This puzzle is taken directly from the application form for a quantitative hedge fund.

 

BlueHorseshoe

 

Only open the doors with the lily and the fox.

 

You need to prove that a bird IS on the other side of the lily, and that a flower ISN'T on the other side of the fox.

Share this post


Link to post
Share on other sites

Here is a "simple" probability problem:

 

Suppose you're on a game show, and you're given the choice of three doors: Behind one door is a car; behind the others, goats. You pick a door, say No. 1, and the host, who knows what's behind the doors, opens another door, say No. 3, which has a goat. He then says to you, "Do you want to pick door No. 2?" Is it to your advantage to switch your choice?

Share this post


Link to post
Share on other sites

TradeRunner has it!

 

It's interesting how many different ways people think about these things. I don't mean in terms of the answer they reach, but in terms of the process they use.

 

Most of the confusion is about the difference between material implication and material equivalence - presumably this is what the question was intended to test. Using the initials of each item it should look like this:

 

P = F ⇒ A = B

 

This is not logically equivalent to:

 

A = B ⇒ P = F

 

If the two are equivalent rather than just one implying the other, then a two-way arrow is used in notation.

 

So here's another puzzle as an extension of this:

 

Why, if for a function f, if it it true that:

 

x = 4 ⇒ f(x) = 16

 

Is it false that:

 

f(x) = 16 ⇒ x = 4

 

???

 

BlueHorseshoe

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Topics

  • Posts

    • UHS Universal Health Services stock, nice rally off the 197 support area, from Stocks to Watch at https://stockconsultant.com/?UHS
    • SGMO Sangamo Therapeutics stock, good start off 2 support area at https://stockconsultant.com/?SGMO
    • AAPL Apple stock, watch for a top of range breakout at https://stockconsultant.com/?AAPL    
    • Date: 26th November 2024. Trump’s tariff threats boosted Dollar; Peso, Loonie, Gold & Oil Lower. The Trump trade picked up steam as investors cheered his pick for Treasury Secretary, Scott Bessent. Beliefs he will be a steadying voice in the administration’s fiscal measures, while still following President-elect Trump’s tariff and tax commitments, underpinned. Asia & European Sessions:   Trump threatened on Monday to impose sweeping new tariffs on China, Canada and Mexico on his first day as US President to crack down on illegal immigration and drugs. He would impose a 25% tax on all products entering the country from Canada and Mexico, and an additional 10% tariff on goods from China as one of his first acts as president of the US. Bessent’s 3-3-3 plan aims to cut the deficit to 3% of GDP, boost growth to 3%, and increase oil production to 3 mln barrels. Treasury yields dove in a curve flattener, extending their drops through the session, on expectations inflation will decelerate. A strong 2-year auction also supported. The Dow led the charge, climbing 0.99% to 44,736, a new record peak as the rally broadens. The S&P500 climbed to 6020, a session peak, but finished with a 0.3% gain to 5987. The NASDAQ closed 0.27% higher. Today, stock markets in Europe are posting broad losses, with the DAX down -0.6%, the FTSE 100 0.4%, after a largely weaker close across Asia. ECB: Lane suggests ECB must be open-minded on speed of rate cuts. The ECB’s Chief Economist said in a speech on Monday evening that “remaining open-minded about the speed and scale of adjustments is in fact a valuable strategy across various environments, as different situations may necessitate distinct approaches.” This careful, step-by-step strategy enables us to observe the responses of the economy to our decisions and continuously refine our understanding of their impacts.” The comments leave the door open to a 50 bp move in December, but also tie in with our expectation that the central bank will deliver a 25 bp while tweaking the forward guidance and commit to additional moves. Financial Markets Performance: The USDIndex hit a session high of 107.50 and is currently lower at 106.85. Mexican peso and Canadian dollar slumped as the dollar is being viewed as a haven after the comments of President-elect Donald Trump on tariffs on Canada, Mexico and China. USDCAD spiked to 1.4177 and USDMXN rallied to 20.74. Oil and Gold lost ground, in part on cooling geopolitical risks, and on Trump trades. Oil dropped -3.03% to $69.09 per barrel, in part on the Trump trade and on talk of a potential cease fire between Israel and Hezbollah. Similarly, gold fell -3.26% to $2605 per ounce. Always trade with strict risk management. Your capital is the single most important aspect of your trading business. Please note that times displayed based on local time zone and are from time of writing this report. Click HERE to access the full HFM Economic calendar. Want to learn to trade and analyse the markets? Join our webinars and get analysis and trading ideas combined with better understanding of how markets work. Click HERE to register for FREE! Click HERE to READ more Market news. Andria Pichidi HFMarkets Disclaimer: This material is provided as a general marketing communication for information purposes only and does not constitute an independent investment research. Nothing in this communication contains, or should be considered as containing, an investment advice or an investment recommendation or a solicitation for the purpose of buying or selling of any financial instrument. All information provided is gathered from reputable sources and any information containing an indication of past performance is not a guarantee or reliable indicator of future performance. Users acknowledge that any investment in FX and CFDs products is characterized by a certain degree of uncertainty and that any investment of this nature involves a high level of risk for which the users are solely responsible and liable. We assume no liability for any loss arising from any investment made based on the information provided in this communication. This communication must not be reproduced or further distributed without our prior written permission.
    • RYAM Rayonier Advanced Materials stock, nice trend with a pull back to 8.79 support area, bullish indicators at https://stockconsultant.com/?RYAM
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.