<?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 Eugene Ang on Medium]]></title>
        <description><![CDATA[Stories by Eugene Ang on Medium]]></description>
        <link>https://medium.com/@eugene.ang?source=rss-4af29f1c47fb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Ii3b4FimQDxqYUch8a-JmQ.png</url>
            <title>Stories by Eugene Ang on Medium</title>
            <link>https://medium.com/@eugene.ang?source=rss-4af29f1c47fb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 19:47:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@eugene.ang/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[An Introduction to Simulations and Their Uses]]></title>
            <link>https://medium.com/@eugene.ang/an-introduction-to-simulations-and-their-uses-22c339d86e23?source=rss-4af29f1c47fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/22c339d86e23</guid>
            <category><![CDATA[simulation]]></category>
            <category><![CDATA[model]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[analysis]]></category>
            <dc:creator><![CDATA[Eugene Ang]]></dc:creator>
            <pubDate>Sun, 18 Nov 2018 14:57:23 GMT</pubDate>
            <atom:updated>2018-11-19T14:43:29.607Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lgfobp1oO0kRYGLtfJypsA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@bundo">Bundo Kim</a> via <a href="https://unsplash.com/photos/ZLHL5EBVvb8">Unsplash</a></figcaption></figure><h3>“the Prep”</h3><p>Eddie and Jasmine never have a dull moment ever since they met through an introduction of a mutual friend. The affection they have for each other are felt but not verbally spoken. One particularly good day, Eddie finally mustered the courage to ask Jasmine out for a date. Eddie was thrilled when she agreed but couldn’t help feeling nervous. He wanted everything to be perfect.</p><p>Thus began <strong>“the Prep”</strong>. He played out various scenarios in his mind, including activities they will be doing; the best time of the day to meet; the clothes he would wear to impress; and a list of topics that he would bring up for conversation. Each of these variables was contemplated upon, with the knowledge he had pieced together of her.</p><p>His efforts paid off, and that first date led to a second, and subsequent dates. The story of Eddie performing “the Prep” is an illustration of how simulating different scenarios aid in evaluating the value of possible actions.</p><p>In this blog post, I will discuss simulations and models, what they are and why we may want to use them (for other than the tale recounted above).</p><h3>What is a Simulation?</h3><p>A simulation is the <strong>running of an abstract representation</strong> of a <strong>real-world process or system</strong>, imitating to a certain extent, its real-world attributes or behaviour with different possible scenarios for <strong>observation, study or experimentation</strong>.</p><p><strong>Abstract representations</strong> are also termed as<strong> simulation models</strong> which could be in the form of a physical model, mental model, mathematical model, or computer-based model. We will walk through simulations using the following two examples:</p><h4>Simulation for Fire Emergency Evacuation Process</h4><p><strong>A process is defined as a series of action taken that to achieve some goal.</strong> The synonyms of <em>process</em> include <em>procedure</em>, <em>operation</em> and <em>activity</em>. Simulation could be used as a trial run for a designed process to study its effectiveness before implementation in the real world.</p><p>A Fire Emergency Evacuation Process like the one depicted in the diagram below is a good example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*OgNU7L91yf247Jo7BCc8_A.jpeg" /><figcaption>Fire Emergency Evacuation Process by <a href="http://scse.ntu.edu.sg/ContactUs/SCSESafety/Pages/safety-eprocedures-stfstd.aspx">NTU School of Computer Science and Engineering</a></figcaption></figure><p>We are able to build models to simulate a group of human entities in a virtual building environment, and they are created with behaviours to follow an evacuation process and an escape plan to exit the building in the event of a fire. At the end of the simulation, <em>the time it took to evacuate</em> and <em>the number of casualties</em>, are used to measure the effectiveness of the designed process.</p><h4>Simulation for Train Transportation System</h4><p><strong>Systems are defined as individual components working together as part of a collective mechanism to serve a common purpose. </strong>The Train Transport System is a good example that is made up of multiple components (rolling stocks, stations, railway network topologies, etc.) working in tandem to transport passengers.</p><p>Simulated experiments can be conducted using a train system model to monitor its expected performance during actual operation. Scenarios could test for increased passenger load during peak hours, reduced travelling time with the addition of a new interchange station or the after-effect to the system if any particular stations are unavailable to service any passengers.</p><p>An interesting observation I made while discussing ideas with people is that most will relate a simulation to a computer system that displays entities which react to objects in a virtual, often perceivable, world. Their concept of a simulation likely stemmed from the entertainment angle, through games (e.g. <a href="https://www.ea.com/games/simcity">SimCity</a> or <a href="https://www.klei.com/games/oxygen-not-included">Oxygen Not Included</a>) or movies (e.g. <a href="https://en.wikipedia.org/wiki/Ender%27s_Game_(film)">Ender’s Game</a>).</p><p>In actual fact, a simulation could be done with pen and paper containing only mathematical computation, and it’s result are presented in numbers and words. Of course, with the advancement of technology, computer simulation provides a much better experience for building models and performing simulations.</p><h3>Models aka Imitation / Abstract Representation</h3><p>Simulation models are built to partially represent the system for the purpose of analysing them. There is a famous quote by statistician George Box:</p><blockquote>“ All models are wrong but some are useful.”</blockquote><p>In his point of view, models do not have to be constructed bearing all the accurate behaviour of the actual system. The models just need to have sufficient details to be useful for the study. There are three different dimensions we can use to build our simulation models.</p><h4>Static vs. Dynamic Model</h4><p><strong>A static model</strong> is used to represent systems where <strong>time plays no role</strong> in determining its behaviour. It can be used to describe the <a href="https://en.wikipedia.org/wiki/Monty_Hall_problem">Monty Hall problem</a><strong> </strong>or other <a href="https://en.wikipedia.org/wiki/Monte_Carlo_method">Monte Carlo simulations</a>.</p><p><strong>A dynamic model</strong> is used to represent systems that change state and behaviour <strong>according to the time that has passed</strong>. It can be used to describe a traffic system where time will determine the <em>position </em>of a moving car on the road.</p><h4>Deterministic vs. Stochastic Model</h4><p><strong>A deterministic model does not contain any random component</strong> in its behaviour. It is strictly dependent on the initial input and environment condition and will <strong>behave the same at all times</strong> if the exact conditions are met. It can be used to represent models involving mathematical formulas with no probability component, for example in a chemical reaction or physics motion simulation.</p><p><strong>A stochastic model contains random components</strong> in its representation. It will <strong>follow a particular probability distribution</strong> in simulating its system behaviour. It can be used in a queuing simulation where the <em>inter-arrival time</em> (the time between the arrival of two sequential customers) of customers may be derived from a <a href="https://en.wikipedia.org/wiki/Poisson_distribution">Poisson distribution</a>.</p><h4>Continuous vs. Discrete Model</h4><p><strong>State variables</strong> are variables that will describe the <strong>state of the model</strong> at <strong>the point of time</strong> in a running simulation. State variables are usually created based on information required to be analysed.</p><p><strong>A continuous model</strong> has their state variable <strong>changing continuously</strong> as a function of time. For example, a travelling car model will have its state variables such as <em>position </em>and <em>velocity </em>change consistently with time.</p><p><strong>A discrete model</strong> has their state variable <strong>change instantaneously</strong> at separate points in time based on a sequence of events. For example, in a bank system, the state variables such as the <em>number of busy tellers</em> and <em>number of customer waiting</em> will change when a <em>“Customer Arrival” </em>event occurs.</p><h3>Reasons Why We Use Simulation Rather Than Real-World Systems</h3><p>With the explanation of what simulation and model are, you might query why we can’t just study a real-world system? There are actually a few reasons why we prefer to use simulation instead.</p><h4>1. It is safer</h4><p>Some real-world system operation could be too dangerous to experiment on. It could be simulating events such as a nuclear disaster or testing a new surgical procedure.</p><h4>2. It uses less cost and resources</h4><p>In urban planning, it will be costly to implement a new bus route or make a change in the road network structure to observe if the changes could reduce traffic congestion. It is far less costly and avoids disruptions to test such scenarios using a transport simulation.</p><h4>3. It can create a virtual environment</h4><p>A computer simulation can create a virtual environment with conditions that are uncontrollable in the real world. Some of the conditions may include weather, time, landscape or the availability of life forms like wildlife and human entities. All of these conditions can be modelled and controlled to behave according to the purpose of your simulation.</p><p>One popular application of a virtual environment is in training simulators like a flight simulator or driving simulator. It allows the trainee to gain experience with operating the vehicle under different conditions (e.g. at night during a heavy thunderstorm).</p><p>A simulation could also be used to train and test AI models. <a href="https://blogs.unity3d.com/2018/09/26/unity-and-deepmind-partner-to-advance-ai-research/">Deepmind researchers are using Unity’s engine to create complex virtual environments to help future their research in AI</a></p><h4>4. It takes lesser time to get the results</h4><p>Computer simulated systems can be expedited to run faster than real-world systems because time can be simulated as a parameter of the function to generate the outcome/result. This is unlike a real-world system which must undergo the passage of physical time.</p><h4>5. It is able to deal with complex systems</h4><p>Some systems have complicated behaviours involving multiple entities like <a href="https://en.wikipedia.org/wiki/Crowd_psychology">crowd behaviour</a>, <a href="https://en.wikipedia.org/wiki/Flocking_(behavior)">flocking</a>, or <a href="https://en.wikipedia.org/wiki/Swarm_behaviour">swarming</a> which are hard to observe consistently in real life.</p><p>Using simulation, we can design entities with individual behavioural identities and have them interact to simulate a complex model. We could then generate an artificial history for each of their actions and interactions, and from it draw inferences regarding the system operating in the real world.</p><h3>Wrap-Up</h3><p>I would say that simulations offers <strong>broad base application</strong> and are an incredibly useful way <strong>to</strong> <strong>study a complex system or process operating in the real world</strong>. I hope that by sharing this article I have helped you understand more about simulation and perhaps one day, you would discover an application for using it too! 😊</p><p>On a side note, have you ever wondered if us humans could be existing in a simulation, a reality created by a greater being for our system to be observed? To this end, you may be interested in exploring the <a href="https://en.wikipedia.org/wiki/Simulation_hypothesis"><strong>Simulation Hypothesis</strong></a>. There is a nice YouTube video created by Michael Steven — <a href="https://www.youtube.com/watch?v=3d9i_0Ty7Cg">Are You In A Simulation?</a> in his channel <a href="https://www.youtube.com/channel/UCwmFOfFuvRPI112vR5DNnrA">Vsauce3</a> that discusses this. Have a look if you are interested!</p><p>Till next time, Eugene out !~~</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22c339d86e23" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>