<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Pablo Rodríguez-Sánchez on Medium]]></title>
        <description><![CDATA[Stories by Pablo Rodríguez-Sánchez on Medium]]></description>
        <link>https://medium.com/@pab.rod?source=rss-24f09ca64482------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*LfB4id-eAm5DkTMVy1Hy7w.jpeg</url>
            <title>Stories by Pablo Rodríguez-Sánchez on Medium</title>
            <link>https://medium.com/@pab.rod?source=rss-24f09ca64482------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 22:18:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pab.rod/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The story map]]></title>
            <link>https://medium.com/escience-center/the-story-map-6c1ed940bd70?source=rss-24f09ca64482------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c1ed940bd70</guid>
            <category><![CDATA[soft-skills]]></category>
            <category><![CDATA[communication]]></category>
            <category><![CDATA[science-communication]]></category>
            <category><![CDATA[blogging]]></category>
            <dc:creator><![CDATA[Pablo Rodríguez-Sánchez]]></dc:creator>
            <pubDate>Wed, 26 Nov 2025 13:46:42 GMT</pubDate>
            <atom:updated>2025-11-26T13:46:42.006Z</atom:updated>
            <content:encoded><![CDATA[<p>A framework for story-building</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/507/1*VF615GIo6AlCdEns2rELig.png" /></figure><p>We are all natural-born storytellers. Or at the very least, storylisteners. The same drive lies behind a gathering around the fireplace, a night at the movies or listening to a podcast on your morning run: our brain’s hunger for narratives.</p><p>Our brains are literally wired for storytelling, and yet creating a story can be challenging.</p><p>This tutorial presents a strategy for simplifying the creative process of building a story. And as in any good story, we have to start from the beginning.</p><h3>What is a story?</h3><p>If you ever experienced the so-called <em>“blank page syndrome”</em>, chances are that it originated not from a lack of ideas to write about, but from an overwhelming, chaotic pile of them.</p><p>A story, any story, is linear. It doesn’t matter if it is a text, a speech, a movie or even a scientific publication: it will progress from a beginning to an end.</p><blockquote><em>More specifically, any story will be </em><strong><em>consumed</em></strong><em> on a linear way. Even a story which content is structured in a non-chronological order has a beginning and an end.</em></blockquote><p>And here comes the challenge: our thoughts are rarely that linear. Most people entertain multiple thoughts simultaneously, or quickly switch from one to the other. It takes a conscious effort to order them into a coherent narrative.</p><h3>Embracing chaos</h3><p>Instead of getting frustrated about the chaotic nature of our thoughts, let’s just embrace it. Our thoughts are fine just how they are.</p><p>Of course, it is not that practical to have our working memory juggling them all at once. So let’s free our memory and outsource them to… a piece of paper! Just write them down.</p><p>My advice is to do it like in the figure below, in small squares, with no pre-defined order. Just drop them around as if they were LEGO bricks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/507/1*1iMKHoILjTMHioFZidJd-w.png" /></figure><h3>Structuring your thoughts: the building blocks</h3><p>The challenge is set! Our goal is to build something with these bricks. But first we have to see our bricks, identify them, make sure we’re not missing any. Almost <em>feel</em> them.</p><p>Take a moment to look at your building blocks. Very likely, you’ll notice some of them are related. This relationship can be logical, narrative, chronological, … Draw a line between them if that’s the case.</p><p>I suggest using <strong>solid lines for strong relatedness</strong>, and <strong>dashed lines for less clear relatedness</strong>. We are starting to have <strong>some</strong> structure! We are slowly creating order out of chaos!¹</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/507/1*VF615GIo6AlCdEns2rELig.png" /></figure><p>At this stage, you might realize some building blocks are missing. When that’s the case, just add them. You might also notice some building blocks are redundant. Well, just merge those together. You might even judge some of the blocks to be unnecessary. Drop those without hesitation! Nothing creates more order out of chaos than reducing the amount of moving parts!</p><h3>Navigating your thoughts: the story map</h3><p>The ultimate goal would be to navigate your thoughts. And I don’t use the verb navigate lightly: you literally want to create a route from the beginning to the end. The diagram above will be very useful for achieving this.</p><p>To begin with, the diagram shows clearly what the core topics are. This allows for drawing a first, straightforward route that covers just the basics. If your audience is already knowledgeable about the topic and your time is limited, this route is an excellent choice:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/507/1*ecryo-njoz_zvPbE6amBRQ.png" /></figure><blockquote><em>For many people, especially in academia, skipping information feels wrong. In the verge of immoral.</em></blockquote><blockquote><em>What we did above is tailoring your materials to our audience (sounds better than skipping, doesn’t it?). And yes, we did it by eliminating some of them. Actually, this is going to happen often, and it is very good news. Less complexity, less moving parts; less is more, remember?</em></blockquote><blockquote><em>Effective communication is not about turning everything that we write or say into a self-contained compendium, but about providing chunks that can be reasonably digested in whatever context they are delivered.</em></blockquote><p>If your time is less limited, you can consider taking a detour and dropping an anecdote to make the experience more enjoyable:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/507/1*SZ_IC-_MvdhdqkeYxQ6QBg.png" /></figure><p>Last but not least, if you have the possibility of expanding as much as you want, you might want to cover all the topics. In such a case, a reasonable route will look like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/507/1*mr-zNLq3pQwQdS8x6doWKQ.png" /></figure><p>In the figure below we summarize three possible routes we could envision for the same material:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/507/1*2yLXvRwaDlxNUHaFsgXpvw.png" /></figure><h3>Applications</h3><p>I’ve used the described framework in many settings where storytelling played a role. Perhaps this sounds limited, but believe me: storytelling is everywhere. I used it for, among others:</p><ul><li>Scientific presentations</li><li>Comedy monologues</li><li>Software tutorials</li><li>My own PhD dissertation</li><li>Blog posts</li><li>A strategic plan for a research institution</li><li>Publications in research journals (real-life example <a href="https://fuga.naukas.com/files/2021/03/IMG_20190301_091759-768x404.jpg">here</a>)</li><li>A theater play</li><li>And also for this text you are reading now</li></ul><p>I honestly encourage you to give it a try next time you face a blank page. It works wonders!</p><h3>Acknowledgements</h3><p>This piece was born in the context of the <a href="https://research-software-directory.org/projects/data-storytelling">Data Storytelling project</a>. Thanks to <a href="https://www.esciencecenter.nl/team/jesse-gonzalez/">Jesse González</a> and <a href="https://www.esciencecenter.nl/team/kody-moodley/">Kody Moodley</a> for their feedback.</p><ol><li>For those of you interested in knowledge management, chances are this method will remind you of the <a href="https://en.wikipedia.org/wiki/Zettelkasten">Zettelkasten note-taking method</a>, a strong, even more structured form of the ideas presented here. Also, you’d be interested in knowing that some software applications, such as <a href="https://logseq.com/">logseq</a> or <a href="https://obsidian.md/">Obsidian</a>, are designed with this model in mind.↩</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c1ed940bd70" width="1" height="1" alt=""><hr><p><a href="https://medium.com/escience-center/the-story-map-6c1ed940bd70">The story map</a> was originally published in <a href="https://medium.com/escience-center">Netherlands eScience Center</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why teach calculus in the age of AI]]></title>
            <link>https://medium.com/escience-center/why-teach-calculus-in-the-age-of-ai-db4327893b3c?source=rss-24f09ca64482------2</link>
            <guid isPermaLink="false">https://medium.com/p/db4327893b3c</guid>
            <category><![CDATA[education]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[mathematics]]></category>
            <dc:creator><![CDATA[Pablo Rodríguez-Sánchez]]></dc:creator>
            <pubDate>Thu, 09 Oct 2025 06:02:00 GMT</pubDate>
            <atom:updated>2025-10-09T06:02:00.208Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<p>Why would I learn to compute a derivative by hand when Artificial Intelligence can do it for me?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ngXAY9DLqcDnWsO3" /><figcaption>Photo by <a href="https://unsplash.com/@shubhamsharan?utm_source=medium&amp;utm_medium=referral">Shubham Sharan</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>If you’re reading this, you’ve probably taken a calculus course before. How was it? Chances are you found it frustrating or, at least, complicated.</p><p>You may remember one of the most feared parts of calculus courses: the computation of derivatives and integrals. For most students, this is the first time they face a mathematical problem whose solution is not a number, but a much more complicated object: a function. Computing derivatives and integrals involves memorizing tables, applying complicated composition rules and avoiding sneaky arithmetic errors. In short, it is hard.</p><h3>Enters technology</h3><p>For several decades now, it is possible to solve these problems using symbolic computation software packages, available for computers and even for some pocket calculators. Since the explosion of Artificial Intelligence (AI) engines, access to such tools is easier than ever. So, if you want to know the derivative of some function, you can just ask your favourite AI engine via your smartphone, and you’ll (most likely) get the correct answer.</p><p>All of this raises a valid question: why bother learning all those tedious methods?</p><h3>Calculus is not only about calculations</h3><p>One of the reasons is that differentiation and integration involve much more than the algorithms. Like all mathematical operations, they have a meaning and applications. As a matter of fact, a huge number of applications: basically all physics and engineering relies on them.</p><p>While it’s true that one doesn’t need to know how to compute derivatives or integrals in order to understand their meaning, it is quite hard to do it without wrestling with some exercises. They are a great way to internalize and create a solid understanding.</p><p>For instance, by learning some of the algorithmic rules, we’ll also learn that:</p><ul><li>Integration by substitution is just the chain rule for derivatives, read backwards.</li><li>Integration by parts is the product rule for derivatives, just written differently.</li></ul><p>Even the quintessential tedious task, that of reading (and eventually) memorizing the tables, can teach valuable lessons, such as:</p><ul><li>A table of integrals is basically a table of derivatives read backwards.</li><li>Derivatives destroy information, hence the arbitrary constant in the table of integrals.</li></ul><p>Other concepts that are difficult to grasp without “getting your hands dirty” are:</p><ul><li>Integrals and derivatives can be estimated.</li><li>Mathematics can manipulate objects more complicated than numbers.</li></ul><p>Perhaps more importantly, if you look deeper, you’ll see that studying calculus teaches you more than just mathematics. For instance, solving calculus problems shows you that:</p><ul><li>Some questions have a clear, uncontroversial and verifiable answer.</li><li>You can find out the solution to complicated-looking problems by yourself, using nothing more than pen and paper.</li></ul><h3>Conclusion</h3><p>AI is here to stay, and it is a wonderful tool for many applications. But it comes with some dangers too. One of the main criticisms that AI engines receive from the scientific and teaching communities is that they work as black boxes: they spit out results and encourage users to accept them without further scrutiny.</p><p>Being able to reach conclusions with pen and paper (quite the opposite of a black box) is certainly not less important now than before. It is a crucial skill for responsibly using AI as a learning companion.</p><p>Education is not only about getting the right answers. Education is also about learning how to ask the right questions, to reason clearly and to trust your own judgment.</p><p>Technology can solve problems for you. Calculus teaches that, at least some of them, you can solve yourself. That kind of confidence, curiosity, and mental discipline is something no black box can give you.</p><p>You earn it.</p><p><em>This piece appeared first in </em><a href="https://mappingignorance.org/2025/08/18/why-teach-calculus-in-the-age-of-ai/"><em>mappingignorance.org</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db4327893b3c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/escience-center/why-teach-calculus-in-the-age-of-ai-db4327893b3c">Why teach calculus in the age of AI</a> was originally published in <a href="https://medium.com/escience-center">Netherlands eScience Center</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[FAIR principles: 5000 years of common sense]]></title>
            <link>https://medium.com/escience-center/fair-principles-5000-years-of-common-sense-ba85086ba79c?source=rss-24f09ca64482------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba85086ba79c</guid>
            <category><![CDATA[information-technology]]></category>
            <category><![CDATA[research-software]]></category>
            <category><![CDATA[best-practices]]></category>
            <dc:creator><![CDATA[Pablo Rodríguez-Sánchez]]></dc:creator>
            <pubDate>Thu, 20 Feb 2025 10:27:02 GMT</pubDate>
            <atom:updated>2025-02-20T10:27:02.671Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<p>The FAIR acronym stands for Findable, Accessible, Interoperable and Reusable. If you are a researcher, certainly you’ve heard about FAIR principles. FAIR data, FAIR software, … It may sound as another extra, new responsibility to take care of. But, is it? We argue it is not extra, and most importantly, it’s definitely not new. Come with us on a journey through the history of knowledge sharing.</p><p>By <a href="https://javierdelacueva.es/">Javier de la Cueva</a>, with <a href="https://pabrod.github.io/">Pablo Rodríguez-Sánchez</a> as coauthor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0GSBzi9PQQnl4fBg" /><figcaption>Photo by <a href="https://unsplash.com/@paulmelki?utm_source=medium&amp;utm_medium=referral">Paul Melki</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The <a href="https://www.nature.com/articles/sdata201618">seminal paper</a> where the FAIR guiding principles were stated was published in the year 2016. If you are a researcher, most certainly you would have heard about FAIR principles, FAIR data or FAIR research software.</p><p>The <a href="https://en.wikipedia.org/wiki/Backronym">backronym</a> FAIR stands for Findable, Accessible, Interoperable and Reusable. In many forums, FAIR principles are understood as a new added responsibility to take care of by science and data practitioners. Contrary to this idea, we argue that to comply with the FAIR guiding principles is not a novel requirement. Indeed, the ideas behind the FAIR guiding principles are no less than 5000 years old, and can be traced back to the first libraries.</p><p>If a name is an acronym, it is likely to be a buzzword. According to <a href="https://en.wikipedia.org/wiki/Postmodernism%2C_or%2C_the_Cultural_Logic_of_Late_Capitalism">Fredric Jameson</a>, postmodernism is characterized by a permanent rebranding of old concepts so they may be commercialized again as new. And, indeed, FAIR is an acronym. It is often applied to research data, research software and even, although less often, to research publications. We argue that, contrary to other acronyms, FAIR is here to stay. Why? Because it is not a rebranding but the logical evolution in the digital realm of the principles that governed the analogical archives.</p><h3>A FAIR library</h3><p>Let’s forget about the digital world for a moment and take a walk to the neighborhood’s library. There we are, surrounded by elderly people quietly reading their newspapers, kids attending read-aloud sessions, students… well, studying, and all kind of people borrowing and returning books.</p><p>Let’s take a look around with the FAIR principles in mind.</p><h3>Findable</h3><p>The materials in the library are certainly findable. A good library contains thousands of volumes, so they better have a system in place. This is as true today as it was in the library of Alexandria. Some of us still remember the times when this system was a set of cardboard boxes. Nowadays, the system is usually digital. You can even browse it from home!</p><h3>Accessible</h3><p>Accessibility is also a trademark of public libraries. The building itself usually can be freely accessed by anyone, and memberships are free or, worst case scenario, very affordable.</p><p>Furthermore, many libraries have sections with materials for users with special needs. Audiobooks, books typed in Braille or in extra large fonts or simplified-language versions.</p><h3>Interoperable</h3><p>Standardized fonts are one of those everyday wonders we don’t even realize anymore. Can you imagine how hard would it be to read if all the content was hand-written, with the unique scripting style of each author?</p><p>Even more, think of word separation. Believe it or not, thefactthatwedonotwritelikethis is a relatively late development. We take spaces between written words for granted, but they are an example of technology.</p><p>And of course, translations allow readers to operate with books originally written in languages unknown to them.</p><h3>Reusable</h3><p>How do you reuse a book’s content? Well, by using the most quintessential library service: borrow and return.</p><p>Citing a book is also a form of reusablity. In some cases, you can even go further than citing and create derivatives from it. Think of for instance of encyclopediae and dictionaries. Those are composed works, with many authors and, to a large extent, independent entries. They are, by definition, work in progress.</p><h3>Conclusion</h3><p>The attentive reader certainly noticed that some of the features of books and libraries could fit in more than one FAIR concepts. For instance, are standardized fonts improving accessibility or interoperability? What about translations? Please don&#39;t take our examples as a matter of rigorous taxonomy, but stick to the spirit of the idea.</p><p>When looking back in history, it is tempting to stop too early back in time. Instead of going back only 20 years, let’s explore a bit deeper. Let’s not fall victims of the palimpsestic syndrome, <em>i.e.</em>: attributing the creation of a concept to the first person or institution you heard it from. All of the FAIR principles, with minor adjustments, have been present since literally millenia ago in the world of books.</p><p>We also need the FAIR principles to fight the <a href="https://www.esciencecenter.nl/team/dr-carlos-martinez-ortiz/">reproducibility crisis</a> that is taking place in science as we speak. And keep in mind that reproducibility is not only desirable, but a defining feature of scientific knowledge.</p><p>So no, FAIR principles are not new. And no, FAIR principles are not optional. Not bad for a buzzword!</p><h3>Acknowledgments</h3><p>We want to express our gratitude to <a href="https://www.esciencecenter.nl/team/lieke-de-boer/">Lieke de Boer</a> and <a href="https://www.esciencecenter.nl/team/dr-carlos-martinez-ortiz/">Carlos Martínez-Ortiz</a> for their excellent feedback.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba85086ba79c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/escience-center/fair-principles-5000-years-of-common-sense-ba85086ba79c">FAIR principles: 5000 years of common sense</a> was originally published in <a href="https://medium.com/escience-center">Netherlands eScience Center</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Differentiation without subtraction]]></title>
            <link>https://medium.com/escience-center/differentiation-without-subtraction-e21b4975f1cf?source=rss-24f09ca64482------2</link>
            <guid isPermaLink="false">https://medium.com/p/e21b4975f1cf</guid>
            <category><![CDATA[numerical-analysis]]></category>
            <category><![CDATA[math]]></category>
            <category><![CDATA[mathematics]]></category>
            <dc:creator><![CDATA[Pablo Rodríguez-Sánchez]]></dc:creator>
            <pubDate>Tue, 13 Feb 2024 14:24:58 GMT</pubDate>
            <atom:updated>2024-02-13T14:24:58.377Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<p>A surprising application of complex numbers</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qFgwcuuTilBUvZcu" /><figcaption>Photo by <a href="https://unsplash.com/@charlesdeluvio?utm_source=medium&amp;utm_medium=referral">charlesdeluvio</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Some time ago I came across one of those ideas that makes you wonder: <em>“why nobody told me about this before?”</em></p><p>Those of you with mathematical training certainly remember the <a href="https://en.wikipedia.org/wiki/Taylor_series">Taylor series</a>. For those who do not, and yet want to keep reading, this <a href="https://www.geogebra.org/m/CeW2gCzH">visual simulation </a>may be helpful.</p><p>The idea is that any continuous, smooth function, can be approximated by a polynomial; the higher the degree, the more accurate the approximation. To put it otherwise: if we know the value of a function and its derivatives at a given point (x), we can estimate its value at a nearby point (x + ε). More specifically:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/0*OD_8vctt4t7Yofrz.png" /><figcaption>Example of a generic Taylor series</figcaption></figure><p>If instead of a step (ε) in the realm of real numbers, we perform a step in the world of imaginary numbers (i ε), it follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/0*-ngYts5hdKrrgbi7.png" /></figure><p>It is here where things get interesting. If we take only the imaginary part, we get an equation that involves only the first derivative, the function evaluated in the complex plane, and the step size:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/0*SMqLhp8O9WSTbpvq.png" /><figcaption>We just keep the imaginary part, and drop the real one</figcaption></figure><p>This can be rearranged as an interesting formula for an approximate derivative:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/0*plM37uDCjzQzkO-5.png" /><figcaption>Complex-step numerical derivative</figcaption></figure><p>That can be even used for exact evaluation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/0*WCi5A3RET_71j1lk.png" /><figcaption>Complex-step exact derivative</figcaption></figure><h3>Is this useful at all?</h3><p>I know…, that was pretty strange. It feels like a complicated <em>tour de force</em> for something as well-known as a numerical derivative. Nevertheless, it is hard to find a mathematical result that is completely useless, and complex-step differentiation is no exception.</p><p>Let’s take a look at the last formula of the day, that of the classical step-forward numerical differentiation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/0*24BjON8mJ0Xoxf-a.png" /><figcaption>Step-forward numerical derivative</figcaption></figure><p>If we use the step-forward numerical derivative on a computer, the subtraction can cause numerical problems. Computers can’t store real numbers, but a rounded representation of them, and their numerical resolution is limited. If e is very small, it may happen that the subtraction above returns a zero as an artifact, making the whole calculation wrong.</p><p>Notice now the main difference between this and our complex-step algorithm: there is no subtraction in the complex one. One problem less!</p><h3>Further information</h3><p>More information here: <a href="https://sinews.siam.org/Details-Page/differentiation-without-a-difference">Differentiation without a difference. SIAM news</a>.</p><p>If you enjoyed this article, you may also like <a href="https://blog.esciencecenter.nl/automatic-differentiation-from-scratch-23d50c699555">Automatic differentiation from scratch</a>.</p><p>—</p><p><em>This article appeared first, in Spanish, in </em><a href="https://fuga.naukas.com/2018/08/20/derivando-sin-restar/"><em>Naukas.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e21b4975f1cf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/escience-center/differentiation-without-subtraction-e21b4975f1cf">Differentiation without subtraction</a> was originally published in <a href="https://medium.com/escience-center">Netherlands eScience Center</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automatic differentiation from scratch]]></title>
            <link>https://medium.com/escience-center/automatic-differentiation-from-scratch-23d50c699555?source=rss-24f09ca64482------2</link>
            <guid isPermaLink="false">https://medium.com/p/23d50c699555</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[julia]]></category>
            <category><![CDATA[automatic-differentiation]]></category>
            <category><![CDATA[mathematics]]></category>
            <dc:creator><![CDATA[Pablo Rodríguez-Sánchez]]></dc:creator>
            <pubDate>Thu, 09 Nov 2023 05:25:12 GMT</pubDate>
            <atom:updated>2023-11-09T05:25:12.400Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<p>A surprisingly simple and elegant way to teach your computer how to perform derivatives, with some Julia (and Python) examples</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AOF7prWH41HvpkJK" /><figcaption>Photo by <a href="https://unsplash.com/@crissyjarvis?utm_source=medium&amp;utm_medium=referral">Crissy Jarvis</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>First, a disclaimer</h3><p>Automatic differentiation is a well-known sub-field of applied mathematics. You definitely don’t have to implement it from scratch, unless, as I did, you want to. And why would you want to do such a thing? My motivation was a mix of the following:</p><ul><li>I like to understand what the packages I use do</li><li>The theory behind automatic differentiation happens to be very beautiful</li><li>I could use it as a case study to improve my understanding of the Julia language</li></ul><p>Furthermore, if you are interested in performance, you’d likely want to focus on backward automatic differentiation, and not, as I did, on the forward one.</p><p>If you are still reading, it means that after all these disclaimers your intrinsic motivation is still intact. Great! Let me introduce you to the fascinating topic of automatic differentiation and my (quick and dirty) implementation.</p><h3>Enter the dual numbers</h3><p>Probably you remember it from your high school years. The nightmare of derivatives! All those tables you had to memorize, all those rules you had to apply… chances are that it is not a good memory!</p><p>Would it be possible to teach a computer the rules of differentiation? The answer is yes! It is not only possible but can even be elegant. Enter the dual numbers! A dual number is very similar to a two-dimensional vector:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/112/0*vEd-iNWqEMyMTwi7" /></figure><p>the first element represents the value of a function at a given point, and the second one is its derivative at the same point. For instance, the constant 3 will be written as the dual number (3, 0) (the 0 means that it’s a constant and thus its derivative is 0) and the variable x = 3 will be written as (3,1) (the 1 meaning that 3 is an evaluation of the variable x, and thus its derivative respective to x is 1). I know this sounds strange, but stick with me; it will become clearer later.</p><p>So, we have a new mathematical toy. We have to write down the game rules if we want to have any fun with it: let’s start defining addition, subtraction, and multiplication by a scalar. We decide they follow exactly the same rules that vectors do:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/353/0*nOnKFbtJEtMWSyRl" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/353/0*Ucxy5E-t_Or7o08x" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/224/0*1LVvP6R08fBkflRw" /></figure><p>So far, nothing exciting. The multiplication is defined in a more interesting way:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/355/0*-detwm_AtkStgZhk" /></figure><p>Why? Because we said the second term represents a derivative, it has to follow the product rule for derivatives.</p><p>What about quotients? You guessed… the division of dual numbers follows the quotient rule for derivatives:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/219/0*cNGgLmSCwBGHnlh1" /></figure><p>Last but not least, the power of a dual number to a real number is defined as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/278/0*JK-pB8kTfzueLM1-" /></figure><blockquote>Perhaps you feel curiosity about the multiplication by u’. This corresponds to the chain rule, and enables our dual numbers for something as desirable as function composition.</blockquote><p>The operations defined above cover a lot of ground. Indeed, any algebraic operation can be built using them as basic components. This means that we can pass a dual number as the argument of an algebraic function, and here comes the magic, the result will be:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/340/0*BZlj2Afda0SL6zk0" /></figure><p>It is hard to overstate how powerful this is. The equation above tells us that just by feeding the function the dual number (x, 1) it will return its value at, plus its derivative! Two for the price of one!</p><blockquote>Those readers familiar with complex numbers may find interesting to try the following exercise:</blockquote><blockquote>If we define a dual number as</blockquote><blockquote>(u, u’) = u + e u’</blockquote><blockquote>with e² = 0, all the properties above are automatically satisfied!</blockquote><h3>Teaching derivatives to your computer</h3><p>Just as a calculus student will do, the rules of differentiation turn a calculus problem into an algebra one. And the good news: computers are better at algebra than you!</p><p>So, how can we implement these rules in a practical way on our computer? Implementing a new object (a dual number) with its own interaction rules sounds like a task for object-oriented programming. And, interestingly enough, the process is surprisingly similar to that of teaching a human student. With the difference that our “digital student” will never forget a rule, apply it the wrong way, or forget a minus sign!</p><p>So, how do these rules look, for instance, in Julia? (For a Python implementation, take a look <a href="https://github.com/PabRod/dualdiff">here</a>). First of all, we need to define a Dual object, representing a dual number. In principle, it is as simple as a container for two real numbers:</p><pre>&quot;&quot;&quot; Structure representing a Dual number &quot;&quot;&quot;<br>struct Dual<br>    x::Real<br>    dx::Real<br>end</pre><p>Later, it will come in handy to add a couple of constructors.</p><pre>&quot;&quot;&quot; Structure representing a Dual number &quot;&quot;&quot;<br>struct Dual<br>    x::Real<br>    dx::Real<br>    <br>    &quot;&quot;&quot; Default constructor &quot;&quot;&quot;<br>    function Dual(x::Real, dx::Real=0)::Dual<br>        new(x, dx)<br>    end<br>    <br>    &quot;&quot;&quot; If passed a Dual, just return it<br>    This will be handy later &quot;&quot;&quot;<br>    function Dual(x::Dual)::Dual<br>        return x<br>    end<br>end</pre><blockquote><em>Don’t worry too much if you don’t understand the lines above. They have been added only making the </em><em>Dual object easier to use (for instance, </em><em>Dual(1) would have failed without the first constructor, and so would have done the application of </em><em>Dual to a number that is already a </em><em>Dual).</em></blockquote><p>Another trick that will prove handy soon is to create a type alias for anything that is either a Number (one of Julia&#39;s base types) or a Dual.</p><pre>const DualNumber = Union{Dual, Number}</pre><p>And now comes the fun part. We’ll teach our new object how to do mathematics! For instance, as we saw earlier, the rule for adding dual numbers is to add both their components, just as in a 2D vector:</p><pre>import Base: +<br>function +(self::DualNumber, other::DualNumber)::Dual<br>    self, other = Dual(self), Dual(other) # Coerce into Dual<br>    return Dual(self.x + other.x, self.dx + other.dx)<br>end</pre><p>We have to teach even more basic stuff. Remember a computer is dramatically devoid of common sense, so, for instance, we have to define the meaning of a plus sign in front of a Dual.</p><pre>+(z::Dual) = z</pre><blockquote>This sounds as idiotic as explaining that +3 is equal to 3, but the computer needs to know! Another possibility is using inheritance, but this is an advanced topic beyond the scope of this piece.</blockquote><p>Defining minus a Dual will also be needed:</p><pre>import Base: -<br>-(z::Dual) = Dual(-z.x, -z.dx)</pre><p>and actually, it allows us to define the subtraction of two dual numbers as a sum:</p><pre>function -(self::DualNumber, other::DualNumber)::Dual<br>	self, other = Dual(self), Dual(other) # Coerce into Dual<br>	return self + (-other) # A subtraction disguised as a sum!<br>end</pre><p>Some basic operations may be slightly trickier than expected. For instance, when is a dual number smaller than another dual number? Notice that in this case, it only makes sense to compare the first elements, and ignore the derivatives:</p><pre>import Base: &lt;<br>&lt;(self::Dual, other::Dual) = self.x &lt; other.x</pre><p>As we saw before, more interesting stuff happens with multiplication and division:</p><pre>import Base: *, /<br><br>function *(self::DualNumber, other::DualNumber)::Dual<br>    self, other = Dual(self), Dual(other) # Coerce into Dual<br>    y = self.x * other.x<br>    dy = self.dx * other.x + self.x * other.dx # Rule of product for derivatives<br>    return Dual(y, dy)<br>end<br><br>function /(self::DualNumber, other::DualNumber)::Dual<br>    self, other = Dual(self), Dual(other) # Coerce into Dual<br>    y = self.x / other.x<br>    dy = (self.dx * other.x - self.x * other.dx) / (other.x)^2 # Rule of quotient for derivatives<br>    return Dual(y, dy)<br>end</pre><p>and with potentiation to a real number:</p><pre>import Base: ^<br>function ^(self::Dual, other::Real)::Dual<br>    self, other = Dual(self), Dual(other) # Coerce into Dual<br>    y = self.x^other.x<br>    dy = other.x * self.x^(other.x - 1) * self.dx # Derivative of u(x)^n<br>    return Dual(y, dy)<br>end</pre><p>The full list of definitions for algebraic operations <a href="https://github.com/PabRod/DualDiff.jl/blob/main/src/Dual.jl">is here</a>. For Python, use <a href="https://github.com/PabRod/dualdiff/blob/main/dualdiff/dual.py">this link</a>. I recommend taking a look!</p><p>After this, each and every time our dual number finds one of the operations defined above in its mysterious journey down a function or a script, it will keep track of its effect on the derivative. It doesn’t matter how long, complicated, or poorly programmed the function is, the second coordinate of our dual number will manage it. Well, as long as the function is differentiable and we don’t hit the machine’s precision… but that would be asking our computer to do magic.</p><h4>Example</h4><p>As an example, let’s calculate the derivative of the polynomial:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/248/0*FRIwG_QZetpZP52a" /></figure><p>at x = 3.</p><p>For the sake of clarity, we can compute the derivative by hand:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/224/0*qM8ioYCK2wKkmFKy" /></figure><p>it is apparent that and p(3) = 39 and p’(3) = 34.</p><p>Using our Dual object, we can reach the same conclusion automatically:</p><pre>poly = x -&gt; x^3 + x^2 + x <br>z = Dual(3, 1)<br>poly(z)<br><br>&gt; Dual(39, 34)</pre><p>Even if the same polynomial is defined in a more intricate way, the Dual object can keep track:</p><pre>&quot;&quot;&quot; Equivalent to poly = x -&gt; x^3 + x^2 + x<br>Just uglier &quot;&quot;&quot;<br>function poly(x)<br>	aux = 0 # Initialize auxiliary variable<br>	for n in 1:3 # Add x^1, x^2 and x^3<br>		aux = aux + x^n<br>	end<br>end<br><br>poly(z)<br><br>&gt; Dual(39, 34)</pre><h3>What about non-algebraic functions?</h3><p>The method sketched above will fail miserably as soon as our function contains a non-algebraic element, such as a sine or an exponential. But don’t panic, we can just go to our calculus book and teach our computer some more basic derivatives. For instance, our table of derivatives tells us that the derivative of a sine is a cosine. In the language of dual numbers, this reads:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/313/0*zVI7ZxmpfJK6kB8H" /></figure><blockquote><em>Confused about the u’? Once again, this is just the chain rule.</em></blockquote><p>The rule of thumb here is, and actually was since the very beginning:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/484/0*NFz9nPYCrtrZdIJM" /></figure><p>We can create a _factory function that abstracts this structure for us:</p><pre>function _factory(f::Function, df::Function)::Function<br>    return z -&gt; Dual(f(z.x), df(z.x) * z.dx)<br>end</pre><p>So now, we only have to open our derivatives table and fill line by line, starting with the derivative of a sine, continuing with that of a cosine, a tangent, etc.</p><pre>import Base: sin, cos<br><br>sin(z::Dual) = _factory(sin, cos)(z)<br>cos(z::Dual) = _factory(cos, x -&gt; -sin(x))(z) # An explicit lambda function is often required</pre><p>If we know our maths, we don’t even need to fill all the derivatives manually from the table. For instance, the tangent is defined as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/135/0*TKJqBgkCW85aZel3" /></figure><p>and we already have automatically differentiable sine, cosine, and division in our arsenal. So this line will do the trick:</p><pre>import Base: tan<br><br>tan(z::Dual) = sin(z) / cos(z) # We can rely on previously defined functions!</pre><p>Of course, hard-coding the tangent’s derivative is also possible, and probably good for code performance and numerical stability. But hey, it’s quite cool that this is even possible!</p><p>See a more complete derivatives table <a href="https://github.com/PabRod/DualDiff.jl/blob/main/src/primitives.jl">here</a> (Python version <a href="https://github.com/PabRod/dualdiff/blob/main/dualdiff/primitives.py">here</a>).</p><h4>Example</h4><p>Let’s compute the derivative of the non-algebraic function</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/335/0*aRH_PqRa2sN6AI61" /></figure><p>It is easy to prove analytically that the derivative is 1 everywhere (notice that the argument of the tangent is actually constant). Now, using Dual:</p><pre>fun = x -&gt; x + tan(cos(x)^2 + sin(x)^2)<br><br>z = Dual(0, 1)<br>fun(z)<br><br>&gt; Dual(1.557407724654902, 1.0)</pre><h3>Making it more user-friendly</h3><p>We can use dual numbers to create a user-friendly derivative function:</p><pre>&quot;&quot;&quot;<br>    derivative(f)<br><br>    Seamlessly turns a given function f<br>    into<br>    the function&#39;s derivative<br>&quot;&quot;&quot;<br>function derivative(f)<br>    df = x -&gt; f(Dual(x, 1.0)).dx<br>    return df<br>end</pre><p>Using this, our example above will look like:</p><pre>fun = x -&gt; x + tan(cos(x)^2 + sin(x)^2)<br><br>dfun = derivative(f)<br>dfun(0)<br><br>&gt; 1.0</pre><h4><strong>Another example</strong></h4><p>Now we want to calculate and visualize the derivatives of:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/388/0*1VKZxquKOwbfvXqi" /></figure><p>First, we have to input the function, and the derivative gets calculated automatically:</p><pre>f(x) = x^2 - 5x + 6 - 5x^3 - 5 * exp(-50 * x^2)<br><br>df = derivative(f)</pre><p>We can visualize the results by plotting a tangent line:</p><pre>using Plots<br><br>I = [-0.7; 0.7]<br>δ = 0.025<br>@gif for a = [I[1]:δ:I[2]; I[2]-δ:-δ:I[1]+δ]<br>    L(x) = f(a) + df(a) * (x - a)<br>    plot(f, -1, 1, leg=false)<br>    scatter!([a], [f(a)], m=(:red, 2))<br>    plot!(L, -1, 1, c=:red)<br>    ylims!(-5, 15)<br>end</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*Q9Yu0QQ0968X_ZoUOvxF3g.gif" /></figure><h3>Is this useful?</h3><p>Automatic differentiation is particularly useful in the field of Machine Learning, where multidimensional derivatives (better known as gradients) have to be performed as fast and exactly as possible. Said this, automatic differentiation for Machine Learning is usually implemented in a different way, the so-called backward or reverse mode, for efficiency reasons.</p><p>A well-established library for automatic differentiation is <a href="https://jax.readthedocs.io/en/latest/">JAX</a> (for Python). Machine learning frameworks such as <a href="https://www.tensorflow.org/">Tensorflow</a> and <a href="https://pytorch.org/">Pytorch</a> also implement automatic differentiation. For Julia, multiple libraries <a href="https://juliadiff.org/">seem to be competing</a>, but <a href="https://enzyme.mit.edu/">Enzyme.jl</a> seems to be ahead. <a href="https://juliadiff.org/ForwardDiff.jl/stable/">Forwarddiff.jl</a> is also worth taking a look at.</p><h3>Acknowledgments</h3><p>I want to say thanks to my colleague and friend <a href="https://abelsiqueira.com/">Abel Siqueira</a>, for kindly introducing me to Julia and reviewing this post, and to <a href="https://medium.com/@aronpjansen">Aron Jansen</a>, for his kind and useful suggestions. A more in-depth introduction can be found in <a href="https://book.sciml.ai/notes/08-Forward-Mode_Automatic_Differentiation_(AD)_via_High_Dimensional_Algebras/">this episode</a> of Chris Rackauckas’ <a href="https://book.sciml.ai/">book on scientific machine learning</a>.</p><p>The <a href="https://github.com/mathaddons/tex-math-here">TeX Math Here</a> browser add-in also played an important role: it allowed me to transfer my Latex equations from Markdown to Medium in an (almost) painless way.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=23d50c699555" width="1" height="1" alt=""><hr><p><a href="https://medium.com/escience-center/automatic-differentiation-from-scratch-23d50c699555">Automatic differentiation from scratch</a> was originally published in <a href="https://medium.com/escience-center">Netherlands eScience Center</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The bike and the laptop]]></title>
            <link>https://medium.com/escience-center/the-bike-and-the-laptop-c7f32eddd07d?source=rss-24f09ca64482------2</link>
            <guid isPermaLink="false">https://medium.com/p/c7f32eddd07d</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[teaching]]></category>
            <dc:creator><![CDATA[Pablo Rodríguez-Sánchez]]></dc:creator>
            <pubDate>Thu, 16 Mar 2023 09:02:14 GMT</pubDate>
            <atom:updated>2023-03-16T09:02:14.890Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<p>Reflections on machines that help you</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JHZz_VHUJPss2HCC" /><figcaption>Photo by <a href="https://unsplash.com/@jcaleweaver?utm_source=medium&amp;utm_medium=referral">Cale Weaver</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Students pay attention (sometimes)</h3><p>I was 17, my face was covered in acne and my hair was (awkwardly) long. I was sitting in a high school lecture room. For some reason, I still remember the topic of the day: the efficiency of different transportation means. There was this figure in our natural sciences book comparing several of them. Something along the lines of how much energy per kilometer and person was consumed by a plane, a car, a train, …</p><p>Unsurprisingly, airplanes and cars were marked as less efficient than a bus or a train. The figure seemed pretty obvious and boring, but there was something that surprised me to the point I still remember it today: a bike was more efficient than… walking!</p><p>A decade later, I came across an old pal from my high school years. Our paths diverged at university: he chose a career in computer science, and I did in physics. As often happens, we ended up talking about the (arguably) good-old teenage years. To my surprise, he mentioned the bicycle figure from that day’s lecture. He told me that it was that figure that convinced him to study computer science. I was puzzled… what? how?!</p><p>His reasoning was the following: <em>“I immediately made the link to computers. If a bike can improve your legs&#39; efficiency, a computer can improve your brain’s”</em>. Sounds a bit far-fetched… but I cannot disagree. Furthermore, 20 years and many lines of code later I want to stretch this analogy even further.</p><h3>Laptops and bikes. A far-fetched analogy</h3><p>Let’s start with two obvious statements:</p><ul><li>A bike can help you move faster and more efficiently than you would achieve walking or running.</li><li>A laptop (or any computer) can perform calculations and manage information in ways your brain cannot.</li></ul><p>But as Uncle Ben said to Peter Parker: <em>“with great power comes great responsibility”. </em>I mean… superpowers come with their own dangers and disadvantages. For instance:</p><ul><li>A bike can increase your chances of getting involved in an accident, or, less dramatically, hurt your knees if you don’t properly adjust the saddle.</li><li>A laptop can flood your brain with distractions and multitasking to the point of paralyzing your workflow. Less dramatically, you can use it in a way so inefficient that it just doesn’t scale, turning your tasks into a painful experience.</li></ul><p>There is another obvious, yet subtler similarity: both a bike and a laptop require learning how to use them. I remember very well how I learned to ride my bike as a kid: by driving in circles inside a parking lot with my dad running by my side. I was terrified, and he needed a lot of patience, but eventually, it worked out.</p><p>Ironically, I don’t have such a clear and well-defined memory of how I learned to program and efficiently use my personal computer. Not my dad, nor anyone, seems to have been my mentor. I had to learn by myself. Too often, I had these <em>“Eureka”</em> moments… shortly followed by a <em>“how in the world has nobody told me about this before?”.</em></p><h3>My “Eureka” moments</h3><p>If my computer had been a bike, those <em>“Eureka”</em> moments felt like discovering I had been riding it backward for years. Let me share some of them:</p><ul><li>Setting up an environment that works for you, that helps you keep focused and minimizes the time searching for information, maps to adapting the bike saddle to your length.</li><li>Learning how to debug is like learning how to fix a punctured tire or a loose chain.</li><li>Starting using version control is like installing a GPS holder on your bike. Now you know where you come from, and also where are you going!</li><li>Getting started with unit tests is like learning, sometimes the hard way, that it is a good idea to wear a helmet if you are race-biking.</li><li>Incorporating multiple best practices together, such as unit tests, linting, etc… is like discovering that your bike has different gears and you don’t need to suffer that much every time you want to climb a slope.</li></ul><p>I know. Laptops and bikes. A bit of an odd analogy but… what did you expect? After all, this is a Dutch Software center.</p><p>PS: are you interested in experiencing some of those <em>“Eureka”</em> moments? Take a look at our <strong>free</strong> <a href="https://www.esciencecenter.nl/training-materials/">training materials</a> and courses.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c7f32eddd07d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/escience-center/the-bike-and-the-laptop-c7f32eddd07d">The bike and the laptop</a> was originally published in <a href="https://medium.com/escience-center">Netherlands eScience Center</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An applied mathematician meets software engineering]]></title>
            <link>https://medium.com/escience-center/an-applied-mathematician-meets-software-engineering-987e94c5b0e7?source=rss-24f09ca64482------2</link>
            <guid isPermaLink="false">https://medium.com/p/987e94c5b0e7</guid>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[research]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[research-software]]></category>
            <dc:creator><![CDATA[Pablo Rodríguez-Sánchez]]></dc:creator>
            <pubDate>Thu, 26 Jan 2023 09:02:29 GMT</pubDate>
            <atom:updated>2023-01-26T09:02:29.076Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<p>How software engineering practices helped me bridge the gap between mathematics and other fields</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cJAE3sgoAlTXMc4E" /><figcaption>Photo by <a href="https://unsplash.com/@rocinante_11?utm_source=medium&amp;utm_medium=referral">Mick Haupt</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>From industry to academia</h3><p>Let’s go backward to 2015. Back then, I had a degree in theoretical <strong>physics</strong> and a 3-year professional experience in industrial software <strong>engineering</strong>. All of it spiced with many semi-professional activities in <strong>science communication</strong>. At the end of that year, I was hired as an applied <strong>mathematician</strong> at an aquatic <strong>ecology</strong> department, in order to perform a PhD.</p><p>In short: physics, engineering, communication, mathematics, and ecology, … it was the quintessential multidisciplinary job.</p><p>As often happens, one of the disciplines was overrepresented. This happened just naturally: I was working in an aquatic ecology group, inside an ecology building, on a campus specialized in biology, in a city nicknamed “the city of life sciences”. So biologists outnumbered non-biologists at around a 9 to 1 ratio. Indeed, I was the only physicist in the group, and also the only one with engineering experience. This meant that I was expected to adapt my academic culture to theirs, not the other way around. And rightfully so. Summarizing: my (mostly) mathematical background was required to produce publications interesting for an audience of (mostly) biologists.</p><p>What about the biologists’ mathematical background? Well, something I learned is that any preconceived assumption in this direction will fail. Some biologists just don’t like mathematics (just like many other humans), while others are really interested and proficient at it. One way or another, I was supposed to provide mathematical content and tools for all of them. And this posed a serious problem: how could I possibly do that without frustrating the former or boring the latter?</p><p>Talking about frustration, I should also not forget about frustrating the reader. It is time to stop talking about myself and dive into an example.</p><h3><strong>Tracking bugs (the many-legged ones)</strong></h3><p>One good day, our department bought a fancy tracking device. The purpose was to observe the movements of some tiny invertebrates inside a Petri dish.</p><p>The device was, essentially, a digital camera. It captured several images per second and identified the position of the bug in each of them. Then it returned a list of these positions (<em>x</em>, <em>y</em>) and the corresponding sampling time <em>t</em>. The figure below shows a bug’s trajectory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*iF9f0KmFW_0FjvLyLi6Eww.png" /><figcaption>Example of a bug’s trajectory</figcaption></figure><p>The machine’s output also created some obscure and difficult-to-interpret processed data. Unnecessarily obscure, I would say. This is the kind of situation where multidisciplinarity can do its magic: there is a physicist in the room so, why not use the good-old theory of classical kinematics (the simple, elegant, and centuries-old mathematical tool for describing movement) to extract information directly from the list of positions and times?</p><p>Doing this involved using numerical differentiation to extract information such as instantaneous speed, acceleration, or curvature. Still technical, but way easier to interpret than the data the machine returned by default. I presented the idea to my colleagues. Some of them liked it, while others received it with a bit of skepticism. This is understandable: most people are usually not keen to hear about differentiation and parameterized curves on a coffee break.</p><p>This was when software engineering came to the rescue. What if I code this mathematical knowledge in the form of a software package? This way, the interested enough colleague can dig into the details, while the busy and/or not mathematically oriented one can just trust that the package does its work.</p><p>Having both my two imaginary colleagues in mind, I followed some software engineering <a href="https://journals.plos.org/plosbiology/article?id=10.1371/journal.pbio.1001745">best practices</a> to make <strong>their</strong> lives easier. My package was:</p><p><strong>Openly published</strong>. So it was easy to find, install and inspect (and it <a href="https://github.com/PabRod/kinematics">still is</a>).</p><p><strong>Documented in detail. </strong>So it is easy to learn the basics, and possible to dive into the details if desired.</p><p><strong>Citable. </strong>So users can cite <a href="https://zenodo.org/record/5107805#.Y3Y1UNLMKUk">its DOI</a> in their publications.</p><p><strong>Covered by unit tests</strong>. So trusting the results doesn’t require a huge leap of faith. (What are unit tests? Tiny scripts that check that the package delivers what the developer expects, and that can be run again at any moment. Sounds silly but it is one of the most powerful tools I’ve learned in my stage as a software engineer).</p><p>When written like this, as a proper code package, <strong>the tool solved a problem instead of creating a new one</strong> (the problem of having to struggle with a new tool from its foundations).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*Ml-WjxRKZdgLxPgeWjS2IA.png" /><figcaption>The same trajectory as before, but now “enriched” with extra information, such as absolute speed and absolute acceleration</figcaption></figure><p>Additionally, the package could be applied to any time series representing a two-dimensional movement, so it was useful for problems other than bug tracking on a Petri dish. The package proved to be interesting to other researchers (the metrics say it’s downloaded around 200 times per month), and even managed to get all its way to <a href="https://cran.r-project.org/web/packages/kinematics/index.html">CRAN</a>, the <em>Mons Olympus </em>of packages in R language.</p><h3><strong>Mathematical talent locked in a drawer</strong></h3><p>Let’s imagine a parallel universe in which I never had previous experience as a software engineer. In such a universe, my package would have never taken off. Interestingly though, I’m sure I would have written the code anyways… but I don’t think I would have managed to recruit any users apart from myself. In that universe, my code will be rotting inside some portable hard drive locked in a drawer.</p><p>In that universe, I wouldn’t know anything about software best practices. I know what you are thinking. “Best practices” sounds a bit like “good manners”, something desirable but not strictly necessary. Even less when you have more important stuff to do, such as writing publications. But best practices are necessary… at least if you want your methods to be usable by others, and even by your future self.</p><p>At the eScience Center we often wonder how many brilliant pieces of knowledge follow this sad destiny. Do you have a great algorithm that deserves to fly free? Let us know. Perhaps we can help you!</p><p>Or perhaps you want to try it yourself. If that’s the case, I recommend you start with <a href="https://journals.plos.org/plosbiology/article?id=10.1371/journal.pbio.1001745"><em>Best practices for scientific computing (Wilson, 2014)</em></a>. Also, take a look at the lessons and workshops on computational skills for researchers offered by <a href="https://software-carpentry.org/">Software Carpentry</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=987e94c5b0e7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/escience-center/an-applied-mathematician-meets-software-engineering-987e94c5b0e7">An applied mathematician meets software engineering</a> was originally published in <a href="https://medium.com/escience-center">Netherlands eScience Center</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mathematics and biology: a symbiosis?]]></title>
            <link>https://medium.com/escience-center/how-can-we-improve-the-communication-between-mathematics-and-life-sciences-30351ccec8df?source=rss-24f09ca64482------2</link>
            <guid isPermaLink="false">https://medium.com/p/30351ccec8df</guid>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[science-communication]]></category>
            <category><![CDATA[research-software]]></category>
            <category><![CDATA[science]]></category>
            <category><![CDATA[biology]]></category>
            <dc:creator><![CDATA[Pablo Rodríguez-Sánchez]]></dc:creator>
            <pubDate>Wed, 12 Oct 2022 14:51:40 GMT</pubDate>
            <atom:updated>2022-10-12T14:58:09.617Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<p><em>Lessons learned, from a mathematician among biologists.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5FbzBhG-vIYMnJkE" /><figcaption>Photo by <a href="https://unsplash.com/@thisisengineering?utm_source=medium&amp;utm_medium=referral">ThisisEngineering RAEng</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Preamble</h3><p><em>In the period 2015–2019, I was hired as a mathematician by a biology department in order to work on a research line that eventually would become my doctoral thesis. This text is adapted from the last chapter of that thesis, “Cycles and interactions: A mathematician among biologists” (full text available </em><a href="https://doi.org/10.18174/520571"><em>here</em></a><em>).</em></p><p><em>The symbiosis between mathematics and biology, although may seem improbable at first sight, is actually backed by a centuries-old tradition of collaboration. It started with mathematicians that were inspired by biology such as Leonardo Pisano, alias Fibonacci. His famous sequence (namely: 1, 1, 2, 3, 5, 8, 13, …, where each element is the sum of the two previous ones), a landmark in number theory very popular among amateur mathematicians, was first described in the context of a practical problem on rabbit breeding in such an early date as the year 1202.</em></p><p><em>Mathematical knowledge has improved greatly since the 13th century. The foundations of the tools used by modern mathematical biologists, namely, calculus and differential equations, were laid in the late 17th century by Isaac Newton and Gottfried Leibniz motivated by mechanical problems. The great mathematician Leonhard Euler and the economist and demographer Thomas R. Malthus, two of the pioneers of using differential equations to address biological problems, had both printed their seminal works in population dynamics before the fall of the year 1800.</em></p><p><em>This interdisciplinary collaboration between mathematics and biology is nowadays alive and in good shape. Some of the most influential names in ecology in the 20th and 21st centuries have, indeed, a background in mathematics (such as Robert MacArthur, Simon Levin, or Alan Hastings) or in physics (such as Robert May).</em></p><p><em>The opportunity offered by cheap access to computing power, together with the unavoidable increase of required technical skills such as programming, data analysis, and advanced statistical methods, points to a future where the technical profiles expected from a research team in biology will not be so different to those of a team of physicists or applied mathematicians. It is reasonable to expect that this symbiosis between mathematicians and biologists will remain strong, and even get stronger, in the near future.</em></p><p><em>I hereby offer some advice for both biologists and mathematicians (understood here as mathematically oriented professionals, including physicists and engineers) interested in exploring “the other side”. It contains the kind of advice I would have liked to have had in 2015, when I approached, naively as only a physicist can do, the world of biology.</em></p><p>Mathematics is often perceived as a harsh subject both by scientific and non-scientific professionals. Despite those preferences and prejudices, mathematics is used in almost every field of knowledge and are a must-have in any multidisciplinary project.</p><p>Different disciplines have associated not only a set of background knowledge and methods but a whole academic culture. When crossing the borders between disciplines, facts and methods can be learned, but accepting and adapting to another culture is much harder.</p><p>As with any other culture, mathematicians and biologists differ slightly in language, values, norms, and interests. As usually happens in intercultural communication, there is plenty of opportunity for misunderstandings, and each subgroup cultivates myths and misconceptions about the other.</p><p><strong><em>Advice for biologists working with mathematicians</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DXaLJZXNaU0oSjxf" /><figcaption>Photo by <a href="https://unsplash.com/@noaa?utm_source=medium&amp;utm_medium=referral">NOAA</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Invest in applied mathematics</h4><p>Applied mathematics doesn’t mean easy mathematics. The adjective “applied” or “pure”, accompanying the word “mathematics”, tells us something about the object under study, but nothing about its difficulty. Indeed, the mathematical tool will be as complex as the object under study is.</p><p>It may be frustrating to learn that, for instance, it is required to get familiar with second-order tensors (a particularly hard tool rooted in differential geometry) in order to understand fluid dynamics. Mathematicians don’t introduce this tool to torture the newcomers, but because tensors are the easiest available tool to study a complex phenomenon that cannot be avoided in the study of fluids: deformation.</p><p>The difficulty is provided by the problem under study, not by the tool used to solve it.</p><h4>Equations and rigor are not torture instruments</h4><p>It is known that the mere sight of an equation can create anxiety. Even the physicist Stephen Hawking, in the preface of his best-seller “A brief history of time”, claims that each printed equation divides the potential audience by two.</p><p>Whether we like them or not, equations are often the best way to share complex information in a compact and practical manner. Invest time in learning how to read them. Rigorous and detailed analyses are often required, as some details can escape intuition.</p><p>Be also aware that the same equation can be written in different ways. Even if different ways of writing the same equation are correct, some of them can be clearer than others. Consistent use of upper and lower case (for instance, upper for states, lower for parameters), superscript and subscript, smart use of auxiliary definitions, proper alignment of related equations and other simple rules can significantly increase the readability of your scientific output.</p><h4>Modeling is all about simplifying</h4><p>Be prepared that the main task of modeling is simplifying. This is the main challenge as here both an understanding of the system and of modeling techniques are required. In the design phase of a model, lots of exchange is needed between the biologists and the mathematicians. This may come as a surprise, but most mathematicians feel overwhelmed by biologists’ talk. Biologists tend to provide them with too much information.</p><p>When communicating to mathematicians, focus more on the ideas than on the details you would provide for your peers. You can easily underestimate how difficult your own field is for outsiders. For instance, the experimental methods can be left out, as mathematicians will just assume that the data has been properly collected.</p><p>Try also to think in terms of inputs, processes, and outputs. This exercise is not only good for interdisciplinary communication, but also for experimental design and even for structuring a report.</p><p><strong><em>Advice for mathematicians working with biologists</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8cgevQhUCpP9y59N" /><figcaption>Photo by <a href="https://unsplash.com/@benji3pr?utm_source=medium&amp;utm_medium=referral">Benjamin Lizardo</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Make peace with uncertainty</h4><p>Due to the complexity of the subject of study, it is unrealistic to expect the same precision from biological models as from physical ones. Forget all you learned in math/physics/engineering school about discarding any result with an <em>r</em>2 below 0.99. You are working with biological and, thus, complex systems now. Models just do as well as possible. Additionally, you’ll have to embrace the fact that most of these models rarely allow an elegant, analytical approach, and numerical methods will be required most of the time.</p><h4>Explain why you do what you do</h4><p>When explaining a mathematical method, instead of starting with generic propositions and formal proofs, always explain why it is useful using simple examples. Biologists may quickly lose motivation if they are not convinced that the mathematics used is somehow useful.</p><p>A particularly illuminating experience happened to me while teaching <a href="https://en.wikipedia.org/wiki/Matrix_multiplication">matrix multiplication</a> to a group of biology students. The topic is particularly boring and most often is just presented as a rule. In this case, I proceeded differently: I first let the students experience the <em>need</em> for a compact notation (by making them write down, line by line, increasingly larger competition models), and later I explained why the rule of matrix notation is what it is and how it solves their need.</p><p>Presented this way, the students notice that the mathematical tool is solving a problem they already have, instead of feeling that it creates a new one (that of having to learn how to use a new tool). Additionally, the explanations about why the rule is how it is, help them learn and remember it.</p><h4>Proofs are scary</h4><p>Maybe you think mathematical proofs <em>shouldn’t</em> be scary, but the fact is that for many biologists they are. A mathematical proof is somehow a journey, a journey from a set of assumptions to a conclusion, and your collaborators should enjoy the ride too.</p><p>Often, proofs can be substituted by a graphical or intuitive approach. This substitution may come with some simplification when affordable, but often can be done without loss. Euclid’s “Elements”, probably the most influential mathematical book ever written, contains mostly visual proofs. More modern examples can be found in the collection “Proofs without words”.</p><p>If mathematical proof is really needed, make an effort in explaining the notation and all the steps. The quickest way of creating frustration in your audience is by using the word <em>trivial</em>, so avoid it always. When writing publications in non-mathematical journals, it is usually a good idea to write the proofs in an appendix and just state the results as a fact in the main body. Just like mathematicians feel they cannot judge experimental methods, most biologists will assume proofs are correct.</p><h4>Invest in software engineering techniques</h4><p>Very often, your collaborators will ask you to provide a tool for, say, simulating a biological system or performing a statistical calculation. Encapsulating such a tool in usable and robust pieces of software could be a very good idea. Getting introduced to the world of software engineering can be very helpful in this regard. For a brilliant, quick introduction, see <a href="https://doi.org/10.1371/journal.pbio.1001745">Best practices for Scientific Computing, Wilson et al., PLOS Biology, 2014</a>.</p><h4>Use as much visualization as possible</h4><p>Take advantage of humans’ most advanced information acquisition system: vision. Illustrate your ideas with graphs and figures, or even movies and animations when applicable. If they are good, they can even replace an equation.</p><p><strong><em>Advice for both</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dAPLLYwIVvS6lIZh" /><figcaption>Photo by <a href="https://unsplash.com/@gift_habeshaw?utm_source=medium&amp;utm_medium=referral">Gift Habeshaw</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Get involved in science communication</h4><p>If you think interdisciplinary communication is hard, just try to communicate science to the general public. Not only will you notice that science communication is even harder, but also you will learn a lot about how to improve your overall communication skills.</p><p>Nowadays there are lots of ways of getting involved with this activity (from writing a blog to giving a talk at an event). The practice of science communication forces a deep understanding of the topic being communicated. It requires removing the unnecessary, identifying what is hard and why and advancing the audience&#39;s questions and doubts. It requires, in one word, understanding.</p><p><em>This text is adapted from the author’s doctoral thesis, </em><a href="https://research.wur.nl/en/publications/cycles-and-interactions-a-mathematician-among-biologists"><em>Cycles and interactions: A mathematician among biologists</em></a>, section 5.4<em>. An earlier version of it was also published in </em><a href="https://mappingignorance.org/2020/11/09/how-can-we-improve-the-communication-between-mathematics-and-life-sciences/"><em>Mapping Ignorance</em></a>,<em> and a Spanish translation in </em><a href="https://culturacientifica.com/2020/11/02/como-mejorar-la-comunicacion-entre-las-matematicas-y-las-ciencias-de-la-vida/"><em>Cátedra de Cultura Científica</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=30351ccec8df" width="1" height="1" alt=""><hr><p><a href="https://medium.com/escience-center/how-can-we-improve-the-communication-between-mathematics-and-life-sciences-30351ccec8df">Mathematics and biology: a symbiosis?</a> was originally published in <a href="https://medium.com/escience-center">Netherlands eScience Center</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fun with elevators: a tutorial]]></title>
            <link>https://medium.com/escience-center/fun-with-elevators-a-tutorial-dff473d69d32?source=rss-24f09ca64482------2</link>
            <guid isPermaLink="false">https://medium.com/p/dff473d69d32</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[physics]]></category>
            <category><![CDATA[accelerometry]]></category>
            <dc:creator><![CDATA[Pablo Rodríguez-Sánchez]]></dc:creator>
            <pubDate>Thu, 08 Sep 2022 13:01:44 GMT</pubDate>
            <atom:updated>2022-09-08T13:01:44.686Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<p><em>Most modern cell phones contain an accelerometer. And that’s good news if you are curious about all the data around you</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4ofm5alj_exWfow5" /><figcaption>Photo by <a href="https://unsplash.com/@waldemarbrandt67w?utm_source=medium&amp;utm_medium=referral">Waldemar Brandt</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Some years ago I did a secondment at the Friedrich Schiller University, in Jena, Germany. To my surprise, my office during those months was located on the 18th floor of a skyscraper, the Jentower:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/0*4Afjsusuv4SsR3XK.jpg" /><figcaption>The Jentower</figcaption></figure><p>But I’m not writing this to boast about the amazing views of my old office. On the contrary, I’ll destroy any possible idea of glamour related to working in a place like this. And I’ll do it with a confession: I became known as the crazy guy who leaves his cell phone on the ground while he uses the elevator. Let me explain why:</p><p>A building almost 150 meters high needs fast elevators. The ones in this building have a very powerful, almost scary acceleration. Then, I remembered that smartphones usually contain an accelerometer, so I tried to measure those accelerations.</p><p>There are many apps that allow registering data from all sensors available on the phone (accelerometers, light, magnetic field, …) and exporting them in an easy format (such as .csv) quite easy to analyze on a computer. If you like getting your hands dirty, give it a try!</p><p>In the figure below we can see the vertical acceleration profile during my trip to the 18th floor one morning, where we can clearly see the initial “kick” (seconds 9 to 14) and the braking (28 to 33).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*DBRj0N55eBOLr3_TCJ7teQ.png" /><figcaption>Vertical acceleration vs Time (gravity has been excluded)</figcaption></figure><p>Accelerations of 1 m/s² sustained during 4 seconds! Think that, the usual acceleration your body experiments due to gravity is around 9.8 m/s² so, while the elevator goes up, your weight gets increased by around 10%. You can feel that in your stomach!</p><p>We can explore this data a bit further. We can, for instance, use the acceleration time series to compute speed and position. How? Maybe you remember from high school physics that position (x), velocity (v), and acceleration (a) are related through derivatives. More specifically.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/274/0*f6vwlMWN8bQjL9PG.png" /></figure><p>With the previous recipe, we can compute speed using the position, and then use speed to compute acceleration. One after the other, like in a production chain. Nevertheless, in our case, we want to do the opposite process. Luckily, we can use integrals to “revert” our derivatives, and thus our whole “production chain” looks now:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/0*4qUNhJ4PInVFgVv3.png" /></figure><p>So, by integrating the acceleration (to obtain the speed), and then integrating the speed (to obtain the position) we find results like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*iK8mx2VNGsoUgCzh13hV3Q.png" /><figcaption>Acceleration, speed, and position against time.</figcaption></figure><p>So, using only a device that most of us carry everywhere and some elementary physical concepts we know that:</p><ul><li>Our elevator runs up at 4 m/s.</li><li>My office was 74 meters above the ground.</li></ul><p>If someone is interested in exploring a bit deeper into the details (for instance: how to filter out the effects of gravity, how to integrate a time series, …) or even experimenting with their own elevator, <a href="https://github.com/PabRod/elevator-tool">here is a link</a> to the code I’ve used.</p><p><em>This text appeared first in </em><a href="http://fuga.naukas.com/2018/02/06/un-empollon-en-mi-ascensor/"><em>Naukas</em></a><em>, where it was originally written in Spanish.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dff473d69d32" width="1" height="1" alt=""><hr><p><a href="https://medium.com/escience-center/fun-with-elevators-a-tutorial-dff473d69d32">Fun with elevators: a tutorial</a> was originally published in <a href="https://medium.com/escience-center">Netherlands eScience Center</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A single rule for better talks]]></title>
            <link>https://medium.com/escience-center/a-single-rule-for-better-talks-816bb3d422ae?source=rss-24f09ca64482------2</link>
            <guid isPermaLink="false">https://medium.com/p/816bb3d422ae</guid>
            <category><![CDATA[communication]]></category>
            <category><![CDATA[science-communication]]></category>
            <category><![CDATA[public-speaking]]></category>
            <category><![CDATA[time-management]]></category>
            <category><![CDATA[communication-skills]]></category>
            <dc:creator><![CDATA[Pablo Rodríguez-Sánchez]]></dc:creator>
            <pubDate>Thu, 30 Jun 2022 06:03:03 GMT</pubDate>
            <atom:updated>2022-06-30T11:16:49.152Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<p><em>If I had to take a single lesson from event managing, it would be this one: enforce the timing of your events. It can be awkward at times, but it is worth it.</em></p><figure><img alt="A sand clock" src="https://cdn-images-1.medium.com/max/1024/0*SjK1dGbja6UziGox" /><figcaption>Photo by <a href="https://unsplash.com/@alexandar_todov?utm_source=medium&amp;utm_medium=referral">Alexandar Todov</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>A bit of context</h3><p>Since a decade ago, I am part of a <a href="https://naukas.com/">scientific communication society</a>. We gather every year, at least once, in a big theater in Northern Spain in order to perform short, 10-minute talks about science. Each one of these pitches is targeted at a general audience, ranging from professionals to children.</p><p>These events include around 50 talks, divided into 4 sessions, spread over 2 days. This averages to around 12 talks per session. Roughly 2,000 people attend these talks, so it is also important to take regular breaks. Summarizing: an organizational nightmare. Because of this, one of the most remarkable aspects of these events is that we manage to keep the timing under control. In more than a decade of history, the event never had an accumulated delay of more than 5 minutes. How did we do it?</p><p>The answer is simple: every speaker is given 10 minutes and not a second more. And we mean it: there is no way the speaker is going to take more time. This is true regardless of how prestigious the speaker is, how engaged the audience seems to be or how interesting the talk some moderator thinks is. No need to say that the talks start exactly on time, even if part of the audience is late (actually, the doors are closed and nobody is allowed in between talks). Summarizing: the 10 minutes rule is not advisory, but strictly enforced.</p><p>How do we enforce it? Firstly, the 10 minutes rule is enforced by an inanimate, irrational and ruthless clock. A timer, usually on a tablet that the speaker can continuously see from the stage, that will start loudly ringing an alarm after 10 minutes. An alarm that nobody will switch off until the speaker is gone. What will be switched off, instead, is the speaker’s microphone.</p><p>To make things even more interesting, the inanimate, irrational and ruthless clock is in the hands of a very animate, rational, but equally ruthless bouncer, that will not hesitate to jump to the stage and make a very clear cue that the talk is over. Even gently (but firmly) pushing the speaker out of the stage in case of need.</p><h3>Implementing this at your talks or meetings</h3><p>I know this feels rude. Timing and bluntly interrupting each other’s interventions is certainly unacceptable in a conversation with a group of friends. But this is the cornerstone here: a scientific pitch (and the same applies to a professional one, a meeting, a project presentation, …) is not a conversation with a group of friends. It’s a completely different situation that requires a different format and different rules.</p><p>In contrast with a talk with friends, a professional talk is planned and scheduled in detail. People made the effort to adjust their agendas to be able to be there, either as a speaker or as an attendant. When someone takes too much time, they don’t take it from thin air: they take it from other people. And it escalates with the size of your audience: 5 extra minutes in a small audience of 12 people amount to a whole person-hour. Not sticking to an agreed schedule is also a form of rudeness that, in its most dramatic form, leads to the cancellation of the part of the program planned for later in the session. This is certainly more rude and undesirable than clearly notifying everybody in advance about the time limitation and enforcing it.</p><p>It requires, of course, an extra effort from the organizers. To begin with, the rule has to be communicated in advance and enforced equally and fairly. Additionally, the organizer should do as much as possible to make sure the process goes as smoothly as possible. For instance, collect the slides in advance, test them (also in advance, not five minutes before the talk, but with time enough to react in case something goes wrong), and have them ready on the same laptop. Using a clock alarm (I agree that a bouncer may be too much 😅) is a good way of transferring the responsibility of interrupting the speaker to a machine incapable of feeling awkward.</p><h3>Unexpected side effects</h3><p>There are extra benefits of this, perhaps, radical approach. When we applied this to our event, the first surprise was that all the speakers accepted the rule without complaint. Furthermore, the clock almost never rang, and the bouncer very rarely had to stand up.</p><p>But our biggest surprise was that <strong>the quality of the talks improved massively</strong>. Why? Because the stick-to-the-time requirement <strong>forced speakers to rehearse</strong> their pitch at least once. After this, most speakers had to polish their first draft into a much more depurated and neat final version.</p><p>Rehearsing a couple of times feels strange, but it is incredibly powerful. It works (and feels) better if you do it in front of a tiny audience, but you can also do it alone. You will clearly notice the parts that work well, the parts that don’t, and the parts that can be shortened or, even better, removed (see Post scriptum below).</p><p>That’s my personal advice. Let a clock chair your meetings. And let me know in the comments how it went.</p><h3>Post scriptum: remove or not remove?</h3><p>Removal. Omission. Simplification. Probably these words don’t sound like something positive to you (especially if you work in academia). Certainly, you shouldn’t deliberately omit information on a report or an academic publication… but a presentation at a meeting is a different thing. Actually, I have a rule for myself: whenever my presentation slides start looking, sounding and feeling too much like a rigorous academic paper, I take it as a serious warning signal. Because they shouldn’t! Only a paper has to feel like a paper.</p><p>The purpose of most talks is either to persuade, to inspire, or to provide some introductory information about a topic. None of these goals requires high amounts of rigor. Actually, rigor and details often ruin the whole thing.</p><p>If the message you want to communicate actually requires details, then a talk is not the best format to provide it. A report, a paper, or a master class with the active participation of your listeners certainly would be a much better way of conveying your message. <strong>But if you are giving a talk, give just a talk</strong>. And in this case, less is more.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=816bb3d422ae" width="1" height="1" alt=""><hr><p><a href="https://medium.com/escience-center/a-single-rule-for-better-talks-816bb3d422ae">A single rule for better talks</a> was originally published in <a href="https://medium.com/escience-center">Netherlands eScience Center</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>