ESTIMATING THE DISTRIBUTION OF DEMAND USING BOUNDED SALES DATA

Similar documents
Summary of important mathematical operations and formulas (from first tutorial):

EXCEL Tutorial: How to use EXCEL for Graphs and Calculations.

Bowerman, O'Connell, Aitken Schermer, & Adcock, Business Statistics in Practice, Canadian edition

Using Microsoft Excel to Plot and Analyze Kinetic Data

Microsoft Excel. Qi Wei

Spreadsheets and Laboratory Data Analysis: Excel 2003 Version (Excel 2007 is only slightly different)

Using Excel (Microsoft Office 2007 Version) for Graphical Analysis of Data

Below is a very brief tutorial on the basic capabilities of Excel. Refer to the Excel help files for more information.

seven Statistical Analysis with Excel chapter OVERVIEW CHAPTER

Engineering Problem Solving and Excel. EGN 1006 Introduction to Engineering

Estimating a market model: Step-by-step Prepared by Pamela Peterson Drake Florida Atlantic University

Curve Fitting in Microsoft Excel By William Lee

Using Excel 2003 with Basic Business Statistics

Data Analysis. Using Excel. Jeffrey L. Rummel. BBA Seminar. Data in Excel. Excel Calculations of Descriptive Statistics. Single Variable Graphs

Plots, Curve-Fitting, and Data Modeling in Microsoft Excel

Gamma Distribution Fitting

Figure 1. An embedded chart on a worksheet.

Calibration and Linear Regression Analysis: A Self-Guided Tutorial

Using Microsoft Excel for Probability and Statistics

NCSS Statistical Software Principal Components Regression. In ordinary least squares, the regression coefficients are estimated using the formula ( )

Dealing with Data in Excel 2010

To create a histogram, you must organize the data in two columns on the worksheet. These columns must contain the following data:

sensitivity analysis. Using Excel 2.1 MANUAL WHAT-IF ANALYSIS 2.2 THRESHOLD VALUES

Microsoft Excel Tutorial

Scientific Graphing in Excel 2010

Probability Distributions

1) Write the following as an algebraic expression using x as the variable: Triple a number subtracted from the number

Data Analysis Tools. Tools for Summarizing Data

What is the difference between simple and compound interest and does it really matter?

Microsoft Excel Tutorial

Integrating Spreadsheet Templates and Data Analysis into Fluid Power Instruction

Using Excel for descriptive statistics

INTRODUCTION TO EXCEL

Excel Math Project for 8th Grade Identifying Patterns

PERFORMING REGRESSION ANALYSIS USING MICROSOFT EXCEL

Normality Testing in Excel

SECTION 2-1: OVERVIEW SECTION 2-2: FREQUENCY DISTRIBUTIONS

Lab 1: The metric system measurement of length and weight

A Guide to Using Excel in Physics Lab

Using Excel for Handling, Graphing, and Analyzing Scientific Data:

Absorbance Spectrophotometry: Analysis of FD&C Red Food Dye #40 Calibration Curve Procedure

Intro to Excel spreadsheets

Generating ABI PRISM 7700 Standard Curve Plots in a Spreadsheet Program

Graphing Parabolas With Microsoft Excel

Assignment objectives:

Modeling the data using Weibull analysis requires some preparation. For now, focus on the data from Design A.

Tutorial on Using Excel Solver to Analyze Spin-Lattice Relaxation Time Data

Introduction to Statistical Computing in Microsoft Excel By Hector D. Flores; and Dr. J.A. Dobelman

Table of Contents TASK 1: DATA ANALYSIS TOOLPAK... 2 TASK 2: HISTOGRAMS... 5 TASK 3: ENTER MIDPOINT FORMULAS... 11

Bill Burton Albert Einstein College of Medicine April 28, 2014 EERS: Managing the Tension Between Rigor and Resources 1

Appendix 2.1 Tabular and Graphical Methods Using Excel

How To Analyze Data In Excel 2003 With A Powerpoint 3.5

STATISTICA Formula Guide: Logistic Regression. Table of Contents

Excel Guide for Finite Mathematics and Applied Calculus

Excel Unit 4. Data files needed to complete these exercises will be found on the S: drive>410>student>computer Technology>Excel>Unit 4

Data exploration with Microsoft Excel: analysing more than one variable

Microsoft Excel 2010 Part 3: Advanced Excel

Exercise 1.12 (Pg )

Interactive Excel Spreadsheets:

Excel Pivot Tables. Blue Pecan Computer Training Ltd - Onsite Training Provider :: :: info@bluepecan.co.

Directions for using SPSS

Biology statistics made simple using Excel

Fathom Dynamic Statistics Software Tutorial. McGraw-Hill Ryerson Mathematics of Data Management

How To Use A Spreadsheet Excel for the Mac and PC-Windows by John D. Winter

Basic Pivot Tables. To begin your pivot table, choose Data, Pivot Table and Pivot Chart Report. 1 of 18

Chapter 4 Creating Charts and Graphs

0 Introduction to Data Analysis Using an Excel Spreadsheet

TIPS FOR DOING STATISTICS IN EXCEL

Calculator Notes for the TI-Nspire and TI-Nspire CAS

Step 3: Go to Column C. Use the function AVERAGE to calculate the mean values of n = 5. Column C is the column of the means.

Using SPSS, Chapter 2: Descriptive Statistics

Graphing in excel on the Mac

6 3 The Standard Normal Distribution

2. Simple Linear Regression

Gerrit Stols

GeoGebra Statistics and Probability

USING EXCEL ON THE COMPUTER TO FIND THE MEAN AND STANDARD DEVIATION AND TO DO LINEAR REGRESSION ANALYSIS AND GRAPHING TABLE OF CONTENTS

Excel -- Creating Charts

Exploring Relationships between Highest Level of Education and Income using Corel Quattro Pro

MARS STUDENT IMAGING PROJECT

MICROSOFT EXCEL FORECASTING AND DATA ANALYSIS

Basic Quantitative Analysis: Using Excel to Analyze Your Data

Statistics Revision Sheet Question 6 of Paper 2

Creating a Gradebook in Excel

Information Literacy Program

Introduction to SPSS 16.0

Doing Multiple Regression with SPSS. In this case, we are interested in the Analyze options so we choose that menu. If gives us a number of choices:

Years after US Student to Teacher Ratio

Drawing a histogram using Excel

Updates to Graphing with Excel

Statistical Functions in Excel

Tutorial 2: Using Excel in Data Analysis

January 26, 2009 The Faculty Center for Teaching and Learning

Instruction Manual for SPC for MS Excel V3.0

Data exploration with Microsoft Excel: univariate analysis

Creating Charts in Microsoft Excel A supplement to Chapter 5 of Quantitative Approaches in Business Studies

EXCEL SPREADSHEET MANUAL

How To Run Statistical Tests in Excel

Experiment 1A: Excel Graphing Exercise

Module 3: Correlation and Covariance

Transcription:

ESTIMATING THE DISTRIBUTION OF DEMAND USING BOUNDED SALES DATA Michael R. Middleton, McLaren School of Business, University of San Francisco 0 Fulton Street, San Francisco, CA -00 -- middleton@usfca.edu ABSTRACT Flight capacity can be modified by using different seating configurations or different aircraft. An airline planning department wants to estimate the distribution of demand for a specific flight as an aid for deciding on flight capacity. Historical sales data for a specific flight are available, but the number of passenger tickets sold is bounded by the number of seats available. The planners are willing to assume that underlying demand is normally distributed. This paper describes an estimation method using normal scores, a normal probability plot, and simple linear regression. Step-by-step details using Excel or () spreadsheet software are included. Finally, the results are compared with the hazard function method of censored data analysis. BACKGROUND The vice president for planning of a major international airline must decide on the type of aircraft and seating configuration for each scheduled flight []. One of the inputs to this decision is the probability distribution of demand. The airline has historical data on the number of seats sold for each flight, but no information is kept about customer demand after all seats are sold. The planners believe that demand for each flight is normally distributed, and they need a systematic method for estimating the mean and standard deviation of demand for all flights using historical sales data. The historical data in this problem are an example of censored data where seat capacity places an upper bound on the values. Many methods for analyzing censored data have been developed for lifetime data and survival rates, including the hazard function method by Nelson []. Kesling has described a variety of business applications using the hazard function method for censored data analysis []. This paper first describes an estimation method for unbounded data using normal scores, a normal probability plot, and simple linear regression. Then the same method is modified for the bounded sales data. Last, the hazard function method is used and compared. All methods described are supported by Excel spreadsheet software. UNBOUNDED DATA If there were unlimited seat capacity on a flight, then the historical sales data would be the same as the demand data. The planners could check for normality using several methods: visually look for nonnormal patterns in a histogram, count the number of observations within,, and standard deviations of the mean, conduct a chisquare goodness-of-fit test, or check for a straight-line pattern on a normal probability plot [, p.]. Since only the latter method can be extended to the situation with bounded data, that approach is described here. s Assume a random sample of n = 0 values from a normal distribution. Using a bracket median approach, we can regard the lowest sample value as an estimate from the lowest % = /n range of population values and specifically as an estimate of the median of that range, which is the.0 = /n fractile [, p. 0]. (A fractile is a value below which that proportion of a distribution s values lie.) Referring to the standard normal distribution, the.0 fractile is located. standard deviations below the mean. This ideal location,., is the normal score for the lowest sample value. Similarly, the second lowest value in a sample of 0 is a general estimate of the next % range of population values and a specific estimate of the.0 = /n fractile, located. standard deviations below the mean, with normal score.. In general, if the n sample values have ranks i =,...,n, with rank i = for the lowest value and rank i = n for the highest, the normal score using the bracket median method is associated with the (i 0.)/n fractile. Figure shows a normal cumulative probability curve with the location of 0 equally-likely values on the horizontal axis expressed as z-scores, or standard deviation units from the mean. If a random sample of 0 values is normally distributed, we expect a dot plot of those values to have approximately the same spacing as these z-scores. A scatter plot called a normal probability plot can be used to visually compare the spacing of actual sample values with the ideal spacing of the z-scores. If the relative locations are similar, the pattern of the scatter plot will be approximately linear.

Cumulative Probability 0 0.0 0. 0. 0. 0. 0. 0. 0. 0. 0. FIGURE Normal Cumulative Distribution 0.0 - - - 0 FIGURE Worksheet for Unbounded Data A B C D Rank Cumul. Prob. Sorted Data 0.0 -.0 0.0 -.0 0. -.0 0. -0. 0. -0. 0. -0. 0. -0. 0. -0. 0. -0. 0 0. -0.0 0. 0.0 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0..0 0 0..0 0 0 0..0 B:B. In cell C enter the formula =NORMSINV(B), and copy to cells C:C. To obtain the normal probability plot shown in Figure, select cells C:D and use the Chart Wizard. (To ensure that the Chart Wizard makes appropriate assumptions, the data is arranged on the worksheet with the x-axis data in a column on the left and the y-axis data on the right.) In step, verify the range; in step, choose XY (Scatter); in step, choose format ; in step, verify the entries; in step, click No for adding a legend, type for the X axis title, type for the Y axis title, and click Finish. To format the embedded chart, double-click it to activate it for editing. Select the horizontal axis, right-click, and choose Format Axis from the shortcut menu; on the Scale tab, type for Minimum, for Maximum, for Major Unit, and for Value (Y) Axis Crosses At; on the Number tab, set Decimal Places to 0; click OK. Select the vertical axis, right-click, and choose Format Axis from the shortcut menu; on the Scale tab, type 00 for Minimum, 0 for Maximum, and 00 for Value (X) Axis Crosses At; click OK. To insert a trendline, select the data series by clicking on one of the points. From the Insert menu, choose Trendline. Click the Type tab of the Trendline dialog box, and click the Linear icon. Click the Options tab, and click the check boxes for Display Equation on Chart and Display R-squared Value on Chart. Click OK. FIGURE Normal Probability Plot for Unbounded Data 0 00 0 00 y =.0x +. R = 0. Normal Probability Plot To develop a worksheet for a normal probability plot using Excel, enter the data in column D, and sort in ascending order as shown in Figure. (Here the data are a simulated random sample from a normal distribution with mean 0 and standard deviation 0.) Enter ranks in column A. In cell B enter the formula =(A 0.)/0, and copy to cells 0 00 - - - 0

The results are shown in Figure. The normal probability plot allows visual verification of normality, and the linear trendline produces estimates of the mean. (the intercept, when the normal score is zero) and standard deviation.0 (the slope, or the change in seats for a unit change in the normal score). For unbounded data, these estimates could be obtained directly from the sample data; the advantage of the method shown in Figure is that it can also be applied to the case of bounded data. BOUNDED DATA Figure shows a histogram of simulated data for 0 trips of the same flight. In actual practice the observations should be restricted to indistinguishable, stationary situations, e.g., a Boeing with coach seats on nonholiday Thursday afternoon flights from Hong Kong to Tokyo [, p. ]. The seating capacity obscures demand exceeding. The sorted data are shown in column D of Figure. Frequency 0 FIGURE Histogram of Bounded Data 0 0 00 0 0 0 0 00 for these bounded data, the trendline is based on only the unbounded observations. 0 0 FIGURE Worksheet for Bounded Data A B C D Rank Cumul. Prob. Sorted Data 0.0 -.0 0.0 -.0 0. -.0 0. -0. 0. -0. 0. -0. 0. -0. 0. -0. 0. -0. 0 0. -0.0 0. 0.0 0. 0. 0. 0. 0. 0. 0. 0. 0 Mean Intercept. StDev Slope. FIGURE Normal Probability Plot for Bounded Data 0 00 0 y =.x +. R = 0. To analyze the bounded data using Excel, prepare the worksheet as previously described. The cumulative probabilities and normal scores are not needed for the censored data. The results are shown in rows through of Figure. To obtain the normal probability plot shown in Figure, select cells C:D, use the Chart Wizard, format the chart, and insert a trendline as previously described. For the unbounded data, the trendline used all observations; 00 0 00 - - - 0

To obtain the regression results on the worksheet, enter the labels in cells B:C as shown in Figure. In cell D, enter the formula =INTERCEPT(D:D,C:C); in cell D, enter the formula =SLOPE(D:D,C:C). The results may be interpreted like those for unbounded data. The estimate of normally distributed seat demand is =. +.*Z, where Z is the normal score. The mean demand,., corresponds to Z = 0; the standard deviation of demand,., corresponds to the change in demand for a unit change in Z. HAZARD FUNCTION The hazard function method uses a different technique for determining the cumulative probabilities and a different orientation for the normal probability plot. Figure arranges the calculations described by Kesling []. 0 0 FIGURE Worksheet for Hazard Function A B C D E F Sorted Cumul. Cumul. Normal Data Rank Hazard Hazard Prob. Score 0.000 0.000 0.0 -. 0.0 0.0 0.0 -. 0.0 0. 0. -.0 0.0 0.0 0. -0. 0.0 0. 0. -0. 0.0 0. 0. -0. 0.0 0. 0. -0.0 0.0 0. 0.0-0. 0.0 0. 0. -0. 0 0.00 0. 0. -0.0 0.000 0. 0. 0.0 0. 0. 0. 0. 0.0.00 0. 0. 0.. 0. 0. 0.. 0. 0. 0 0 0 0 0 0 Intercept -. Mean. Slope 0.0 StDev. the hazard function is zero. In cell C, enter the formula =/( B), and copy to cells C:C. To obtain cumulative hazard, in cell D enter the formula =C, in cell D enter the formula =D+C, and copy the formula from D to cells D:D. To obtain cumulative probability, in cell E enter the formula = EXP( D), and copy to cells E:E. To obtain normal scores, in cell F enter the formula =NORMSINV(E), and copy to cells F:F. To obtain the regression results, enter the labels in rows and as shown in Figure. In cell B, enter the formula =INTERCEPT(F:F,A:A); in cell B, enter the formula =SLOPE(F:F,A:A). These are coefficients for linear regression of fitted normal score depending on seats sold. The estimated equation is Z =. + 0.*. The mean of normally distributed demand corresponds to a normal score of zero, so the mean of equals the negative of the intercept divided by the slope. The slope in the equation is change in Z per seat, so the standard deviation of demand equals the reciprocal of the slope. To obtain these values, in cell E enter the formula = B/B, and in cell E enter the formula =/B. The hazard function method produces a mean of and a standard deviation of for normally distributed demand. To construct a normal probability plot, first select A:A, hold down the Control key while selecting F:F, and use the Chart Wizard. After inserting a trendline and formatting, the results are shown in Figure. FIGURE Normal Probability Plot for Hazard Function - - y = 0.0x -. R = 0. 0 00 0 00 0 00 0 To develop the worksheet for the hazard function method, enter the sorted data and ranks in columns A and B. For each observed value, the hazard function in column C equals the reciprocal of the number of data values greater than or equal to the observed value; for suspended values, -

DISCUSSION The two methods produce nearly identical estimates of the mean: from the hazard function method and from the direct method proposed here. The estimates of the standard deviation show a larger difference: vs.. Even though the hazard function method uses less extreme normal scores, the estimate of standard deviation is larger. Future research could investigate the reasons for these different results. One factor is the different orientation of the normal probability plots. The direct method plots seats vs. normal score, so the regression line minimizes sum of squared deviations in terms of seats. Conversely, the hazard function method plots normal score vs. seats, so the deviations that are minimized are fitted normal score minus actual normal score. The rationale for choosing between these two orientations should be explored. Another factor is the different methods for determining cumulative probabilities, which affect the normal scores used in the regression. The bracket median method is relatively easy to explain; the rationale for the hazard function method is more obscure. These methods and two others are shown in Figure. The method labeled Cryer uses i/(n+) to determine the cumulative probability for rank i [, p. ]. The method labeled Neter uses (i /)/(n+/), which is described as yielding a good approximation based on statistical theory [, p. 0]. The Neter method produces normal scores almost as extreme as the bracket median method. The hazard method with censored values in a sample of 0 generates the least extreme normal scores of the four methods. FIGURE Cumulative Probabilities and s Bracket Median Hazard ( of 0) Cryer Neter Rank Prob. Score Prob. Score Prob. Score Prob. Score 0.0 -.0 0.0 -. 0.0 -. 0.0 -. 0.0 -.0 0.0 -. 0.0 -.0 0.00 -.0 0. -.0 0. -.0 0. -.0 0.0 -. 0. -0. 0. -0. 0.0-0. 0. -0. 0. -0. 0. -0. 0. -0. 0. -0. 0. -0. 0. -0. 0. -0. 0. -0. 0. -0. 0. -0.0 0. -0. 0. -0. 0. -0. 0.0-0. 0. -0.0 0. -0. 0. -0. 0. -0. 0. -0.0 0. -0. 0 0. -0.0 0. -0.0 0. -0.00 0. -0.0 0. 0.0 0. 0.0 0. 0.00 0. 0.0 0. 0. 0. 0. 0. 0.0 0. 0. 0. 0. 0. 0. 0. 0.0 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.0 0. 0. 0. 0..0 0..0 0.0. 0..0 0.0.0 0.0.0 0 0..0 0.. 0.. The direct method (using bracket median, Cryer, or Neter cumulative probabilities) and the hazard function method can be applied to data with missing values at the low end, interspersed throughout, or at the high end. These methods can also be applied to nonnormal distributions for which the inverse cumulative function is available. In addition to the standard normal inverse and normal inverse, Excel has inverse functions for the beta, chisquare, exponential, F, gamma, lognormal, and t distributions. Since the computations are easy to perform with spreadsheet software, it is likely that these methods will become more widely used in business decision analysis. REFERENCES [] Cryer, J.D., and Miller, R.B. Statistics for business: Data analysis and modeling, nd ed. Belmont, CA: Duxbury,. [] Kesling, G.D. Censored data analysis in business using the hazard function method. Proceedings of Western Decision Sciences Institute,,. [] Nelson, W. Theory and applications of hazard plotting for censored failure data. Technometrics,, (), -. [] Neter, J., Kutner, M.H., Nachtsheim, C.J., and Wasserman, W. Applied linear statistical models, th ed. Chicago, IL: Irwin,. [] Slosar, J. Personal communication,. [] Vatter, P.A., Bradley, S.P., Frey, S.C., and Jackson, B.B. Quantitative methods in management: Text and cases. Homewood, IL: Irwin,. This paper was presented at the annual meeting of the Western Decision Sciences Institute, March -,, and published in the conference Proceedings, pp. -.