IPLACENTA
  • Home
  • About
  • Project
  • Team
    • Supervisors
    • Early Stage Researchers
    • Partners
  • Events
  • Blog
  • Dissemination
    • Publications
    • Presentations
    • Posters
    • Public engagement
    • Flyer
    • Newsletter
    • Video
  • Contact
  • Home
  • About
  • Project
  • Team
    • Supervisors
    • Early Stage Researchers
    • Partners
  • Events
  • Blog
  • Dissemination
    • Publications
    • Presentations
    • Posters
    • Public engagement
    • Flyer
    • Newsletter
    • Video
  • Contact
Picture

Sharing the Marie Sklodowska-Curie experience
and "untangling science"
​

13/1/2021

0 Comments

Science Untangled:  Logic 101

 
Picture
In our blog series “Science Untangled” we intend to explain science in simple words. And as my fellow colleagues already did before me, I will try to give it a go myself. I am currently working using mostly bioinformatic approaches – I wrote about how I got there in an earlier blog post. The biological background of my research was already covered in an amazing blog post by Clara. So, the question was: What can I explain? Bioinformatics? The problem is that bioinformatics approaches can vary significantly, the same way biology differs when trying to understand the behavior of fish in the Atlantic or trying to find binding partners of a specific molecule. Well, then where do we start and where do we end?

​I decided to go with the basis of bioinformatics, actually of every science in existence: Logic.

All computers operate on logic and we use logic every single day as well, don’t we? Isn’t it logical that if it’s raining - you’ll get wet? First thing we have to do is to define “logic”. The most commonly used definition is “the study of correct reasoning“. Originally, logic began as a philosophical term and is now used in disciplines like math and computational science. You can view logic as the mother of all science. While the definition sounds simple, understanding logic is a little more complex and takes a few attempts.
 
The first thing we have to clarify is that logic operates on sentences or statements. It is a tool for making conclusions. Each statement can either be “TRUE” or “FALSE”. There is no maybe. IF it is raining AND you use an umbrella, THEN you won’t get wet. Additionally, there are operators like if, and, while etc. Well, they actually come quite naturally when making a logical statement. Go ahead and try it out.
 
So far so good. But what does all of that have to do with bioinformatics? As the name suggests there is a part informatics in there, and with that coding or programming. Don’t worry we are not going there. But all languages do exactly use these operators. If you ask a system: 2=2, they will answer with “TRUE”. And you can also use operators; if x>3, then … So understanding logic will help understanding how computers operate and how we have to program them.
 
Let’s stop with all of this theoretical explanation and let me try to explain it using an example: The Wason four-card problem
 
You get four cards. Each card has either a vowel or consonant on one face and either an even or odd number on the other face. Which card(s) must you turn over in order to test the truth of the proposition that if a card shows an even number on one face, then its opposite face is a vowel?
​

Picture
*the numbers in brackets are just there so that it is easier to understand which card I am talking about.
Maybe you are already able to solve this problem, but let’s go step by step following the “logical approach”.
 
1) Firstly, let’s look at the proposition that needs to be tested, which can also be formulated as: If one side shows an even number then the opposite face is a vowel.
 
So far so good. In logical terms, this is called a conditional term, meaning one part of the sentence conditions the other. If even numbers are called A then the conditional part would be called B. Written down it would be: If A then B.
 
Well, scientists are lazy people so at some point, symbols were chosen to replace words. For example:
 “^” is “and” (I always thought of it as a house combining the two parts)
 “v” is ”or” (think of it as a scale, it is either the one or the other)
 “¬” is “not”
 “=>” is “if..then”/ ”implies” (conditional)
 “<=>” is “equivalent”
 
Let’s go with an example:
A: the sun is shining

B: we are eating ice cream

Picture
​Not that hard, right?
Back to our card problem. Therefore, we can now also write “If A then B” as AÞB.
 
2) So how many cards do we have to turn to test, whether AÞB is also TRUE?
In order to answer this question, it helps a lot to make so called “Truth Tables”. 
Picture
What the heck does this mean? Let’s translate it back.
  1.  If the statement A (even number) and B (vowel) is given (TRUE) then the proposition (A=>B) also TRUE
  2. If statement A is TRUE, but B is FALSE, the proposition is FALSE as well.
  3. If A is FALSE, but B is TRUE, the proposition is TRUE.
  4. If A and B are FALSE, the proposition is FALSE
 
Mhh, still not quite sure? Let’s go with a very hands-on example:
You are a ticket controller in an underground and you want to find people who entered the subway without validating their ticket to fine them with 60 Euros. So, you’ve got the following situations:

  1. Validated ticket.
  2. Unvalidated ticket
  3. Person took the underground
  4. Person didn’t take the underground
 
So, our proposition here would be: “If a person takes the underground, they have a validated ticket.”; A=>B with A taking the underground and B having an unvalidated ticket.

  1. Validated ticket.                                         B
  2. Unvalidated ticket                                    ¬B
  3. Person took the underground                  A
  4. Person didn’t take the underground      ¬A
 
Which person would you check, to see if you need to fine them? The correct ones would be 2) and 3). Why?

  1. Validated ticket.                 Who the heck cares? They validated their ticket, whether they took the underground or not, I don’t care.
  2. Unvalidated ticket              Well, if they did take the underground they need to be fined, if not then they are good to go.
  3. Person took the underground                  Yeah, maybe they validated their ticket, maybe they did not, we need to check!
  4. Person didn’t take the underground         Again, why would I care?
 
Much more understandable, right? Now let’s look again at the cards: If one side shows an even number then the opposite face is a vowel; AÞB

  1. 3                  ¬A
  2. 4                    A
  3. K                  ¬B
  4. E                    B
 
Are you now able to answer the question, which card(s) you have to turn to test whether the proposition that if a card shows an even number on one face, then its opposite face is a vowel?
 
The answer is 2) and 3) again.

  1. 3                   We don’t care. Whether it has a vowel or a consonant on its back, has nothing to do with testing the proposition that only applies to even numbers (and therefore would be considered TRUE, as it does not invalidate the proposition).
  2. 4                   We should check. If we find a consonant here, the proposition is immediately FALSE, while if we find a vowel, it will be TRUE.
  3. K                  We should check. If we find an even number here, the proposition is immediately FALSE, while if we find an odd number, it will be TRUE.
  4. E                  We don’t need to check. If we find an odd number it is the same as in 2) and does not invalid the proposition. If we find an even number it just validates the proposition. In both cases the proposition would be TRUE.
 
The only options in which we could invalidate the proposition would be with cards 2) and 3). You can check the Truth Table to check if it correlates.
 
 
This ends my “little” explanation. I hope you enjoyed it a bit and were able to follow along. Don’t worry if you didn’t. It is definitely not easy and also takes math students a few lectures to get it. I simply hope it will give you a new understanding and the next time you come across reasoning in your professional or daily life, you think “Is this logical?”. It differs from what we would call logic in our daily language, but if you think about it, it actually doesn’t differ that much. All science uses logic, every new insight has to be checked if the right conclusions have been derived. Computers only make logical conclusions. If the two cells have the same DNA, they are from the same organism. If a gene is more active in the diseased patient compared to a healthy one, this gene might be responsible or affiliated with the disease. Everything is logical. But while logic helps to draw conclusions or helps reasoning, there is one advantage we have compared to rational computers: We can be illogical and irrational and sometimes this is a huge advantage. 

Author

Jana-Ch. Hegenbarth is an Early Stage Researcher of iPlacenta. 
Read her earlier blog post here.
0 Comments



Leave a Reply.

    About the blog

    Being a PhD student in a European training network is a life-changing adventure. Moving to a new country, carrying out a research project, facing scientific (and cultural) challenges, travelling around Europe and beyond… Those 3 years certainly do bring their part of new - sometimes frightening - but always enriching experiences.
    ​Hear from the iPLACENTA early-stage researchers themselves!

    Follow @iplacenta

    RSS Feed

    Categories

    All
    Events
    Living Abroad
    Professional/Career
    Science
    Work/Life Balance

    Archives

    December 2021
    October 2021
    August 2021
    June 2021
    May 2021
    April 2021
    March 2021
    February 2021
    January 2021
    December 2020
    October 2020
    September 2020
    June 2020
    May 2020
    April 2020
    January 2020
    December 2019
    November 2019
    October 2019
    September 2019
    August 2019
    July 2019
    June 2019
    May 2019
    March 2019
    October 2018
    September 2018
    August 2018
    July 2018
    June 2018
    May 2018
    January 2018
    October 2017

Picture
​
​This project has received funding from the 
European Union’s Horizon 2020 research and innovation programme under the Marie Skłodowska-Curie grant agreement No. 765274