Skip to Main Content
R Programming for Actuarial Science
book

R Programming for Actuarial Science

by Peter McQuire, Alfred Kume
October 2023
Intermediate to advanced content levelIntermediate to advanced
640 pages
16h 23m
English
Wiley
Content preview from R Programming for Actuarial Science

4 Financial Mathematics (2): Miscellaneous Examples

Peter McQuire

4.1 Introduction

This chapter does not follow the typical style of most chapters in this book; there is no specific theme which it covers, consisting mainly of a series of examples and exercises based around topics included in a typical first year of an undergraduate programme for actuarial or financial mathematics. As such, this chapter should provide good practice to those readers new to writing code, and for consolidating one’s understanding of fundamental actuarial concepts.

Students may also wish to try the examples and exercises included in this chapter in Microsoft Excel, and compare the advantages and disadvantages with using R. Many tasks in this chapter are relatively simple compared with those in later chapters, such that Excel may be preferable in some cases. Throughout an actuary’s career decisions will often be required regarding the optimal software to use for a particular task.

The aims of this chapter are to:

  • cover miscellaneous topics typically studied in the first year of an undergraduate programme in actuarial science;
  • provide further practice in writing functions, and other code, in R;
  • apply functions, including those which exist in current R packages, to solve simple problems.

There is also an emphasis throughout the chapter (and in the book in general) on the importance of testing any code you write, and indeed checking any calculations. The skills learnt ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Computational Actuarial Science with R

Computational Actuarial Science with R

Arthur Charpentier

Publisher Resources

ISBN: 9781119754978Purchase Link