MAT 4830 Mathematical Modeling Section 1.3 Conditional Statements

Slides:



Advertisements
Similar presentations
Introducing Formal Methods, Module 1, Version 1.1, Oct., Formal Specification and Analytical Verification L 5.
Advertisements

REVIEW – APPLICATIONS OF THE NORMAL DISTRIBUTION.
 1  Outline  terminating and non-terminating systems  theories for output analysis  Strong Law of Large Numbers  Central Limit Theorem  Regenerative.
 1  Outline  terminating and non-terminating systems  analysis of terminating systems  generation of random numbers  simulation by Excel  a terminating.
 1  Outline  Model  problem statement  detailed ARENA model  model technique  Output Analysis.
Spreadsheet Simulation
Section 10.6 Recall from calculus: lim= lim= lim= x  y  — x x — x kx k 1 + — y y eekek (Let y = kx in the previous limit.) ekek If derivatives.
The moment generating function of random variable X is given by Moment generating function.
MAT 1221 Survey of Calculus Section 6.4 Area and the Fundamental Theorem of Calculus
MAT 1234 Calculus I Section 3.1 Maximum and Minimum Values
MAT 4830 Mathematical Modeling Section 1.4 Conditional Statements
Poisson Random Variable Provides model for data that represent the number of occurrences of a specified event in a given unit of time X represents the.
Branching and Conditions CSIS 1595: Fundamentals of Programming and Problem Solving 1.
MAT 4830 Mathematical Modeling Section 1.2 Simple Programming
MAT 1236 Calculus III Section 15.4 Double Integrals In Polar Coordinates
Section 5.3: Evaluating Definite Integrals Practice HW from Stewart Textbook (not to hand in) p. 374 # 1-27 odd, odd.
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
MATH-102 Term 122. Meet Your Book About the cover: The cover image of a tree line on a snow- swept landscape, by the photographer Michael Kenna, was.
MAT 1234 Calculus I Section 2.4 Derivatives of Tri. Functions
Lecture 19 Nov10, 2010 Discrete event simulation (Ross) discrete and continuous distributions computationally generating random variable following various.
MAT 1236 Calculus III Section 10.1 Curves Defined by Parametric equations
MAT 1235 Calculus II Section 8.5 Probability
MAT 4830 Mathematical Modeling Section 1.3 Conditional Statements
MAT 1235 Calculus II Section 6.4* General Log. and Exponential Functions
MAT 1235 Calculus II 4.4 Part II Indefinite Integrals and the Net Change Theorem
MAT 4725 Numerical Analysis Section 7.1 (Part II) Norms of Vectors and Matrices
MAT 4725 Numerical Analysis Section 1.4 Loops with “do” statements
MAT 1221 Survey of Calculus Section 2.1 The Derivative and the Slope of a Graph
MAT 1235 Calculus II Section 8.2 Area of a Surface of Revolution
MAT 1235 Calculus II Section 7.8 Improper Integrals I
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. Section 5-5 Poisson Probability Distributions.
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
© 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license.
MAT 1235 Calculus II Section 6.5 Exponential Growth and Decay
MAT 4725 Numerical Analysis Section 2.1 The Bisection Method
MAT 1234 Calculus I Section 1.6 Part II Using the Limit Laws
MAT 4725 Numerical Analysis Section 7.3 Iterative Techniques
Review Normal Distributions –Draw a picture. –Convert to standard normal (if necessary) –Use the binomial tables to look up the value. –In the case of.
Unit 6 Section 6-4 – Day 1.
MAT 4830 Mathematical Modeling 04 Monte Carlo Integrations
MAT 1221 Survey of Calculus Section 2.2 Some Rules for Differentiation
MAT 1234 Calculus I Section 3.1 Maximum and Minimum Values
BMTRY 789 Lecture 6: Proc Sort, Random Number Generators, and Do Loops Readings – Chapters 5 & 6 Lab Problem - Brain Teaser Homework Due – HW 2 Homework.
MAT 1235 Calculus II Section 9.1 Modeling with Differential Equations
Section 1.1 – A Preview of Calculus. Calculus The branch of mathematics studying the rate of change of quantities and the length, area, and volume of.
Introduction A probability distribution is obtained when probability values are assigned to all possible numerical values of a random variable. It may.
MAT 3730 Complex Variables Section 1.6 Planar Sets
Lecture 6 – Selection FTMK, UTeM – Sem /2014.
CALCULUS CHAPTER 1 Section 1.4: Continuity and One-Sided Limits Calculus Chapter 1 Section 4 1.
MAT 1236 Calculus III Section 15.7 Triple Integrals
Business Calculus Derivative Definition. 1.4 The Derivative The mathematical name of the formula is the derivative of f with respect to x. This is the.
MAT 1235 Calculus II Section 8.5 Probability
MAT 1236 Calculus III Section 10.2 Calculus with Parametric Curves
CORNERSTONES of Managerial Accounting, 5e. © 2014 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part,
Section 9.4 – Mathematical Induction Mathematical Induction: A method to prove that statements involving natural numbers are true for all natural numbers.
MAT 1226 Calculus II Section 6.2* The Natural Logarithmic Function
MAT 4725 Numerical Analysis Section 2.1 The Bisection Method
Chapter 6 – Continuous Probability Distribution Introduction A probability distribution is obtained when probability values are assigned to all possible.
Starter What does the following code do?
MAT 4725 Numerical Analysis
Introduction to Flowcharting
106 Data Structure Homework 1
Lecture Slides Elementary Statistics Twelfth Edition
Selection Statements.
Section 2.6 Trigonometric Limits
MAT 4830 Mathematical Modeling
4-2 Functions in C In C, the idea of top–down design is done using functions. A C program is made of one or more functions, one and only one of which.
Simulation Part 1: Simulation with Discrete Random Variables
Introduction to Flowcharting
Section 6.2* The Natural Logarithmic Function
Presentation transcript:

MAT 4830 Mathematical Modeling Section 1.3 Conditional Statements

Questions What is the purpose of a conditional statement?

Questions Describe a conditional statement in Maple.

Preview Review Poisson Distribution Introduces the conditional statements Allow the flow of control to branch into two or more sections of codes based on the truth values of a control expressions

Example 0 On average, random customers per hour come into a local Starbucks during the morning rush hours.

Example 0

Idea: Approximate the scenario by a binomial model

Idea: Approximate by a binomial model

Theorem 1

Why? Calculus Formula:

Why?

Team HW#1

Team Homework #1 Use the definition of expected value and the Taylor expansion Do not use the moment generating function.

Poisson Distribution

Team Homework #2 A newsboy sells newspapers outside Grand Central Station. He has on average 100 customers per day. He buys papers for 50 cents each, sells them for 75 cents each, but cannot return unsold papers for a refund. How many papers should he buy? To maximize the expected profit

Zeng Section 1.3

Example 1 Consider the piecewise defined function For each interval, we need a different formula to compute the function values

Example 1 Consider the piecewise defined function For each interval, we need a different formula to compute the function values Q: Input=?, Output=?

Example 1 Version 1

> fun(-2);fun(2); 4 2

Structure of the if-block Statements executed only if the condition is met. Otherwise, the statements will be skipped:

Example 1 Version 2

> fun(-2);fun(2); 4 2

Structure of the if-block There are two cases separated by one condition : the condition is met or else:

Example 2 We need 3 branches

Example 2

> fun(-3);fun(1);fun(3); e (-1)

Structure of the if-block

Homework Read 1.6 for formatting with printf See webpage