Skip to main content

Preparing for Parametric Curve-Fitting: The “Solver”

  • Chapter
  • First Online:
The Art of Regression Modeling in Road Safety
  • 1551 Accesses

Abstract

Parametric modeling requires parameter estimation which, in turn, requires optimization. For study, for instruction, and for practical road safety modeling one can use an optimization tool available in Excel: the Solver.

The use of the Solver is explained and its application to curve-fitting illustrated. While the Solver is a robust tool two problems may cause it to fail. First, while Solver is good at converging on local optima, finding the global optimum is a challenge. The “correspondence graph” can help alleviate this problem. Second, the algorithm may fail for computational reasons when the parameters to be estimated differ by several orders of magnitude. This problem may be obviated by appropriately scaling the model variables.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 99.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 109.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    The Solver comes with Excel but has to be installed and referenced. Installation instructions may be found at http://office.microsoft.com/en-us/excel-help/introduct. Before its first use the “Excel Solver” has to be “referenced.” To do so, go to “Developer,” on the “Code” tab go to “Visual Basic,” and in the window that opens click on “Tools.” On the menu select “References,” check the “Solver” box, and then click OK.

  2. 2.

    For comprehensive guidance on Solver see Harmon (2011). For a description of its development and use see Fylstra et al. (1998).

  3. 3.

    The term “objective function” is associated with some real setting in which an increase in the function is thought either desirable or not desirable. This is why there is interest in finding that combination of variables which make the objective function either largest or smallest.

  4. 4.

    To download this spreadsheet go to http://extras.springer.com and enter the ISBN of this book. Look in the “Spreadsheets” folder for “Chap. 5. How to use the Solver.xlsx.”

  5. 5.

    The “Target Cell” in Solver is equivalent to “Objective Function” in optimization.

  6. 6.

    If a function has more than one peak or valley they are its “local extrema.” The lowest of the local minima or the highest in the local maxima is the “global optimum.” When the parameters of a model equation are to be estimated we are interested in the global optimum. The task of global optimization of non-convex function remains difficult. The search for efficient algorithms to find global optima is an active branch of research in applied mathematics. An e-sourcebook of what is known is by Weise (2008). The standard Microsoft Excel Solver and Premium Solver Pro do not offer built-in facilities for solving global optimization problems.

  7. 7.

    To increase the Solver’s chance of converging on a globally optimal solution the following two-step strategy can be tried: (1) Begin the curve-fitting by minimizing the sum of squared differences which is known to be convex. (2) Use the solution from step 1 as a starting point for any other objective function.

  8. 8.

    In mathematics a singularity is a point at which a given mathematical object is not defined or not well-behaved.

  9. 9.

    This result is obtained by Excel 2007. Newer versions of Excel correct some errors of this kind automatically and thereby prevent making an instructive point.

  10. 10.

    To download this spreadsheet go to http://extras.springer.com and enter the ISBN of this book. Look in the “Spreadsheets” folder for “Chap. 5. Fitting a curve to estimates of sigma mu.xls or xlsx.”

  11. 11.

    These differences will also also be called “residuals.”

  12. 12.

    Ideally the weight should be inversely proportional to the variance of the data point.

  13. 13.

    Now, at optimum, β0 = 0.59.

References

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Springer International Publishing Switzerland

About this chapter

Cite this chapter

Hauer, E. (2015). Preparing for Parametric Curve-Fitting: The “Solver”. In: The Art of Regression Modeling in Road Safety. Springer, Cham. https://doi.org/10.1007/978-3-319-12529-9_5

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-12529-9_5

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-12528-2

  • Online ISBN: 978-3-319-12529-9

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics