SlideShare une entreprise Scribd logo
1  sur  19
FINANCIAL RISK MGT - FRM
Lecture by;
Dr. Syed
Muhammad Ali
Tirmizi
1
2
INTRODUCTION
 In this lecture, we will cover the following
topics before getting into the applications of
FRM concepts using R:
1. Origin and development
2. Getting help
3. Working with R
4. Classes, methods, and functions
5. The accompanying package FRAPO
3
ORIGIN AND DEVELOPMENT
 R is mainly a programming environment for
conducting statistical computations and producing
high-level graphics.
 The website of the R project is:
http://www.r-project.org
 The source code of the software is published as free
software under the terms of the GNU General
Public License (GPL);
http://www.gnu.org/licenses/gpl.html
4
ORIGIN AND DEVELOPMENT
5
ORIGIN AND DEVELOPMENT
6
ORIGIN AND DEVELOPMENT
7
ORIGIN AND DEVELOPMENT
 A major advancement of the S language took place in
1988, following which the system was rewritten in C
and functions for conducting statistical analysis were
added.
 This was version 3 of the S language, referred to as
S3, and at that stage in the development of S, the R
story commences.
 In August 1993, Ross Ihaka and Robert Gentleman,
both affiliated with the University of Auckland, New
Zealand, released a binary copy of R on Statlib.
8
ORIGIN AND DEVELOPMENT
 This first R binary was based on a Scheme
interpreter with an S-like syntax.
 The growing interest in the project led to the need
for a powerful distribution channel for the software.
 The master repository for the software (known as
the “Comprehensive R Archive Network”) is still
located in Vienna, with mirror servers spread all
over the globe.
9
ORIGIN AND DEVELOPMENT
 In order to keep pace with changes requested by users
and the fixing of bugs in a timely manner, a core group
of R developers was set up in mid-1997.
 This established framework and infrastructure is
probably the reason why R has since made such
tremendous further progress.
 Users can contribute packages to solve specific
problems or tasks and hence advances in statistical
methods and/or computations can be swiftly
disseminated.
10
GETTING HELP
 As already indicated in the previous paragraph, the first
resort for obtaining help is to read the R manuals.
 These manuals cover different aspects of R and the one
mentioned above provides a useful introduction to R.
 The following R manuals are available, and their titles
are self-explanatory.
 These manuals can either be accessed from the
project’s website or invoked from an R session by
typing:
> help.start()
11
GETTING HELP
 Incidentally, in addition to these R manuals,
many complementary tutorials and related
material can be accessed from http://www.r-
project.org/otherdocs.html and an annotated
listing of more than 100 books on R is available
at http://www.r-project.org/doc/bib/R-books.html.
12
GETTING HELP
To conduct an online search the function Rsite - Search() is available
which includes searches in the R mailing lists (mailing lists
will be covered as another means of getting help in due course).
> ## Online search facilities
> ?RSiteSearch
> RSiteSearch("Portfolio")
> ## The CRAN package sos
> ## 1. Installation
> install.package("sos")
> ## 2. Loading
> library(sos)
> ## 3. Getting an overview of the content
> help(package = sos)
> ## 4. Opening the package’s vignette
> vignette("sos")
> ## 5. Getting help on findFn
> ?findFn
> ## 6. Searching online for "Portfolio"
> findFn("Portfolio")
13
GETTING HELP
14
WORKING WITH R
 By default, R is provided with a command line
interface (CLI).
 CLI is a very powerful tool that gives the user
direct control over calculations.
 Some of the platform-independent GUIs and
IDEs are presented, acknowledging the fact that
R is shipped with a GUI on the Microsoft
Windows operating system only.
15
WORKING WITH R
 IDEs Lists are very important for R Software to run
properly.
 Eclipse: Eclipse is a Java-based IDE and was first
designed as an IDE for this language.
 Emacs/ESS GNU: Emacs is an extensible and
customizable text editor, which at its core is an
interpreter for the Emacs Lisp language.
 JGR, Vim, RStudio
16
CLASSES, METHODS & FUNCTIONS
 Everything in R is an object, that a class is the definition of an
object, and that a method is a function by which a predefined
calculation/manipulation on the object is conducted.
x <- 1:5
> x
[1] 1 2 3 4 5
> class(x)
[1] "integer"
> xchar <- x
> class(xchar) <- "character"
> class(xchar)
[1] "character"
> xchar
[1] "1" "2" "3" "4" "5"
RUN
THESE
CODES
17
CLASSES, METHODS & FUNCTIONS
 The most commonly encountered ones are:
 setClass() for defining a new S4 class;
 new() for creating an object of a certain class;
 setGeneric() for defining a function as generic;
 setMethods() for defining a method for a certain class;
 as() and setAs() for coercing an object of one class to
another class;
 setValidity() and validObject() for validating the
appropriateness of an object belonging to a certain
classshowClass(), getClass(), showMethods(),
findMethods(), and getMethods() for displaying the
definition/availability of S4 classes and methods;
 slot(), getSlots(), @ for extracting elements from an
object.
18
THE ACCOMPANYING PACKAGE FRAPO
END OF LECTURE NO. 4
19

Contenu connexe

Tendances

Introduction to R programming
Introduction to R programmingIntroduction to R programming
Introduction to R programmingVictor Ordu
 
High performance computing language,julia
High performance computing language,juliaHigh performance computing language,julia
High performance computing language,juliaAnusha sweety
 
Introduction to R ajay Ohri
Introduction to R ajay OhriIntroduction to R ajay Ohri
Introduction to R ajay OhriAjay Ohri
 
Principles of object oriented programing
Principles of object oriented programingPrinciples of object oriented programing
Principles of object oriented programingAhammed Alamin
 
1 R Tutorial Introduction
1 R Tutorial Introduction1 R Tutorial Introduction
1 R Tutorial IntroductionSakthi Dasans
 
R Programming: First Steps
R Programming: First StepsR Programming: First Steps
R Programming: First StepsRsquared Academy
 
C & C++ Training Centre in Ambala! BATRA COMPUTER CENTRE
C & C++ Training Centre in Ambala! BATRA COMPUTER CENTREC & C++ Training Centre in Ambala! BATRA COMPUTER CENTRE
C & C++ Training Centre in Ambala! BATRA COMPUTER CENTREjatin batra
 
Algorithm Design & Implementation
Algorithm Design & ImplementationAlgorithm Design & Implementation
Algorithm Design & ImplementationGaditek
 
C Programming and Coding Standards, Learn C Programming
C Programming and Coding Standards, Learn C ProgrammingC Programming and Coding Standards, Learn C Programming
C Programming and Coding Standards, Learn C ProgrammingTonex
 
Programming language
Programming languageProgramming language
Programming languageDhani Ahmad
 
C programming presentation(final)
C programming presentation(final)C programming presentation(final)
C programming presentation(final)aaravSingh41
 
High quality implementation for
High quality implementation forHigh quality implementation for
High quality implementation forijseajournal
 
The epistemology of programming language paradigms
The epistemology of programming language paradigmsThe epistemology of programming language paradigms
The epistemology of programming language paradigmsFederico Gobbo
 
Programming paradigm
Programming paradigmProgramming paradigm
Programming paradigmbusyking03
 
Download Python for R Users pdf for free
Download Python for R Users pdf for freeDownload Python for R Users pdf for free
Download Python for R Users pdf for freeAjay Ohri
 

Tendances (20)

Procedural programming
Procedural programmingProcedural programming
Procedural programming
 
Introduction to R programming
Introduction to R programmingIntroduction to R programming
Introduction to R programming
 
High performance computing language,julia
High performance computing language,juliaHigh performance computing language,julia
High performance computing language,julia
 
Introduction to R ajay Ohri
Introduction to R ajay OhriIntroduction to R ajay Ohri
Introduction to R ajay Ohri
 
Principles of object oriented programing
Principles of object oriented programingPrinciples of object oriented programing
Principles of object oriented programing
 
1 R Tutorial Introduction
1 R Tutorial Introduction1 R Tutorial Introduction
1 R Tutorial Introduction
 
R programming
R programmingR programming
R programming
 
R Programming: First Steps
R Programming: First StepsR Programming: First Steps
R Programming: First Steps
 
C & C++ Training Centre in Ambala! BATRA COMPUTER CENTRE
C & C++ Training Centre in Ambala! BATRA COMPUTER CENTREC & C++ Training Centre in Ambala! BATRA COMPUTER CENTRE
C & C++ Training Centre in Ambala! BATRA COMPUTER CENTRE
 
Algorithm Design & Implementation
Algorithm Design & ImplementationAlgorithm Design & Implementation
Algorithm Design & Implementation
 
C Programming and Coding Standards, Learn C Programming
C Programming and Coding Standards, Learn C ProgrammingC Programming and Coding Standards, Learn C Programming
C Programming and Coding Standards, Learn C Programming
 
Programming language
Programming languageProgramming language
Programming language
 
C programming presentation(final)
C programming presentation(final)C programming presentation(final)
C programming presentation(final)
 
High quality implementation for
High quality implementation forHigh quality implementation for
High quality implementation for
 
Lesson 1 introduction to programming
Lesson 1 introduction to programmingLesson 1 introduction to programming
Lesson 1 introduction to programming
 
The epistemology of programming language paradigms
The epistemology of programming language paradigmsThe epistemology of programming language paradigms
The epistemology of programming language paradigms
 
Programming paradigm
Programming paradigmProgramming paradigm
Programming paradigm
 
Download Python for R Users pdf for free
Download Python for R Users pdf for freeDownload Python for R Users pdf for free
Download Python for R Users pdf for free
 
C Language
C LanguageC Language
C Language
 
Lesson 13 object and class
Lesson 13 object and classLesson 13 object and class
Lesson 13 object and class
 

Similaire à Financial Risk Mgt - Lec 4 by Dr. Syed Muhammad Ali Tirmizi

R studio practical file
R studio  practical file R studio  practical file
R studio practical file Ketan Khaira
 
R as supporting tool for analytics and simulation
R as supporting tool for analytics and simulationR as supporting tool for analytics and simulation
R as supporting tool for analytics and simulationAlvaro Gil
 
A Handbook Of Statistical Analyses Using R
A Handbook Of Statistical Analyses Using RA Handbook Of Statistical Analyses Using R
A Handbook Of Statistical Analyses Using RNicole Adams
 
Study of R Programming
Study of R ProgrammingStudy of R Programming
Study of R ProgrammingIRJET Journal
 
R programming presentation
R programming presentationR programming presentation
R programming presentationAkshat Sharma
 
Up your data game: How to use R to wrangle, analyze, and visualize data faste...
Up your data game: How to use R to wrangle, analyze, and visualize data faste...Up your data game: How to use R to wrangle, analyze, and visualize data faste...
Up your data game: How to use R to wrangle, analyze, and visualize data faste...Charles Guedenet
 
Data Science - Part II - Working with R & R studio
Data Science - Part II -  Working with R & R studioData Science - Part II -  Working with R & R studio
Data Science - Part II - Working with R & R studioDerek Kane
 
Introduction to R and R Studio
Introduction to R and R StudioIntroduction to R and R Studio
Introduction to R and R StudioRupak Roy
 
BUSINESS ANALYTICS WITH R SOFTWARE DIAST
BUSINESS ANALYTICS WITH R SOFTWARE DIASTBUSINESS ANALYTICS WITH R SOFTWARE DIAST
BUSINESS ANALYTICS WITH R SOFTWARE DIASTHaritikaChhatwal1
 
1_Introduction.pptx
1_Introduction.pptx1_Introduction.pptx
1_Introduction.pptxranapoonam1
 
2 it unit-1 start learning r
2 it   unit-1 start learning r2 it   unit-1 start learning r
2 it unit-1 start learning rNetaji Gandi
 
An introduction to R is a document useful
An introduction to R is a document usefulAn introduction to R is a document useful
An introduction to R is a document usefulssuser3c3f88
 
Introduction to R Programming
Introduction to R ProgrammingIntroduction to R Programming
Introduction to R Programminghemasri56
 

Similaire à Financial Risk Mgt - Lec 4 by Dr. Syed Muhammad Ali Tirmizi (20)

R_L1-Aug-2022.pptx
R_L1-Aug-2022.pptxR_L1-Aug-2022.pptx
R_L1-Aug-2022.pptx
 
R studio practical file
R studio  practical file R studio  practical file
R studio practical file
 
R as supporting tool for analytics and simulation
R as supporting tool for analytics and simulationR as supporting tool for analytics and simulation
R as supporting tool for analytics and simulation
 
R programming Language
R programming LanguageR programming Language
R programming Language
 
A Handbook Of Statistical Analyses Using R
A Handbook Of Statistical Analyses Using RA Handbook Of Statistical Analyses Using R
A Handbook Of Statistical Analyses Using R
 
Better graphics in R
Better graphics in RBetter graphics in R
Better graphics in R
 
Study of R Programming
Study of R ProgrammingStudy of R Programming
Study of R Programming
 
R programming presentation
R programming presentationR programming presentation
R programming presentation
 
1504.00693
1504.006931504.00693
1504.00693
 
R tutorial
R tutorialR tutorial
R tutorial
 
Up your data game: How to use R to wrangle, analyze, and visualize data faste...
Up your data game: How to use R to wrangle, analyze, and visualize data faste...Up your data game: How to use R to wrangle, analyze, and visualize data faste...
Up your data game: How to use R to wrangle, analyze, and visualize data faste...
 
Data Science - Part II - Working with R & R studio
Data Science - Part II -  Working with R & R studioData Science - Part II -  Working with R & R studio
Data Science - Part II - Working with R & R studio
 
R programming
R programmingR programming
R programming
 
Introduction to R and R Studio
Introduction to R and R StudioIntroduction to R and R Studio
Introduction to R and R Studio
 
BUSINESS ANALYTICS WITH R SOFTWARE DIAST
BUSINESS ANALYTICS WITH R SOFTWARE DIASTBUSINESS ANALYTICS WITH R SOFTWARE DIAST
BUSINESS ANALYTICS WITH R SOFTWARE DIAST
 
1_Introduction.pptx
1_Introduction.pptx1_Introduction.pptx
1_Introduction.pptx
 
2 it unit-1 start learning r
2 it   unit-1 start learning r2 it   unit-1 start learning r
2 it unit-1 start learning r
 
UNIT-1 Start Learning R.pdf
UNIT-1 Start Learning R.pdfUNIT-1 Start Learning R.pdf
UNIT-1 Start Learning R.pdf
 
An introduction to R is a document useful
An introduction to R is a document usefulAn introduction to R is a document useful
An introduction to R is a document useful
 
Introduction to R Programming
Introduction to R ProgrammingIntroduction to R Programming
Introduction to R Programming
 

Plus de Dr. Muhammad Ali Tirmizi., Ph.D.

Financial Risk Mgt - Lec 14 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 14 by Dr. Syed Muhammad Ali TirmiziFinancial Risk Mgt - Lec 14 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 14 by Dr. Syed Muhammad Ali TirmiziDr. Muhammad Ali Tirmizi., Ph.D.
 
Financial Risk Mgt - Lec 13 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 13 by Dr. Syed Muhammad Ali TirmiziFinancial Risk Mgt - Lec 13 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 13 by Dr. Syed Muhammad Ali TirmiziDr. Muhammad Ali Tirmizi., Ph.D.
 
Financial Risk Mgt - Lec 12 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 12 by Dr. Syed Muhammad Ali TirmiziFinancial Risk Mgt - Lec 12 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 12 by Dr. Syed Muhammad Ali TirmiziDr. Muhammad Ali Tirmizi., Ph.D.
 
Financial Risk Mgt - Lec 11 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 11 by Dr. Syed Muhammad Ali TirmiziFinancial Risk Mgt - Lec 11 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 11 by Dr. Syed Muhammad Ali TirmiziDr. Muhammad Ali Tirmizi., Ph.D.
 
Financial Risk Mgt - Lec 10 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 10 by Dr. Syed Muhammad Ali TirmiziFinancial Risk Mgt - Lec 10 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 10 by Dr. Syed Muhammad Ali TirmiziDr. Muhammad Ali Tirmizi., Ph.D.
 
Financial Risk Mgt - Lec 9 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 9 by Dr. Syed Muhammad Ali TirmiziFinancial Risk Mgt - Lec 9 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 9 by Dr. Syed Muhammad Ali TirmiziDr. Muhammad Ali Tirmizi., Ph.D.
 
Financial Risk Mgt - Lec 8 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 8 by Dr. Syed Muhammad Ali TirmiziFinancial Risk Mgt - Lec 8 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 8 by Dr. Syed Muhammad Ali TirmiziDr. Muhammad Ali Tirmizi., Ph.D.
 
Financial Risk Mgt - Lec 7 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 7 by Dr. Syed Muhammad Ali TirmiziFinancial Risk Mgt - Lec 7 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 7 by Dr. Syed Muhammad Ali TirmiziDr. Muhammad Ali Tirmizi., Ph.D.
 
Financial Risk Mgt - Lec 5 & 6 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 5 & 6 by Dr. Syed Muhammad Ali TirmiziFinancial Risk Mgt - Lec 5 & 6 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 5 & 6 by Dr. Syed Muhammad Ali TirmiziDr. Muhammad Ali Tirmizi., Ph.D.
 
Financial Risk Mgt - Lec 3 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 3 by Dr. Syed Muhammad Ali TirmiziFinancial Risk Mgt - Lec 3 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 3 by Dr. Syed Muhammad Ali TirmiziDr. Muhammad Ali Tirmizi., Ph.D.
 
Financial Risk Mgt - Lec 2 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 2 by Dr. Syed Muhammad Ali TirmiziFinancial Risk Mgt - Lec 2 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 2 by Dr. Syed Muhammad Ali TirmiziDr. Muhammad Ali Tirmizi., Ph.D.
 
Dr. Syed Muhammad Ali Tirmizi - Special topics in finance lec 14
Dr. Syed Muhammad Ali Tirmizi - Special topics in finance   lec 14Dr. Syed Muhammad Ali Tirmizi - Special topics in finance   lec 14
Dr. Syed Muhammad Ali Tirmizi - Special topics in finance lec 14Dr. Muhammad Ali Tirmizi., Ph.D.
 
Dr. Syed Muhammad Ali Tirmizi - Special topics in finance lec 13
Dr. Syed Muhammad Ali Tirmizi - Special topics in finance   lec 13Dr. Syed Muhammad Ali Tirmizi - Special topics in finance   lec 13
Dr. Syed Muhammad Ali Tirmizi - Special topics in finance lec 13Dr. Muhammad Ali Tirmizi., Ph.D.
 
Dr. Syed Muhammad Ali Tirmizi - Special topics in finance lec 5
Dr. Syed Muhammad Ali Tirmizi - Special topics in finance   lec 5Dr. Syed Muhammad Ali Tirmizi - Special topics in finance   lec 5
Dr. Syed Muhammad Ali Tirmizi - Special topics in finance lec 5Dr. Muhammad Ali Tirmizi., Ph.D.
 
Dr. Syed Muhammad Ali Tirmizi - Special topics in finance lec 4
Dr. Syed Muhammad Ali Tirmizi - Special topics in finance   lec 4Dr. Syed Muhammad Ali Tirmizi - Special topics in finance   lec 4
Dr. Syed Muhammad Ali Tirmizi - Special topics in finance lec 4Dr. Muhammad Ali Tirmizi., Ph.D.
 
Dr. Syed Muhammad Ali Tirmizi - Special topics in finance lec 3
Dr. Syed Muhammad Ali Tirmizi - Special topics in finance   lec 3Dr. Syed Muhammad Ali Tirmizi - Special topics in finance   lec 3
Dr. Syed Muhammad Ali Tirmizi - Special topics in finance lec 3Dr. Muhammad Ali Tirmizi., Ph.D.
 

Plus de Dr. Muhammad Ali Tirmizi., Ph.D. (18)

Financial Risk Mgt - Lec 14 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 14 by Dr. Syed Muhammad Ali TirmiziFinancial Risk Mgt - Lec 14 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 14 by Dr. Syed Muhammad Ali Tirmizi
 
Financial Risk Mgt - Lec 13 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 13 by Dr. Syed Muhammad Ali TirmiziFinancial Risk Mgt - Lec 13 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 13 by Dr. Syed Muhammad Ali Tirmizi
 
Financial Risk Mgt - Lec 12 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 12 by Dr. Syed Muhammad Ali TirmiziFinancial Risk Mgt - Lec 12 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 12 by Dr. Syed Muhammad Ali Tirmizi
 
Financial Risk Mgt - Lec 11 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 11 by Dr. Syed Muhammad Ali TirmiziFinancial Risk Mgt - Lec 11 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 11 by Dr. Syed Muhammad Ali Tirmizi
 
Financial Risk Mgt - Lec 10 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 10 by Dr. Syed Muhammad Ali TirmiziFinancial Risk Mgt - Lec 10 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 10 by Dr. Syed Muhammad Ali Tirmizi
 
Financial Risk Mgt - Lec 9 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 9 by Dr. Syed Muhammad Ali TirmiziFinancial Risk Mgt - Lec 9 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 9 by Dr. Syed Muhammad Ali Tirmizi
 
Financial Risk Mgt - Lec 8 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 8 by Dr. Syed Muhammad Ali TirmiziFinancial Risk Mgt - Lec 8 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 8 by Dr. Syed Muhammad Ali Tirmizi
 
Financial Risk Mgt - Lec 7 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 7 by Dr. Syed Muhammad Ali TirmiziFinancial Risk Mgt - Lec 7 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 7 by Dr. Syed Muhammad Ali Tirmizi
 
Financial Risk Mgt - Lec 5 & 6 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 5 & 6 by Dr. Syed Muhammad Ali TirmiziFinancial Risk Mgt - Lec 5 & 6 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 5 & 6 by Dr. Syed Muhammad Ali Tirmizi
 
Financial Risk Mgt - Lec 3 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 3 by Dr. Syed Muhammad Ali TirmiziFinancial Risk Mgt - Lec 3 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 3 by Dr. Syed Muhammad Ali Tirmizi
 
Financial Risk Mgt - Lec 2 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 2 by Dr. Syed Muhammad Ali TirmiziFinancial Risk Mgt - Lec 2 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 2 by Dr. Syed Muhammad Ali Tirmizi
 
Dr. Syed Muhammad Ali Tirmizi - Special topics in finance lec 14
Dr. Syed Muhammad Ali Tirmizi - Special topics in finance   lec 14Dr. Syed Muhammad Ali Tirmizi - Special topics in finance   lec 14
Dr. Syed Muhammad Ali Tirmizi - Special topics in finance lec 14
 
Dr. Syed Muhammad Ali Tirmizi - Special topics in finance lec 13
Dr. Syed Muhammad Ali Tirmizi - Special topics in finance   lec 13Dr. Syed Muhammad Ali Tirmizi - Special topics in finance   lec 13
Dr. Syed Muhammad Ali Tirmizi - Special topics in finance lec 13
 
Dr. Syed Muhammad Ali Tirmizi - Special topics in finance lec 5
Dr. Syed Muhammad Ali Tirmizi - Special topics in finance   lec 5Dr. Syed Muhammad Ali Tirmizi - Special topics in finance   lec 5
Dr. Syed Muhammad Ali Tirmizi - Special topics in finance lec 5
 
Dr. Syed Muhammad Ali Tirmizi - Special topics in finance lec 4
Dr. Syed Muhammad Ali Tirmizi - Special topics in finance   lec 4Dr. Syed Muhammad Ali Tirmizi - Special topics in finance   lec 4
Dr. Syed Muhammad Ali Tirmizi - Special topics in finance lec 4
 
Dr. Syed Muhammad Ali Tirmizi - Special topics in finance lec 3
Dr. Syed Muhammad Ali Tirmizi - Special topics in finance   lec 3Dr. Syed Muhammad Ali Tirmizi - Special topics in finance   lec 3
Dr. Syed Muhammad Ali Tirmizi - Special topics in finance lec 3
 
Special topics in finance lecture 2
Special topics in finance   lecture 2Special topics in finance   lecture 2
Special topics in finance lecture 2
 
Special topics in finance lec 1
Special topics in finance   lec 1Special topics in finance   lec 1
Special topics in finance lec 1
 

Dernier

Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...amitlee9823
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...amitlee9823
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxolyaivanovalion
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfMarinCaroMartnezBerg
 
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...amitlee9823
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxolyaivanovalion
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFxolyaivanovalion
 
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteedamy56318795
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusTimothy Spann
 
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightDelhi Call girls
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Researchmichael115558
 
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceBDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceDelhi Call girls
 
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...amitlee9823
 
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night StandCall Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 

Dernier (20)

Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts ServiceCall Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFx
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Anomaly detection and data imputation within time series
Anomaly detection and data imputation within time seriesAnomaly detection and data imputation within time series
Anomaly detection and data imputation within time series
 
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdf
 
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptx
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFx
 
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
 
Sampling (random) method and Non random.ppt
Sampling (random) method and Non random.pptSampling (random) method and Non random.ppt
Sampling (random) method and Non random.ppt
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and Milvus
 
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Research
 
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceBDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
 
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
 
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night StandCall Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
 

Financial Risk Mgt - Lec 4 by Dr. Syed Muhammad Ali Tirmizi

  • 1. FINANCIAL RISK MGT - FRM Lecture by; Dr. Syed Muhammad Ali Tirmizi 1
  • 2. 2 INTRODUCTION  In this lecture, we will cover the following topics before getting into the applications of FRM concepts using R: 1. Origin and development 2. Getting help 3. Working with R 4. Classes, methods, and functions 5. The accompanying package FRAPO
  • 3. 3 ORIGIN AND DEVELOPMENT  R is mainly a programming environment for conducting statistical computations and producing high-level graphics.  The website of the R project is: http://www.r-project.org  The source code of the software is published as free software under the terms of the GNU General Public License (GPL); http://www.gnu.org/licenses/gpl.html
  • 7. 7 ORIGIN AND DEVELOPMENT  A major advancement of the S language took place in 1988, following which the system was rewritten in C and functions for conducting statistical analysis were added.  This was version 3 of the S language, referred to as S3, and at that stage in the development of S, the R story commences.  In August 1993, Ross Ihaka and Robert Gentleman, both affiliated with the University of Auckland, New Zealand, released a binary copy of R on Statlib.
  • 8. 8 ORIGIN AND DEVELOPMENT  This first R binary was based on a Scheme interpreter with an S-like syntax.  The growing interest in the project led to the need for a powerful distribution channel for the software.  The master repository for the software (known as the “Comprehensive R Archive Network”) is still located in Vienna, with mirror servers spread all over the globe.
  • 9. 9 ORIGIN AND DEVELOPMENT  In order to keep pace with changes requested by users and the fixing of bugs in a timely manner, a core group of R developers was set up in mid-1997.  This established framework and infrastructure is probably the reason why R has since made such tremendous further progress.  Users can contribute packages to solve specific problems or tasks and hence advances in statistical methods and/or computations can be swiftly disseminated.
  • 10. 10 GETTING HELP  As already indicated in the previous paragraph, the first resort for obtaining help is to read the R manuals.  These manuals cover different aspects of R and the one mentioned above provides a useful introduction to R.  The following R manuals are available, and their titles are self-explanatory.  These manuals can either be accessed from the project’s website or invoked from an R session by typing: > help.start()
  • 11. 11 GETTING HELP  Incidentally, in addition to these R manuals, many complementary tutorials and related material can be accessed from http://www.r- project.org/otherdocs.html and an annotated listing of more than 100 books on R is available at http://www.r-project.org/doc/bib/R-books.html.
  • 12. 12 GETTING HELP To conduct an online search the function Rsite - Search() is available which includes searches in the R mailing lists (mailing lists will be covered as another means of getting help in due course). > ## Online search facilities > ?RSiteSearch > RSiteSearch("Portfolio") > ## The CRAN package sos > ## 1. Installation > install.package("sos") > ## 2. Loading > library(sos) > ## 3. Getting an overview of the content > help(package = sos) > ## 4. Opening the package’s vignette > vignette("sos") > ## 5. Getting help on findFn > ?findFn > ## 6. Searching online for "Portfolio" > findFn("Portfolio")
  • 14. 14 WORKING WITH R  By default, R is provided with a command line interface (CLI).  CLI is a very powerful tool that gives the user direct control over calculations.  Some of the platform-independent GUIs and IDEs are presented, acknowledging the fact that R is shipped with a GUI on the Microsoft Windows operating system only.
  • 15. 15 WORKING WITH R  IDEs Lists are very important for R Software to run properly.  Eclipse: Eclipse is a Java-based IDE and was first designed as an IDE for this language.  Emacs/ESS GNU: Emacs is an extensible and customizable text editor, which at its core is an interpreter for the Emacs Lisp language.  JGR, Vim, RStudio
  • 16. 16 CLASSES, METHODS & FUNCTIONS  Everything in R is an object, that a class is the definition of an object, and that a method is a function by which a predefined calculation/manipulation on the object is conducted. x <- 1:5 > x [1] 1 2 3 4 5 > class(x) [1] "integer" > xchar <- x > class(xchar) <- "character" > class(xchar) [1] "character" > xchar [1] "1" "2" "3" "4" "5" RUN THESE CODES
  • 17. 17 CLASSES, METHODS & FUNCTIONS  The most commonly encountered ones are:  setClass() for defining a new S4 class;  new() for creating an object of a certain class;  setGeneric() for defining a function as generic;  setMethods() for defining a method for a certain class;  as() and setAs() for coercing an object of one class to another class;  setValidity() and validObject() for validating the appropriateness of an object belonging to a certain classshowClass(), getClass(), showMethods(), findMethods(), and getMethods() for displaying the definition/availability of S4 classes and methods;  slot(), getSlots(), @ for extracting elements from an object.
  • 19. END OF LECTURE NO. 4 19