Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Simulation for Data Science with R

You're reading from   Simulation for Data Science with R Effective Data-driven Decision Making

Arrow left icon
Product type Paperback
Published in Jun 2016
Publisher Packt
ISBN-13 9781785881169
Length 398 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Matthias Templ Matthias Templ
Author Profile Icon Matthias Templ
Matthias Templ
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Introduction 2. R and High-Performance Computing FREE CHAPTER 3. The Discrepancy between Pencil-Driven Theory and Data-Driven Computational Solutions 4. Simulation of Random Numbers 5. Monte Carlo Methods for Optimization Problems 6. Probability Theory Shown by Simulation 7. Resampling Methods 8. Applications of Resampling Methods and Monte Carlo Tests 9. The EM Algorithm 10. Simulation with Complex Data 11. System Dynamics and Agent-Based Models Index

Condition of problems

Other well-known problems of rounding errors are described in the foundations of computational mathematics. In the following, we consider another rounding problem that is related to the numerical precision of matrix operations. For the condition of a problem, in most cases, the reciprocal condition number is estimated in computer programs. The smaller the reciprocal condition number (or the higher the condition number), the worse is the condition of the problem.

The 2-norm condition number (in R it is kappa()) represents the ratio of the largest to the smallest non-zero singular value of a matrix, while rcond() computes an approximation of the reciprocal condition number; take a look at the details.

A poorly conditioned problem is, for example, as follows:

library("Matrix")
## reciprocal approximate condition number
rcond(Hilbert(9)) ## worse
## [1] 9.0938e-13
## reciprocal condition number
x1 <- cbind(1, 1:10)
head(x1, 3)
##      [,1] [,2]
## [1,]    1 ...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime