SlideShare a Scribd company logo
1 of 49
Linear, Machine Learning and
Probabilistic Approaches for
Predictive Analytics
B.M.Pavlyshenko
(Ph.D.)
SoftServe,
Ivan Franko National University of Lviv
e-mail: b.pavlyshenko@gmail.com
Linear Regression
𝑦 𝑥, 𝒘 = 𝑤0 +
𝑗=1
𝑀−1
𝑤𝑗 ∅ 𝑗(𝑥)
𝑡 = 𝑦 𝑥, 𝒘 + 𝜀
𝑝 𝑡 𝑥, 𝑤, 𝛽 = 𝑁 𝑡 𝑦 𝑥, 𝒘 , 𝛽−1
𝒘 = ( )Φ 𝑇Φ −1Φ 𝑇 𝑡
Φ =
)∅0(𝑥1 )∅1(𝑥1 ⋯ )∅ 𝑀−1(𝑥1
)∅0(𝑥2 )∅1(𝑥2 ⋯ )∅ 𝑀−1(𝑥2
⋮ ⋮ ⋱ ⋮
)∅0(𝑥 𝑁 )∅1(𝑥 𝑁 ⋯ )∅ 𝑀−1(𝑥 𝑁
𝐸 =
1
2
𝑛=1
𝑁
𝑡 𝑛 − 𝒘 𝑻∅(𝒙
2
+
𝜆
2
𝒘 𝑻 𝒘
𝒘 = ( )λ𝐈 + Φ 𝑇
Φ −1
Φ 𝑇
𝑡
𝐸 =
1
2
𝑛=1
𝑁
𝑡 𝑛 − 𝒘 𝑻∅(𝒙
2
+
𝜆
2
𝑗=1
𝑀
𝑤𝑗
Sampling
𝑝 𝒘 𝐷 =
𝑝 𝐷 𝒘 𝑝(𝒘)
𝑝(𝐷)
𝑝 𝐷 = 𝑝 𝐷 𝒘 𝑝 𝒘 𝑑𝒘
𝐸(𝑓 𝑧 ) = 𝑓 𝑧 𝑝 𝑧 𝑑𝑧
𝑧𝑖|𝑖 = 1, … , 𝐿
𝑓 =
1
𝐿
𝑖=1
𝐿
𝑓(𝑧𝑖)
Bayesian Inference
𝑡 = 1,2, … , 𝑇
𝒛 = 𝑧𝑖|𝑖 = 1, … , 𝑀
𝑧1
𝑡+1
~𝑝 𝑧1|𝑧2
𝑡
, 𝑧3
𝑡
, … , 𝑧 𝑀
𝑡
𝑧2
𝑡+1
~𝑝 𝑧2|𝑧1
𝑡+1
, 𝑧3
𝑡
, … , 𝑧 𝑀
𝑡
𝑧𝑗
𝑡+1
~𝑝 𝑧𝑗|𝑧1
𝑡+1
, … , 𝑧𝑗−1
𝑡+1
, 𝑧𝑗+1
𝑡
, … , 𝑧 𝑀
𝑡
𝑧 𝑀
𝑡+1
~𝑝 𝑧 𝑀|𝑧1
𝑡+1
, 𝑧2
𝑡+1
, … , 𝑧 𝑀−1
𝑡+1
XGBoost
http://xgboost.readthedocs.io/
XGBoost
{
Typical time series of store sales
LINEAR MODELS AND MACHINE
LEARNING APPROACHES
Time series forecastings by different methods
Time series forecastings by different methods
LSTM NN
BAYESIAN INFERENCE
Density of distributions
of regression coefficients.
Box plots for regression
coefficients
Winner Solution for Grupo Bimbo
Inventory Demand Kaggle Competition
most important features
Multilevel predictive model
Analysis of Perishable Products
Sales Using Bayesian Inference
Profit = SoldAmount*(Price – MarginalPrice) – UnsoldAmount* MarginalPrice
Machine Learning, Linear and
Bayesian Models for Logistic
Regression in Failure Detection
Problems
MACHINE LEARNING MODEL
The most important features and their gain values:
Matthews correlation coefficient (MCC) :
MACHINE LEARNING MODEL
ROC curve for
classification results
AUC=0.753
Matthews correlation
coefficient for logistic regression
for different values of probability
threshold.
ROC curve and Matthews correlation coefficient for different sets of features
MACHINE LEARNING MODEL
Features set 1:
AUC=0.75
Features set 2:
AUC=0.91
Dependence of Lambda from AUC
value.
Coefficients of the generalized linear
model for logistic regression
(Lambda=0.03 )
GENERALIZED LINEAR MODEL
BAYESIAN MODEL
model{
for (i in 1:n) {
y[i] ~ dbern(p[i])
logit(p[i]) <- b0+inprod(b[ ],x[i,])
}
b0 ~ dnorm(0,0.0001)
for (j in 1:nfeat) {
b[j] ~ dnorm(0,0.0001)
}
}
Probabilistic model for logistic regression using BUGS syntax
BAYESIAN MODEL
Trace plot for Intercept parameter. Probability density function for
Intercept parameter.
BAYESIAN MODEL
Box plots for logistic regression coefficients.
Combining Machine Learning with
Linear and Bayesian Models
Forecasting of Social, Market
and Financial Trends
The formation of keyword frequent sets with the biggest support value
The analysis of financial tweets
The analysis of financial tweets
The analysis of causal relationship between the frequent sets in tweets and
Apple stock prices.
The results obtained show that it is possible to predict stock prices on the
basis of data mining of informational streams in social networks.
The examples of test studies of semantic concepts in Twitter messages
Royal baby’s name forecasting
The name George was
dominating in the spectrum of
names before the official
announcement.
The examples of test studies of semantic concepts in Twitter messages
Royal baby’s name forecasting
10 first frequent sets were
created by five names, the
three of which are the
components of Prince’s
full name George
Alexander Louis.
The examples of test studies of semantic concepts in Twitter
messages
The Royal baby’s name forecasting
Users’ societies, which formed the discussion trends.
Bitcoin Price Forecasting Using
Models with Experts Opinions
Thank you !

More Related Content

What's hot

Graphing Absolute Value
Graphing Absolute ValueGraphing Absolute Value
Graphing Absolute Value
swartzje
 

What's hot (20)

Interpolation and-its-application
Interpolation and-its-applicationInterpolation and-its-application
Interpolation and-its-application
 
CAT Functions and Graphs basics
CAT Functions and Graphs basicsCAT Functions and Graphs basics
CAT Functions and Graphs basics
 
Curve fitting
Curve fitting Curve fitting
Curve fitting
 
Least Squares method
Least Squares methodLeast Squares method
Least Squares method
 
linear Algebra least squares
linear Algebra least squareslinear Algebra least squares
linear Algebra least squares
 
Functions
FunctionsFunctions
Functions
 
Recommender Systems
Recommender SystemsRecommender Systems
Recommender Systems
 
Pre-Cal 40S Slides February 29, 2008
Pre-Cal 40S Slides February 29, 2008Pre-Cal 40S Slides February 29, 2008
Pre-Cal 40S Slides February 29, 2008
 
Partial fraction
Partial fractionPartial fraction
Partial fraction
 
Fieldtheoryhighlights2015 setb
Fieldtheoryhighlights2015 setbFieldtheoryhighlights2015 setb
Fieldtheoryhighlights2015 setb
 
case study of curve fitting
case study of curve fittingcase study of curve fitting
case study of curve fitting
 
Lect15
Lect15Lect15
Lect15
 
Interpolation and its applications
Interpolation and its applicationsInterpolation and its applications
Interpolation and its applications
 
Applied Numerical Methods Curve Fitting: Least Squares Regression, Interpolation
Applied Numerical Methods Curve Fitting: Least Squares Regression, InterpolationApplied Numerical Methods Curve Fitting: Least Squares Regression, Interpolation
Applied Numerical Methods Curve Fitting: Least Squares Regression, Interpolation
 
Graphing Absolute Value
Graphing Absolute ValueGraphing Absolute Value
Graphing Absolute Value
 
Matlab cheatsheet
Matlab cheatsheetMatlab cheatsheet
Matlab cheatsheet
 
Lecture 11 linear regression
Lecture 11 linear regressionLecture 11 linear regression
Lecture 11 linear regression
 
Curvefitting
CurvefittingCurvefitting
Curvefitting
 
SPDE presentation 2012
SPDE presentation 2012SPDE presentation 2012
SPDE presentation 2012
 
Curve fitting - Lecture Notes
Curve fitting - Lecture NotesCurve fitting - Lecture Notes
Curve fitting - Lecture Notes
 

Similar to Богдан Павлишенко (Bohdan Pavlyshenko) - "Linear, Machine Learning and Probabilistic Approaches for Predictive Analytics"

Adaptive filtersfinal
Adaptive filtersfinalAdaptive filtersfinal
Adaptive filtersfinal
Wiw Miu
 
Projection methods for stochastic structural dynamics
Projection methods for stochastic structural dynamicsProjection methods for stochastic structural dynamics
Projection methods for stochastic structural dynamics
University of Glasgow
 

Similar to Богдан Павлишенко (Bohdan Pavlyshenko) - "Linear, Machine Learning and Probabilistic Approaches for Predictive Analytics" (20)

PresentationMachine Learning, Linear and Bayesian Models for Logistic Regres...
PresentationMachine Learning, Linear and Bayesian Models  for Logistic Regres...PresentationMachine Learning, Linear and Bayesian Models  for Logistic Regres...
PresentationMachine Learning, Linear and Bayesian Models for Logistic Regres...
 
Linear, Machine Learning or Probabilistic Predictive Models: What's Best for ...
Linear, Machine Learning or Probabilistic Predictive Models: What's Best for ...Linear, Machine Learning or Probabilistic Predictive Models: What's Best for ...
Linear, Machine Learning or Probabilistic Predictive Models: What's Best for ...
 
Lecture 2: Stochastic Hydrology
Lecture 2: Stochastic Hydrology Lecture 2: Stochastic Hydrology
Lecture 2: Stochastic Hydrology
 
An Efficient and Parallel Abstract Interpreter in Scala — Second Presentation
An Efficient and Parallel Abstract Interpreter in Scala — Second PresentationAn Efficient and Parallel Abstract Interpreter in Scala — Second Presentation
An Efficient and Parallel Abstract Interpreter in Scala — Second Presentation
 
Session 4 .pdf
Session 4 .pdfSession 4 .pdf
Session 4 .pdf
 
Seminar psu 20.10.2013
Seminar psu 20.10.2013Seminar psu 20.10.2013
Seminar psu 20.10.2013
 
Icra 17
Icra 17Icra 17
Icra 17
 
An Efficient and Parallel Abstract Interpreter in Scala — First Algorithm
An Efficient and Parallel Abstract Interpreter in Scala — First AlgorithmAn Efficient and Parallel Abstract Interpreter in Scala — First Algorithm
An Efficient and Parallel Abstract Interpreter in Scala — First Algorithm
 
Applied machine learning for search engine relevance 3
Applied machine learning for search engine relevance 3Applied machine learning for search engine relevance 3
Applied machine learning for search engine relevance 3
 
Curve fitting and Optimization
Curve fitting and OptimizationCurve fitting and Optimization
Curve fitting and Optimization
 
Perm winter school 2014.01.31
Perm winter school 2014.01.31Perm winter school 2014.01.31
Perm winter school 2014.01.31
 
Backpropagation (DLAI D3L1 2017 UPC Deep Learning for Artificial Intelligence)
Backpropagation (DLAI D3L1 2017 UPC Deep Learning for Artificial Intelligence)Backpropagation (DLAI D3L1 2017 UPC Deep Learning for Artificial Intelligence)
Backpropagation (DLAI D3L1 2017 UPC Deep Learning for Artificial Intelligence)
 
Collective Transport in Autonomous Multirobot systems
Collective Transport in Autonomous Multirobot systemsCollective Transport in Autonomous Multirobot systems
Collective Transport in Autonomous Multirobot systems
 
Hands-on Tutorial of Machine Learning in Python
Hands-on Tutorial of Machine Learning in PythonHands-on Tutorial of Machine Learning in Python
Hands-on Tutorial of Machine Learning in Python
 
Adaptive filtersfinal
Adaptive filtersfinalAdaptive filtersfinal
Adaptive filtersfinal
 
MVPA with SpaceNet: sparse structured priors
MVPA with SpaceNet: sparse structured priorsMVPA with SpaceNet: sparse structured priors
MVPA with SpaceNet: sparse structured priors
 
QTML2021 UAP Quantum Feature Map
QTML2021 UAP Quantum Feature MapQTML2021 UAP Quantum Feature Map
QTML2021 UAP Quantum Feature Map
 
Svm soft margin hyperplanes
Svm   soft margin hyperplanesSvm   soft margin hyperplanes
Svm soft margin hyperplanes
 
Nonparametric approach to multiple regression
Nonparametric approach to multiple regressionNonparametric approach to multiple regression
Nonparametric approach to multiple regression
 
Projection methods for stochastic structural dynamics
Projection methods for stochastic structural dynamicsProjection methods for stochastic structural dynamics
Projection methods for stochastic structural dynamics
 

More from Lviv Startup Club

More from Lviv Startup Club (20)

Artem Bykovets: 4 Вершники апокаліпсису робочих стосунків (+антидоти до них) ...
Artem Bykovets: 4 Вершники апокаліпсису робочих стосунків (+антидоти до них) ...Artem Bykovets: 4 Вершники апокаліпсису робочих стосунків (+антидоти до них) ...
Artem Bykovets: 4 Вершники апокаліпсису робочих стосунків (+антидоти до них) ...
 
Dmytro Khudenko: Challenges of implementing task managers in the corporate an...
Dmytro Khudenko: Challenges of implementing task managers in the corporate an...Dmytro Khudenko: Challenges of implementing task managers in the corporate an...
Dmytro Khudenko: Challenges of implementing task managers in the corporate an...
 
Sergii Melnichenko: Лідерство в Agile командах: ТОП-5 основних психологічних ...
Sergii Melnichenko: Лідерство в Agile командах: ТОП-5 основних психологічних ...Sergii Melnichenko: Лідерство в Agile командах: ТОП-5 основних психологічних ...
Sergii Melnichenko: Лідерство в Agile командах: ТОП-5 основних психологічних ...
 
Mariia Rashkevych: Підвищення ефективності розроблення та реалізації освітніх...
Mariia Rashkevych: Підвищення ефективності розроблення та реалізації освітніх...Mariia Rashkevych: Підвищення ефективності розроблення та реалізації освітніх...
Mariia Rashkevych: Підвищення ефективності розроблення та реалізації освітніх...
 
Mykhailo Hryhorash: What can be good in a "bad" project? (UA)
Mykhailo Hryhorash: What can be good in a "bad" project? (UA)Mykhailo Hryhorash: What can be good in a "bad" project? (UA)
Mykhailo Hryhorash: What can be good in a "bad" project? (UA)
 
Oleksii Kyselov: Що заважає ПМу зростати? Розбір практичних кейсів (UA)
Oleksii Kyselov: Що заважає ПМу зростати? Розбір практичних кейсів (UA)Oleksii Kyselov: Що заважає ПМу зростати? Розбір практичних кейсів (UA)
Oleksii Kyselov: Що заважає ПМу зростати? Розбір практичних кейсів (UA)
 
Yaroslav Osolikhin: «Неідеальний» проєктний менеджер: People Management під ч...
Yaroslav Osolikhin: «Неідеальний» проєктний менеджер: People Management під ч...Yaroslav Osolikhin: «Неідеальний» проєктний менеджер: People Management під ч...
Yaroslav Osolikhin: «Неідеальний» проєктний менеджер: People Management під ч...
 
Mariya Yeremenko: Вплив Генеративного ШІ на сучасний світ та на особисту ефек...
Mariya Yeremenko: Вплив Генеративного ШІ на сучасний світ та на особисту ефек...Mariya Yeremenko: Вплив Генеративного ШІ на сучасний світ та на особисту ефек...
Mariya Yeremenko: Вплив Генеративного ШІ на сучасний світ та на особисту ефек...
 
Petro Nikolaiev & Dmytro Kisov: ТОП-5 методів дослідження клієнтів для успіху...
Petro Nikolaiev & Dmytro Kisov: ТОП-5 методів дослідження клієнтів для успіху...Petro Nikolaiev & Dmytro Kisov: ТОП-5 методів дослідження клієнтів для успіху...
Petro Nikolaiev & Dmytro Kisov: ТОП-5 методів дослідження клієнтів для успіху...
 
Maksym Stelmakh : Державні електронні послуги та сервіси: чому бізнесу варто ...
Maksym Stelmakh : Державні електронні послуги та сервіси: чому бізнесу варто ...Maksym Stelmakh : Державні електронні послуги та сервіси: чому бізнесу варто ...
Maksym Stelmakh : Державні електронні послуги та сервіси: чому бізнесу варто ...
 
Alexander Marchenko: Проблеми росту продуктової екосистеми (UA)
Alexander Marchenko: Проблеми росту продуктової екосистеми (UA)Alexander Marchenko: Проблеми росту продуктової екосистеми (UA)
Alexander Marchenko: Проблеми росту продуктової екосистеми (UA)
 
Oleksandr Grytsenko: Save your Job або прокачай скіли до Engineering Manageme...
Oleksandr Grytsenko: Save your Job або прокачай скіли до Engineering Manageme...Oleksandr Grytsenko: Save your Job або прокачай скіли до Engineering Manageme...
Oleksandr Grytsenko: Save your Job або прокачай скіли до Engineering Manageme...
 
Yuliia Pieskova: Фідбек: не лише "як", але й "коли" і "навіщо" (UA)
Yuliia Pieskova: Фідбек: не лише "як", але й "коли" і "навіщо" (UA)Yuliia Pieskova: Фідбек: не лише "як", але й "коли" і "навіщо" (UA)
Yuliia Pieskova: Фідбек: не лише "як", але й "коли" і "навіщо" (UA)
 
Nataliya Kryvonis: Essential soft skills to lead your team (UA)
Nataliya Kryvonis: Essential soft skills to lead your team (UA)Nataliya Kryvonis: Essential soft skills to lead your team (UA)
Nataliya Kryvonis: Essential soft skills to lead your team (UA)
 
Volodymyr Salyha: Stakeholder Alchemy: Transforming Analysis into Meaningful ...
Volodymyr Salyha: Stakeholder Alchemy: Transforming Analysis into Meaningful ...Volodymyr Salyha: Stakeholder Alchemy: Transforming Analysis into Meaningful ...
Volodymyr Salyha: Stakeholder Alchemy: Transforming Analysis into Meaningful ...
 
Anna Chalyuk: 7 інструментів та принципів, які допоможуть зробити вашу команд...
Anna Chalyuk: 7 інструментів та принципів, які допоможуть зробити вашу команд...Anna Chalyuk: 7 інструментів та принципів, які допоможуть зробити вашу команд...
Anna Chalyuk: 7 інструментів та принципів, які допоможуть зробити вашу команд...
 
Oksana Smilka: Цінності, цілі та (де) мотивація (UA)
Oksana Smilka: Цінності, цілі та (де) мотивація (UA)Oksana Smilka: Цінності, цілі та (де) мотивація (UA)
Oksana Smilka: Цінності, цілі та (де) мотивація (UA)
 
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
 
Andrii Skoromnyi: Чому не працює методика "5 Чому?" – і яка є альтернатива? (UA)
Andrii Skoromnyi: Чому не працює методика "5 Чому?" – і яка є альтернатива? (UA)Andrii Skoromnyi: Чому не працює методика "5 Чому?" – і яка є альтернатива? (UA)
Andrii Skoromnyi: Чому не працює методика "5 Чому?" – і яка є альтернатива? (UA)
 
Maryna Sokyrko & Oleksandr Chugui: Building Product Passion: Developing AI ch...
Maryna Sokyrko & Oleksandr Chugui: Building Product Passion: Developing AI ch...Maryna Sokyrko & Oleksandr Chugui: Building Product Passion: Developing AI ch...
Maryna Sokyrko & Oleksandr Chugui: Building Product Passion: Developing AI ch...
 

Recently uploaded

In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi ArabiaIn Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
ahmedjiabur940
 
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
gajnagarg
 
Top profile Call Girls In Nandurbar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Nandurbar [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In Nandurbar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Nandurbar [ 7014168258 ] Call Me For Genuine Models...
gajnagarg
 
Gartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptxGartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptx
chadhar227
 
Abortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get CytotecAbortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
Top profile Call Girls In Indore [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Indore [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Indore [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Indore [ 7014168258 ] Call Me For Genuine Models We...
gajnagarg
 

Recently uploaded (20)

Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
 
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi ArabiaIn Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
 
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...Identify Customer Segments to Create Customer Offers for Each Segment - Appli...
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...
 
20240412-SmartCityIndex-2024-Full-Report.pdf
20240412-SmartCityIndex-2024-Full-Report.pdf20240412-SmartCityIndex-2024-Full-Report.pdf
20240412-SmartCityIndex-2024-Full-Report.pdf
 
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
 
Top profile Call Girls In Nandurbar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Nandurbar [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In Nandurbar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Nandurbar [ 7014168258 ] Call Me For Genuine Models...
 
Gartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptxGartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptx
 
Giridih Escorts Service Girl ^ 9332606886, WhatsApp Anytime Giridih
Giridih Escorts Service Girl ^ 9332606886, WhatsApp Anytime GiridihGiridih Escorts Service Girl ^ 9332606886, WhatsApp Anytime Giridih
Giridih Escorts Service Girl ^ 9332606886, WhatsApp Anytime Giridih
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
 
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
 
Abortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get CytotecAbortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get Cytotec
 
Nirala Nagar / Cheap Call Girls In Lucknow Phone No 9548273370 Elite Escort S...
Nirala Nagar / Cheap Call Girls In Lucknow Phone No 9548273370 Elite Escort S...Nirala Nagar / Cheap Call Girls In Lucknow Phone No 9548273370 Elite Escort S...
Nirala Nagar / Cheap Call Girls In Lucknow Phone No 9548273370 Elite Escort S...
 
Fun all Day Call Girls in Jaipur 9332606886 High Profile Call Girls You Ca...
Fun all Day Call Girls in Jaipur   9332606886  High Profile Call Girls You Ca...Fun all Day Call Girls in Jaipur   9332606886  High Profile Call Girls You Ca...
Fun all Day Call Girls in Jaipur 9332606886 High Profile Call Girls You Ca...
 
💞 Safe And Secure Call Girls Agra Call Girls Service Just Call 🍑👄6378878445 🍑...
💞 Safe And Secure Call Girls Agra Call Girls Service Just Call 🍑👄6378878445 🍑...💞 Safe And Secure Call Girls Agra Call Girls Service Just Call 🍑👄6378878445 🍑...
💞 Safe And Secure Call Girls Agra Call Girls Service Just Call 🍑👄6378878445 🍑...
 
High Profile Call Girls Service in Jalore { 9332606886 } VVIP NISHA Call Girl...
High Profile Call Girls Service in Jalore { 9332606886 } VVIP NISHA Call Girl...High Profile Call Girls Service in Jalore { 9332606886 } VVIP NISHA Call Girl...
High Profile Call Girls Service in Jalore { 9332606886 } VVIP NISHA Call Girl...
 
Digital Transformation Playbook by Graham Ware
Digital Transformation Playbook by Graham WareDigital Transformation Playbook by Graham Ware
Digital Transformation Playbook by Graham Ware
 
Dubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls DubaiDubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls Dubai
 
Aspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - AlmoraAspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - Almora
 
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...TrafficWave Generator Will Instantly drive targeted and engaging traffic back...
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...
 
Top profile Call Girls In Indore [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Indore [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Indore [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Indore [ 7014168258 ] Call Me For Genuine Models We...
 

Богдан Павлишенко (Bohdan Pavlyshenko) - "Linear, Machine Learning and Probabilistic Approaches for Predictive Analytics"

  • 1. Linear, Machine Learning and Probabilistic Approaches for Predictive Analytics B.M.Pavlyshenko (Ph.D.) SoftServe, Ivan Franko National University of Lviv e-mail: b.pavlyshenko@gmail.com
  • 2. Linear Regression 𝑦 𝑥, 𝒘 = 𝑤0 + 𝑗=1 𝑀−1 𝑤𝑗 ∅ 𝑗(𝑥) 𝑡 = 𝑦 𝑥, 𝒘 + 𝜀 𝑝 𝑡 𝑥, 𝑤, 𝛽 = 𝑁 𝑡 𝑦 𝑥, 𝒘 , 𝛽−1 𝒘 = ( )Φ 𝑇Φ −1Φ 𝑇 𝑡 Φ = )∅0(𝑥1 )∅1(𝑥1 ⋯ )∅ 𝑀−1(𝑥1 )∅0(𝑥2 )∅1(𝑥2 ⋯ )∅ 𝑀−1(𝑥2 ⋮ ⋮ ⋱ ⋮ )∅0(𝑥 𝑁 )∅1(𝑥 𝑁 ⋯ )∅ 𝑀−1(𝑥 𝑁 𝐸 = 1 2 𝑛=1 𝑁 𝑡 𝑛 − 𝒘 𝑻∅(𝒙 2 + 𝜆 2 𝒘 𝑻 𝒘 𝒘 = ( )λ𝐈 + Φ 𝑇 Φ −1 Φ 𝑇 𝑡 𝐸 = 1 2 𝑛=1 𝑁 𝑡 𝑛 − 𝒘 𝑻∅(𝒙 2 + 𝜆 2 𝑗=1 𝑀 𝑤𝑗
  • 3. Sampling 𝑝 𝒘 𝐷 = 𝑝 𝐷 𝒘 𝑝(𝒘) 𝑝(𝐷) 𝑝 𝐷 = 𝑝 𝐷 𝒘 𝑝 𝒘 𝑑𝒘 𝐸(𝑓 𝑧 ) = 𝑓 𝑧 𝑝 𝑧 𝑑𝑧 𝑧𝑖|𝑖 = 1, … , 𝐿 𝑓 = 1 𝐿 𝑖=1 𝐿 𝑓(𝑧𝑖) Bayesian Inference 𝑡 = 1,2, … , 𝑇 𝒛 = 𝑧𝑖|𝑖 = 1, … , 𝑀 𝑧1 𝑡+1 ~𝑝 𝑧1|𝑧2 𝑡 , 𝑧3 𝑡 , … , 𝑧 𝑀 𝑡 𝑧2 𝑡+1 ~𝑝 𝑧2|𝑧1 𝑡+1 , 𝑧3 𝑡 , … , 𝑧 𝑀 𝑡 𝑧𝑗 𝑡+1 ~𝑝 𝑧𝑗|𝑧1 𝑡+1 , … , 𝑧𝑗−1 𝑡+1 , 𝑧𝑗+1 𝑡 , … , 𝑧 𝑀 𝑡 𝑧 𝑀 𝑡+1 ~𝑝 𝑧 𝑀|𝑧1 𝑡+1 , 𝑧2 𝑡+1 , … , 𝑧 𝑀−1 𝑡+1
  • 6. { Typical time series of store sales LINEAR MODELS AND MACHINE LEARNING APPROACHES
  • 7. Time series forecastings by different methods
  • 8.
  • 9. Time series forecastings by different methods
  • 10.
  • 12.
  • 13.
  • 14. BAYESIAN INFERENCE Density of distributions of regression coefficients. Box plots for regression coefficients
  • 15.
  • 16.
  • 17. Winner Solution for Grupo Bimbo Inventory Demand Kaggle Competition
  • 18.
  • 19.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26. Analysis of Perishable Products Sales Using Bayesian Inference
  • 27.
  • 28.
  • 29.
  • 30. Profit = SoldAmount*(Price – MarginalPrice) – UnsoldAmount* MarginalPrice
  • 31.
  • 32. Machine Learning, Linear and Bayesian Models for Logistic Regression in Failure Detection Problems
  • 33. MACHINE LEARNING MODEL The most important features and their gain values: Matthews correlation coefficient (MCC) :
  • 34. MACHINE LEARNING MODEL ROC curve for classification results AUC=0.753 Matthews correlation coefficient for logistic regression for different values of probability threshold.
  • 35. ROC curve and Matthews correlation coefficient for different sets of features MACHINE LEARNING MODEL Features set 1: AUC=0.75 Features set 2: AUC=0.91
  • 36. Dependence of Lambda from AUC value. Coefficients of the generalized linear model for logistic regression (Lambda=0.03 ) GENERALIZED LINEAR MODEL
  • 37. BAYESIAN MODEL model{ for (i in 1:n) { y[i] ~ dbern(p[i]) logit(p[i]) <- b0+inprod(b[ ],x[i,]) } b0 ~ dnorm(0,0.0001) for (j in 1:nfeat) { b[j] ~ dnorm(0,0.0001) } } Probabilistic model for logistic regression using BUGS syntax
  • 38. BAYESIAN MODEL Trace plot for Intercept parameter. Probability density function for Intercept parameter.
  • 39. BAYESIAN MODEL Box plots for logistic regression coefficients.
  • 40. Combining Machine Learning with Linear and Bayesian Models
  • 41. Forecasting of Social, Market and Financial Trends
  • 42. The formation of keyword frequent sets with the biggest support value The analysis of financial tweets
  • 43. The analysis of financial tweets The analysis of causal relationship between the frequent sets in tweets and Apple stock prices. The results obtained show that it is possible to predict stock prices on the basis of data mining of informational streams in social networks.
  • 44. The examples of test studies of semantic concepts in Twitter messages Royal baby’s name forecasting The name George was dominating in the spectrum of names before the official announcement.
  • 45. The examples of test studies of semantic concepts in Twitter messages Royal baby’s name forecasting 10 first frequent sets were created by five names, the three of which are the components of Prince’s full name George Alexander Louis.
  • 46. The examples of test studies of semantic concepts in Twitter messages The Royal baby’s name forecasting Users’ societies, which formed the discussion trends.
  • 47. Bitcoin Price Forecasting Using Models with Experts Opinions
  • 48.