SlideShare a Scribd company logo
1 of 20
Stephen Mansour, PhD
University of Scranton and The Carlisle Group
Dyalog ’14 Conference, Eastbourne, UK
 Many statistical software packages out there:
Minitab, R, Excel, SPSS
 Excel has about 87 statistical functions. 6 of
them involve the t distribution alone:
T.DIST T.INV
T.DIST.RT T.INV.2T
T.DIST.2T T.TEST
 R has four related functions for each of 20
distributions resulting in a total of 80
distribution functions alone
Defined Operators!
 How can we exploit operators to reduce the
explosive number of statistical functions?
 Let’s look at an example . . .
 Typical attendance is about 100 delegates
with a standard deviation of 20.
 Assume next year’s conference centre can
support up to130 delegates.
 What are the chances that next year’s
attendance will exceed capacity?
=1-NORM.DIST(130,100,20,TRUE)
Now let’s use R-Connect in APL:
+#.∆r.x 'pnorm(⍵,⍵,⍵,⍵)' 130 100 20 0
Wouldn’t it be nice to enter:
100 20 normal probability > 130
100 20 (normal probability >) 130
normal probability < 1.64
100 20 normal probability between 110 130
5 0.5 binomial probability = 2
7 tDist criticalValue < 0.05
5 chiSquare randomVariable 13
mean confidenceInterval X
(SEX='F') proportion hypothesis ≥ 0.5
GROUPA mean hypothesis = GROUPB
variance theoretical binomial 5 0.2
 Summary Functions
◦ Descriptive Statistics
 Probability Distributions
◦ Theoretical Models
 Relations
 Summary functions are of the form:
𝑦 = 𝑓 𝑥1, 𝑥2, … 𝑥 𝑛
 They produce a single value from a vector.
 Structurally they are equivalent to g/ where g is a
scalar function and the right argument is a simple
numeric vector.
 A statistic is a summary function of a sample; a
parameter is a summary function of a population.
 Examples
◦ Measures of central tendency:
mean, median, mode
◦ Measures of Spread
variance, standard deviation, range , IQR
◦ Measures of Position
min, max, quartiles, percentiles
◦ Measures of shape
skewness, kurtosis
 Probability Distributions are functions defined
in a natural way when they are called without
an operator:
◦ Discrete: probability mass function
◦ Continuous: density function
 Left argument is parameter list
 Right argument can be any value taken on by
the distribution.
 Probability Distributions are scalar with
respect to the right argument.
Discrete
Distributions
Parameter List
uniform a - lower bound (default 1), b - upper bound.
binomial n - Sample size, p - probability of success
poisson λ - average number of arrivals per time period
negativeBinomial n - number of success, p - probability of success
hyperGeometric m - number of successes , n - sample size ,
N - Population size
multinomial V - List of Values (default 1 thru n),
P - List of probabilities totaling 1
Continuous Distributions Parameter List
normal μ - theoretical mean (default 0); σ - standard deviation
(default 1)
exponential λ - mean time to fail
rectangular (continuous
uniform)
a - lower bound (default 0), b - upper bound (default 1)
triangular a - lower bound, m - most common value,
b - upper bound
chiSquare df - degrees of freedom
tDist (Student) df - degrees of freedom
fDist df1 - degrees of freedom for numerator,
df2 - degrees of freedom for denominator
 Relational functions are dyadic functions
whose range is {0,1}
 1=relation is satisfied, 0 otherwise.
 Examples:
< ≤ = ≥ > ≠ ∊
between←{¯1=×/×⍺∘.-⍵}
 By limiting the domain of an operator to one
of the previously-defined functional
classifications, we can create an operator to
perform statistical analysis.
 For a dyadic operator, each operand can be
limited to a particular (but not necessarily the
same) functional classification.
Operator Left Operand Right Operand
probability Distribution Relation
criticalValue Distribution Relation
confidenceInterval Summary N/A
hypothesis Summary Relation
goodnessOfFit Distribution N/A
randomVariable Distribution N/A
theoretical Summary Distribution
running Summary N/A
 Most functions and operators can easily be
written in APL.
 Internals not important to user
 R interface can be used if necessary for
statistical distributions.
 Correct nomenclature and ease of use is
critical.
A sample can be represented by raw data, a
frequency distribution, or sample statistics.
The following items are interchangeable as
arguments to the limited domain operators
above:
 Raw data: Vector
 Frequency Distribution: Matrix
 Summary Statistics: PropertySpace
Matrix: Frequency
Distribution
Namespace: Sample
Statistics
D
2 0 3 4 3 1 0 2 0 4
⎕←FT←frequency D
0 3
1 1
2 2
3 2
4 2
mean D
1.9
variance D
2.5444
PS←⎕NS ''
PS.count←10
PS.mean←1.9
PS.variance←2.544
 )LOAD TamingStatistics
◦ All APL version
 )LOAD TamingStatisticsR
◦ Third party – Must install R (Free)
 There are many statistical packages out there;
some, like R can be used with APL
 Operator syntax is unique to APL
 R can be called directly from APL using
RCONNECT, but APL operator syntax is easier
to understand.

More Related Content

What's hot

Ch1 The Nature of Statistics
Ch1 The Nature of StatisticsCh1 The Nature of Statistics
Ch1 The Nature of StatisticsFarhan Alfin
 
Business Statistics
Business StatisticsBusiness Statistics
Business Statisticsshorab
 
Statistical inference 2
Statistical inference 2Statistical inference 2
Statistical inference 2safi Ullah
 
Qt theory at a glance
Qt theory at a glanceQt theory at a glance
Qt theory at a glancearunvarikoli
 
Statistics final seminar
Statistics final seminarStatistics final seminar
Statistics final seminarTejas Jagtap
 
Statistical treatment of data
Statistical treatment of dataStatistical treatment of data
Statistical treatment of datasenseiDelfin
 
Ppt for 1.1 introduction to statistical inference
Ppt for 1.1 introduction to statistical inferencePpt for 1.1 introduction to statistical inference
Ppt for 1.1 introduction to statistical inferencevasu Chemistry
 
Steering Model Selection with Visual Diagnostics: Women in Analytics 2019
Steering Model Selection with Visual Diagnostics: Women in Analytics 2019Steering Model Selection with Visual Diagnostics: Women in Analytics 2019
Steering Model Selection with Visual Diagnostics: Women in Analytics 2019Rebecca Bilbro
 
The RuLIS approach to outliers (Marcello D'Orazio,FAO)
The RuLIS approach to outliers (Marcello D'Orazio,FAO)The RuLIS approach to outliers (Marcello D'Orazio,FAO)
The RuLIS approach to outliers (Marcello D'Orazio,FAO)FAO
 
Descriptive Statistics
Descriptive StatisticsDescriptive Statistics
Descriptive Statisticsguest290abe
 
Business statistics-i-part2-aarhus-bss
Business statistics-i-part2-aarhus-bssBusiness statistics-i-part2-aarhus-bss
Business statistics-i-part2-aarhus-bssAntonio Rivero Ostoic
 
CABT SHS Statistics & Probability - Estimation of Parameters (intro)
CABT SHS Statistics & Probability -  Estimation of Parameters (intro)CABT SHS Statistics & Probability -  Estimation of Parameters (intro)
CABT SHS Statistics & Probability - Estimation of Parameters (intro)Gilbert Joseph Abueg
 
Performance Analysis of a Gaussian Mixture based Feature Selection Algorithm
Performance Analysis of a Gaussian Mixture based Feature Selection AlgorithmPerformance Analysis of a Gaussian Mixture based Feature Selection Algorithm
Performance Analysis of a Gaussian Mixture based Feature Selection Algorithmrahulmonikasharma
 
3.5 Exploratory Data Analysis
3.5 Exploratory Data Analysis3.5 Exploratory Data Analysis
3.5 Exploratory Data Analysismlong24
 
Malimu descriptive statistics.
Malimu descriptive statistics.Malimu descriptive statistics.
Malimu descriptive statistics.Miharbi Ignasm
 

What's hot (20)

Ch1 The Nature of Statistics
Ch1 The Nature of StatisticsCh1 The Nature of Statistics
Ch1 The Nature of Statistics
 
Business Statistics
Business StatisticsBusiness Statistics
Business Statistics
 
Probability Distribution
Probability DistributionProbability Distribution
Probability Distribution
 
Statistics
StatisticsStatistics
Statistics
 
Statistical inference 2
Statistical inference 2Statistical inference 2
Statistical inference 2
 
Statistics
StatisticsStatistics
Statistics
 
Qt theory at a glance
Qt theory at a glanceQt theory at a glance
Qt theory at a glance
 
Statistics final seminar
Statistics final seminarStatistics final seminar
Statistics final seminar
 
Statistical treatment of data
Statistical treatment of dataStatistical treatment of data
Statistical treatment of data
 
Ppt for 1.1 introduction to statistical inference
Ppt for 1.1 introduction to statistical inferencePpt for 1.1 introduction to statistical inference
Ppt for 1.1 introduction to statistical inference
 
Steering Model Selection with Visual Diagnostics: Women in Analytics 2019
Steering Model Selection with Visual Diagnostics: Women in Analytics 2019Steering Model Selection with Visual Diagnostics: Women in Analytics 2019
Steering Model Selection with Visual Diagnostics: Women in Analytics 2019
 
The RuLIS approach to outliers (Marcello D'Orazio,FAO)
The RuLIS approach to outliers (Marcello D'Orazio,FAO)The RuLIS approach to outliers (Marcello D'Orazio,FAO)
The RuLIS approach to outliers (Marcello D'Orazio,FAO)
 
Descriptive Statistics
Descriptive StatisticsDescriptive Statistics
Descriptive Statistics
 
Business statistics-i-part2-aarhus-bss
Business statistics-i-part2-aarhus-bssBusiness statistics-i-part2-aarhus-bss
Business statistics-i-part2-aarhus-bss
 
CABT SHS Statistics & Probability - Estimation of Parameters (intro)
CABT SHS Statistics & Probability -  Estimation of Parameters (intro)CABT SHS Statistics & Probability -  Estimation of Parameters (intro)
CABT SHS Statistics & Probability - Estimation of Parameters (intro)
 
Data science
Data scienceData science
Data science
 
Performance Analysis of a Gaussian Mixture based Feature Selection Algorithm
Performance Analysis of a Gaussian Mixture based Feature Selection AlgorithmPerformance Analysis of a Gaussian Mixture based Feature Selection Algorithm
Performance Analysis of a Gaussian Mixture based Feature Selection Algorithm
 
3.5 Exploratory Data Analysis
3.5 Exploratory Data Analysis3.5 Exploratory Data Analysis
3.5 Exploratory Data Analysis
 
Data sampling and probability
Data sampling and probabilityData sampling and probability
Data sampling and probability
 
Malimu descriptive statistics.
Malimu descriptive statistics.Malimu descriptive statistics.
Malimu descriptive statistics.
 

Viewers also liked

Selfie homework rodces joshua isidro
Selfie homework rodces joshua isidroSelfie homework rodces joshua isidro
Selfie homework rodces joshua isidrorodcesjoshuaisidro
 
Steve Sottile Seasoned IT Mgr 1
Steve Sottile Seasoned IT Mgr 1Steve Sottile Seasoned IT Mgr 1
Steve Sottile Seasoned IT Mgr 1Steve Sottile
 
03typesofcharactersinliterature charactertypes-150619011204-lva1-app6891-2
03typesofcharactersinliterature charactertypes-150619011204-lva1-app6891-203typesofcharactersinliterature charactertypes-150619011204-lva1-app6891-2
03typesofcharactersinliterature charactertypes-150619011204-lva1-app6891-2rodcesjoshuaisidro
 
Multi-Processor computing with OpenMP
Multi-Processor computing with OpenMPMulti-Processor computing with OpenMP
Multi-Processor computing with OpenMPStefan Coetzee
 
Git 입문자를 위한 가이드
Git 입문자를 위한 가이드Git 입문자를 위한 가이드
Git 입문자를 위한 가이드chandler0201
 
ASAUDIT April 2016 New
ASAUDIT April 2016 NewASAUDIT April 2016 New
ASAUDIT April 2016 NewStefan Coetzee
 

Viewers also liked (13)

Prepare interview tips
Prepare interview tipsPrepare interview tips
Prepare interview tips
 
Raf interview tips
Raf interview tipsRaf interview tips
Raf interview tips
 
Selfie homework rodces joshua isidro
Selfie homework rodces joshua isidroSelfie homework rodces joshua isidro
Selfie homework rodces joshua isidro
 
Steve Sottile Seasoned IT Mgr 1
Steve Sottile Seasoned IT Mgr 1Steve Sottile Seasoned IT Mgr 1
Steve Sottile Seasoned IT Mgr 1
 
Interview advice tips
Interview advice tipsInterview advice tips
Interview advice tips
 
Teaching job interview tips
Teaching job interview tipsTeaching job interview tips
Teaching job interview tips
 
03typesofcharactersinliterature charactertypes-150619011204-lva1-app6891-2
03typesofcharactersinliterature charactertypes-150619011204-lva1-app6891-203typesofcharactersinliterature charactertypes-150619011204-lva1-app6891-2
03typesofcharactersinliterature charactertypes-150619011204-lva1-app6891-2
 
Telephone interview tips uk
Telephone interview tips ukTelephone interview tips uk
Telephone interview tips uk
 
Cryptography
CryptographyCryptography
Cryptography
 
Carbohydrates
CarbohydratesCarbohydrates
Carbohydrates
 
Multi-Processor computing with OpenMP
Multi-Processor computing with OpenMPMulti-Processor computing with OpenMP
Multi-Processor computing with OpenMP
 
Git 입문자를 위한 가이드
Git 입문자를 위한 가이드Git 입문자를 위한 가이드
Git 입문자를 위한 가이드
 
ASAUDIT April 2016 New
ASAUDIT April 2016 NewASAUDIT April 2016 New
ASAUDIT April 2016 New
 

Similar to TamingStatistics

Machine Learning.pdf
Machine Learning.pdfMachine Learning.pdf
Machine Learning.pdfBeyaNasr1
 
Basic of Statistical Inference Part-III: The Theory of Estimation from Dexlab...
Basic of Statistical Inference Part-III: The Theory of Estimation from Dexlab...Basic of Statistical Inference Part-III: The Theory of Estimation from Dexlab...
Basic of Statistical Inference Part-III: The Theory of Estimation from Dexlab...Dexlab Analytics
 
Intro to Feature Selection
Intro to Feature SelectionIntro to Feature Selection
Intro to Feature Selectionchenhm
 
Pampers CaseIn an increasingly competitive diaper market, P&G’.docx
Pampers CaseIn an increasingly competitive diaper market, P&G’.docxPampers CaseIn an increasingly competitive diaper market, P&G’.docx
Pampers CaseIn an increasingly competitive diaper market, P&G’.docxbunyansaturnina
 
Statistical Analysis with R -I
Statistical Analysis with R -IStatistical Analysis with R -I
Statistical Analysis with R -IAkhila Prabhakaran
 
Summer 2015 Internship
Summer 2015 InternshipSummer 2015 Internship
Summer 2015 InternshipTaylor Martell
 
SPSS statistics - get help using SPSS
SPSS statistics - get help using SPSSSPSS statistics - get help using SPSS
SPSS statistics - get help using SPSScsula its training
 
Multiple Regression.ppt
Multiple Regression.pptMultiple Regression.ppt
Multiple Regression.pptTanyaWadhwani4
 
1.0 Descriptive statistics.pdf
1.0 Descriptive statistics.pdf1.0 Descriptive statistics.pdf
1.0 Descriptive statistics.pdfthaersyam
 
Data Science - Part IV - Regression Analysis & ANOVA
Data Science - Part IV - Regression Analysis & ANOVAData Science - Part IV - Regression Analysis & ANOVA
Data Science - Part IV - Regression Analysis & ANOVADerek Kane
 
Application of Machine Learning in Agriculture
Application of Machine  Learning in AgricultureApplication of Machine  Learning in Agriculture
Application of Machine Learning in AgricultureAman Vasisht
 
Machine Learning Notes for beginners ,Step by step
Machine Learning Notes for beginners ,Step by stepMachine Learning Notes for beginners ,Step by step
Machine Learning Notes for beginners ,Step by stepSanjanaSaxena17
 
Statistics
StatisticsStatistics
Statisticspikuoec
 
Statistics for data scientists
Statistics for  data scientistsStatistics for  data scientists
Statistics for data scientistsAjay Ohri
 
Machine learning session4(linear regression)
Machine learning   session4(linear regression)Machine learning   session4(linear regression)
Machine learning session4(linear regression)Abhimanyu Dwivedi
 
What is Isotonic Regression and How Can a Business Utilize it to Analyze Data?
What is Isotonic Regression and How Can a Business Utilize it to Analyze Data?What is Isotonic Regression and How Can a Business Utilize it to Analyze Data?
What is Isotonic Regression and How Can a Business Utilize it to Analyze Data?Smarten Augmented Analytics
 
Basic Statistical Descriptions of Data.pptx
Basic Statistical Descriptions of Data.pptxBasic Statistical Descriptions of Data.pptx
Basic Statistical Descriptions of Data.pptxAnusuya123
 
Elementary statistics for Food Indusrty
Elementary statistics for Food IndusrtyElementary statistics for Food Indusrty
Elementary statistics for Food IndusrtyAtcharaporn Khoomtong
 

Similar to TamingStatistics (20)

Machine Learning.pdf
Machine Learning.pdfMachine Learning.pdf
Machine Learning.pdf
 
Basic of Statistical Inference Part-III: The Theory of Estimation from Dexlab...
Basic of Statistical Inference Part-III: The Theory of Estimation from Dexlab...Basic of Statistical Inference Part-III: The Theory of Estimation from Dexlab...
Basic of Statistical Inference Part-III: The Theory of Estimation from Dexlab...
 
Intro to Feature Selection
Intro to Feature SelectionIntro to Feature Selection
Intro to Feature Selection
 
Pampers CaseIn an increasingly competitive diaper market, P&G’.docx
Pampers CaseIn an increasingly competitive diaper market, P&G’.docxPampers CaseIn an increasingly competitive diaper market, P&G’.docx
Pampers CaseIn an increasingly competitive diaper market, P&G’.docx
 
working with python
working with pythonworking with python
working with python
 
Statistical Analysis with R -I
Statistical Analysis with R -IStatistical Analysis with R -I
Statistical Analysis with R -I
 
Summer 2015 Internship
Summer 2015 InternshipSummer 2015 Internship
Summer 2015 Internship
 
SPSS statistics - get help using SPSS
SPSS statistics - get help using SPSSSPSS statistics - get help using SPSS
SPSS statistics - get help using SPSS
 
Multiple Regression.ppt
Multiple Regression.pptMultiple Regression.ppt
Multiple Regression.ppt
 
1.0 Descriptive statistics.pdf
1.0 Descriptive statistics.pdf1.0 Descriptive statistics.pdf
1.0 Descriptive statistics.pdf
 
Data Science - Part IV - Regression Analysis & ANOVA
Data Science - Part IV - Regression Analysis & ANOVAData Science - Part IV - Regression Analysis & ANOVA
Data Science - Part IV - Regression Analysis & ANOVA
 
Application of Machine Learning in Agriculture
Application of Machine  Learning in AgricultureApplication of Machine  Learning in Agriculture
Application of Machine Learning in Agriculture
 
Machine Learning Notes for beginners ,Step by step
Machine Learning Notes for beginners ,Step by stepMachine Learning Notes for beginners ,Step by step
Machine Learning Notes for beginners ,Step by step
 
Statistics
StatisticsStatistics
Statistics
 
Statistics for data scientists
Statistics for  data scientistsStatistics for  data scientists
Statistics for data scientists
 
Machine learning session4(linear regression)
Machine learning   session4(linear regression)Machine learning   session4(linear regression)
Machine learning session4(linear regression)
 
What is Isotonic Regression and How Can a Business Utilize it to Analyze Data?
What is Isotonic Regression and How Can a Business Utilize it to Analyze Data?What is Isotonic Regression and How Can a Business Utilize it to Analyze Data?
What is Isotonic Regression and How Can a Business Utilize it to Analyze Data?
 
Basic Statistical Descriptions of Data.pptx
Basic Statistical Descriptions of Data.pptxBasic Statistical Descriptions of Data.pptx
Basic Statistical Descriptions of Data.pptx
 
3 es timation-of_parameters[1]
3 es timation-of_parameters[1]3 es timation-of_parameters[1]
3 es timation-of_parameters[1]
 
Elementary statistics for Food Indusrty
Elementary statistics for Food IndusrtyElementary statistics for Food Indusrty
Elementary statistics for Food Indusrty
 

TamingStatistics

  • 1. Stephen Mansour, PhD University of Scranton and The Carlisle Group Dyalog ’14 Conference, Eastbourne, UK
  • 2.  Many statistical software packages out there: Minitab, R, Excel, SPSS  Excel has about 87 statistical functions. 6 of them involve the t distribution alone: T.DIST T.INV T.DIST.RT T.INV.2T T.DIST.2T T.TEST  R has four related functions for each of 20 distributions resulting in a total of 80 distribution functions alone
  • 3. Defined Operators!  How can we exploit operators to reduce the explosive number of statistical functions?  Let’s look at an example . . .
  • 4.  Typical attendance is about 100 delegates with a standard deviation of 20.  Assume next year’s conference centre can support up to130 delegates.  What are the chances that next year’s attendance will exceed capacity?
  • 5. =1-NORM.DIST(130,100,20,TRUE) Now let’s use R-Connect in APL: +#.∆r.x 'pnorm(⍵,⍵,⍵,⍵)' 130 100 20 0 Wouldn’t it be nice to enter: 100 20 normal probability > 130 100 20 (normal probability >) 130
  • 6. normal probability < 1.64 100 20 normal probability between 110 130 5 0.5 binomial probability = 2 7 tDist criticalValue < 0.05 5 chiSquare randomVariable 13 mean confidenceInterval X (SEX='F') proportion hypothesis ≥ 0.5 GROUPA mean hypothesis = GROUPB variance theoretical binomial 5 0.2
  • 7.  Summary Functions ◦ Descriptive Statistics  Probability Distributions ◦ Theoretical Models  Relations
  • 8.  Summary functions are of the form: 𝑦 = 𝑓 𝑥1, 𝑥2, … 𝑥 𝑛  They produce a single value from a vector.  Structurally they are equivalent to g/ where g is a scalar function and the right argument is a simple numeric vector.  A statistic is a summary function of a sample; a parameter is a summary function of a population.
  • 9.  Examples ◦ Measures of central tendency: mean, median, mode ◦ Measures of Spread variance, standard deviation, range , IQR ◦ Measures of Position min, max, quartiles, percentiles ◦ Measures of shape skewness, kurtosis
  • 10.  Probability Distributions are functions defined in a natural way when they are called without an operator: ◦ Discrete: probability mass function ◦ Continuous: density function  Left argument is parameter list  Right argument can be any value taken on by the distribution.  Probability Distributions are scalar with respect to the right argument.
  • 11. Discrete Distributions Parameter List uniform a - lower bound (default 1), b - upper bound. binomial n - Sample size, p - probability of success poisson λ - average number of arrivals per time period negativeBinomial n - number of success, p - probability of success hyperGeometric m - number of successes , n - sample size , N - Population size multinomial V - List of Values (default 1 thru n), P - List of probabilities totaling 1
  • 12. Continuous Distributions Parameter List normal μ - theoretical mean (default 0); σ - standard deviation (default 1) exponential λ - mean time to fail rectangular (continuous uniform) a - lower bound (default 0), b - upper bound (default 1) triangular a - lower bound, m - most common value, b - upper bound chiSquare df - degrees of freedom tDist (Student) df - degrees of freedom fDist df1 - degrees of freedom for numerator, df2 - degrees of freedom for denominator
  • 13.  Relational functions are dyadic functions whose range is {0,1}  1=relation is satisfied, 0 otherwise.  Examples: < ≤ = ≥ > ≠ ∊ between←{¯1=×/×⍺∘.-⍵}
  • 14.  By limiting the domain of an operator to one of the previously-defined functional classifications, we can create an operator to perform statistical analysis.  For a dyadic operator, each operand can be limited to a particular (but not necessarily the same) functional classification.
  • 15. Operator Left Operand Right Operand probability Distribution Relation criticalValue Distribution Relation confidenceInterval Summary N/A hypothesis Summary Relation goodnessOfFit Distribution N/A randomVariable Distribution N/A theoretical Summary Distribution running Summary N/A
  • 16.  Most functions and operators can easily be written in APL.  Internals not important to user  R interface can be used if necessary for statistical distributions.  Correct nomenclature and ease of use is critical.
  • 17. A sample can be represented by raw data, a frequency distribution, or sample statistics. The following items are interchangeable as arguments to the limited domain operators above:  Raw data: Vector  Frequency Distribution: Matrix  Summary Statistics: PropertySpace
  • 18. Matrix: Frequency Distribution Namespace: Sample Statistics D 2 0 3 4 3 1 0 2 0 4 ⎕←FT←frequency D 0 3 1 1 2 2 3 2 4 2 mean D 1.9 variance D 2.5444 PS←⎕NS '' PS.count←10 PS.mean←1.9 PS.variance←2.544
  • 19.  )LOAD TamingStatistics ◦ All APL version  )LOAD TamingStatisticsR ◦ Third party – Must install R (Free)
  • 20.  There are many statistical packages out there; some, like R can be used with APL  Operator syntax is unique to APL  R can be called directly from APL using RCONNECT, but APL operator syntax is easier to understand.