1 Exercise using Excel (see intro to Excel at end) 1. Using Excel’s rand() function, generate a column of 100 random numbers in the range -1 to +1. Plot.

Slides:



Advertisements
Similar presentations
Data Analysis in Excel Analysis of Uncertainty. Learning Objectives Learn to use statistical Excel functions: average, median, min, max, stdev, var, varp,
Advertisements

STRING AN EXAMPLE OF REFERENCE DATA TYPE. 2 Primitive Data Types  The eight Java primitive data types are:  byte  short  int  long  float  double.
Introduction to Matlab
Managerial Decision Making and Problem Solving Computer Lab Notes 1.
Biostatistics Unit 3 Graphs 1. Grouped data Data can be grouped into a set of non- overlapping, contiguous intervals called class intervals (Excel calls.
Slides 2c: Using Spreadsheets for Modeling - Excel Concepts (Updated 1/19/2005) There are several reasons for the popularity of spreadsheets: –Data are.
A. Ruiz Méthodes d ’aide à la décision en RO Using Spreadsheets in Management Science Models Spreadsheets have become a powerful tool in management.
Data Types in Java Data is the information that a program has to work with. Data is of different types. The type of a piece of data tells Java what can.
Chapter 1 Computing Tools Data Representation, Accuracy and Precision Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
Manufacturing Variation Plotting a Normal Distribution.
T T02-06 Histogram (6 SD) Purpose Allows the analyst to analyze quantitative data by summarizing it in sorted format, scattergram by observation,
CS 351/ IT 351 Modelling and Simulation Technologies Random Variates Dr. Jim Holten.
Basic Probability and Stats Review
Introduction to Simulation. What is simulation? A simulation is the imitation of the operation of a real-world system over time. It involves the generation.
Using Microsoft Excel for Marketing Research By William G. Zikmund.
COMS W1004 Introduction to Computer Science June 1, 2009.
ECE122 L3: Expression Evaluation February 6, 2007 ECE 122 Engineering Problem Solving with Java Lecture 3 Expression Evaluation and Program Interaction.
1 CSCE 1030 Computer Science 1 Arrays Chapter 7 in Small Java.
- 1 - Summary of P-box Probability bound analysis (PBA) PBA can be implemented by nested Monte Carlo simulation. –Generate CDF for different instances.
Total Population of Age (Years) of People that Smoke
Plots and Random #s EXCEL Functions. Obtaining a Density Function l Create a column with a range of values of x containing a large portion of the density.
Regression Basics For Business Analysis If you've ever wondered how two or more things relate to each other, or if you've ever had your boss ask you to.
Lecture (16) Introduction to Stochastic Hydrology.
Practitioner’s guide to calculating the efficiency of a consultation or engagement process by John May December 2013.
Example 16.1 Ordering calendars at Walton Bookstore
Graphs of Frequency Distribution Introduction to Statistics Chapter 2 Jan 21, 2010 Class #2.
Syntax MROUND(number,multiple) Number is the value to round. Multiple is the multiple to which you want to round number. Remark MROUND rounds up, away.
STAT02 - Descriptive statistics (cont.) 1 Descriptive statistics (cont.) Lecturer: Smilen Dimitrov Applied statistics for testing and evaluation – MED4.
Sample size vs. Error A tutorial By Bill Thomas, Colby-Sawyer College.
Estimation in Sampling!? Chapter 7 – Statistical Problem Solving in Geography.
Introduction to Engineering Microsoft Excel - 3 Agenda Formulas Excel Function Library.
Chapter 11 Creating Formulas that Count and Sum Microsoft Excel 2003.
GrowingKnowing.com © GrowingKnowing.com © 2011.
Recap Script M-file Editor/Debugger Window Cell Mode Chapter 3 “Built in MATLAB Function” Using Built-in Functions Using the HELP Feature Window HELP.
A Process Control Screen for Multiple Stream Processes An Operator Friendly Approach Richard E. Clark Process & Product Analysis.
Sample Variability Consider the small population of integers {0, 2, 4, 6, 8} It is clear that the mean, μ = 4. Suppose we did not know the population mean.
Sampling Distributions. Essential Question: How is the mean of a sampling distribution related to the population mean or proportion?
GrowingKnowing.com © Frequency distribution Given a 1000 rows of data, most people cannot see any useful information, just rows and rows of data.
Welcome to MM207 - Statistics! Unit 2 Seminar Monday 8:00 – 9:00 pm ET Professor: Dan Watson Good Evening Everyone! To resize your pods: Place your mouse.
Frequencies and the normal distribution CSC 152 (Blum)1.
Total Population of Age (Years) of People. Pie Chart of Males and Females that Smoke Systematic Gender Sample Total Population: 32.
Chapter 6 The Normal Distribution. 2 Chapter 6 The Normal Distribution Major Points Distributions and area Distributions and area The normal distribution.
Measurement Variables Describing Distributions © 2014 Project Lead The Way, Inc. Computer Science and Software Engineering.
Week 1 Day 3 (2.1, 2.2, 2.3) Summarizing Data I. Step one You will need to determine the type of the variable to summarize, whether it is Qualitative.
Simulation is the process of studying the behavior of a real system by using a model that replicates the system under different scenarios. A simulation.
Risk Analysis Simulate a scenario of possible input values that could occur and observe key impacts Pick many input scenarios according to their likelihood.
Introduction to the Essentials of Excel COMP 066.
The Mean : A measure of centre The mean (often referred to as the average). Mean = sum of values total number of values.
Testing Random-Number Generators Andy Wang CIS Computer Systems Performance Analysis.
School of Computer Science & Information Technology G6DICP - Lecture 4 Variables, data types & decision making.
Risk Analysis Simulate a scenario of possible input values that could occur and observe key financial impacts Pick many different input scenarios according.
Chapter 7: Sampling and Sampling distributions Statistical Inference is to make decisions that are based on data. We will study hypothesis testing, which.
Primitive Data Types 1 In PowerPoint, point at the speaker icon, then click the "Play" button.
COURSE: JUST 3900 INTRODUCTORY STATISTICS FOR CRIMINAL JUSTICE Test Review: Ch. 4-6 Peer Tutor Slides Instructor: Mr. Ethan W. Cooper, Lead Tutor © 2013.
m/sampling_dist/index.html.
Measures of Variation. Range, Variance, & Standard Deviation.
Introduction to programming in java Lecture 21 Arrays – Part 1.
Cell Diameters and Normal Distribution. Frequency Distributions a frequency distribution is an arrangement of the values that one or more variables take.
EXCEL CHAPTER 6 ANALYZING DATA STATISTICALLY. Analyzing Data Statistically Data Characteristics Histograms Cumulative Distributions Classwork: 6.1, 6.6,
Plotting in Excel KY San Jose State University Engineering 10.
Data Analysis in Excel ACADs (08-006) Covered Keywords Description

The Random Class and its Methods
Unit-2 Objects and Classes
Year-3 The standard deviation plus or minus 3 for 99.2% for year three will cover a standard deviation from to To calculate the normal.
Consider the following problem
COURSE 3 LESSON 10-1 Displaying Frequency
Random functions.
Mathematical operators
Standard Scores and The Normal Curve
Presentation transcript:

1 Exercise using Excel (see intro to Excel at end) 1. Using Excel’s rand() function, generate a column of 100 random numbers in the range -1 to +1. Plot a histogram (see histogram slide) of these numbers. Note that they are uniformly distributed. 2. Also using Excel, generate a column of 100 normally distributed random numbers with mean=0.0 and standard deviation=1.0. (Hint: Use the polar form.) Also, plot (histogram) these random numbers. Do not use Excel’s built in normdist(), normsdist(), normsinv(), or an other Excel built in norm*() function. They aren’t generally available in game engines.Do not use Excel’s built in normdist(), normsdist(), normsinv(), or an other Excel built in norm*() function. They aren’t generally available in game engines. 3. Also using Excel, generate a column of 100 normally distributed random numbers with mean=0.5 and standard deviation=0.25. (Hint: Use the polar form.) Also, plot (histogram) these random numbers. 4. Create one plot (histogram) with all sets of random numbers. 5. Answer the following. What happens when U 1 =0?

Creating and plotting a histogram using Excel Steps: 1. Create column of data. 2. Create column of bins (categories). 3. Select “array” of columns for histogram. 4. Type in =frequency( a2:a1001, e2:e23 ) and then type ctrl+shift+Enter. 2

Histogram result 3

4 Exercise using Unity and C# Create a new class called MyRandomGenerator, and implement the following: 6. Write a function called uniform that, given a min and max, generates a random number in the interval [min,max]. 7. Write a function called normalPolar that, given a mean and standard deviation, generates a random number sampled from that distribution. 8. Write a function called normalCartesian that, given a mean and standard deviation, generates a random number sampled from that distribution. 9. Using some built in function to get the time, determine how much time is required to generate 1000 random numbers via each of the above methods. (If 1000 random numbers can be generated in < 5 seconds, use a number larger than 1000.)

5 Exercise using Java, C/C++, or C# 10. Real numbers (float and double) and integers (int, short, char, byte (in Java)) are represented using a finite number of bits. Therefore, we can only have a finite number of real numbers or integers. What is the smallest non-zero number that can be represented by a double? (Hint: Consult java.lang.Double or limits.h.) 11. Given the above, is there a maximal value for Z 0 in the equation below? 12. Is the range of possible values sampled from a uniform distribution bounded or unbounded? Is the range of possible values sampled from a normal distribution bounded or unbounded? Is the range of values generated by an implementation of the polar form of the Box-Muller algorithm bounded or unbounded?

A VERY BRIEF INTRODUCTION TO EXCEL 6

Values and calculations  Constants in col A; expressions in col B (calling built in functions and referring to values in other cells.. 7

 Copy exp in B1, select multiple cells, and paste. Note cell changes automatically. 8

 Use : to refer to multiple cells. For example, =sum(a1:a4) calculates the sum of the values in cells a1 through a4.  Avoid automatic cell changes by using $. 9