SAP Analytics Cloud
SAP Analytics Cloud
TRAINING
Anubhav Oberoy
www.anubhavtrainings.com
www.anubhavtrainings.com
What is SAC –
www.anubhavtrainings.com
All topics at one single place – clear direction
Build Story
The need is to show all the states on a geo
map and display the total no. of beds in each
hospital
Display the bed break-ups per hospital over Y-o-
Y basis
www.anubhavtrainings.com
Our expected result
www.anubhavtrainings.com
Easy Step by Step - Story Building
www.anubhavtrainings.com
FAQs
1. Is there any pre-requisite to learn?
With anubhav trainings there is zero pre-requisite as we will cover all of it from beginning, which includes fundamentals of SAP cloud platform, BW, analytics, BI,
DB, HANA and S/4HANA introduction.
2. What are all covered in this course?
Everything you need to know as per SAP SAC certification which includes BI, planning, predictive, designer, digital boardroom, live connection and
Administration. (All-in-one)
3. Where do I practice (server access)?
SAP offering free trial for SAC where you can practice, we will provide all datasets to build stories of BI, planning, ML and analytic designer.
4. Will you show Live data connection, if yes which systems?
We will see live connection with S/4hana, BW, BPC and with HANA in cloud.
5. How to enroll for the course and what is the duration?
Duration is 40 hours, please email us on [email protected] to enroll for this course
6. Where can I find detailed course content.
For more Details
Its on our course page : https://www.anubhavtrainings.com/sap-analytics-cloud-training
7. Will I get study material also?
Visit
We will provide link to study material offered by SAP with public domain links. https://www.anubhavtrainings.com
8. Is training real time?
Yes, we will cover all real time scenarios with case studies, exercises, and scenarios.
9. What about SAC certification?
We will cover a unit where we explain about certification topics, exam code, and tips to crack.
10. Can I also attend the course in video mode in case I miss a class?
Yes, we have all the Live classes which are recorded and you can watch them after the sessions.
www.anubhavtrainings.com
What is On-premise and Cloud?
An on-premise software requires following
- Hardware to be purchased 3 Lakh Customers
- Networking to be setup 30 k partners
- License needs to be bought by paying lump-sum
- Hire professionals to maintain the system and health of the solution
65% of world GDP
- Upgrade and new patches is on customer to apply
- Initial investment is very high
- Scalability is difficult to achieve
Example: SAP ECC, Outlook, Office, SAP BW, SAP BOBJ, SAP BI, SAP S/4HANA … (Large corporations)
Cloud Solution
- Consume the software as a Service (SaaS)
- No installation required in your co.
- No hardware, hire any security and networking workforce
- Complete software is managed by Vendor including upgrades
- Pay per use, pay per user
- Low TCO, Fast adaption, faster innovation
Example – Gmail, SAP S/4HANA Cloud, SAP Analytics Cloud (SaaS) (SAC)
www.anubhavtrainings.com
What does Cloud Offers?
The app we share with our end user and they can access it over
SaaS – Software as a Service internet w/o any installation in their system
e.g. Gmail, SAP Analytics Cloud
Allows you to support for programming
(programming, DB, Scaling, Q, dis, proxy..)
PaaS – Platform as a Service ESo2, ocean cloud, cloud 9, SAP Cloud Platform
NEO (SAP) and Cloud Foundry (AWS,MAZ,Google)
The Infrastructure and apps also are use on sharing basis. Each customer who is sharing these resources is
called tenant.
www.anubhavtrainings.com
What is SAP Cloud Platform?
SAP Cloud Platform is a platform as a service which provides support for developing
applications in the cloud. It offers so many services like DB, Prog.,Monitoring. It is available in
2 options –
1. Neo (SAP owns the IaaS)
2. CF (Infrastructure is AWS, G, MAZ)
Data Center or Region cloud vendors to achieve scalability & elasticity and compliance, they
have servers across globe. Check Data Centers and offerings here
SAP Analytics cloud is Software as a Service which is also hosted/offered by SAP Cloud Platform.
www.anubhavtrainings.com
What is HANA and S/4HANA?
HANA stands for High Performance Analytical Appliance. It is an in-memory database. SAP also added more capability in this DB like
programming support, Enabled built-in machine learning capability (EML), added predictive capability (PAL). Hence HANA is called now as
platform.
S/4HANA is a latest SAP ERP solution introduced in 2015. It also offers 2 ways of deployment
1. S/4HANA
2. S/4HANA Cloud
Responsive App – An application which adapts itself according to device.
Presentation Presentation
SAPGUI I/O SAP Fiori Apps
New ERP
2015 going Application Layer (Basis)
Application Layer (Basis) Processing (S/4HANA –
to be the
Processing (ECC – functionality) functionality)
future of SAP
ERP
www.anubhavtrainings.com
What is SAP Analytics Cloud?
A SaaS which allows the business users/CIOs/Decision Makes to take Informed and confident decisions.
Decision making = based on data
Confident decision = Insight
Turn insight to action
SAC enables the intelligent enterprises by providing everyone with the insight to make confident
decisions and take immediate action. A solution which is
Complete – its one solution – all analytical capabilities – BI, Planning, Predict and Designing
Contextual – Gain enterprise ready insight and take actions
Confident – Make smarter decisions with AI-driven insights w/o learning complex algo.
www.anubhavtrainings.com
History of SAP SAC?
Mid 2013 – Project Orca
www.anubhavtrainings.com
SAC Strategy - Principles of Convergence
We are converging use-cases not features and functions
SAP BI 4.x continue to work and maintained 4.3 (investment is still ON)
No force migration
Exceptions:
The support for ADOBE flash is ending in Dec 2020
SAP BOBJ Explorer
SAP BOBJ Dashboard
SAP BOBJ Desktop intelligence – Dec 2018
www.anubhavtrainings.com
Impact on Existing Solution – BI Strategy
Data discovery
*SAP BOBJ Explorer
Rombi SAP SAC
Lumira Desktop/Discovery
BOBJ Analysis for OLAP
Office integration
Live Office Analysis Office
EPM Add-in
Bex Analyser
www.anubhavtrainings.com
Impact on Existing Solution –
Planning Strategy
www.anubhavtrainings.com
Impact on Existing Solution – Prediction
SAP Data intelligence solution – Develop machine learning models and can be applied on
your ERP dataset.
Going forward all the data intelligence development starring 2018 were channelized to SAP
SAC.
www.anubhavtrainings.com
Why SAC is important as compare to outside market
www.anubhavtrainings.com
How SAC is advanced from its Competitor
WORKDAY
SAP – SAP ANALYTICS ORACLE MICROSOFT (Power THOUGHTSPOT* SALESFORCE +
CAPABILITIES CLOUD (OAC) BI) needs updating
(Adaptive Insights + ANAPLAN
TABLEAU
Prism Analytics)
Has this capability Has some of this capability Does not have this capability
www.anubhavtrainings.com
SAP SAC Architecture
Applications SAP Digital Boardroom SAP Analytics Hub Mobile Experience SAP App Center
www.anubhavtrainings.com
Embedded Standard Content
72 Packages 65 Packages
by SAP by Partners
SAP S/4HANA SAP data sources
SAP C/4HANA Non-SAP data sources
SAP SFSF
SAP Concur
SAP Ariba
etc..
Accelerate your Enterprise Analytics projects with pre-built analytics from SAP and our Partners
www.anubhavtrainings.com
Business content delivered by SAP
Line of Business
SAP S/4HANA for Financial Products Subledger – Real Estate
Advanced Compliance Reporting Reporting Retail (Model Company Fashion for Vertical Business)
Business ByDesign (Finance and Procurement) Sales Cloud for SAP S/4HANA (BPE)
Environment, Health and Safety Sales Performance and Target Planning (CRM) Retail (Model Company Core Retail)
Field Service Management Sales Cloud for SAP S/4HANA Cloud (BPE) Retail (Omnichannel Article Availability and Sourcing)
Finance SAP Sales Planning for SAP S/4HANA Cloud Rural Sourcing Management
Finance Account Receivable – Invoice Payment Forecasting. Service Cloud Analytics (CRM) Utilities
Finance Contract Accounts (FI-CA) Solution Manager: Test Suite Analysis
Finance – Live based on Semantic Tags
Solution Manager IT Service Management Analytics Packages that include Planning
Financial Consolidation for SAP S/4HC Cloud (BPE) Sports One Analytics
Financial Planning & Analysis for SAP S/4HANA Cloud Sports One Analytics (German) Banking
FI Operational Expense Planning Trade Management Chemicals
Goods and Services Tax GST Analytics Travel & Expense – Concur
Human Resources (SuccessFactors) Treasury Management Finance
Human Resources (SuccessFactors) – Simplified Chinese Localization Vendor Management System (Fieldglass) Financial Planning & Analysis S/4HC (BPE)
Human Resources (SuccessFactors) (BPE) Workforce Planning for S/4HC (BPE) FI Operational Expense Planning
Human Resources Salary Planning High Tech
Intelligent Asset Management Industry Human Resources Salary Planning
Integrated Financial Planning for SAP S/4HANA Integrated Financial Planning for SAP S/4HANA
Agriculture Origination, Trading and Risk Management
Liquidity Planning for SAP S/4HANA Cloud Liquidity Planning for SAP S/4HANA Cloud (BPE)
SAP Marketing (New) Oil & Gas
Manufacturing S/4HC (BPE) Banking Product Cost Planning
Procurement Chemicals Project Budgeting & Planning S/4HC (BPE)
Procurement for SAP S/4HC (BPE) Consumer Products Project Staff Planning
Product Cost Planning Customer Profitability Analysis Sales Performance and Target Planning (CRM)
Project and Portfolio Management Engineering, Construction, & Operations Sales Planning for SAP S/4HANA Cloud (BPE)
Project Budgeting & Planning S/4HC (BPE) Health Care Travel & Expense (Budget Planning)
Project Staff Planning High Tech (New) Workforce Planning for SAP S/4HC (BPE)
Receivables Management for S/4HANA Cloud (BPE) Industry Innovation Kit – Leonardo Zero Waste
SAP Finance – Contract-based revenue recognition (CBRR)
SAP Financial Products Subledger IFRS17 for S/4HANA (New)
Insurance
Mill Products Further information can be found
SAP Integrated Business Planning
SAP Intelligent Asset Management
Mining
Oil & Gas in the following blog
SAP Qualtrics - Customer Satisfaction Score Professional Services S/4HC (BPE)
SAP Qualtrics - Survey distribution and Analysis Public Sector
SAP Supply Base Optimization Public Services: Higher Education and Research
www.anubhavtrainings.com
References
SAP Analytics Cloud Product Roadmap
SAP Analytics Cloud Help Documentation
SAC Webinars
Help Library
Free learning videos
What’s new with SAP SAC
SAC YouTube Playlist
SAC Admin guide for Live connection
https://www.sapanalytics.cloud/plans/
Register for your SAP SAC Server
https://blogs.sap.com/2019/06/24/webinar-summary-sap-bi-roadmap-update-with-saps-patrick-sims/
Coming Friday
- Analytics HUB – Standard Content – Live Connection with BW, BPC and HANA
- Digital board room
www.anubhavtrainings.com
SAP Analytics Cloud Certification –
C_SAC_2008
• One SAP Analytics Cloud Certification (SAP Certified Application Associate - SAP
Analytics Cloud) was rolled out in December 2019.
• This certification proves that the candidate has an overall understanding and
technical skills to participate as a member of project team.
https://www.anubhavtrainings.com/sap-analytics-cloud-training
www.anubhavtrainings.com
SAP Analytics Cloud – BI Features
BI – Business Intelligence
BI comprises the strategies and technologies used by enterprises for data analysis on historic and
present data for finding pattern and taking future decision.
BI is now leveraging Machine learning which is a field of AI to also take confident decision.
Process of applying BI
Visualize –
Requirement Prepare
Access data Building Predict Share
Collection Modeling
Story
www.anubhavtrainings.com
Understand Data Types – Dimensions &
Measures
aster Data – data which does not change frequently, create TRs. Employee – Master data
mension
ompanyCode Name
Empid Name
IBM Transaction data (facts) – numeric value
1001 Anubhav
SAP
Measure - KPI
SoId Company Amount Curr Emp Pid 1002 Jack
Facebook
1 X 520 USD 1001 P1 1003 Ananya
2 Y 950 EUR 1001 P1
3 Z 500 EUR 1001 P2
4 X 9000 INR 1003 P3
5 Z 1500 JPY 1003 P4
6 Y 7500 USD 1003 P4
APJ 3800
India 1800
Rajasthan 600
EMEA kota 200
Maharashtra jaipur 400
NA
singapore 2000 1200
SA www.anubhavtrainings.com
Prediction – Types of Data Types
Data Type
Categorial Continuous
Dimension Measure
www.anubhavtrainings.com
Different Types Of Models
Model is the foundation which is built using data or Connection in SAP Analytics Cloud for
building Stories.
Why we use model
- Data wrangling, cleansing
- Blending
- Hierarchy
- Adding new Dimensions and Measures
- Aggregations and Exp. Agg.
Types of models in SAC
Embedded V/s Public
Analytics v/s Planning
Acquired V/s Live
www.anubhavtrainings.com
Model Types
Embedded V/s Public
• Embedded models are only used by one story
• Public Models can be used by Multiple Stories – Reusable
www.anubhavtrainings.com
Funda Fox
• The pre-requisite to make sure that you design a good dashboard to take right decision is that your
data must be proper
• In case there are data anomalies (blank, errors) you can use data wrangling to correct it.
• In SAC, when we create Story we have 3 types of pages
Canvas Page – Desktop based stories
Responsive Page – Used to create story which works on all devices (mobile)
Grid – Desktop but looks like a Table only
• Ideally all dataset corrections must be done in Source of data, SAC should be used for minor
available wrangling and transformation options
Story
panel
panel widgets
widgets
Pages Panels
panel widgets
widgets
panes
www.anubhavtrainings.com
Types of filters
- Story filter - Filter data at entire story level
- Page Filter - Filter data at page level
- Widget filter - Filter data at widget level
Funda Fox
It is possible to convert Story filters to page filter and vice-versa
www.anubhavtrainings.com
Open Question
www.anubhavtrainings.com
Public Model
A public model in SAP analytics cloud can be of type planning or analytics. The main purpose is to allow
data to consumed by multiple stories unlike the embedded model which is only used by ONE story.
There 3 data sources to choose from
1. Manually – Using Blank Model option
2. Flat file
S/4HANA
3. Data Source
1 trillion
www.anubhavtrainings.com
Hierarchy
It is a tree data structure to represent data with its relationship to the parent.
1. Level based hierarchy
Used when we want to create parent-child relationship between MULTIPLE
dimensions. All the parent nodes will become an property of the child
dimension.
2. Parent-child hierarchy (easy to edit)
Real Parent child relationship which is actually between 2 dimensions, but there is
workaround with which we can also create parent-child hierarchy using MULTIPLE dimension.
www.anubhavtrainings.com
Point of interest Layer
A point of interest layer in SAC provides us geo location which is under interest example which are all
the locations, we have our offices, plants, machines, trucks and depots..
1. Using a dbf and shp (Shape files) file
2. Using a model which has geo coordinates already enriched
3. Using a file directly
www.anubhavtrainings.com
Variance
Variance allows us to compare a measure based on time/version dimension, this gives the big picture at
the level of overall performance.
www.anubhavtrainings.com
Smart Assist Portfolio of SAC
Time Series
Smart Discovery Forecasting Smart Grouping
www.anubhavtrainings.com
Smart Assist Feature
Search to insight : also known as augmented analytics, in this option we ask questions in natural
languages to SAC and system will automatically produce charts for us. These results can easily be
copied to our story pages.
Smart Discovery : Allows us to use complete, powerful, in-built, computerized data scientist. It can
generate complete story pages, find unusual data, discover hidden patterns and prepares multiple slice
of data in different story pages. Applied at measure level and generates 4 story pages.
Smart Insight: allows us to find the most contributing dimension on a particular measure, e.g. if I have
population per country, when I apply smart insight, system will confirm that china and India are the top
contributors to the population. We can further drill down to see more contributions from different
measure and dimensions side. Applied at a single chart level.
Automatic Forecasting: done on measures which are changing over the time axis and when we apply
the auto forecast, we can also choose algo. Which system should use to apply forecast
- Linear regression - triple smoothening
www.anubhavtrainings.com
Smart Assist
Smart Grouping: divides the data sets in to the group of data clusters so that we can analyze and
segregate a particular group of points.
Requirement: Want to develop a scenario where I want to see emp sal distribution by position. But this
pie chart distribution we want to see per region (APJ, EMEA, NA). Do I need to create now 3 pie charts
with filter on region, or is there any easy way.
Trellis
Exception Aggregation:
An aggregation on a measure which is based on a dimension. In SQL world we have a concept of
GROUP BY clause, the exception agg. Is exactly the same.
SELECT SUM(SALES) from sales_order – Aggregation - SUM
SELECT COUNTRY, SUM(SALES) FROM sales_order GROUP BY COUNTRY – Exception Aggregation
Dimension – COUNTRY
www.anubhavtrainings.com
Smart Feature Support Matrix
www.anubhavtrainings.com
Planning
Planning is a fundamental management function, which involves deciding beforehead, what is to be
done, when it will be done, how it is done and who is going to do it. It is an intellectual process which
lays down an organization’s objectives can achieve those goals. It chalks out exactly how to attain a
specific goal. For example: how many people I need to hire in sales to achieve 20 bn sales this year.
Planning is performed for various functions of a company, such as sales planning, expense or cost
planning, and core financials planning to report your numbers to shareholders. HR plans for people at
all suggested levels (like Managers, VP, SVP, Associates). Planning helps us to increase coordination
and onerous task at any company.
www.anubhavtrainings.com
Planning Process
What-if/
Predictive Value Driver
Modelling update/ Allocation Collaboration
forecast Tree
visualization
1. Direct Entry
2. Distribution/spreading
1. Collect data
3. Variance chart
2. Model dimensions
4. Copy/paste of data
3. Import data
5. Threshold
4. Currency setting
6. Asymmetric reports
conversion rates
7. Formulas
8. Forecast
www.anubhavtrainings.com
Planning Evolution with SAC
www.anubhavtrainings.com
Planning Jargons
Revenue: Total amount of goods and
services produced by organization in a given
span of time. – GDP (country)
Gross Revenue: Total income earned by co.
in specific period
Indicates potential for growth
Revenue = Units X Price of a product
Net Revenue-
gross Revenue – discounts – returns
Helps business to minimize expenses
Gross Profit = net revenue – cost of goods (raw, machines, labor, packaging, shipping)
Gross Margin % = Gross Profit / Net Revenue
Operating Profit % = Operating income / Net Revenue
Operating Expense Ratio % = Operating Expense / Net Revenue
www.anubhavtrainings.com
Planning Data Specifications
1. Planning data always have Version ( Categories: Actuals, Forecast, Budget,….)
Actuals: Current facts data which is most recent or could be past experiences based on reality.
Transaction data.
Budget: budgeting is the financial direction of where management wants to take the company, helping
qualify the expectation of revenues that business want to achieve for the future period. This decides
our companies top line and bottom line.
Forecast: tells whether the company is headed in the right direction, estimating the amount of
revenue and income that will be achieved in future. Market statement.
2. It is mandatory to have TIME/DATE dimension for the planning model
3. We can have the Organization Dimension also known as ENTITY (Location of the business entity)
Regions->Country->States->Cities->Entity Code, Currency
www.anubhavtrainings.com
Account Dimension…
4. Account Dimension –
- Represent an account in balance sheet like.
- Operating profit, loss, expenses, gross margin, revenue, operating income.
- Account dimension always have Parent-child hierarchy automatically built.
- It is used to record and aggregate values together. Actual Measure belongs to a/c imension.
- Each a/c has contribution to the balances while projecting the data
+ve – INC, INTINC
-ve – EXP, INT
Neutral - NFIN
5. We can apply currency conversion on the finance data dependent on exchange rates
Average, Fix
If we have only 2 dimensions together to be joined in hierarchy – Parent-child hierarchy
Emp Manager relationship
If we have more than 2 dimensions to be joined together – Level Based Hierarchy
Office location, city, country, region
www.anubhavtrainings.com
Requirements
1. What-If analysis
Where the business will ask us, what will happen to our accounts in case a change in one of the
account happens by some % or absolute value.
- Increase of a account by some %
- Distribution & Spreading
- Variance Chart
2. Updates
Suppose we wanted to add a new product, new resource, new machine etc. to our existing data set,
since it’s a new entity, the system will not have data but we can take indications from similar entity and
apply update of the data.
www.anubhavtrainings.com
Planning features..
Asymmetrical Report – will allow us to use any one the account dimension values to be calculated
based on filters and other account dimensions. The data will be presented in form of a table report.
HANA SQL Function Guide
http://sap.optimieren.de/hana/hana/html/sqlmain.html
https://help.sap.com/viewer/4fe29514fd584807ac9f2a04f6754767/2.0.03/en-US/20a61f29751910149
f99f0300dd95cd9.html
www.anubhavtrainings.com
Data Actions
In the Planning, data actions helps end users/planning experts to perform complex tasks with the click
of a button. E.g. if we would like to distribute, copy, calculate data in a planning data model, the user
has to manually change values in the report. All of this can be achieved by defining a data action with
the click of a button.
www.anubhavtrainings.com
Why Digital Boardroom?
Why digital boardroom?
Since our co. is using so many different solutions, SAP & Finance HR
Non_SAP with heterogeneous technologies. As a Board
Marketing Travel
member, my challenges is Transparency and connected
insight. Sales SRM
What & Types of Boardroom Presentations
Allows us to integrate different stories (planning, bi) on a single large screen device. Which
helps us to take confident decisions.
1. Agenda – used to present data in a flow
2. Dashboard – free flow
*the digital boardroom is only available in SAC productive version.
www.anubhavtrainings.com
Digital Boardroom - Benefits
Total transparency Instant data driven insights
Simplified boardroom proces
• Get a complete picture of the company • Answer ad-hoc questions on-the-fly to • Transform the boardroom experience
situation in real-time better understand the business for better outcomes
• Visualize in-context insights to performance • Reduce boardroom meeting
maximize impact on the audience • Analyze root causes to identify business preparation time and effort
• Align executive decisions on one source risks and opportunities in real-time • Leverage predefined best practices to
of truth across business areas • Simulate impact of potential decisions accelerate time to value
to financials and operations
www.anubhavtrainings.com
Benefits
www.anubhavtrainings.com
Use Case
Core functions
Real-time data Authentication ・
Model management Collaboration Mobile Access Data security
access SSO
www.anubhavtrainings.com
Demo of Digital Boardroom
1. Create an Agenda
In our company there a Board of director’s meeting which is going to held this afternoon. The agenda of
the meeting is to observe the pulse of the business and following will be presented by top leaders of our
co.
Fred Smith – 10 AM – overview of the co. real-time
Celine – 10.30 AM – HR and Travel and expense
Ryan Dyal – 11 AM – Sales and Marketing data
2. Create a dashboard
www.anubhavtrainings.com
SAP Intelligent Enterprise Strategy – decision
making
Employees
Act accordingly
Data engineer
Collect and track
Data scientist
Predict using models
www.anubhavtrainings.com
SAP Intelligent Enterprise Strategy
www.anubhavtrainings.com
What is Machine Learning?
It is a field of study that gives computers the capability to learn w/o being programmed explicitly.
e.g. Amazon
Search for Shoes
Does amazon hire a person to check your search and next time show you the similar result.
Huge human effort
data
output input
Computer
program Computer Program
Expected
output Rule
Model
www.anubhavtrainings.com
Process to identify a model
Marks Result Training
9 Pass Computer
IF Marks >= 5
2 Fail Then PASS
Machine Learning
3 Fail Tries to identify the Else FAIL
5 Pass best model with Model
8 Pass highest accuracy
4 Fail Marks Actual Marks Pre
Validation - 3 Res
7 Pass Result
IF Marks >= 3 3 Pas
3 Fail Then PASS
5 Pass 5 Pas
Else FAIL – 80%
7 Pass Model 7 Pas
10 Pass 10 Pas
2 Fail 2 Fail
www.anubhavtrainings.com
Model and techniques
Modeling is a process by which machine learning tries to find/create Best model for your use case. The
model is created to predict an outcome. Model evaluation is an integral part of model development
process. In order to find best model, we use mathematical algorithms. There are 2 ways we can use to
detect the model
Hold-out – Large dataset
The entire data (outcome is known) is divided into 2 parts. First is called training dataset and second
validation dataset. With the help of training dataset we train the computer by applying algorithm and
derive a model. If we apply different algo’s we get different models.
In the validation process, we pass the validation dataset to these models and compare the accuracy.
This is how we know which model works good with our dataset.
Cross-Validation
When only limited data, to achieve an unbiased estimate of model performance, we use cross-
validation. We divide data in k parts, each time one k set will be out of the sampling.
www.anubhavtrainings.com
Types Of machine learning
1. Supervised ML
Train the model model, Validate the model, Retry, Retrain
Algo: Decision Tree, Native Bayes, Logistic Regression, Linear/Multi Regression, SVM…
Scenario- Regression and Classification are examples of Supervised Learning.
2. Unsupervised
Let machine work on the data like a Child to explore Huge amount of data and make model out of it.
Algo: K-means, Hierarchical, Apriori, Generic Algo, Trend Analysis
Scenario – Time Series
3. Re-inforcement learning
Candy-Stick Approach, If you do good – candy , if you not study – stick
Robotics
www.anubhavtrainings.com
Difference between Analytics and Predictive
analytics
Analytics: is used to create visualization on historic data that will give us just insight. Just as-is state.
Predictive Analytics: When we want to predict forecast/future, we use predictive analytics. The future
state.
When we put analytics with predictive analytics, we get a large vision.
Prediction will be done based on past events and experiences to take us to future. It is very important
to choose historic data correct to portrait the future correctly.
Before we apply machine learning, we need to ask 3 questions
1. Business need
2. Business Goal Which scenario to use
3. Output expected by decision we make
www.anubhavtrainings.com
Classification Scenario
Scenario 1: I want to run a marketing campaign but the no. of customers are huge. if I run the
marketing campaign for all my customers randomly 10mn, the cost is too high and it is very
unlikely that all 10mn will respond positive to my campaign.
10 X 20% = 2mn
We want to divide the customers in 2 groups,
1 - positively responder – high probability to respond
0 – not respond at all
When we want to classify the group of members (population) into 2 groups (0,1 – binominal) this type of
problem is called classification. The rule which is used to solve this problem is called Classification Rule.
Concept of Dependent and Independent
Variables
Requirement: Based on different health check results, predict whether the patient have a heart
diseases or not?
Chest Pain Good Sugar Wt… Has Heart
Blood disease?
Circulation
Yes No Yes Yes Yes
No Yes NO No No
Yes No No No No
No Yes No Yes No
www.anubhavtrainings.com
How to determine accuracy
What is Classification and when to use?
When the dependent variable is binominal we use classification.
Regression?
When the dependent variable is continuous(number), we use the regression.
Suppose we applied different-different algorithms to get predications. How to determine, which model
is good for my dataset or not.
There are different ways to determine accuracy of our model
1. Confusion matrix – to avoid confusion of which model is best
2. ROC Charts
3. AUC Charts
www.anubhavtrainings.com
What is confusion matrix?
I did a sampling of 200 patients and we provide this validation data set(actual result is known
to us) to a model, the model produced predicted output for these 200 patients. Now we write
a confusion matrix to detect the accuracy of the model
www.anubhavtrainings.com
F1 Score
ROC and AUC
ROC – Receiver Operating Characteristic Curve – it is a curve between TRP v/s FPR
www.anubhavtrainings.com
Logistic Regression Curve - Classification
1
0.9
0.8
0.7
0.6
se 0.5
0.4
0.3
0.2
0.1
0
weight
Red – actual not obese
Blue – actual obese
www.anubhavtrainings.com
1
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0
Confusion Matrix for the different Threshold
Threshold Value: 0 Threshold Value: 0.1 Threshold Value: 0.2 Threshold Value: 0.5
Actual Is fat Is not Actual Is fat Is not Actual Is fat Is not Actual Is fat Is not
Predicted 1 fat 0 Predicted 1 fat 0 Predicted 1 fat 0 Predicted 1 fat 0
Is Fat
1 4 4 Is Fat
1 4 3 Is Fat
1 4 2 Is Fat
1 3 1
Is not
fat 0 0 0 Is not
fat 0 0 1 Is not
fat 0 0 2 Is not
fat 0 1 3
Threshold Value: 0.7 Threshold Value: 0.8 Threshold Value: 0.9 Threshold Value: 1
Actual Is fat Is not Actual Is fat Is not Actual Is fat Is not Actual Is fat Is not
Predicted 1 fat 0 Predicted 1 fat 0 Predicted 1 fat 0 Predicted 1 fat 0
Is Fat
1 3 0 Is Fat
1 2 0 Is Fat
1 1 0 Is Fat
1 0 0
Is not
fat 0 1 4 Is not
fat 0 2 4 Is not
fat 0 3 4 Is not
fat 0 4 4
(TPR, FPR) (TPR, FPR) (TPR, FPR) (TPR, FPR)
ROC – Receiver Operating Characteristics
Chart
1
0
1
www.anubhavtrainings.com
SAP Analytics Cloud Presents Model as below
Perfect Model
Random
1 sampling
0
Population % 1
www.anubhavtrainings.com
Student Marks
Roll No Name Qans Study Tutorials Marks
Time attended
1 Anu 15/20 8 Hrs 200/230 78%
2 Ananya 20/20 10 Hrs 150 90%
3 Rahul 5/20 8 Hrs 200 60%
4 Somumi 3/20 5 Hrs 230 50%
5 Parag 1/20 10 Hrs 150 40%
6 Jack 0/20 0 Hrs 0 0%
Classification Demo Scenario
Please refer the specification document shared by Anubhav.
www.anubhavtrainings.com
Profit Simulation
12.4 % employees are contacted and we can detect 39.6 % positive targets
If we contact 258 employee, we can detect 102 employees who has high probability to leave.
Total Employees are 8000
If I did not have ML
Total Contacts – 8000X12.4% = 992 Employees I have to contact w/o ML
With ML Cost – 258 X 1$ = 258 $
With ML saving – 102 X 10$ = 1020 $ Saving
Profit – 1020 – 258 = 762 $ of saving
www.anubhavtrainings.com
Kinds of Regression
Simple Regression Multiple Regression
www.anubhavtrainings.com
Matrices to check regression quality
www.anubhavtrainings.com
RMSE & MAPE
RMSD/RMSE – Root mean square Residual (Deviation)
The value of RMSE can range between 0 to infinite which is difficult to interpret by business. In
order to make our business understand the model better, we have another marker called
MAPE (Mean Absolute Percentage Error) =
www.anubhavtrainings.com
Draw Values of RMSE in the Reg. chart
www.anubhavtrainings.com
Segmented Time Series
Is also used to predict numeric values of target but additionally
1. Also the trend
2. We will have the output predicted also PER SEGMENT (Entity)
3. The X axis is always TIME (inp. variable axis)
www.anubhavtrainings.com
<Title>
10 year = how many future years it can predict 25% of actual
www.anubhavtrainings.com
SAC – Analytic Designer
SAP SAC Analytic designer completes the analytics cloud, it gives us advance scripting capabilities with
which we can design complex applications with input controls of different kinds input, dropdown,
checkbox, calendar, powerful scripting capabilities using JS.
Close-loop scenario: able to take action to insight.
In analytic designer we create an analytic application. They are 2 different artifects
Story Application
Covers the standard scenario Covers the customer scenario
Non-technical consultant Technical consultant
BI dashboards For close-loop scenarios
BI, and planning Advance scripting to design an app and use
all features using API
Reused b/w stories and app
- They both share the model concept
- They both share some widgets like chart, table, inp control.
- Provide same user experience
www.anubhavtrainings.com
Scenarios which we use SAC-AD
Category 1: Interactive designer capabilities like Lumira
Category 2: Integrate with planning, BI and smart feature using API, navigation to stories and
smart features, integration with business application.
Category 3: close-loop scenario where can take action on insight by calling REST(Odata)
services in SAP Backend system
www.anubhavtrainings.com
Use case 1
www.anubhavtrainings.com
Use Cases
2. Add a dropdown in the app with 2 values Revenue and Discount
When user select Revenue, show Qty sold and sales revue in the table
When user select Discount, show discount and gross margin in the table
EX1- Try changing measures to chart1 using scripting.
Scripting API Documentation
https://help.sap.com/doc/958d4c11261f42e992e8d01a4c0dde25/2020.14/en-US/index.html
www.anubhavtrainings.com
<Title>
www.anubhavtrainings.com
<Title>
www.anubhavtrainings.com
<Title>
www.anubhavtrainings.com
<Title>
www.anubhavtrainings.com
<Title>
www.anubhavtrainings.com
<Title>
www.anubhavtrainings.com
Anubhavtrainings.c (91) 84484 [email protected]
om 54549 m
Thank You