SlideShare a Scribd company logo
An Introduction to R
     for Traders
       Ram Venkat
      Dawn Analytics
R environment
• R is an open source environment for statistical
  computing
• An Integrated environment for data manipulation,
  calculation and graphical output
• R is also a dynamic and object-oriented
  programming language
• Standard install consists of around 30 core
  packages that cover most common statistical and
  other tasks
• CRAN contains over 4000 contributed packages
  and it is growing
R , RStudio installation
• Both R and RStudio are available in
  Windows, Mac, unix and Linux
• R installation instruction : http://cran.r-
  project.org/doc/manuals/R-admin.html
• Rstudio is a free open source IDE for R, we
  will be using Rstudio for this tutorial
• RStudio can be downloaded from
  http://rstudio.org/download/
R packages and sample
 datasets
• Installing an R package:
     e.g >install.packages(“quantmod “)
• “quantmod” is package for trading and we
  will be using this for this tutorial
• Using quantmod to load some basic data
• Using in-built data sets of R
R as an object-oriented
language
• Everything is an Object in R
• A brief look at an R program
• Calling R programs in batch mode
• R functions and packages
  http://www.r-bloggers.com/create-an-r-package-
  in-under-6-minutes/
• Calling R from other languages
• R Programming Model
• Parallel R
R Objects and classes
• Core Objects
   – Vector
   – List
   – Functions
• Other Objects
    Matrix
   – Array
   – Data Frames
   – Factors
Data inputs and Data Cleaning
• Through package interfaces
• From CSV
• From Databases
• Excel interface
• Data Cleaning facilities
R Graphics
• graphics, lattice and grid packages
• graphics Package charts:
   – barplot,dot chart,histogram,density
     plots,strp charts, quantile plots, scatter
     plots, image plots, contour plots,
     interaction plots, sunflower plots
• Lattice splits a chart into different panels
  or groups , making multiple plots on same
   page easy
Statistical computing
• Data Analysis : Summary, Correlation, principal
  Component Analysis, Factor Analysis
• Time Series
• Probablity Distributions
• Statistical tests
• Regression Models
• Classification Models
• Clustering
quantmod package
• “A rapid prototyping environment, where
  quant traders can quickly and cleanly
  explore and build trading models. “
• Quantmod example on data handling
• Quantmod example on charting
• Quantmod example on modelling
• For more : www.quantmod.com/examples/
Other packages of interest to
Traders
• R-sig-finance is your best bet to keep
  track of the packages:
  https://stat.ethz.ch/pipermail/r-sig-finance/
• Other packages mentioned frequently :
  Rmetrics(fportfolio),portfolio,
  Rglpk_solve_LP (portfolio optimization)
• Broker-specific: Ibrokers (IB)
R Books and Tutorials
• Book - “R in a Nutshell” by Joseph Adler (O'Reilly)
• cran-R “An introduction to R”
  http://cran.r-project.org/doc/manuals/R-intro.html
•    Quck-R site : http://www.statmethods.net/ gives
    a discount on the book “R in Action” from
    Manning
• R and time-series:
  http://www.stat.pitt.edu/stoffer/tsa3/
Thank You

For any clarification, send e-mail to
ram@dawnanalytics.com

More Related Content

PPTX
R programming Language , Rahul Singh
PPTX
Why R? A Brief Introduction to the Open Source Statistics Platform
PDF
The History and Use of R
PDF
R and-hadoop
PPTX
Big data analytics using R
PPTX
R for data analytics
PPTX
R program
PPTX
R introduction
R programming Language , Rahul Singh
Why R? A Brief Introduction to the Open Source Statistics Platform
The History and Use of R
R and-hadoop
Big data analytics using R
R for data analytics
R program
R introduction

What's hot (20)

PDF
Big Data Analytics with R
PDF
R tutorial
PPTX
Big data business case
PDF
Introduction to Microsoft R Services
PPTX
Data Analytics with R and SQL Server
PDF
Introduction to data analysis using R
PPTX
LD4KD 2015 - Demos and tools
PDF
Moving From SAS to R Webinar Presentation - 07Aug14
PDF
An R primer for SQL folks
PDF
Microsoft R Server for Data Sciencea
PDF
Accelerating R analytics with Spark and Microsoft R Server for Hadoop
PDF
High Performance Predictive Analytics in R and Hadoop
PPTX
Intro to data science module 1 r
PPTX
Introduction to basic statistics
 
PDF
Hadoop - A Very Short Introduction
PPTX
R at Microsoft (useR! 2016)
PPTX
Survey of Graph Indexing
PDF
AgensGraph Presentation at PGConf.us 2017
PDF
E-ARK-iPRES2016-Bern-October-2016
PDF
Basic introduction into R
Big Data Analytics with R
R tutorial
Big data business case
Introduction to Microsoft R Services
Data Analytics with R and SQL Server
Introduction to data analysis using R
LD4KD 2015 - Demos and tools
Moving From SAS to R Webinar Presentation - 07Aug14
An R primer for SQL folks
Microsoft R Server for Data Sciencea
Accelerating R analytics with Spark and Microsoft R Server for Hadoop
High Performance Predictive Analytics in R and Hadoop
Intro to data science module 1 r
Introduction to basic statistics
 
Hadoop - A Very Short Introduction
R at Microsoft (useR! 2016)
Survey of Graph Indexing
AgensGraph Presentation at PGConf.us 2017
E-ARK-iPRES2016-Bern-October-2016
Basic introduction into R
Ad

Viewers also liked (20)

PPTX
R programming
PDF
rsdmx - Tools for reading SDMX data and metadata in R
PDF
How to use hadoop and r for big data parallel processing
PPTX
A Review Of Statistic
DOCX
Taraf signifikan
PPTX
Statistic project 22
PPT
Two sample t-test
PPTX
Basic Concepts of Inferential statistics
PPT
Understanding inferential statistics
PPTX
Inferential statistics powerpoint
PPT
Basic Descriptive Statistics
PPT
Descriptive statistics
DOCX
descriptive and inferential statistics
PPT
Concepts of Strategic Management
PPTX
An Interactive Introduction To R (Programming Language For Statistics)
ODP
Linguagem R
PPTX
What is a T-test?
PPT
Chapter 4-RESEARCH HYPOTHESIS AND DEFINING VARIABLES
PPT
Introduction to t-tests (statistics)
PPT
Hypothesis
R programming
rsdmx - Tools for reading SDMX data and metadata in R
How to use hadoop and r for big data parallel processing
A Review Of Statistic
Taraf signifikan
Statistic project 22
Two sample t-test
Basic Concepts of Inferential statistics
Understanding inferential statistics
Inferential statistics powerpoint
Basic Descriptive Statistics
Descriptive statistics
descriptive and inferential statistics
Concepts of Strategic Management
An Interactive Introduction To R (Programming Language For Statistics)
Linguagem R
What is a T-test?
Chapter 4-RESEARCH HYPOTHESIS AND DEFINING VARIABLES
Introduction to t-tests (statistics)
Hypothesis
Ad

Similar to Intro to R statistic programming (20)

PPTX
Introduction to R
PDF
Introduction to R ajay Ohri
PDF
R in finance: Introduction to R and Its Applications in Finance
PPT
Introduction to R for Data Science Technology
PPT
Advanced Data Analytics with R Programming.ppt
PPT
An introduction to R is a document useful
PPT
How to obtain and install R.ppt
PPT
PPT
Slides on introduction to R by ArinBasu MD
PPT
17641.ppt
PPT
Basics of R-Progranmming with instata.ppt
PPT
introduction to R with example, Data science
PDF
R Programming - part 1.pdf
PDF
廣宣學堂: R programming for_quantitative_finance_0623
PDF
R-Language-Lab-Manual-lab-1.pdf
PDF
R-Language-Lab-Manual-lab-1.pdf
PDF
R-Language-Lab-Manual-lab-1.pdf
PDF
peRm R group. Review of packages for r for market data downloading and analysis
PPTX
A Workshop on R
PPTX
Introduction to R - Basics of R programming, Data structures.pptx
Introduction to R
Introduction to R ajay Ohri
R in finance: Introduction to R and Its Applications in Finance
Introduction to R for Data Science Technology
Advanced Data Analytics with R Programming.ppt
An introduction to R is a document useful
How to obtain and install R.ppt
Slides on introduction to R by ArinBasu MD
17641.ppt
Basics of R-Progranmming with instata.ppt
introduction to R with example, Data science
R Programming - part 1.pdf
廣宣學堂: R programming for_quantitative_finance_0623
R-Language-Lab-Manual-lab-1.pdf
R-Language-Lab-Manual-lab-1.pdf
R-Language-Lab-Manual-lab-1.pdf
peRm R group. Review of packages for r for market data downloading and analysis
A Workshop on R
Introduction to R - Basics of R programming, Data structures.pptx

Intro to R statistic programming

  • 1. An Introduction to R for Traders Ram Venkat Dawn Analytics
  • 2. R environment • R is an open source environment for statistical computing • An Integrated environment for data manipulation, calculation and graphical output • R is also a dynamic and object-oriented programming language • Standard install consists of around 30 core packages that cover most common statistical and other tasks • CRAN contains over 4000 contributed packages and it is growing
  • 3. R , RStudio installation • Both R and RStudio are available in Windows, Mac, unix and Linux • R installation instruction : http://cran.r- project.org/doc/manuals/R-admin.html • Rstudio is a free open source IDE for R, we will be using Rstudio for this tutorial • RStudio can be downloaded from http://rstudio.org/download/
  • 4. R packages and sample datasets • Installing an R package: e.g >install.packages(“quantmod “) • “quantmod” is package for trading and we will be using this for this tutorial • Using quantmod to load some basic data • Using in-built data sets of R
  • 5. R as an object-oriented language • Everything is an Object in R • A brief look at an R program • Calling R programs in batch mode • R functions and packages http://www.r-bloggers.com/create-an-r-package- in-under-6-minutes/ • Calling R from other languages • R Programming Model • Parallel R
  • 6. R Objects and classes • Core Objects – Vector – List – Functions • Other Objects Matrix – Array – Data Frames – Factors
  • 7. Data inputs and Data Cleaning • Through package interfaces • From CSV • From Databases • Excel interface • Data Cleaning facilities
  • 8. R Graphics • graphics, lattice and grid packages • graphics Package charts: – barplot,dot chart,histogram,density plots,strp charts, quantile plots, scatter plots, image plots, contour plots, interaction plots, sunflower plots • Lattice splits a chart into different panels or groups , making multiple plots on same page easy
  • 9. Statistical computing • Data Analysis : Summary, Correlation, principal Component Analysis, Factor Analysis • Time Series • Probablity Distributions • Statistical tests • Regression Models • Classification Models • Clustering
  • 10. quantmod package • “A rapid prototyping environment, where quant traders can quickly and cleanly explore and build trading models. “ • Quantmod example on data handling • Quantmod example on charting • Quantmod example on modelling • For more : www.quantmod.com/examples/
  • 11. Other packages of interest to Traders • R-sig-finance is your best bet to keep track of the packages: https://stat.ethz.ch/pipermail/r-sig-finance/ • Other packages mentioned frequently : Rmetrics(fportfolio),portfolio, Rglpk_solve_LP (portfolio optimization) • Broker-specific: Ibrokers (IB)
  • 12. R Books and Tutorials • Book - “R in a Nutshell” by Joseph Adler (O'Reilly) • cran-R “An introduction to R” http://cran.r-project.org/doc/manuals/R-intro.html • Quck-R site : http://www.statmethods.net/ gives a discount on the book “R in Action” from Manning • R and time-series: http://www.stat.pitt.edu/stoffer/tsa3/
  • 13. Thank You For any clarification, send e-mail to ram@dawnanalytics.com