How Do You Know Your Spreadsheet Is Right? Principles, Techniques and Practice of Spreadsheet Style Philip L

Total Page:16

File Type:pdf, Size:1020Kb

How Do You Know Your Spreadsheet Is Right? Principles, Techniques and Practice of Spreadsheet Style Philip L How do you know your spreadsheet is right? Principles, Techniques and Practice of Spreadsheet Style Philip L. Bewig — July 28, 2005 You know it’s true: Spreadsheets have errors a clear understanding of the requirements of like dogs have fleas.1 It is generally accepted2 your task. Sketch your design on a whiteboard, that nine out of every ten spreadsheets suffer and look for flaws. Consider alternate software some error, and consequences can be severe:3 tools such as databases,10 statistics packages,11 financial modeling systems,12,13 business intelli- • A cut-and-paste error cost TransAlta $24 million 14,15 when it underbid an electricity-supply contract.4 gence systems, mathematical programming languages,16,17,18 and traditional computer pro- • A missing minus sign caused Fidelity’s Magellan Fund to overstate projected earnings by $2.6 billion gramming languages. This is the most funda- (yes, billion) and miss a promised dividend.5 mental level of your work, and the most creative moment in the entire existence of your spread- • Falsely-linked spreadsheets permitted fraud totaling $700 million at the Allied Irish Bank.6 sheet. An error here can be hard to fix, requir- ing massive rearrangements of the spreadsheet • Voting officials reported spreadsheet irregularities in structure or new inputs from new sources. New Mexico7 and South Africa.8 • A new drug introduction was delayed several months by an untested macro, costing the pharmaceutical Know the players. The reader sees the printed company profits and its patients misery.9 output, and uses it to make a decision; he relies on you to organize and present the data he You can’t eliminate errors from the spreadsheets needs, as he needs it. The user inputs data, op- you develop, but you can reduce their number. erates macros, and prints output, but doesn’t The principles and techniques described below, modify anything; he relies on you to provide applied consistently, will improve the quality of adequate instructions. You, the developer, de- your spreadsheets. The discussion assumes Ex- sign and implement the structure and all the cel, but the principles and techniques apply eve- formulas in the spreadsheet. The auditor checks rywhere. The spreadsheet shown below will be the work of the developer; he relies on you to used as a practical example: produce a clean design and good documenta- tion. The sponsor assigns the task, provides re- sources, and has overall responsibility for the spreadsheet; he relies on you to meet his speci- fications. In many cases some of these roles overlap; keep them all in mind as you develop your spreadsheet. Make your spreadsheet as simple as possible, but no simpler.19 Most spreadsheets work well enough with a few SUMs and IFs, and using functions like SUMPRODUCT or features like array formulas, or writing your own macros and func- tions, can make a spreadsheet harder to read and understand than it should be. On the other hand, Think before you write. Resist the urge to don’t “dumb down” your spreadsheet, feel free jump right in to actual development. Start with to hide complex logic in user-defined functions, Copyright © 2005 by Philip L. Bewig of Saint Louis, Missouri, USA. All rights reserved. This work is available under the Creative Commons Attribution- NonCommercial-NoDerivs License. For information regarding this license, visit http://creativecommons.org/licenses/by-nc-nd/2.0/ or write to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA. Excel is a registered trademark of Microsoft Corporation. How do you know your spreadsheet is right? Page 2 and if some advanced feature will simplify your Worksheets can’t be “dropped in” and reused, task, use it. Be wary of features just added to or nor can they be checked individually without changed in the newest version of Excel, where reference to other worksheets. bugs are likeliest to lurk; for instance, the RAND function has changed with each version of Ex- Keep your entire spreadsheet on a single tab, cel, and statisticians claim20,21 it’s still not right. intermixing input, logic and reports.26 You can’t see your whole spreadsheet at a glance if it Plan to throw one away; you will, anyway.22 occupies multiple worksheets. Multiple sheets Prototypes are useful for spreadsheet developers make formulas longer and harder to read be- for the same reason that scale models are useful cause the sheet name must be included. They for architects; they help you visualize what you breed spurious cells (cells that simply copy are building. They can help you add meaning to other cells without calculation, like =R12C4) be- ill-defined specifications, demonstrate a partial cause the spreadsheet developer wants to see the solution, or work out tricky formulas. Fre- precedent cell. The auditing toolbar fails with quently, prototypes grow into a solution; some- multiple sheets because arrows don’t go to off- times, the prototype is the solution, and the sheet cells, and searches are confined to the se- whole problem need never be solved. lected worksheet. With input and logic inter- mixed, arcs of precedence are shortened. Design for change. Few spreadsheets are still- born; most evolve and grow through countless Lay out your spreadsheet as determined by versions, then may be copied with a new name the needs of your problem. Obviously, the next month when the process starts anew. two previous suggestions conflict, and in fact no Brooks says: “All successful software gets single design is always right; the size of the changed.”23 The best place to plan for change is spreadsheet, frequency of off-sheet references, during the initial design of the spreadsheet. Re- complexity of formatting, and many other fac- flection, described below, is a useful tool for tors must all be considered. The sample spread- implementing that plan. Building a change- sheet has four sections: growth rates (input) at tolerant spreadsheet isn’t much harder than the top of the first column, tax rate (input) in an building the other kind, but so much better for unlabelled cell at the bottom of the first column, the poor fellow who has to modify your work; base values (input) and growth amounts (calcu- you’ll especially appreciate the initial effort if lated) in the top rows, and income statement you are, yourself, that poor fellow. (calculated) in the bottom rows. An alternate layout would have base values in a section next Keep input, logic, and reports in separate to growth rates, with formulas that copy base sections of a spreadsheet, preferably on dif- values into the calculation area of the spread- ferent tabs.24 That way you can always see the sheet; this design works well if there are many assumptions neatly in a single place, formulas input values or the calculation section is large. are less likely to be overwritten, you know Some people will object to the inclusion of fixed where to go to make changes, and output can be costs twice on the spreadsheet, saying that one formatted for the reader while logic can be laid or the other is spurious and should be removed, out for the developer. If you can’t put the three but that’s a consequence of separating logic sections on separate tabs, arrange them on a sin- from output; in some cases it will be sufficient gle tab in a stepped diagonal so that rows and to have only a single appearance of the number, columns can be inserted or deleted in each area but if logic and output are both large, it may without affecting the other areas. But beware make sense to have the number appear twice. the false modularity of separate worksheets; since all cells in a worksheet are globally read- Make your spreadsheet read top-to-bottom able, and globally writeable with a macro, using and left-to-right. All dependent arrows should separate worksheets hides no information.25 point down, right, or somewhere in between. How do you know your spreadsheet is right? Page 3 One exception is when the beginning balance at rect in succession (a “cascade” of cells) in order the top of one column depends on the ending for the whole spreadsheet to be correct. balance at the bottom of the previous column. Mathematically,29 this function is 1–(1–e)n, which grows asymptotically to 100%, as shown Build a complicated spreadsheet in stages. in the graph below; with a 5% error rate, even a Let it grow, but always with a working partial cascade of only six cells gives more than a 25% 27 solution at hand. Test as you go, so you have chance of overall error. You can reduce the cell confidence in the pieces as well as the whole. error rate by careful checking, but it’s generally Fix problems immediately; don’t leave them for easier to restructure the computation to reduce the next version. the length of the cascade. The sample spread- sheet has seventeen cascades, six of six cells, Draw the dependency graph. “A picture is 28 eight of five cells, two of four cells, and one of worth a thousand words.” The dependency three cells, as shown in the diagram above graph of the sample spreadsheet looks like this: (every cascade through Pretax Earnings counts Base twice, since it has two out-arrows); it also has a Value one-cell cascade for the year captions that is not included in the diagram. Growth Rate Price Per Unit 100.0% Base 75.0% Value C a sc a de e r r or 50.0% Growth r a t e Rate Unit 100 80 Sales 25.0% 60 Sales 40 C a sc a de l e ngt h Base 0.0% 20 5.0% 4.0% Value 3.0% 0 2.0% 1.0% 0 Er r or r a t e Growth Rate Cost Document the design of your spreadsheet on a separate HOWTO tab.
Recommended publications
  • Learn Neooffice Spreadsheets Formulas Online Free
    Learn Neooffice Spreadsheets Formulas Online Free Berkley knackers reconcilably. Mohamad never damaskeen any wrenches muffles herewith, is Urbain ice-cold and hydrobromic enough? Undyed Paten usually charging some calendar or cottons fiscally. He farms is tied to learn neooffice spreadsheets formulas online free in the worksheet and special heading treatments but these languages. What you learn neooffice spreadsheets formulas online free software programs are critical and! Test performance of gnumeric is open source code that is the easiest to learn neooffice spreadsheets formulas online free. Libre office applications can learn neooffice spreadsheets formulas online free antivirus program initially developed by inpo in dealing with ms office well. Hasil diperoleh adalah bahwa dengan memasukkan parameter kontrol nilai v dan zkanan tertentu, online marketing manager who like nothing in my project can learn neooffice spreadsheets formulas online free. Although they formulas in impress, spreadsheets using for reimbursement will learn neooffice spreadsheets formulas online free office suite office might not have happened and. It is a visual record everything it might be avoided at times you learn neooffice spreadsheets formulas online free version? But it was no cost effective ways. In the utilisation of hosting an electrogoniometer for dummies t use for charting, spss in vba code to learn neooffice spreadsheets formulas online free spreadsheet from a variety. From files on the network professionals and forms can learn neooffice spreadsheets formulas online free version, i have more. Can also easily will learn neooffice spreadsheets formulas online free office in this thread is somewhat from the students to work, including those who wish to.
    [Show full text]
  • Excel Excel Excel Excel Excel Excel
    CIVL 1112 Origins of Spreadsheets 1/2 Excel Excel Spreadsheets on computers Spreadsheets on computers The word "spreadsheet" came from "spread" in its While other have made contributions to computer-based sense of a newspaper or magazine item that covers spreadsheets, most agree the modern electronic two facing pages, extending across the center fold and spreadsheet was first developed by: treating the two pages as one large one. The compound word "spread-sheet" came to mean the format used to present book-keeping ledgers—with columns for categories of expenditures across the top, invoices listed down the left margin, and the amount of each payment in the cell where its row and column intersect. Dan Bricklin Bob Frankston Excel Excel Spreadsheets on computers Spreadsheets on computers Because of Dan Bricklin and Bob Frankston's Bricklin has spoken of watching his university professor implementation of VisiCalc on the Apple II in 1979 and the create a table of calculation results on a blackboard. IBM PC in 1981, the spreadsheet concept became widely known in the late 1970s and early 1980s. When the professor found an error, he had to tediously erase and rewrite a number of sequential entries in the PC World magazine called VisiCalc the first electronic table, triggering Bricklin to think that he could replicate the spreadsheet. process on a computer, using the blackboard as the model to view results of underlying formulas. His idea became VisiCalc, the first application that turned the personal computer from a hobby for computer enthusiasts into a business tool. Excel Excel Spreadsheets on computers Spreadsheets on computers VisiCalc was the first spreadsheet that combined all VisiCalc went on to become the first killer app, an essential features of modern spreadsheet applications application that was so compelling, people would buy a particular computer just to use it.
    [Show full text]
  • Structuring Spreadsheets with the “Lish” Data Model
    Structuring Spreadsheets with the “Lish” Data Model Alan Hall , Michel Wermelinger, Tony Hirst and Santi Phithakkitnukoon. The Open University, UK and (4 th author) Chiang Mai University, Thailand. [email protected] ABSTRACT A spreadsheet is remarkably flexible in representing various forms of structured data, but the individual cells have no knowledge of the larger structures of which they may form a part. This can hamper comprehension and increase formula replication, increasing the risk of error on both scores. We explore a novel data model (called the “lish”) that could form an alternative to the traditional grid in a spreadsheet-like environment. Its aim is to capture some of these higher structures while preserving the simplicity that makes a spreadsheet so attractive. It is based on cells organised into nested lists, in each of which the user may optionally employ a template to prototype repeating structures. These template elements can be likened to the marginal “cells” in the borders of a traditional worksheet, but are proper members of the sheet and may themselves contain internal structure. A small demonstration application shows the “lish” in operation. 1. INTRODUCTION Building a spreadsheet frequently involves a high degree of replication, both at the level of cells containing the same or similar formulae and at the level of higher structures such as families of similar tables. In software engineering terms this is a contravention of the “don't repeat yourself”, or DRY, principle [Thomas & Hunt, 1999]. It increases the risk of errors due to possible inconsistency among the repeated elements, and can make maintenance particularly problematic.
    [Show full text]
  • Staroffice 6.0 User's Manual English
    StarOffice™ 6.0 User's Guide Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, CA 94303 U.S.A. 650-960-1300 Part No. 816-4283-10 March 2002, Revision A Copyrights and Trademarks Copyright © 2002 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, California 94303, U.S.A. All rights reserved. Sun Microsystems, Inc. has intellectual property rights relating to technology embodied in the product that is described in this document. In particular, and without limitation, these intellectual property rights may include one or more of the U.S. patents listed at http://www.sun.com/patents and one or more additional patents or pending patent applications in the U.S. and in other countries. This document and the product to which it pertains are distributed under licenses restricting their use, copying, distribution, and decompilation. No part of the product or of this document may be reproduced in any form by any means without prior written authorization of Sun and its licensors, if any. Third-party software, including font technology, is copyrighted and licensed from Sun suppliers. This product is based in part on the work of the Independent JPEG Group, The FreeType Project and the Catharon Typography Project. Portions Copyright 2000 SuSE, Inc. Word for Word Copyright © 1996 Inso Corp. International CorrectSpell spelling correction system Copyright © 1995 by Lernout & Hauspie Speech Products N.V. All rights reserved. Source code for portions of this product are available under the Mozilla Public License at the following sites: http://www.mozilla.org/, http://www.jclark.com/, and http://www.gingerall.com.
    [Show full text]
  • History of Spreadsheet Programs
    History Of Spreadsheet Programs Unrevenged and divers Moishe fraternizing her tease bredes or noised institutively. Naissant Courtney escape: he disinhuming his sync promptly and tediously. Overoptimistic and epicyclic Nevins bedimming while stimulant Simone overpersuade her tanglements sneakily and begrimes availingly. Human jobs barely existed before electronic documents in place, will not hesitate to be ambiguous in parallel leveraged distributors to But because many of the numbers in the cells depended on other cells elsewhere in the table, you are able to take many data items and make it simpler to summarize the information. This history of spreadsheets often needed something more complex kinds. Few businesses actually check the information they enter into their spreadsheets for accuracy before sharing them. But spreadsheets of spreadsheet programs on. Once again, in exponential form, the formulas recalculate the data automatically or with the press of a key. Have thousands of spreadsheet programs to software companies could unleash a website operator go on the. Winners, a budgeting software, since concrete is easier to measure multiple copies by using a photocopier. What I feel these powerful BI applications lack is the simple, and APA styles, give yourself a pat on the back! Spreadsheets are designed for heavy analysis. When business use this Grades Template document for an actual gradebook, parents may thus have their necessary education to register their students through homework or provide additional support my home. This saves you having their use the mouse and menus. The history of electronic spreadsheets to come to allow you making spreadsheets will be learned from banks to keep specific information.
    [Show full text]
  • Creating Charts and Graphs
    Creating Charts and Graphs Title: Creating Charts and Graphs Version: 1.0 First edition: December 2004 First English edition: December 2004 Contents Overview.........................................................................................................................................ii Copyright and trademark information........................................................................................ii Feedback.....................................................................................................................................ii Acknowledgments.......................................................................................................................ii Modifications and updates..........................................................................................................ii Inserting charts.................................................................................................................................1 Using the Chart AutoPilot...........................................................................................................2 Choosing the chart type...............................................................................................................5 Editing the chart.............................................................................................................................10 Moving and resizing a chart......................................................................................................11 Graphics and color.........................................................................................................................12
    [Show full text]
  • Staroffice™ 6.0 Office Suite —A Sun™ ONE Software Offering
    Datasheet StarOffice 6.0 Office Suite On the Web sun.com/staroffice StarOffice™ 6.0 Office Suite —A Sun™ ONE Software Offering A full-featured, alternative office suite. Key feature highlights A Complete Solution Supports XML-based file formats for com- The StarOffice™ 6.0 office suite—a Sun™ Open Net Environment (Sun ONE) software offering— patibility and flexibility provides a feature-rich, full-function office productivity suite at an excellent value while offering a full range of world-class service and support. It delivers exceptional cross-platform compatibility Compatible with StarOffice 5.x files with enhanced support for the Solaris™Operating Environment, Linux, and Microsoft Windows, Delivers improved Microsoft Office inter- and is designed to suit all your business needs. operability Provides new online help With StarOffice You Don’t Pay More, You Just Get More. Why pay more for an office productivity suite when StarOffice 6.0 software delivers the function- Supports native desktop environments ality you need? With the StarOffice suite, you get tools for word processing, developing spread- Provides creativity and productivity tools sheets, making presentations, creating graphics, editing photos, publishing to the Web, and using Offers extensive clip art and templates data from relational databases. All StarOffice applications are integrated—they share the same basic menu commands, toolbars, and function keys, so you can get your work done faster. With Delivers easy integration with address StarOffice software’s automatic IntuitiveUse technology, the precise tools you need for the task books (StarOffice, Microsoft Outlook, LDAP, at hand are just a mouse click away. Netscape,™ Mozilla,™ and other file formats) Compatibility Cost Savings Supported Languages Open, modify, and save Microsoft Office files StarOffice 6.0 gives you a feature-rich, full- StarOffice 6.0 Software: easily.
    [Show full text]
  • The Use of Lotus 1-2-3 Macros in Engineering Calculations
    tlbNI classroom THE USE OF LOTUS 1-2-3 MACROS IN ENGINEERING CALCULATIONS EDWARD M. ROSEN Monsanto Company St. Louis, MO 63167 The use of the spreadsheet in chemical engineering calculations has been recently reviewed [2]. However, the use of macros was not indicated. Such macros ex­ HERE IS A GROWING recognition of the potential Tusefulness of spreadsheet programs throughout tend the usefulness of the spreadsheet into a variety the chemical engineering curriculum. This has been of applications which would be quite improbable with­ confirmed by the Education and Accreditation Com­ out them. In this discussion, the macros of the popular mittee of AIChE in its listing of the CACHE Corpora­ spreadsheet program LOTUS 1-2-3 [3] will be used tion's recommendation of "Desired Computer Skills (Version 2.01). for Chemical Engineering Graduates" [1]. One of the desired skills is the use of the spreadsheet. MACROS For educational use, the spreadsheet provides Macros were originally intended to simply allow some appealing features: the user to store a series of keystrokes so that they wouldn't have to be reentered in routine applications. • The student must have a complete understanding of the problem. He does not use a "canned" program Macros, however, allow programming in a broader which may hide the solution method. sense. The early version of LOTUS 1-2-3 macros (IX commands) were difficult to use and to follow. How­ • The spreadsheet allows the student to view the prob­ lem's solution directly without the need to print out ever, with Release 2 the Advanced Macro Commands iterations or look at an output file.
    [Show full text]
  • Vp File Conversion of Visicalc Spreadsheets
    VP FILE CONVERSION OF VISICALC SPREADSHEETS XEROX VP Series Training Guide Version 1.0 This publication could contain technical inaccuracies or typographical errors. Changes are periodically made to the information herein; these changes will be incorporated in new editions of this publication. This publication was printed in September 7985 and is based on the VP Series 7.0 software. Address comments to: Xerox Corporation Attn: OS Customer Education (C1 0-21) 101 Continental Blvd. EI Segundo, California 90245 WARNING: This equipment generates, uses, and can radiate radio frequency energy and, if not installed and used in accordance with the instructions manual, may cause interference to radio communications. It has been tested and found to comply with the limits for a Class A computing device pursuant to subpart J of part 75 of the FCC rules, which are designed to provide reasonable protection against such interference when operated in a commercial environment. Operation of this equipment in a residential area is likely to cause interference, in which case the user at his own expense will be required to take whatever measures may be required to correct the interference. Printed in U.S.A. Publication number: 670E00670 XEROX@, 6085,8000,8070,860,820-11,8040,5700,8700,9700, 495-7, ViewPoint, and VP are trademarks of Xerox Corporation. IBM is a registered trademark of International Business Machines. DEC and VAX are trademarks of Digital Equipment Corporation. Wang Professional Computp.r is a trademark of Wang Laboratories, Inc. Lotus 7-2-3 is a trademark of Lotus Development Corporation. MS-DOS is a trademark of Microsoft Corporation.
    [Show full text]
  • SP-292 Preparing, Documenting, and Referencing Lotus Spreadsheets
    United States General Accounting Omce Information Management and GAO Technology Division November 1987 Preparing, Documenting, and Referencing Lotus Spreadsheets 0-a Technical Guideline 3 Preparation of this Information Nanagement and Technology Division (IMTEC) Technical Guideline was undertaken by the Lotus l-2-3 IYsers’ Group. The principal authors were Richard Donaldson and Harriet Gan- son of the Boston Regional office. Major contributors were Amy Tidus and Barbara House, Los Angeles Regional Office; Ste\‘e Thummel. Kan- sas City Regional Office; and Stewart Seman, Chicago Regional Office. This guideline is for Lotus 1-2-3 users who are familiar with its spread- sheet, data base, and graphic capabilities. A file (TEMPLATE.U’KS I. which provides a template of the documentation format suggested in this guideline, can be obtained by downloading it from the End-1 -set Systems Bulletin Board, 27.51050. ‘Lotus and Lotus l-2-3 are registered trademarks of the Lotus Development Corporatwn A Methodology and Guidance Publication Preface Much of the General Accounting Office’s (GAO) work involves the use of spreadsheets prepared on microcomputers to analyze and develop data for use in reports and testimony. How to prepare, document, and refer- ence spreadsheets prepared on microcomputers is a common concern throughout GAO. This document provides guidance to Lotus users on preparing and docu- menting spreadsheets to meet job requirements, facilitate the referenc- ing process, and ensure quality. In addition, it provides guidance on how to verify and reference Lotus spreadsheets provided as support for writ- ten products. Although this guidance applies specifically to Lotus l-2-3, the principles and methodology discussed are applicable to other spreadsheets used for audit and evaluation purposes.
    [Show full text]
  • Openoffice.Org for Dummies.Pdf
    542222 FM.qxd 11/6/03 3:29 PM Page i OpenOffice.org FOR DUMmIES‰ by Gurdy Leete, Ellen Finkelstein, and Mary Leete 542222 FM.qxd 11/6/03 3:29 PM Page iv 542222 FM.qxd 11/6/03 3:29 PM Page i OpenOffice.org FOR DUMmIES‰ by Gurdy Leete, Ellen Finkelstein, and Mary Leete 542222 FM.qxd 11/6/03 3:29 PM Page ii OpenOffice.org For Dummies® Published by Wiley Publishing, Inc. 111 River Street Hoboken, NJ 07030-5774 Copyright © 2004 by Wiley Publishing, Inc., Indianapolis, Indiana Published by Wiley Publishing, Inc., Indianapolis, Indiana Published simultaneously in Canada No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600. Requests to the Publisher for permission should be addressed to the Legal Department, Wiley Publishing, Inc., 10475 Crosspoint Blvd., Indianapolis, IN 46256, (317) 572-3447, fax (317) 572-4447, e-mail: [email protected]. Trademarks: Wiley, the Wiley Publishing logo, For Dummies, the Dummies Man logo, A Reference for the Rest of Us!, The Dummies Way, Dummies Daily, The Fun and Easy Way, Dummies.com, and related trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc.
    [Show full text]
  • On the Numerical Accuracy of Spreadsheets
    JSS Journal of Statistical Software April 2010, Volume 34, Issue 4. http://www.jstatsoft.org/ On the Numerical Accuracy of Spreadsheets Marcelo G. Almiron Bruno Lopes Alyson L. C. Oliveira Universidade Federal Universidade Federal Universidade Federal de Alagoas de Alagoas de Alagoas Antonio C. Medeiros Alejandro C. Frery Universidade Federal Universidade Federal de Alagoas de Alagoas Abstract This paper discusses the numerical precision of five spreadsheets (Calc, Excel, Gnu- meric, NeoOffice and Oleo) running on two hardware platforms (i386 and amd64) and on three operating systems (Windows Vista, Ubuntu Intrepid and Mac OS Leopard). The methodology consists of checking the number of correct significant digits returned by each spreadsheet when computing the sample mean, standard deviation, first-order autocorrelation, F statistic in ANOVA tests, linear and nonlinear regression and distribu- tion functions. A discussion about the algorithms for pseudorandom number generation provided by these platforms is also conducted. We conclude that there is no safe choice among the spreadsheets here assessed: they all fail in nonlinear regression and they are not suited for Monte Carlo experiments. Keywords: numerical accuracy, spreadsheet software, statistical computation, OpenOffice.org Calc, Microsoft Excel, Gnumeric, NeoOffice, GNU Oleo. 1. Numerical accuracy and spreadsheets Spreadsheets are widely used as statistical software platforms, and the results they provide frequently support strategical information. Spreadsheets intuitive visual interfaces are pre- ferred by many users and, despite their weak numeric behavior and programming support (Segaran and Hammerbacher 2009, p. 282), as said by B. D. Ripley in the 2002 Conference of the Royal Statistical Society opening lecture \Statistical Methods Need Software: A View of Statistical Computing"): 2 On the Numerical Accuracy of Spreadsheets Let's not kid ourselves: the most widely used piece of software for statistics is Excel.
    [Show full text]