Download presentation
Presentation is loading. Please wait.
Published byChristine Kelley Modified over 9 years ago
1
CS433 Modeling and Simulation Lecture 16 Output Analysis Large-Sample Estimation Theory Dr. Anis Koubâa 30 May 2009 Al-Imam Mohammad Ibn Saud University
2
Goals of Today Understand the problem of confidence in simulation results Learn how to determine of range of value with a certain confidence a certain stochastic simulation result Understand the concept of Margin of Error Confidence Interval with a certain level of confidence
3
Reading Required Lemmis Park, Discrete Event Simulation - A First Course, Chapter 8: Output Analysis Optional Harry Perros, Computer Simulation Technique - The Definitive Introduction, 2007 Chapter 5
4
Problem Statement For a deterministic simulation model one run will be sufficient to determine the output. A stochastic simulation model will not give the same result when run repetitively with independent random seed. One run is not sufficient to obtain confident simulation results from one sample. Statistical Analysis of Simulation Result: multiple runs to estimate the metric of interest with a certain confidence
5
Example: Stoachatsic Simulation results may vary from one run/replication to another Simulation results depends on three factors: The seed of the RNG Number of samples/size of samples Simulation time Objective For a given large sample output, determine what is the mean value with a certain confidence on the result.
6
What types of parameters to estimate? In general, a stochastic variable is described by their probability distributions and parameters. For quantitative random variables: mean and variance For a binomial random variables: success probability p. If the values of parameters are unknown, we make inferences about them using sample information.
7
How to express the confidence? Simulation results must be expressed with a certain confidence. The confidence needs the following parameters Confidence Level: 99%, 98%, 95% or 90% Variance: the variance of the simulation results Sample Size: the number of simulation results under study There are two ways: Margin of Error: The maximum error of estimation. Confidence interval: The interval where most of the simulation results lie.
8
The Margin of Error Margin of error: The maximum error of estimation, calculated as
9
Estimating Means and Proportions For a quantitative population, For a binomial population,
10
Example 1 A homeowner randomly samples 64 homes similar to his own and finds that the average selling price is 252,000 SAR with a standard deviation of 15,000 SAR. Question: Estimate the average selling price for all similar homes in the city.
11
A quality control technician wants to estimate the proportion of soda bottles that are under-filled. He randomly samples 200 bottles of soda and finds 10 under-filled cans. What is the estimation of the proportion of under-filled cans? Example 2
12
Interval Estimators Confidence Interval
13
confidence coefficient, 1- .“Fairly sure” means “with high probability”, measured using the confidence coefficient, 1- . Suppose 1- = 0.95 and that the estimator has a normal distribution. Parameter 1.96SE Usually, 1- = 0.90, 0.95, 0.98, 0.99
14
To Change the Confidence Level To change to a general confidence level, 1- , pick a value of z that puts area 1- in the center of the z-distribution (i.e. Normal Distribution N(0,1). 100(1- )% Confidence Interval: Estimator z SE Tail area /2 Confidence Level z /2 0.050.190%1.645 0.0250.0595%1.96 0.010.0298%2.33 0.0050.0199%2.58
15
Confidence Intervals for Means and Proportions For a quantitative population For a binomial population
16
Example 1 A random sample of n = 50 males showed a mean average daily intake of dairy products equal to 756 grams with a standard deviation of 35 grams. Find a 95% confidence interval for the population average m.
17
Example 1 Find a 99% confidence interval for m, the population average daily intake of dairy products for men. The interval must be wider to provide for the increased confidence that is does indeed enclose the true value of .
18
Example 2 Of a random sample of n = 150 college students, 104 of the students said that they had played on a soccer team during their K-12 years. Estimate the proportion of college students who played soccer in their youth with a 98% confidence interval.
19
How to Choose the Sample Size?
20
Choosing the Sample Size The total amount of relevant information in a sample is controlled by two factors: sampling planexperimental design - The sampling plan or experimental design: the procedure for collecting the information sample size n - The sample size n: the amount of information you collect. margin of errorwidth of the confidence interval. In a statistical estimation problem, the accuracy of the estimation is measured by the margin of error or the width of the confidence interval.
21
1. Determine the size of the margin of error, B, that you are willing to tolerate. 2. Choose the sample size by solving for n or n n 1 n 2 in the inequality: 1.96 SE B, where SE is a function of the sample size n. s Range / 4. 3. For quantitative populations, estimate the population standard deviation using a previously calculated value of s or the range approximation Range / 4. p .5 4. For binomial populations, use the conservative approach and approximate p using the value p .5. Choosing the Sample Size
22
Example A producer of PVC pipe wants to survey wholesalers who buy his product in order to estimate the proportion of wholesalers who plan to increase their purchases next year. What sample size is required if he wants his estimate to be within.04 of the actual proportion with probability equal to.95? He should survey at least 601 wholesalers.
23
Key Concepts I. Types of Estimators 1. Point estimator: a single number is calculated to estimate the population parameter. Interval estimator 2. Interval estimator: two numbers are calculated to form an interval that contains the parameter. II. Properties of Good Estimators 1. Unbiased: the average value of the estimator equals the parameter to be estimated. 2. Minimum variance: of all the unbiased estimators, the best estimator has a sampling distribution with the smallest standard error. 3. The margin of error measures the maximum distance between the estimator and the true value of the parameter.
24
III. Large-Sample Point Estimators To estimate one of four population parameters when the sample sizes are large, use the following point estimators with the appropriate margins of error. Key Concepts
25
IV. Large-Sample Interval Estimators To estimate one of four population parameters when the sample sizes are large, use the following interval estimators.
26
Key Concepts 1. All values in the interval are possible values for the unknown population parameter. 2. Any values outside the interval are unlikely to be the value of the unknown parameter. 3. To compare two population means or proportions, look for the value 0 in the confidence interval. If 0 is in the interval, it is possible that the two population means or proportions are equal, and you should not declare a difference. If 0 is not in the interval, it is unlikely that the two means or proportions are equal, and you can confidently declare a difference. V. One-Sided Confidence Bounds Use either the upper ( ) or lower ( ) two-sided bound, with the critical value of z changed from z / 2 to z .
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.