Category Archives: Professional Studies

Mathematics in Battleships… Hit or Miss?

Even upon just taking the lid off of the box, it is already clear that there are elements of Mathematics in the classic game ‘Battleships’, some of which would be fantastic in the classroom for facilitating learning if used effectively. The most obvious of these to me at first glance is the use co-ordinates. This is not really a surprise at this point, as the module is continuing to surprise me with how prevalent mathematics is in our world right up until the end. The real question though, is how much mathematics plays a part in the workings of the game. This part, is a surprise to me.

Let’s start with the basics. The game itself is made up of 100 squares (Pencil and Paper Games, no date) – although the image below fails to highlight that vital concept, it does provide a sufficient summary of the rules and instructions for playing.

gif/illustration of how to play battleship

https://www.thesprucecrafts.com/the-basic-rules-of-battleship-411069

With a total of 17 “hit” points (calculated by simply adding up the individual hit points on each ship) and 100 squares on the board overall, it would seem reasonable to assume that there is a 17% chance of making a hit. However, much like the Monty Hall Problem (Petrie, 2018) this is an example of counter-intuitive maths that we must pause, and analyse.

Nick Berry (2011) does just that. He lays out three approaches to play, which does not include the method of firing randomly at every square until you win (or more likely, lose horrifically to your opponent).

  • Hunt/Target (somewhat efficient)

Effectively, you do fire at random until a hit is made. Once this happens however, you then go for all surrounding squares until another hit is made. This is the method I used when I played the game as a child, however it is far from ideal. All the edges of each square must also be checked to make sure no ships are touching, and this is not before having to firstly figure out which direction the ship has been planted, where it starts, and where it ends. This averages out at about 66 moves required. (Berry, 2011; Harris, 2012)

http://www.datagenetics.com/blog/december32011/

Hunt/Target – Improved (slightly more efficient than somewhat efficient)

This approach involves visualising the play board as a chess board. Every ship has a minimum of two hit positions on it, so if one were to fire at every ‘black’ square on the board, you would be guaranteed to hit every ship at least once. ‘White’ squares can then be taken into account, and the Hunt/Target method can continue to bring each individual ship down. This improves the average moves required… by 1, taking the number down to 65. Thankfully, there is a much more efficient approach, which involves some fundamental concepts of mathematics.  (Berry, 2011; Harris, 2012)

  • Using Probability (the most efficient)

Nick Berry created a probability algorithm, whereby all the possible variations of how a ship can be placed on the board is calculated. The middle of the board has the highest chance of containing one of the ships, with the most likely co-ordinates being E5, E6, F5 and F6 (Brown, no date). The edges and corners on the other hand have a very low score, as there are less possible ways in which a ship can be positioned (Alemi, 2011; Harris, 2012)

Hence, in regards to Berry’s Algorithm, each square does not represent 1%. In actuality, there can be up to a 20% chance in the centre of the board (Berry, 2011)

heat map for ship of length 3

https://math.stackexchange.com/questions/144834/battleship-probability-matrix

The Aircraft Carrier for example is 5 ‘hit points’ long. Thus, it obviously can’t stretch from A3 to A8, nor only from A3 to A6, should it start at A3. As the game progresses and more squares are eliminated, the probability of each square increases.

https://nationalinterest.org/feature/the-ultimate-weapon-combining-battleship-aircraft-carrier-13826

Some have even taken the time to develop a probability calculator, which they state assists players in effectively cheating at the game.

Take a look for yourself: https://cliambrown.com/battleship/

Yet, is it actually cheating? In my opinion, that depends on your perception of what cheating is. In a scenario where one person was familiar with the underlying mathematics and basic concept of probability, it would certainly reduce the amount of enjoyment had from the game for the novice player. However, if both players were familiar with the concept of probability and chance, plus how it applies to the concept of the game, I believe this would actually increase the fun with higher tensions, alongside the less enjoyable ‘random firing’ being significantly reduced (not eliminated) with our mathematical mind-sets in play.

That said, Battleship remains a game of chance, and so just because one may have the knowledge on how to improve their odds of success, that does not necessarily mean they are going to be on an unstoppable winning streak (Harris, 2012) Of course, that does not negate the usefulness of the maths behind it all – it’s not an automatic fix for life, but rather a tool we can use to aid us throughout it.

References

Alemi, A. (2011) The Linear Theory of Battleship. Available at: http://thephysicsvirtuosi.com/posts/the-linear-theory-of-battleship.html (Accessed: 26 November 2018)

Berry, N. (2011) Battleship. Available at: http://www.datagenetics.com/blog/december32011/ (Accessed: 26 November 2018)

Brown, C.L. (no date) Battleship Probability Calculator. Available at:

https://cliambrown.com/battleship/ 

(Accessed: 26 November 2018)

Harris, A. (2012) How to Win at Battleship. Available at: http://www.slate.com/blogs/browbeat/2012/05/16/_battleship_how_to_win_the_classic_board_game_every_time.html (Accessed: 26 November 2018)

All image references accompany images.

“I’ve gotten this far… I may as well finish it”

With the amount of times it has happened already, I should not really be surprised that the next area covered in Discovering Mathematics is another one that not only astounds me, but applies to me directly – and yet, my jaw is once again left near-enough dropped as I began to uncover Counter Intuitive Mathematics.

Story time – there’s a point I want to make, I promise. A few years back now in 2013, I downloaded an app from the App Store called ‘The Simpsons: Tapped Out’, which would turn into an addiction I would hold onto for some time after.

The premise of the game was fairly simple – you complete quests, build your ‘Springfield’ and level up. Special events would be held throughout (for example, at Halloween or Christmas) where for a restricted amount of time, there were limited items in the game you could unlock, should you manage to collect enough of the event currency. Like a lot of things, it was fun at first. Quite quickly, I became quite invested in the game and it became very much a part of my routine in a desperate frenzy to get every item possible. Eventually though, after spending a few years playing the game, I was ranking up my event currency from the latest update for the next prize when I began to reach a disheartening conclusion. This wasn’t enjoyable anymore – at all. All I was doing, was tapping for the sake of completion. Tap, gain points, tap gain points, and so on. I was not having fun, yet for some reason, I kept on playing. I continued on, with my mind thinking back to all the time (and real money at points!) I had spent on this game, and how I didn’t want any of it to go to waste. The game became much more a chore than a hobby, which is never enjoyable. In this scenario, there was no end.

Although the game is actually still going somewhat strong today (Musgrave, 2018), after several guilty return trips to the game, I did eventually leave the time-consuming annoyance behind. This experience however, is a personal example of the Sunk Cost Fallacy. I had a difficult time letting go of a past cost which could not be recovered. I felt defeated.

The video below features Julia Galef, who explains the Sunken Cost Fallecy in a relatable, and therefore understandable sense:

The decision to leave the game behind was a tough one, having accumulated so much and spent so much of my time and effort into. I had to make the decision that was best for me, and that meant slashing out the idea that should I continue to play, I would be gaining a non-existent hypothetical value. This links strongly to what is referred to as ‘Loss Aversion’.

 

As humans, we would much rather avoid losing than losing. Obviously. What is more interesting however, is that studies have shown that we would much rather avoid losing than winning (Kay, no date). For example, if I was to wake up one morning and find a £50 note in my driveway, I would be delighted and filled with excitement. If however, I was to come home one day after work and realise that I had lost an existing £50 note, my feelings of dismay and frustration would outweigh the former outcome.

 

Along with the Sunk Cost Fallacy, Kruger, Mirtz and Miller (2005) reference Loss Aversion as a reason to changing our answers. They refute against the expressions ‘go with your gut’ or ‘stick with your instincts’ that others such as Brownstein, Wolf and Green (2000) have made. They claim that that the majority of decision changes result in a win/correct answer. ‘The Monty Hall problem’ supports this statement with some admittedly at first glance perplexing, but fascinating mathematics.

Scenario – a gameshow tells you to pick a door. One has a car. The other two have goats. Whatever option you choose (A, B or C), the host will always show you where ONE of the other goats are. At this point, you are asked to stick or switch. Without analysis, it would appear that since one goat will be revealed and discarded, you now have a 50% chance of winning or losing either way – but this is incorrect! (Mitzenmacher, 1986).

Taken from Wikipedia

In fact, you have a much higher chance of winning the car if you switch. What took me time to get my head around personally was the fact that the odds do not change from 33.3(333333…..)% to 50%. They in fact shift over the remaining closed door (Mitzenmacher, 1986). Of course, a win is not guaranteed, but it is certainly more likely. On the well-established YouTube channel Numberphile, you can find a video which explains this in a lot more detail. Click here.

With similar links to my previous post on probability (which you can view here), we can take the basic concepts of percentages and chance and apply it to a much grander situation. This links into the idea of connectedness, one of four key properties that Liping Ma (2010) underlines as what an individual needs to have for a Profound Understanding of Fundamental Mathematics (PUFM). The options listed in the Monty Hall Problem feeds the second property, multiple perspectives – there are advantages and disadvantages for any outcome chosen, though the former will probably prevail over the latter due to the nature of the predicament. Likewise, different approaches can be made when it comes to The Sunk Cost Fallacy. That is, to continue on with something for your own perceived satisfaction, or leave it behind for the greater good – both of which at a cost of losing something (e.g. time money). The basic idea of loss aversion of course can have either small or catastrophic consequences – this is something recognised by Barclay’s in reference to investments.

Would it be fair to say that Maths makes our decisions for us? Of course not. But can it influence them? Most definitely. A PUFM will be extremely beneficial in relation to this aspect. From a personal standpoint, given the repetitive nature of The Simpsons Tapped Out, I am willing to bet I wasn’t the only one who had this experience. However, I am also willing to bet that some people may not have realised the process they are going through, or if they do, will fail to escape in an attempt to avoid perceived loss.

References

Big Think (2013) Julia Galef: The Sunk Cost Fallacy. Available at: https://www.youtube.com/watch?v=vpnxd31y0Fo (Accessed: 3 November 2018)

Brownstein, S., Wolf, I., and Green, S. (2000) Barron’s ‘How to Prepare for the GRE: Graduate Record Examination’. (14th edn.) New York: Barrons Educational Series Inc.

Kay, M. (no date) You can implement these tips to your site or you can keep losing subscribers every day. The story of loss aversion. Available at: http://psychologyformarketers.com/loss-aversion/ (Accessed: 3 November 2018)

Kruger, J., Wirtz, D., & Miller, D. T. (2005). Counterfactual Thinking and the First Instinct Fallacy. Journal of Personality and Social Psychology, 88(5), 725-735. Available at: http://dx.doi.org.libezproxy.dundee.ac.uk/10.1037/0022-3514.88.5.725 (Accessed: 3 November 2018)

Ma, L. (2010) Knowing and Teaching Elementary Mathematics. (Anniversary Ed.) New York: Routledge.

MindfulThinks (2017) Sunk Cost Fallacy And Why You Should Quit. Available at: https://www.youtube.com/watch?v=xXpzfy5oKWg (Accessed: 3 November 2018)

Mitzenmacher, M (1986) The Monty Hall Problem: A Study. Available at: https://pdfs.semanticscholar.org/4ece/81b2830bb47e279920f7cf92d672ba5a1373.pdf (Accessed: 3 November 2018)

Musgrave, S. (2018) Best iPhone Game Updates: ‘Marvel Contest of Champions’, ‘Mines of Mars’, ‘Temple Run 2’, ‘Choice of Games’, and More. Available at: https://toucharcade.com/2018/10/08/best-iphone-game-updates-marvel-contest-of-champions-mines-of-mars-temple-run-2-choice-of-games-and-more/ (Accessed: 3 November 2018)

mybarclayswealth (2016) Loss Aversion. Available at: https://www.youtube.com/watch?v=OfQkGoNS15Q (Accessed: 3 November 2018)

Images Used

https://en.wikipedia.org/wiki/The_Simpsons:_Tapped_Out

https://deepvalueetfaccumulator.com/behavioral-finance-and-the-value-investor/consequences-panic-selling-almost-always-bad/attachment/loss-aversion/

https://math.stackexchange.com/questions/1684694/could-the-monty-hall-problem-be-applied-to-multiple-choice-tests

Chance of Me Gaining an Appreciation for Maths – Extremely Likely

Probability – the next (and successful) leap in convincing me of how relevant mathematics actually is. This module has been effective in changing previously negative perceptions of maths, one of which in particular is that the terms ‘maths’ and ‘complex’ go together like bread and butter – this is not the case. Granted, parts of it can, as with anything. However I can vouch from my personal ongoing experience that if if we allow it to, it can be an enjoyable art.

Very briefly, probability is just what it sounds like – the likelihood of a certain event taking place or not. (Boaler, 2009). To use one of the most basic examples, the likelihood of rolling a ‘4’ on a dice. Well, there’s only 1 ‘4’ on a dice and this is known as the sample point. There are 6 possible outcomes overall (the values of 1-6), and this is known as our sample space. The probability of ending up with a ‘4’ on the roll of a dice is 1/6. Whilst the terminology was new to me, the concept is simple enough (Don’t Memorise, 2014).

Image result for probability

Schools Minister Nick Gibb identified 3 purposes to education in a 2015 speech, one of which was “preparation for adult life” – a quotation that is very fitting in regards to probability (The Purpose of Education, 2015). Like many other aspects of mathematics such as money and time, chance and probability is a relevant concept we use on a daily basis. The weather is an excellent example of this assertion. Before leaving for the bus in the morning, it’s very likely I’ll ask “Alexa, what is the weather in Dundee today?”. Now personification aside, I would be very surprised if she told me “It will definitely rain today for 3 hours straight”.

What she might tell me is “It probably won’t rain in Dundee today. There’s only a 25% chance“.

Since meteorologists cannot predict the exact weather conditions, they must make informed predictions (Tucker, 2018). The information we take from them may not emerge as being correct however – a 25% chance of rain does not eliminate the possibility. Regardless, it does help us make Image result for monopoly manjudgement calls – will I take a raincoat, or can I leave it in my back so there’s more space for collecting my library books? With only a 25% chance, its probably going to be the latter of the two. The decisions we make from probability do not just have to relate solely the weather, of course (Haylock, 2006). Informed decisions are a major part of any human’s life, and they can range from purchasing properties in Monopoly at a family game night, to choosing the best day to practice surfing based on the tidal/wave conditions, or indeed, making the right call in the world of gambling.

I myself work at an indoor amusements/arcade, however my responsibilities of managing children’s parties mean I have never dabbled with the ‘nudgers’ that to me are nothing more than complex machines with countless buttons and symbols on them. Unlike the simple example of rolling a singular die to get a number explained above, these machines have multiple possible combinations (i.e. the sample space).  Obviously, as with any business, the company intends to make a profit from the service it provides. As such, they are going to benefit in winnings a lot more than we are – even if we don’t witness that fact. The video below explains the basic functions of a slot machines, including what is meant by the terms theoretical payout and actual payout.

With these terms in mind, I spoke to one of our regular customers, who makes a guaranteed (okay, ‘extremely likely’) appearance at my work every weekend. I questioned him about his knowledge of gambling, and was consequently given a tour of the arcade, where he impressed me by pointing out which machines are best for winning (i.e. the best turnout rate, along with which ones were likely to give you an extra pound coin that may be stuck in the coin mechanism, or which machine is likely to have some loose change hidden at the back of the darkened retrieval pot. This man in particular has been coming to the establishment for years, so I was very interested to know how much profit his knowledge and skill set have rewarded him with – except he doesn’t. To lift his own words, “pure entertainment value”. He knows he is going to lose money regardless of what he plays, and this once again links back to how the actual payout of slot machines are ALWAYS greater than the money put in – you are technically losing more than getting back (tech4truth, 2010). This is not a new concept either. Charles Fey, who invented the first slot machine (3 reels, 5 symbols), had a 75% average pay-back! That may seem great at first glance, it only paid out 50% of the time (Valentine, 2018). There may be that faulty machine in the corner of the room, or perhaps you are being watched by a ‘lurker’ waiting to pounce at the right opportunity to steal your winnings. Even then though, they are using their knowledge of probability of knowing when to swoop in.

Image result for PHOEBE AND THE LURKER

To summarise all of this, probability and chance is something we use everyday in a variety of circumstances. It can become part of subconscious, much like the process of respiration and blinking, where we only realise we are doing it when we are told so. This area in particular is such a huge foundation in regards to our everyday choices. I’m truly beginning to realise that Maths isn’t just about sitting at a high school desk, attempting to find ‘x’ and losing your mind whilst you do it. There’s so much more to it, and just because it’s not an equation, that doesn’t make it any less maths-related.

Also, apologies – chances are you’re now aware you’re breathing and it won’t be a subconscious process for a little bit.

 

References

Boaler, J. (2009) The Elephant in the Classroom: Helping Children to Learn and Love Maths.  London: Souvenir Press Ltd.

Don’t Memorise (2014). Probability – Sample Space, Sample Points, Events! Available at: https://www.youtube.com/watch?v=5oI8-iQqPAI (Accessed: 18th October 2018)

Gambling Glossary: A Guide to Gambling Terms. (no date). Available at: https://www.gambling.net/glossary.php (Accessed: 18th October 2018)

Haylock, D. (2006) Mathematics explained for primary teachers. London: SAGE.

Probability. (no date) Available at: https://www.mathsisfun.com/data/probability.html (Accessed: 18th October 2018)

tech4truth (2010) Slot Machine Paybacks and Slot Odds Explained (Tech4Truth Episode 3) Available at: https://www.youtube.com/watch?v=4wzg-8QKC5s (Accessed: 18th October 2018)

The purpose of education. (2015) Available at: https://www.gov.uk/government/speeches/the-purpose-of-education. (Accessed: 18th October 2018)

Tucker, K. (2018) Examples of Real Life Probability. https://sciencing.com/examples-of-real-life-probability-12746354.html (Accessed: 18th October 2018)

Valentine, E. (2018). ‘Chance and probability’ [PowerPoint presentation]. ED21006: Discovering Mathematics. Available at: https://my.dundee.ac.uk/webapps/blackboard/execute/displayLearningUnit?course_id=_58988_1&content_id=_5217952_1. (Accessed: 18th October 2018)

Images Used

https://www.wikihow.com/Calculate-Probability

Fibonacci Sequence – Significant Coincidence?

The Fibonacci Sequence is a fairly new concept to me, having only seen a flash of the term in a textbook during my MA1 school placement. The Discovering Maths module is responsible for properly introducing me to this concept, however it was a shock to learn that in reality, this peculiar set of numerals have been very much right in front of me all my life.

In a TED talk, Arthur Benjamin emphasises my shared belief that the vast majority of mathematics taught in education is primarily surrounds solving calculations with countless rules, often labelled as having one correct answer – especially in comparison to other fields such as English, where more flexible and diverse answers can be accepted (2013). Benjamin accentuates that more time should be spent on application of maths, and that it is both more interesting and enjoyable if we allowed ourselves to go beyond the HOW, and contemplate the WHY. The Fibonacci Sequence is a perfect example for this.

The idea of the Fibonacci Sequence is fairly simple. You take the first two numbers (0 and 1) and add them together to calculate the next digit – in this case, 1. This is followed by adding the new value with the previous – in this case, 1 and 1 to make 2, and so on. The image below lists the first set of numbers in the sequence.

Image result for fibonacci sequence

There we have our calculation – and a pretty basic one at that. However, to perpetuate Benjamin’s statements, mathematics does not have to be a stale pattern of addition – it can be astonishingly magnificent, relevant and beautiful (Erikson, 2011).

To discover this, we link this set of numbers to the concept of ‘Ratio’. A ratio can be described as how much of one thing there is compared to something else. (Haylock, 2006). In regards to having a ‘perfect ratio’ where two things are perfectly proportioned, this value would emerge as 1.618034.  The image below explains the method of obtaining this value. 

Related image

When we put these two mechanisms together, we are able to uncover a startling connection. It has been proven that the further along to Fibonacci Sequence we travel, the closer the resulting ratio between two consecutive numbers is to the Golden Ratio (Boaler, 2009).

For example, 13/8 = 1.625

Much further along, we can divide 4181/2584 to obtain 1.618034!

The link between the Fibonacci Sequence and the Golden Ratio is abundant – however humans have yet to figure out what it is. Whilst I personally have no hope or intention of uncovering the meaning of this relationship, I am able to come to a personal conclusion as to whether or not this is all just a coincidence or if there are greater forces at play.

Many famous landmarks such as the Taj Mahal and Notre Dame have been labelled as having the ‘Golden Ratio’. Unfortunately, the age of these constructions mean we aren’t even sure if this was an intentional decision (Strange Mysteries, 2017). Could the Fibonacci sequence just be something we are naturally attracted to, and is it only limited to human beings?

Image result for taj mahal golden ratio

Thanks to the nature, we can safely say the answer is no… at least to the latter question. Perhaps we are just naturally attracted by these numbers, yet man-made structures are not the only things that have the Golden Ratio present (Boaler, 2009). The image of the shell below conveys the lines clearly as the sequence increases into an elegant curve.

Much like the supposed mathematical construction decisions surrounding the Taj Mahal, but far more philosophical in depth, we currently don’t know and probably will never have concrete evidence on how our universe was created – just a possible evolved understanding of it (Francis, 2013). But the abundance of the Fibonacci sequence makes it very difficult to accept that this is all a coincidence. If the buildings and shells do not provide enough confirmation, we need only look at other natural examples that humans could not possibly interfere with – whether that be hurricanes/storms, flower petals, or indeed our own body.

References

Boaler, J. (2009) The Elephant in the Classroom: Helping Children to Learn and Love Maths.  London: Souvenir Press Ltd.

Erickson, M. (2011) Beautiful mathematics, Washington, D.C.: Mathematical Association of America.

Francis, M (2013) Will we ever… know what happened before the big bang? Available at: http://www.bbc.com/future/story/20130502-what-came-before-the-big-bang (Accessed: 9th October 2018)

Haylock, D. (2006) Mathematics explained for primary teachers. London: SAGE.

Strange Mysteries (2017) Why is 1.618034 So Important? Available at: https://www.youtube.com/watch?v=keLN89CWZ-A (Accessed: 9th October 2018)

TED (2013) The magic of Fibonacci numbers | Arthur Benjamin. Available at: https://www.youtube.com/watch?v=SjSHVDfXHQ4&t=287s (Accessed: 9th October 2018)

Images Used

https://www.pinterest.co.uk/pin/500181102340885176/?lp=true

https://www.quora.com/What-is-so-special-about-the-golden-ratio

https://www.phimatrix.com/architectural-design-golden-ratio/

https://www.theodysseyonline.com/7-beautiful-examples-fibonacci-sequence-nature