Book Image

Simulation for Data Science with R

By : Matthias Templ
Book Image

Simulation for Data Science with R

By: Matthias Templ

Overview of this book

Data Science with R aims to teach you how to begin performing data science tasks by taking advantage of Rs powerful ecosystem of packages. R being the most widely used programming language when used with data science can be a powerful combination to solve complexities involved with varied data sets in the real world. The book will provide a computational and methodological framework for statistical simulation to the users. Through this book, you will get in grips with the software environment R. After getting to know the background of popular methods in the area of computational statistics, you will see some applications in R to better understand the methods as well as gaining experience of working with real-world data and real-world problems. This book helps uncover the large-scale patterns in complex systems where interdependencies and variation are critical. An effective simulation is driven by data generating processes that accurately reflect real physical populations. You will learn how to plan and structure a simulation project to aid in the decision-making process as well as the presentation of results. By the end of this book, you reader will get in touch with the software environment R. After getting background on popular methods in the area, you will see applications in R to better understand the methods as well as to gain experience when working on real-world data and real-world problems.
Table of Contents (18 chapters)
Simulation for Data Science with R
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Chapter 5. Monte Carlo Methods for Optimization Problems

Function optimization was applied in Chapter 4, Simulation of Random Numbers to find the maximum of a normal density divided by a Cauchy density as well as to find the extreme of a Beta distribution function. In this chapter, we will concentrate on two-dimensional problems and note that the mentioned methods can be extended to multi-dimensional problems. To convey a feeling of how optimization methods work, we start with a story set in the Austrian Alps.

When I wrote these lines we suddenly had foggy weather in Austria. And I imagined the scenario of a guy from Australia visiting Austria. Note that kangaroos exist only in the zoo in Austria, and that 70 percent of Austria is covered by mountains (part of the Alps). Assume that the Australian guy has no prior information (no maps, no conversations, no guide at all) and he starts to climb the mountains. These mountains represent, in other words, a three-dimensional complex non-concave...