SlideShare ist ein Scribd-Unternehmen logo
1 von 22
R as Supporting Tool for
Analytics and Simulation
Alvaro Gil
Simulation & Optimization Consultant
http://agiltools.com
June 2016
Agenda
Introduction
What is R? Why use it?
What to Install
Example of Companies Using R
Some Facts About R
Interesting R Applications
R: The Generic Scripting Language
R + AnyLogic
Interfacing Programming Languages from R
R and IoT
Useful Links
Introduction
Pre and post processing of information is a necessary step for modeling and
simulation
Information processing is part of the Analytics field.
◦ Analytics is a discipline which combines: Descriptive, Predictive and Prescriptive
techniques on all type of data (INFORMS).
Applying Analytics requires special skills as well as knowledge of specialized
software (SPSS, SAS, R, Python, JMP, Stata, etc.).
Several specialists are promoting the use of R as the standard language for
data analysis (reasons to come in the following slides)
This presentation is an overview of R and what we expect to achieve with it.
What is R? Why use it?
R is a high level matrix programming language for statistical and data analysis.
It runs on multiple platforms including Windows, MacOS and Linux.
R is an interpreted language, meaning that user gets an immediate response of the tools without the
need of program compilation.
R provides a wide variety of statistical (linear and nonlinear modelling, classical statistical tests, time-
series analysis, classification, clustering, …) and graphical techniques, and is highly extensible.
Free and open source
R’s main selling point is the massive amount of libraries allowing you to perform almost any statistical
procedure in a single command
◦ There are more than 8000 available packages on CRAN, all independently tested, and generally peer reviewed.
R is great for performing analysis on a dataset, and presenting findings in a static set of graphics
R is very useful to perform distributed automatized data analysis process
R Video
What to Install?
R Language
◦ R CRAN or
◦ Microsoft Open R (MRO)
An IDE
◦ R-Studio
◦ Red-R
◦ Rattle
◦ EMACS + Emacs Speaks Statistics (ESS)
◦ Eclipse (StatET)
◦ Visual Studio
A full set of packages
Microsoft R
MRO: Microsoft R Open (personal version link)
MRS: Microsoft R Server (professional version link)
Enhanced distribution of R from Microsoft Corporation.
It includes the R languages plus additional capabilities for improved performance, reproducibility
and platform support.
◦ The installation of many packages include all base and recommended R packages plus a set of specialized
packages released by Microsoft Corporation to further enhance your Microsoft R Open experience
◦ Multi-threaded math libraries (Math Kernel Library MKL)
◦ A high-performance default CRAN repository that provide a consistent and static set of packages to all
Microsoft R Open users.
◦ The checkpoint package that make it easy to share R code and replicate results using specific R package
versions.
◦ Platforms: Windows, Mac OS X, and Linux
◦ MRS also includes specialized packages for big data.
Visit https://mran.microsoft.com/open/ for more info
R Studio
Visit https://www.rstudio.com/ for more info
R Packages
More than 8,000 available
packages
source('http://agiltools.com/R/rp.R')
Examples of Companies Using R
http://www.revolutionanalytics.com/companies-using-r
http://www.r-bloggers.com/airbnb-uses-r-to-scale-data-science/
http://data-informed.com/companies-use-r-compete-data-driven-world/
http://www.r-bloggers.com/companies-using-open-source-r-in-2013/
Sources
Some Facts About R
R is the highest paid IT skill (Dice.com survey, January 2014)
R most-used data science language after SQL (O'Reilly survey, January 2014)
R is used as Analytics tool by 75% of professionals (Rexer survey, October 2015)
R is #13 of all programming languages (RedMonk language rankings, June 2015)
R growing faster than any other data science language (KDNuggets survey, August 2014)
R is the #1 Google Search for Advanced Analytics software (Google Trends April 2016)
R has more than 2 million users worldwide (Oracle estimate, February 2012)
Interesting R Applications
Complete Libraries Specialized by Topic e.g.:
◦ Econometrics
◦ Finances (e.g. actuar, fPortfolio, financial, etc.)
◦ Machine Learning (e.g. nnet, neuralnet, RSNNS, deepnet, darch, h2o, etc.)
◦ Optimization (e.g. Rquadprog, optmix, etc.)
◦ Simulation (e.g. simmer)
◦ Social Sciences
◦ Spatial (e.g. maps)
◦ See more at https://cran.r-project.org/web/views/
Markdown (R-Studio)
Shiny (R-Studio)
Big Data (e.g. bigmemory, ff, RevoScaleR)
Interesting R Applications: Markdown
Markdown is a text-to-HTML conversion tool for reporting.
It allows users to share and/or present their work.
External examples:
◦ 1 (pdf): https://github.com/yihui/knitr/releases/download/doc/knitr-minimal.pdf
◦ 2 (html): https://rawgit.com/yihui/knitr-examples/master/003-minimal.html
◦ 3 (knitr + googleVis): https://cran.r-project.org/web/packages/googleVis/vignettes/Using_googleVis_with_knitr.html
◦ 4 (with Shiny): https://cpsievert.shinyapps.io/animintRmarkdown/
◦ 5 (combined with JavaScript): http://www.nytimes.com/interactive/2014/01/23/business/case-shiller-
slider.html?_r=0
Interesting R Applications: Shiny
Web application for R.
Interactive visualization tool based on JavaScript
libraries like d3, Leaflet and Google Charts.
This reporting tool runs in all type of devices
Can be connected to R to perform any kind of data
analysis in real time (data mining, optimization, etc.)
See some examples at: Shiny User Showcase
Shiny + javascript
(https://frissdemo.shinyapps.io/FrissDashboard/)
Shiny can be embedded in individual servers to add
security and increase performance.
Shiny is available at Predix through cf-buildpack-r
(check link)
Interesting R Applications: Big Data
Specialized libraries to manipulate big data
◦ bigmemory+ biganalytics (article)
◦ ff+ffbase (article)
R has proven to be very effective to manipulate
millions of rows in short time (e.g. less than 30
seconds to perform a linear regression of a
sample of 10M).
Machine learning algorithms with millions of
rows can run in seconds with the right libraries
and configuration
MRS implements RevoScaleR to
manipulate big data and handle
parallelism
R: The Generic Scripting Language
Given the popularity and versatility of R, many companies are adapting its
services to be compatibles with R
Oracle, Microsoft, GE among others
Since 2016 SQL Server has the ability to run R scripts directly in database
using SQL Server R Services. This means the R code will run directly on the
server, as opposed to first extracting the data to a local R session.
In the words of Joseph Sirosh, corporate VP at Microsoft Data Group, “[Microsoft R Server
enables] enterprise customers to standardize advanced analytics on one core tool, regardless
of whether they are using Hadoop (Hortonworks, Cloudera and MapR), Linux (Red Hat and
SUSE) or Teradata. [We are committed to] building R and Revolution’s technology into our
broader database, big data and business intelligence offerings and to bring these benefits to
customers and students – on-premises, in the Azure cloud and to new platforms.”
Forbes January 2016 https://t.co/AJicDBqv47
R: The Generic Scripting Language
R and Azure
Microsoft is adapting services like Azure to include R as the scripting language for data analysis
Calling R from AnyLogic
AnyLogic can work with R by using the Java library Rcaller.
Rcaller is a software library which is developed to simplify calling R from Java (see link)
It successfully simplifies and wraps type conversations and makes variables in each languages
accessible between platforms
multiple R processes can be created and handled by multiple RCaller instances in Java
Example
Watch demo video
More info: http://agiltools.com/blogsp/anylogic_r_qchart/
Interfacing Programming Languages from
R
The R environment can interface with other programming languages, such as Fortran, C and
Java.
Examples of interfaces with C and Java can be found in:
C: http://adv-r.had.co.nz/C-interface.html
Java: http://rforge.net/rJava/
R and IoT
R can be executed inside Internet of Things (IoT)
platforms like Bluemix, Amazon Web Services, Azure and
Predix
Libraries like cf-buildpack-r allows users to execute
Rscripts in cloudfoundry based plaforms and even embed
Shiny applications.
In Microsoft platforms Rscripts are already embedded in
Azure
Useful Links
R Project
CRAN
R Packages
Books and Tutorials
http://www.statmethods.net/
R Bloggers
R Journal
R Graphical Manuals

Weitere ähnliche Inhalte

Was ist angesagt?

Pert 06 association rules
Pert 06 association rulesPert 06 association rules
Pert 06 association rulesaiiniR
 
Internet of Things
Internet of ThingsInternet of Things
Internet of ThingsMphasis
 
Internet of things (iot)
Internet of things (iot)Internet of things (iot)
Internet of things (iot)shubhamyadav613
 
Business Models_Internet of Things (Part 01)
Business Models_Internet of Things (Part 01)Business Models_Internet of Things (Part 01)
Business Models_Internet of Things (Part 01)alengadan
 
Business Models_Internet of Things (Part 02)
Business Models_Internet of Things (Part 02)Business Models_Internet of Things (Part 02)
Business Models_Internet of Things (Part 02)alengadan
 
IOT - internet of Things - August 2017
IOT - internet of Things - August 2017IOT - internet of Things - August 2017
IOT - internet of Things - August 2017paul young cpa, cga
 
Prototyping the Physical Design_Internet of Things
Prototyping the Physical Design_Internet of ThingsPrototyping the Physical Design_Internet of Things
Prototyping the Physical Design_Internet of Thingsalengadan
 
Data science presentation
Data science presentationData science presentation
Data science presentationMSDEVMTL
 
87 seminar presentation
87 seminar presentation87 seminar presentation
87 seminar presentationVishakha Kumar
 
COMPONENTS OF INDUSTRY 4.0
COMPONENTS OF INDUSTRY 4.0COMPONENTS OF INDUSTRY 4.0
COMPONENTS OF INDUSTRY 4.0JerishAmul
 
cps_nitin_final.ppt
cps_nitin_final.pptcps_nitin_final.ppt
cps_nitin_final.pptnitin_009
 
IoT & Applications Digital Notes.pdf
IoT & Applications Digital Notes.pdfIoT & Applications Digital Notes.pdf
IoT & Applications Digital Notes.pdfkanaka vardhini
 
Understanding generative AI models A comprehensive overview.pdf
Understanding generative AI models A comprehensive overview.pdfUnderstanding generative AI models A comprehensive overview.pdf
Understanding generative AI models A comprehensive overview.pdfStephenAmell4
 
Generative-AI-in-enterprise-20230615.pdf
Generative-AI-in-enterprise-20230615.pdfGenerative-AI-in-enterprise-20230615.pdf
Generative-AI-in-enterprise-20230615.pdfLiming Zhu
 
Internet of things (IOT)
Internet of things (IOT)Internet of things (IOT)
Internet of things (IOT)Oshin Kandpal
 

Was ist angesagt? (20)

Pert 06 association rules
Pert 06 association rulesPert 06 association rules
Pert 06 association rules
 
Internet of Things
Internet of ThingsInternet of Things
Internet of Things
 
Internet of things (iot)
Internet of things (iot)Internet of things (iot)
Internet of things (iot)
 
Data Analytics for IoT
Data Analytics for IoT Data Analytics for IoT
Data Analytics for IoT
 
Business Models_Internet of Things (Part 01)
Business Models_Internet of Things (Part 01)Business Models_Internet of Things (Part 01)
Business Models_Internet of Things (Part 01)
 
Business Models_Internet of Things (Part 02)
Business Models_Internet of Things (Part 02)Business Models_Internet of Things (Part 02)
Business Models_Internet of Things (Part 02)
 
IOT - internet of Things - August 2017
IOT - internet of Things - August 2017IOT - internet of Things - August 2017
IOT - internet of Things - August 2017
 
IoT
IoTIoT
IoT
 
Prototyping the Physical Design_Internet of Things
Prototyping the Physical Design_Internet of ThingsPrototyping the Physical Design_Internet of Things
Prototyping the Physical Design_Internet of Things
 
Data science presentation
Data science presentationData science presentation
Data science presentation
 
87 seminar presentation
87 seminar presentation87 seminar presentation
87 seminar presentation
 
COMPONENTS OF INDUSTRY 4.0
COMPONENTS OF INDUSTRY 4.0COMPONENTS OF INDUSTRY 4.0
COMPONENTS OF INDUSTRY 4.0
 
Internet of things(IoT)
Internet of things(IoT)Internet of things(IoT)
Internet of things(IoT)
 
cps_nitin_final.ppt
cps_nitin_final.pptcps_nitin_final.ppt
cps_nitin_final.ppt
 
IoT & Applications Digital Notes.pdf
IoT & Applications Digital Notes.pdfIoT & Applications Digital Notes.pdf
IoT & Applications Digital Notes.pdf
 
Understanding generative AI models A comprehensive overview.pdf
Understanding generative AI models A comprehensive overview.pdfUnderstanding generative AI models A comprehensive overview.pdf
Understanding generative AI models A comprehensive overview.pdf
 
IoT for Healthcare
IoT for HealthcareIoT for Healthcare
IoT for Healthcare
 
Generative-AI-in-enterprise-20230615.pdf
Generative-AI-in-enterprise-20230615.pdfGenerative-AI-in-enterprise-20230615.pdf
Generative-AI-in-enterprise-20230615.pdf
 
Internet of things (IOT)
Internet of things (IOT)Internet of things (IOT)
Internet of things (IOT)
 
Big data ppt
Big data pptBig data ppt
Big data ppt
 

Ähnlich wie R as supporting tool for analytics and simulation

Introduction to Microsoft R Services
Introduction to Microsoft R ServicesIntroduction to Microsoft R Services
Introduction to Microsoft R ServicesGregg Barrett
 
Introduction to R and R Studio
Introduction to R and R StudioIntroduction to R and R Studio
Introduction to R and R StudioRupak Roy
 
Microsoft and Revolution Analytics -- what's the add-value? 20150629
Microsoft and Revolution Analytics -- what's the add-value? 20150629Microsoft and Revolution Analytics -- what's the add-value? 20150629
Microsoft and Revolution Analytics -- what's the add-value? 20150629Mark Tabladillo
 
Big Data Analytics with R
Big Data Analytics with RBig Data Analytics with R
Big Data Analytics with RGreat Wide Open
 
R programming language
R programming languageR programming language
R programming languageKeerti Verma
 
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
 
Open source analytics
Open source analyticsOpen source analytics
Open source analyticsAjay Ohri
 
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 Spark R with R studio - Mr. Pragith
Introduction to Spark R with R studio - Mr. Pragith Introduction to Spark R with R studio - Mr. Pragith
Introduction to Spark R with R studio - Mr. Pragith Sigmoid
 
Big Data - Analytics with R
Big Data - Analytics with RBig Data - Analytics with R
Big Data - Analytics with RTechsparks
 
Big Data Predictive Analytics with Revolution R Enterprise (Gartner BI Summit...
Big Data Predictive Analytics with Revolution R Enterprise (Gartner BI Summit...Big Data Predictive Analytics with Revolution R Enterprise (Gartner BI Summit...
Big Data Predictive Analytics with Revolution R Enterprise (Gartner BI Summit...Revolution Analytics
 
BUSINESS ANALYTICS WITH R SOFTWARE DIAST
BUSINESS ANALYTICS WITH R SOFTWARE DIASTBUSINESS ANALYTICS WITH R SOFTWARE DIAST
BUSINESS ANALYTICS WITH R SOFTWARE DIASTHaritikaChhatwal1
 
Analytics Beyond RAM Capacity using R
Analytics Beyond RAM Capacity using RAnalytics Beyond RAM Capacity using R
Analytics Beyond RAM Capacity using RAlex Palamides
 
Introduction to R Programming
Introduction to R ProgrammingIntroduction to R Programming
Introduction to R Programminghemasri56
 
Study of R Programming
Study of R ProgrammingStudy of R Programming
Study of R ProgrammingIRJET Journal
 

Ähnlich wie R as supporting tool for analytics and simulation (20)

R_L1-Aug-2022.pptx
R_L1-Aug-2022.pptxR_L1-Aug-2022.pptx
R_L1-Aug-2022.pptx
 
Introduction to Microsoft R Services
Introduction to Microsoft R ServicesIntroduction to Microsoft R Services
Introduction to Microsoft R Services
 
Introduction to R and R Studio
Introduction to R and R StudioIntroduction to R and R Studio
Introduction to R and R Studio
 
Microsoft and Revolution Analytics -- what's the add-value? 20150629
Microsoft and Revolution Analytics -- what's the add-value? 20150629Microsoft and Revolution Analytics -- what's the add-value? 20150629
Microsoft and Revolution Analytics -- what's the add-value? 20150629
 
Big Data Analytics with R
Big Data Analytics with RBig Data Analytics with R
Big Data Analytics with R
 
R programming
R programmingR programming
R programming
 
R programming language
R programming languageR programming language
R programming language
 
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
 
Reason To learn & use r
Reason To learn & use rReason To learn & use r
Reason To learn & use r
 
Open source analytics
Open source analyticsOpen source analytics
Open source analytics
 
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
 
Introduction to Spark R with R studio - Mr. Pragith
Introduction to Spark R with R studio - Mr. Pragith Introduction to Spark R with R studio - Mr. Pragith
Introduction to Spark R with R studio - Mr. Pragith
 
Big Data - Analytics with R
Big Data - Analytics with RBig Data - Analytics with R
Big Data - Analytics with R
 
Big Data Predictive Analytics with Revolution R Enterprise (Gartner BI Summit...
Big Data Predictive Analytics with Revolution R Enterprise (Gartner BI Summit...Big Data Predictive Analytics with Revolution R Enterprise (Gartner BI Summit...
Big Data Predictive Analytics with Revolution R Enterprise (Gartner BI Summit...
 
BUSINESS ANALYTICS WITH R SOFTWARE DIAST
BUSINESS ANALYTICS WITH R SOFTWARE DIASTBUSINESS ANALYTICS WITH R SOFTWARE DIAST
BUSINESS ANALYTICS WITH R SOFTWARE DIAST
 
tools
toolstools
tools
 
Analytics Beyond RAM Capacity using R
Analytics Beyond RAM Capacity using RAnalytics Beyond RAM Capacity using R
Analytics Beyond RAM Capacity using R
 
Introduction to R Programming
Introduction to R ProgrammingIntroduction to R Programming
Introduction to R Programming
 
Study of R Programming
Study of R ProgrammingStudy of R Programming
Study of R Programming
 

Mehr von Alvaro Gil

20130506 circulation opt-days
20130506 circulation opt-days20130506 circulation opt-days
20130506 circulation opt-daysAlvaro Gil
 
Tutorial AnyLogic PLE: Colas 1
Tutorial AnyLogic PLE: Colas 1Tutorial AnyLogic PLE: Colas 1
Tutorial AnyLogic PLE: Colas 1Alvaro Gil
 
Simulation: A game-like approach to innovation
Simulation: A game-like approach to innovationSimulation: A game-like approach to innovation
Simulation: A game-like approach to innovationAlvaro Gil
 
Modeling and Optimization of In-Situ Oil Production
Modeling and Optimization of In-Situ Oil ProductionModeling and Optimization of In-Situ Oil Production
Modeling and Optimization of In-Situ Oil ProductionAlvaro Gil
 
Energy Processing Canada (May June 2015)
Energy Processing Canada (May June 2015)Energy Processing Canada (May June 2015)
Energy Processing Canada (May June 2015)Alvaro Gil
 
Harmonisation des opérations dans la nouvelle centrale de stérilisation à l'h...
Harmonisation des opérations dans la nouvelle centrale de stérilisation à l'h...Harmonisation des opérations dans la nouvelle centrale de stérilisation à l'h...
Harmonisation des opérations dans la nouvelle centrale de stérilisation à l'h...Alvaro Gil
 
Presentación del programa
Presentación del programaPresentación del programa
Presentación del programaAlvaro Gil
 
Simulación: Teoría y aplicaciones con Promodel
Simulación: Teoría y aplicaciones con PromodelSimulación: Teoría y aplicaciones con Promodel
Simulación: Teoría y aplicaciones con PromodelAlvaro Gil
 
Log Classification in the Hardwood Timber Industry: Method and Value Analysis
Log Classification in the Hardwood Timber Industry: Method and Value AnalysisLog Classification in the Hardwood Timber Industry: Method and Value Analysis
Log Classification in the Hardwood Timber Industry: Method and Value AnalysisAlvaro Gil
 
Réseaux avec NetLogo
Réseaux avec NetLogoRéseaux avec NetLogo
Réseaux avec NetLogoAlvaro Gil
 
Introduction à NetLogo
Introduction à NetLogoIntroduction à NetLogo
Introduction à NetLogoAlvaro Gil
 
Utilisation de la simulation dans le domaine hospitalier
Utilisation de la simulation dans le domaine hospitalierUtilisation de la simulation dans le domaine hospitalier
Utilisation de la simulation dans le domaine hospitalierAlvaro Gil
 
Simulation Triage ER
Simulation Triage ERSimulation Triage ER
Simulation Triage ERAlvaro Gil
 
Link statistics
Link statisticsLink statistics
Link statisticsAlvaro Gil
 
Scientific poster VCO summer school 2012
Scientific poster VCO summer school 2012Scientific poster VCO summer school 2012
Scientific poster VCO summer school 2012Alvaro Gil
 
Generacion electrica a partir de desechos organicos, Corabastos - Bogota (COL)
Generacion electrica a partir de desechos organicos, Corabastos - Bogota (COL)Generacion electrica a partir de desechos organicos, Corabastos - Bogota (COL)
Generacion electrica a partir de desechos organicos, Corabastos - Bogota (COL)Alvaro Gil
 
Optimization Days Montreal May 2013
Optimization Days Montreal May 2013Optimization Days Montreal May 2013
Optimization Days Montreal May 2013Alvaro Gil
 
Projet d'amélioration: Processus de mise en service des équipements médicaux ...
Projet d'amélioration: Processus de mise en service des équipements médicaux ...Projet d'amélioration: Processus de mise en service des équipements médicaux ...
Projet d'amélioration: Processus de mise en service des équipements médicaux ...Alvaro Gil
 

Mehr von Alvaro Gil (19)

20130506 circulation opt-days
20130506 circulation opt-days20130506 circulation opt-days
20130506 circulation opt-days
 
Tutorial AnyLogic PLE: Colas 1
Tutorial AnyLogic PLE: Colas 1Tutorial AnyLogic PLE: Colas 1
Tutorial AnyLogic PLE: Colas 1
 
Simulation: A game-like approach to innovation
Simulation: A game-like approach to innovationSimulation: A game-like approach to innovation
Simulation: A game-like approach to innovation
 
Modeling and Optimization of In-Situ Oil Production
Modeling and Optimization of In-Situ Oil ProductionModeling and Optimization of In-Situ Oil Production
Modeling and Optimization of In-Situ Oil Production
 
Energy Processing Canada (May June 2015)
Energy Processing Canada (May June 2015)Energy Processing Canada (May June 2015)
Energy Processing Canada (May June 2015)
 
Harmonisation des opérations dans la nouvelle centrale de stérilisation à l'h...
Harmonisation des opérations dans la nouvelle centrale de stérilisation à l'h...Harmonisation des opérations dans la nouvelle centrale de stérilisation à l'h...
Harmonisation des opérations dans la nouvelle centrale de stérilisation à l'h...
 
Presentación del programa
Presentación del programaPresentación del programa
Presentación del programa
 
Simulación: Teoría y aplicaciones con Promodel
Simulación: Teoría y aplicaciones con PromodelSimulación: Teoría y aplicaciones con Promodel
Simulación: Teoría y aplicaciones con Promodel
 
Log Classification in the Hardwood Timber Industry: Method and Value Analysis
Log Classification in the Hardwood Timber Industry: Method and Value AnalysisLog Classification in the Hardwood Timber Industry: Method and Value Analysis
Log Classification in the Hardwood Timber Industry: Method and Value Analysis
 
Réseaux avec NetLogo
Réseaux avec NetLogoRéseaux avec NetLogo
Réseaux avec NetLogo
 
Introduction à NetLogo
Introduction à NetLogoIntroduction à NetLogo
Introduction à NetLogo
 
Utilisation de la simulation dans le domaine hospitalier
Utilisation de la simulation dans le domaine hospitalierUtilisation de la simulation dans le domaine hospitalier
Utilisation de la simulation dans le domaine hospitalier
 
Walking table
Walking tableWalking table
Walking table
 
Simulation Triage ER
Simulation Triage ERSimulation Triage ER
Simulation Triage ER
 
Link statistics
Link statisticsLink statistics
Link statistics
 
Scientific poster VCO summer school 2012
Scientific poster VCO summer school 2012Scientific poster VCO summer school 2012
Scientific poster VCO summer school 2012
 
Generacion electrica a partir de desechos organicos, Corabastos - Bogota (COL)
Generacion electrica a partir de desechos organicos, Corabastos - Bogota (COL)Generacion electrica a partir de desechos organicos, Corabastos - Bogota (COL)
Generacion electrica a partir de desechos organicos, Corabastos - Bogota (COL)
 
Optimization Days Montreal May 2013
Optimization Days Montreal May 2013Optimization Days Montreal May 2013
Optimization Days Montreal May 2013
 
Projet d'amélioration: Processus de mise en service des équipements médicaux ...
Projet d'amélioration: Processus de mise en service des équipements médicaux ...Projet d'amélioration: Processus de mise en service des équipements médicaux ...
Projet d'amélioration: Processus de mise en service des équipements médicaux ...
 

Kürzlich hochgeladen

Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 

Kürzlich hochgeladen (20)

Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 

R as supporting tool for analytics and simulation

  • 1. R as Supporting Tool for Analytics and Simulation Alvaro Gil Simulation & Optimization Consultant http://agiltools.com June 2016
  • 2. Agenda Introduction What is R? Why use it? What to Install Example of Companies Using R Some Facts About R Interesting R Applications R: The Generic Scripting Language R + AnyLogic Interfacing Programming Languages from R R and IoT Useful Links
  • 3. Introduction Pre and post processing of information is a necessary step for modeling and simulation Information processing is part of the Analytics field. ◦ Analytics is a discipline which combines: Descriptive, Predictive and Prescriptive techniques on all type of data (INFORMS). Applying Analytics requires special skills as well as knowledge of specialized software (SPSS, SAS, R, Python, JMP, Stata, etc.). Several specialists are promoting the use of R as the standard language for data analysis (reasons to come in the following slides) This presentation is an overview of R and what we expect to achieve with it.
  • 4. What is R? Why use it? R is a high level matrix programming language for statistical and data analysis. It runs on multiple platforms including Windows, MacOS and Linux. R is an interpreted language, meaning that user gets an immediate response of the tools without the need of program compilation. R provides a wide variety of statistical (linear and nonlinear modelling, classical statistical tests, time- series analysis, classification, clustering, …) and graphical techniques, and is highly extensible. Free and open source R’s main selling point is the massive amount of libraries allowing you to perform almost any statistical procedure in a single command ◦ There are more than 8000 available packages on CRAN, all independently tested, and generally peer reviewed. R is great for performing analysis on a dataset, and presenting findings in a static set of graphics R is very useful to perform distributed automatized data analysis process
  • 6. What to Install? R Language ◦ R CRAN or ◦ Microsoft Open R (MRO) An IDE ◦ R-Studio ◦ Red-R ◦ Rattle ◦ EMACS + Emacs Speaks Statistics (ESS) ◦ Eclipse (StatET) ◦ Visual Studio A full set of packages
  • 7. Microsoft R MRO: Microsoft R Open (personal version link) MRS: Microsoft R Server (professional version link) Enhanced distribution of R from Microsoft Corporation. It includes the R languages plus additional capabilities for improved performance, reproducibility and platform support. ◦ The installation of many packages include all base and recommended R packages plus a set of specialized packages released by Microsoft Corporation to further enhance your Microsoft R Open experience ◦ Multi-threaded math libraries (Math Kernel Library MKL) ◦ A high-performance default CRAN repository that provide a consistent and static set of packages to all Microsoft R Open users. ◦ The checkpoint package that make it easy to share R code and replicate results using specific R package versions. ◦ Platforms: Windows, Mac OS X, and Linux ◦ MRS also includes specialized packages for big data. Visit https://mran.microsoft.com/open/ for more info
  • 9. R Packages More than 8,000 available packages source('http://agiltools.com/R/rp.R')
  • 10. Examples of Companies Using R http://www.revolutionanalytics.com/companies-using-r http://www.r-bloggers.com/airbnb-uses-r-to-scale-data-science/ http://data-informed.com/companies-use-r-compete-data-driven-world/ http://www.r-bloggers.com/companies-using-open-source-r-in-2013/ Sources
  • 11. Some Facts About R R is the highest paid IT skill (Dice.com survey, January 2014) R most-used data science language after SQL (O'Reilly survey, January 2014) R is used as Analytics tool by 75% of professionals (Rexer survey, October 2015) R is #13 of all programming languages (RedMonk language rankings, June 2015) R growing faster than any other data science language (KDNuggets survey, August 2014) R is the #1 Google Search for Advanced Analytics software (Google Trends April 2016) R has more than 2 million users worldwide (Oracle estimate, February 2012)
  • 12. Interesting R Applications Complete Libraries Specialized by Topic e.g.: ◦ Econometrics ◦ Finances (e.g. actuar, fPortfolio, financial, etc.) ◦ Machine Learning (e.g. nnet, neuralnet, RSNNS, deepnet, darch, h2o, etc.) ◦ Optimization (e.g. Rquadprog, optmix, etc.) ◦ Simulation (e.g. simmer) ◦ Social Sciences ◦ Spatial (e.g. maps) ◦ See more at https://cran.r-project.org/web/views/ Markdown (R-Studio) Shiny (R-Studio) Big Data (e.g. bigmemory, ff, RevoScaleR)
  • 13. Interesting R Applications: Markdown Markdown is a text-to-HTML conversion tool for reporting. It allows users to share and/or present their work. External examples: ◦ 1 (pdf): https://github.com/yihui/knitr/releases/download/doc/knitr-minimal.pdf ◦ 2 (html): https://rawgit.com/yihui/knitr-examples/master/003-minimal.html ◦ 3 (knitr + googleVis): https://cran.r-project.org/web/packages/googleVis/vignettes/Using_googleVis_with_knitr.html ◦ 4 (with Shiny): https://cpsievert.shinyapps.io/animintRmarkdown/ ◦ 5 (combined with JavaScript): http://www.nytimes.com/interactive/2014/01/23/business/case-shiller- slider.html?_r=0
  • 14. Interesting R Applications: Shiny Web application for R. Interactive visualization tool based on JavaScript libraries like d3, Leaflet and Google Charts. This reporting tool runs in all type of devices Can be connected to R to perform any kind of data analysis in real time (data mining, optimization, etc.) See some examples at: Shiny User Showcase Shiny + javascript (https://frissdemo.shinyapps.io/FrissDashboard/) Shiny can be embedded in individual servers to add security and increase performance. Shiny is available at Predix through cf-buildpack-r (check link)
  • 15. Interesting R Applications: Big Data Specialized libraries to manipulate big data ◦ bigmemory+ biganalytics (article) ◦ ff+ffbase (article) R has proven to be very effective to manipulate millions of rows in short time (e.g. less than 30 seconds to perform a linear regression of a sample of 10M). Machine learning algorithms with millions of rows can run in seconds with the right libraries and configuration MRS implements RevoScaleR to manipulate big data and handle parallelism
  • 16. R: The Generic Scripting Language Given the popularity and versatility of R, many companies are adapting its services to be compatibles with R Oracle, Microsoft, GE among others Since 2016 SQL Server has the ability to run R scripts directly in database using SQL Server R Services. This means the R code will run directly on the server, as opposed to first extracting the data to a local R session. In the words of Joseph Sirosh, corporate VP at Microsoft Data Group, “[Microsoft R Server enables] enterprise customers to standardize advanced analytics on one core tool, regardless of whether they are using Hadoop (Hortonworks, Cloudera and MapR), Linux (Red Hat and SUSE) or Teradata. [We are committed to] building R and Revolution’s technology into our broader database, big data and business intelligence offerings and to bring these benefits to customers and students – on-premises, in the Azure cloud and to new platforms.” Forbes January 2016 https://t.co/AJicDBqv47
  • 17. R: The Generic Scripting Language R and Azure Microsoft is adapting services like Azure to include R as the scripting language for data analysis
  • 18. Calling R from AnyLogic AnyLogic can work with R by using the Java library Rcaller. Rcaller is a software library which is developed to simplify calling R from Java (see link) It successfully simplifies and wraps type conversations and makes variables in each languages accessible between platforms multiple R processes can be created and handled by multiple RCaller instances in Java
  • 19. Example Watch demo video More info: http://agiltools.com/blogsp/anylogic_r_qchart/
  • 20. Interfacing Programming Languages from R The R environment can interface with other programming languages, such as Fortran, C and Java. Examples of interfaces with C and Java can be found in: C: http://adv-r.had.co.nz/C-interface.html Java: http://rforge.net/rJava/
  • 21. R and IoT R can be executed inside Internet of Things (IoT) platforms like Bluemix, Amazon Web Services, Azure and Predix Libraries like cf-buildpack-r allows users to execute Rscripts in cloudfoundry based plaforms and even embed Shiny applications. In Microsoft platforms Rscripts are already embedded in Azure
  • 22. Useful Links R Project CRAN R Packages Books and Tutorials http://www.statmethods.net/ R Bloggers R Journal R Graphical Manuals