COMPUTING AND DATA ANALYSIS WITH EXCEL. Numerical integration techniques

Similar documents
Excel Formulas & Functions I CS101

Lesson 18 Getting Started with Excel Essentials

Microsoft Excel 2007 Beginning The information below is devoted to Microsoft Excel and the basics of the program.

4.7 Approximate Integration

4.2 and 4.6 filled in notes.notebook. December 08, Integration. Copyright Cengage Learning. All rights reserved.

Chapter 5 Accumulating Change: Limits of Sums and the Definite Integral

Notice that the height of each rectangle is and the width of each rectangle is.

Starting Excel application

Excel Basics 1. Running Excel When you first run Microsoft Excel you see the following menus and toolbars across the top of your new worksheet

2. This is a cell; this cell is designated as A1.

More Skills 12 Create Web Queries and Clear Hyperlinks

CHAPTER 8: INTEGRALS 8.1 REVIEW: APPROXIMATING INTEGRALS WITH RIEMANN SUMS IN 2-D

Survey Design, Distribution & Analysis Software. professional quest. Whitepaper Extracting Data into Microsoft Excel

How to Open Excel. Introduction to Excel TIP: Right click Excel on list and select PIN to Start Menu. When you open Excel, a new worksheet opens

Basics: How to Calculate Standard Deviation in Excel

2. create the workbook file

Applications of Integration. Copyright Cengage Learning. All rights reserved.

Microsoft Excel Chapter 1. Creating a Worksheet and a Chart

Discrete Probability Distributions

THE FORMULAS TAB, CELL REFERENCING,THE VIEW TAB & WORKBOOK SECURITY THE FORMULAS TAB, CELL REFERENCING, THE VIEW TAB & WORKBOOK SECURITY OBJECTIVES

Rectangle Sums

Using Microsoft Word Mail Merge to Create Filter Paper Wedges (PC Office 2010)

Microsoft Excel 2010

Themes & Templates Applying a theme Customizing a theme Creatingfilefromtemplate Creating yourowncustomize Template Using templates Editing templates

Math 227 EXCEL / MEGASTAT Guide

INSERT SUBTOTALS Database Exercise Sort the Data Department Department Data Tab Sort and Filter Group

CHAPTER 1 GETTING STARTED

WEEK NO. 12 MICROSOFT EXCEL 2007

download instant at

Section 6.1 Estimating With Finite Sums

Formatting Spreadsheets in Microsoft Excel

Insert Subtotals in Excel and Link Data to a Word Document

CALCULUS LABORATORY ACTIVITY: Numerical Integration, Part 1

Excel Main Screen. Fundamental Concepts. General Keyboard Shortcuts Open a workbook Create New Save Preview and Print Close a Workbook

Working with Excel CHAPTER 1

Beginning Excel. Revised 4/19/16

What we will learn in Introduction to Excel. How to Open Excel. Introduction to Excel 2010 Lodi Memorial Library NJ Developed by Barb Hauck-Mah

Working with Excel involves two basic tasks: building a spreadsheet and then manipulating the

Excel Level Three. You can also go the Format, Column, Width menu to enter the new width of the column.

Microsoft Excel Chapter 1. Creating a Worksheet and an Embedded Chart

Technology Assignment: Scatter Plots

Separate Text Across Cells The Convert Text to Columns Wizard can help you to divide the text into columns separated with specific symbols.

Unit 12. Electronic Spreadsheets - Microsoft Excel. Desired Outcomes

Creating Automated Dashboard Excel 2013 Contents

COMPUTER TECHNOLOGY SPREADSHEETS BASIC TERMINOLOGY. A workbook is the file Excel creates to store your data.

ICT & MATHS. Excel 2003 in Mathematics Teaching

UNIT ONE: The Worksheet. Workbook Window Excel Worksheet Fill handle Automatic fill Column widths Opening a file Saving a file

1. Position your mouse over the column line in the column heading so that the white cross becomes a double arrow.

Microsoft Office Excel 2010: Basic. Course Overview. Course Length: 1 Day. Course Overview

Excel 2010 with XLSTAT

Consolidate and Summarizing Data from Multiple Worksheets

Excel 2016 Basics for Windows

Status Bar: Right click on the Status Bar to add or remove features.

SPREADSHEET (Excel 2007)

Microsoft Excel Chapter 2. Formulas, Functions, and Formatting

Microsoft How to Series

MICROSOFT EXCEL TUTORIAL HANDOUT

Excel 2013 Essentials Syllabus

Troubleshooting in Microsoft Excel 2002

Introduction to Microsoft Excel

Reference Services Division Presents. Excel Introductory Course

Microsoft Excel Microsoft Excel

14. Excel Form Controls

Excel 2016 Basics for Mac

Microsoft Office Excel 2007: Basic. Course Overview. Course Length: 1 Day. Course Overview

Quick Guide for Excel 2015 Data Management November 2015 Training:

Problem #3 Daily Lessons and Assessments for AP* Calculus AB, A Complete Course Page Mark Sparks 2012

Using Excel for a Gradebook: Advanced Gradebook Formulas

What Is Excel? Multisheet Files Multiple Document Interface Built-in Functions Customizable Toolbars Flexible Text Handling

3/31/2016. Spreadsheets. Spreadsheets. Spreadsheets and Data Management. Unit 3. Can be used to automatically

Excel. Spreadsheet functions

Introduction to StatKey Getting Data Into StatKey

Reviewing Hidden Content during Native Review

Extracting the last word of a string Extracting all but the first word of a string Extracting first names, middle names, and last names Counting the

Introduction to Excel Workshop

Les s on Objectives. Student Files Us ed

Excel 2013 for Beginners

Microsoft Excel Basics Ben Johnson

The construction of MS Excel program:

13 FORMATTING WORKSHEETS

Introduction to Microsoft Excel 2010

The HOME Tab: Cut Copy Vertical Alignments

A cell is highlighted when a thick black border appears around it. Use TAB to move to the next cell to the LEFT. Use SHIFT-TAB to move to the RIGHT.

Review Ch. 15 Spreadsheet and Worksheet Basics. 2010, 2006 South-Western, Cengage Learning

Excel Basics Tips & Techniques

Lab 7 Statistics I LAB 7 QUICK VIEW

Instructions for the Monthly Trial and Final Payroll Verification

2013 ADVANCED MANUAL

I OFFICE TAB... 1 RIBBONS & GROUPS... 2 OTHER SCREEN PARTS... 4 APPLICATION SPECIFICATIONS... 5 THE BASICS...

Objective: Class Activities

MKT 450 Sampling Homework Instructions

Numerical Integration

Excel 2016 Essentials Syllabus

Excel Tips for Compensation Practitioners Month 1

University of North Dakota PeopleSoft Finance Tip Sheets. Utilizing the Query Download Feature

Excel Course Outline

Math 250A (Fall 2009) - Lab I: Estimate Integrals Numerically with Matlab. Due Date: Monday, September 21, INSTRUCTIONS

Beginner s Guide to Microsoft Excel 2002

Let s start by examining an Excel worksheet for the linear programming. Maximize P 70x 120y. subject to

"Excel"-erate Your Worksheets! Shortcuts and Power Tips NDSU Information Technology Services December 18, 2006

Transcription:

COMPUTING AND DATA ANALYSIS WITH EXCEL Numerical integration techniques

Outline 1 Quadrature in one dimension Mid-point method Trapezium method Simpson s methods Uniform random number generation in Excel, RAND Random numbers from other distributions

Numerical Integration The Midpoint method The midpoint rule rectangle method is one of many ways of approximating the area under a curve. It involves dividing the area under the curve into a collection of rectangles whose heights are determined by the values of the function. Evaluate, using the midpoint method with n= 10 the function 1 4 x dx 1

Numerical Integration The Midpoint method Your task Evaluate 2 0 3 27x 4 dx using the Midpoint method with n=10.

Numerical Integration The Trapezium Method The trapezium rule is another method for approximating the area under a curve when it is not feasible to employ integration. It follows the simple rule that the area under the curve can be approximated by sum of the area of strips (of trapezoids) of equal width. Formula: Given y= f(x) b 1 y dx 2 h y 0 2 y1 y2 y3... yn 1 yn a Where h y 0 y n is the width (equal for each trapezium) is the height of the first trapezium (point a) is the height of the last trapezium (point b)

Numerical Integration The Trapezium Method The Trapezium rule under Excel Question: Evaluate intervals 1 4 x dx 1 using the trapezium rule with 10 equal-size 2

Numerical Integration The Trapezium Method Step 1: Set out the table to compute the width and height of each trapezium. From the limits of integral and the number of trapeziums, we can calculate width = (b-a)/n where b and a are respectively the upper and lower limits on integral.

Numerical Integration The Trapezium Method Step 2: Set up a table for the width and the corresponding height or y value

Step 3: Numerical Integration The Trapezium Method Finally we apply the formula or trapezium rule to estimate the area under the curve b 1 y dx 2 h y 0 2 y1 y2 y3... yn 1 yn a

Numerical Integration The Trapezium Method Your task Evaluate 2 0 3 27x 4 dx using the trapezium rule with 10 equal-size intervals

Numerical Integration Simpson s Method (the 1/3 rule) The Simpson method is an improvement on the trapezium approximation of the area under the curve. This works where we have even number of intervals. Formula: b a h f ( x) dx 3 y 0 4 y1 y3... yn 1 2 y2 y4... yn2 yn

Numerical Integration Simpson s Method Example: Using the Simpson s rule with 10 equally spaced intervals, evaluate 1 4 x dx 1

Numerical Integration Simpson s Method Your task Evaluate a) using the Simpson s rule with 10 equal-size intervals (n=10). 3 dx b) For n= 12 x 2 1 2 0 3 27x 4 dx Note: Where the number of intervals, n is a multiple of 3, we may use the 3/8 rule as follows: b 3 y dx 8 h ( y0 yn) 2 y3 ymult. of 3...) 3( y1 y2 y4... yn2 a

Uniform random number generation in Excel Using the RAND function Example: Generate 25 random numbers (5 x 5) between 0 and 1 The RAND function takes no parameters but generates random numbers between 0 and 1. Like all other Excel functions, start the entry with an equal sign and type in the name of the function as in the diagram. You are prompted to select the right function by the intellisense as you type.

Uniform random number generation in Excel Using the RAND function Next, use the autofill handle to fill the next 4 columns, see fig. (a). With the row of data selected, use the autofill handle to scroll down the next 4 rows, see fig. (b). (a) (b)

Uniform random number generation in Excel Using the RANDBETWEEN function Example Generate 100 random numbers (10 x 10) between 0 and 100 The RANDBTWEEN function takes two parameters, the lower and upper bounds and generates random numbers between these (inclusive).

Uniform random number generation in Excel Using the RANDBETWEEN function Next, use the autofill handle to fill the next 9 columns. With the row of data selected, use the autofill handle to scroll down the next 9 rows, see fig. below. You may use the F9 key to recalculate/generate a new set of random values.

Random Numbers from Other Distributions Using the Analysis ToolPak -Random Number Generator Step 1: From the Data Tab, select Data Analysis from the Analysis group. Step 2: From the pop up window, select Random Number Generation and click OK

The output may be displayed in a new window or in a selected range of cells on the same worksheet. Random Numbers from Other Distributions Using the Analysis ToolPak -Random Number Generator A new window requiring keyboard input is now opened. Number of variables: represent the number of COLUMNS of data required. Number of Random Numbers: is simply the number of ROWS Distribution: Click on the dropdown menu to select the distribution you want to implement (Uniform, Normal, Bernoulli, Poisson, Patterned or Discrete) The Random Seed is used to set random number generator to generate the same set of values all the time.

Random Numbers from Other Distributions Using the Analysis ToolPak -Random Number Generator Depending on the distribution selected, you may have to type in other parameters. E.g. for normal distribution, the mean and standard deviations are by default 0 and 1 respectively. The following table shows 100 numbers generated from the Excel Random Number Generator under NORMAL distribution.