Chapter 2_Computational Modeling

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/55

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 3:07 AM on 8/26/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

56 Terms

1
New cards

model

  • is a simplified representation of a real-world system, built to study, predict, or analyze behavior.

  • Not exact copies but abstractions → focus only on key features relevant to the problem.


2
New cards

Modeling

is the application of methods to analyze complex, real-world problems in order to make predictions about what might happen with various actions

3
New cards

Variables

  • These are the fundamental "parts" or "actors" within the model, representing physical things, concepts, or processes.

  • These are elements that change.

  • Examples:

    • Population size

    • Temperature.


4
New cards

Parameters

  • Refers to constants that define system properties.

  • Examples:

    • Growth rate

    • Infection rate.


5
New cards

Equations/Rules

Relationships that describe how variables change.

6
New cards

computational model

  • is a simplified representation of a real-world object, process, or system that is created using mathematical relationships and computational methods.

  • Instead of experimenting directly on real systems, scientists use models to understand behavior, predict outcomes, and evaluate different scenarios.


7
New cards

deterministic model

always produces the same output when given the same input.

8
New cards

SIR model (Susceptible, Infected, Recovered)

is a simple mathematical and computational model used to understand how a disease spreads through a population.

9
New cards

Susceptible

People who can still catch the disease.

10
New cards

Infected

People who currently have the disease and can spread it.

11
New cards

Recovered

People who have recovered and are assumed to no longer spread the disease.

12
New cards

β (Beta) – Infection/Transmission Rate

This represents how effectively the disease spreads through contact.

13
New cards

γ (Gamma) – Recovery Rate

This represents how quickly infected people recover.

14
New cards

Probabilistic/Stochastic Models

  • includes randomness or probability.

  • The same input may produce different outputs because uncertain events are involved.


15
New cards

Uses probability

Assigns chances or likelihoods to different events or outcomes.

16
New cards

Includes random variables

Uses variables whose values can change randomly depending on the event.

17
New cards

Models uncertainty

Represents situations where the exact outcome cannot be predicted with certainty.

18
New cards

Produces multiple possible outcomes

A single input can result in different outputs because of random or uncertain factors.

19
New cards

More realistic

Can better represent real-world situations where outcomes are not always predictable.

20
New cards

Represents uncertainty

Considers randomness and unexpected events in a system.

21
New cards

Useful for complex systems

Helps study systems that are difficult to solve using simple mathematical models.

22
New cards

More difficult to analyze

Requires more complex calculations and methods.

23
New cards

Results vary from one simulation to another

Because randomness is involved, different simulation runs may produce different results.

24
New cards

Naïve Bayes

  • is a probability-based classification algorithm used to predict the category of data.

  • It assumes that the features are independent of one another.

  • It chooses the class with the highest probability as the prediction.

  • It is commonly used for spam detection, text classification, sentiment analysis, and medical diagnosis.



25
New cards

Bayes’ Theorem

Naïve Bayes uses this to calculate the probability of each possible class.

26
New cards

static model

  • we do not consider time, so that the model is comparable to a snapshot or a map.

  • resents a system at one point in time.

  • It is like a snapshot because time does not change.


27
New cards

dynamic model

  • time changes, so that such a model is comparable to an animated cartoon or a movie.

  • Represents a system that changes over time.

  • It is like a movie or animation because we observe changes from one moment to another.



28
New cards

Continuous model

  • time changes continuously and smoothly

  • Changes happen smoothly and continuously, without clear steps or breaks.


29
New cards

discrete model

  • time changes in incremental steps

  • Changes happen in separate steps or intervals.


30
New cards

modeling process

  • is cyclic and closely parallels the scientific method and the software life cycle for the development of a major software project.

  • is iterative; models are built, tested, refined, and reapplied


31
New cards

Step 1: Analyze the Problem

  • Identify and clearly define the problem you want to address or the question you want to answer.

  • Define the objectives, research questions, and boundaries.


32
New cards

Step 2: Formulate a model

  • In this stage, we design the model, forming an abstraction of the system we are modeling.

  • Build assumptions, identify variables and relationships


33
New cards

Abstraction

is creating a simplified representation of a real-world scenario, focusing only on the important parts and leaving out unnecessary details.

34
New cards

Step 2: A. Gather data

We collect relevant data to gain information about the system’s behavior.

35
New cards

Step 2: B. Make simplifying assumptions and document them.

  • In formulating a model, we should attempt to be as simple as reasonably possible.

  • Thus, we frequently decide to simplify some of the factors and to ignore other factors that do not seem as important.

  • Most problems are entirely too complex to consider every detail and doing so would only make the model impossible to solve or to run in a reasonable amount of time on a computer.

  • Moreover, factors often exist that do not appreciably affect outcomes.

  • Besides simplifying factors, we may decide to return to Step 1 to restrict further the problem under investigation.


36
New cards

Step 2: C. Determine variables and units.

  • We must determine and name the variables.

  • An independent variable is the variable on which others depend. In many applications, time is an independent variable.

  • The model will try to explain the dependent variables.

  • To simplify the model, we may decide to neglect some variables (such as air resistance), treat certain variables as constants, or aggregate several variables into one.

  • While deciding on the variables, we must also establish their units, such as days as the unit for time.


37
New cards

independent variable

is the variable on which others depend.

38
New cards

Step 2: D. Establish relationships among variables and sub-models.

  • If possible, we should draw a diagram of the model, breaking it into sub-models and indicating relationships among variables.

  • To simplify the model, we may assume that some of the relationships are simpler than they really are.


39
New cards

Step 2: E. Determine equations and functions

  • While establishing relationships between variables, we determine equations and functions for these variables.

  • Many computational science models involve differential equations, or equations involving a derivative.


40
New cards

3. Solve the model.

  • This stage implements the model. It is important not to jump to this step before thoroughly understanding the problem and designing the model.

  • Otherwise, we might waste much time, which can be most frustrating. Some of the techniques and tools that the solution might employ are algebra, calculus, graphs, computer programs, and computer packages.

  • Our solution might produce an exact answer or might simulate the situation. If the model is too complex to solve, we must return to Step 2 to make additional simplifying assumptions or to Step 1 to reformulate the problem.


41
New cards

4. Verify and interpret the model’s solution .

  • Once we have a solution, we should carefully examine the results to make sure that they make sense (verification) and that the solution solves the original problem (validation) and is usable.

  • The process of verification determines if the solution works correctly, while the process of validation establishes if the system satisfies the problem’s requirements.


42
New cards

verification

  • solving the problem right

  • Checks whether the model and calculations work correctly and there are no errors.


43
New cards

validation

  • solving the right problem

  • Checks whether the model actually represents the real-world problem and produces useful results.


44
New cards

5. Report on the model.

  • is important for its utility.

  • Perhaps the scientific report will be written for colleagues at a laboratory or will be presented at a scientific conference.


45
New cards

Reporting

  • means documenting and communicating the model, its process, and its results to others.

  • Explain how the model was created.

  • Present the results and findings.

  • Explain the limitations and assumptions.

  • Share the results with colleagues, researchers, or other users.


46
New cards

6. Maintain the model.

  • As the model’s solution is used, it may be necessary or desirable to make corrections, improvements, or enhancements.

  • In this case, the modeler again cycles through the modeling process to develop a revised solution.


47
New cards

Corrections

Fix errors or problems found in the model.

48
New cards

Improvements

Make the model more accurate or efficient.

49
New cards

Revised solution

After finding problems, we go through the modeling process again and create an improved model.

50
New cards

Python

  • is a high-level, general-purpose programming language known for its simplicity and readability.

  • Open-source and cross platform

  • Large ecosystem of scientific libraries


51
New cards

NumPy (Numerical Python)

  • is a fundamental Python library for numerical and scientific computing.

  • It provides support for working with large, multi-dimensional arrays and matrices, along with a collection of mathematical functions to operate on these arrays efficiently.


52
New cards

SciPy (Scientific Python)

  • It builds on NumPy (which provides fast array operations) and adds a wide collection of algorithms and functions for more advanced tasks in computational science, engineering, and applied mathematics.

  • It used for scientific computations


53
New cards

Matplotlib

  • A foundational Python plotting library for creating static, animated, and interactive plots.

  • It uses, 2D plotting (line & scatter plots, histogram, bar charts, etc.


54
New cards

Seaborn

  • A high-level visualization library built on top of Matplotlib.

  • It focuses on statistical graphics and makes plots prettier and simpler with less code.

  • It used for scientific computations

  • Uses specialized plots (distribution plots, heatmaps, regression & pair plots, etc


55
New cards

SimPy (Simulation in Python)

It’s a library for modeling and simulating real-world systems where events happen at discrete points in time

Uses Python generators (yield) to model processes

Widely used for queueing systems, logistics, resource allocation, and operations research.

56
New cards

Simulation

Running a model to study system behavior under different conditions.