Data Mining: Scoring (Linear Regression)

Similar documents
Data Mining: Decision Trees

Step by Step Procedure for DSO Creation

Using Radio Buttons in Web Template

Linking Documents with Web Templates

Replacement Path: Explained with an Illustrated Example

Analysis Process Designer (APD) Step by Step Business Intelligence

How to use Boolean Operations in the Formula as Subsidiary for IF Condition

DB Connect with Delta Mechanism

Step-By-Step guide to Virtual InfoCube Implementation

Integration of Web Dynpro for ABAP Application in Microsoft Share Point Portal

Material Listing and Exclusion

Process Chain Log Deletion

Database Statistics During ODS Activation

Open Text DocuLink Configuration - To Access Documents which are Archived using SAP

Step by Step Guide How to Use BI Queries in Visual Composer

How to Work with F4 Input Help Effectively in BEX

SAP BI Analysis Authorization (Customer Exit Variables)

Extracting Missing Fields of Data Source Which Are Present In Their Extract Structure

Step By Step: the Process of Selective Deletion from a DSO

Displaying SAP Transaction as Internet Application in Portal

Standalone BW System Refresh

Easy Lookup in Process Integration 7.1

POWL: Infoset Generation with Web Dynpro ABAP

Maintaining Roles and Authorizations in BI7.0 - RSECADMIN

Step by Step Method for File Archival in BW

Step by Step Guide on How to Use Cell Definition in BEx Query

Extraction of Hierarchy into Flat File from R/3 and Loading in BW System

Freely Programmed Help- Web Dynpro

Load Info Cube in SCM 5.0 (BI 7.0)

How to Create View on Different Tables and Load Data through Generic Datasource based on that View

Generate Export Data Source

Reporting on Special Stock Values: Snap-shot/Detailed

SDN Community Contribution

How to Display Result Row in One Line While Reporting On Multiproviderer

Creating Custom SU01 Transaction Code with Display and Password Reset Buttons

MDM Syndicator: Custom Items Tab

How to Create Top of List and End of List of the ALV Output in Web Dynpro for ABAP

SAP BI BO Unit/Currency Logic for Unknown Units Case Study

Currency Translation in SAP BI Step by step Guide

Information Broadcasting Part 3 Scheduling the First Report

Errors while Sending Packages from OLTP to BI (One of Error at the Time of Data Loads through Process Chains)

Web Dynpro: Coloring Table Conditionally

Developing Crystal Reports on SAP BW

Open Hub Destination - Make use of Navigational Attributes

Step By Step Procedure to Implement Soap to JDBC Scenario

Using Nested Exception Aggregation in BEx Reports- Scenario

This article explains the steps to create a Move-in letter using Print Workbench and SAPScripts.

Material Master Archiving in Simple Method

MDM Import Manager - Taxonomy Data (Attribute Text Values) Part 3

Transfer Material Attributes (Material Type) from R/3 to SAP GRC Global Trade Services (GTS)

How to Default Variant Created for Report Developed In Report Painter/Writer

Step by Step Guide for PI Server Start and Stop Procedure

Solution to the Challenges in Pivoting

Validity Table in SAP BW/BI

Recreating BIA Indexes to Address the Growth of Fact Index Table

Using Query Extract to Export Data from Business warehouse, With Pros and Cons Analyzed

Loading the Data for Time Dependent Hierarchy in SAP BI

Creation of Key Figures with Higher Decimal Place Precision

Reading Enhanced DataSource fields for the Remote Cube

Table Row Popup in Web Dynpro Component

Data Extraction & DS Enhancement in SAP BI Step by Step

Reporting Duplicate Entries

Changing the Source System Assignments in SAP BW Objects without Affecting the Data Modeling

Hierarchy in Business Objects with Expanded Hierarchy Logic

Triggering the Process Chains at Particular Date using Events

Implying Security on Business Object XI 3.1 Universe having SAP BW as Source

SAP BW Copy Existing DTP for Data Targets

SMT (Service Mapping Tool)

How to Broadcast BEx Workbooks using BW Pre-calculation Server and through Process Chains

Xcelsius Tricks Part 5 Create a Loading Bar in SAP Crystal Dashboard and Presentation Design (Xcelsius 2008)

Setting up Connection between BW and R/3 for Data Load

Using Rule Group in SAP-BI. Part - 1

Role and Scope of ABAP in SAP BI

Download SAP Query Output to Local/ Network Folders in Background

Graphical Mapping Technique in SAP NetWeaver Process Integration

Dialog Windows in WebDynpro ABAP Applications

Methods of Selecting BOM Variant Parts in Variant Configuration

BW Reconciliation. Applies to: Summary. Author Bio

SUP: Personalization Keys and Synchronize Parameter

Server Connectivity and Data Load from Non SAP System to BW

List of Values in BusinessObjects Web Intelligence Prompts

Purpose of Goods Receipt Message indicator in Purchase Orders

Steps to Activate ALE Delta for Custom Master Datasource Created on ZTable

About ITAB Duplicate_Key (SAP lrsaods) Runtime Error

How to Display Traffic Lights for Exceptions in BI Web Reports

Positioning of CML of SAP s LSA with NLS SAND as Archiving Technology

Creation of Sets in SAP-ABAP, How to Read them INI SAP-ABAP Reports

Data Source Replication and Activation of Transfer Structures

ABAP Code - Recipients (Specific Format) SAP BW Process Chain

How to Configure User Status in mysap SRM

All about Compression

ABAP: Table Maintenance Events

Add /Remove Links on ESS Home Page in Business Package 1.5

ABAP HR: Standard Info Type Enhancement

SAP Net Weaver 400s BI 7.0For more information, visit the Business Intelligence homepage.

ecatt Part 6 System Data Container

Performance Tuning in SAP BI 7.0

Data Flow During Different Update Mode in LO Cockpit

Data Inconsistency in the Cube and Aggregate

Template Designer: Create Automatic PDF Documents for Attachment or Print Purpose

Transcription:

Data Mining: Scoring (Linear Regression) Applies to: SAP BI 7.0. For more information, visit the EDW Homepage Summary This article deals with Data Mining and it explains the classification method Scoring in detail. It also explains the steps for implementation of Linear Regression by creating a Model and an Analysis Process. Author: Vishall Pradeep K.S Company: Applexus Technologies (P) Ltd Created on: 16 May 2011 Author Bio Vishall Pradeep is working as SAP Technology Consultant with Applexus Technologies (P) experience in SAP ABAP and SAP BI Ltd. He has 2011 SAP AG 1

Table of Contents Introduction... 3 Scoring... 3 Regression Analysis... 3 Linear regression... 3 Creating a Model... 3 Creating a Analysis Process for Training... 7 Related Content... 15 Disclaimer and Liability Notice... 16 2011 SAP AG 2

Introduction Data mining is to automatically determine significant patterns and hidden associations from large amounts of data. Data mining provides you with insights and correlations that had formerly gone unrecognized or been ignored because it had not been considered possible to analyze them. The data mining methods available in SAP BW allow you to create models according to your requirements and then use these models to draw information from your SAP BW data to assist your decision-making. Scoring The data is displayed using continuous quantities. If required, discretization can then be applied to split the data into classes. The scoring function can either be specified using weighted score tables or be determined by training using historic data as linear or nonlinear regression of a target quantity. The purpose of scoring is to valuate data records. Regression Analysis It is used to automatically define valuation functions and thereby determine numeric target values. If you wish to generate the valuation functions, you need to train the analysis process using historic data. After we determined the valuation functions either by defining them directly or by training them on the basis of historic data, you can then apply them to other datasets as part of a prediction. Linear regression The system uses training data records with known score values to determine a linear function that approximates the scores of the training data records and the system trains the scoring function using data with known target values. You need to set the value type of the target value as continuous. At least one of the other model fields must also be continuous. The system defines a separate linear function for each combination of values in discrete model fields that occur in the training data. Creating a Model Go to Transaction RSDMWB (Data Mining Workbench) Data Mining->Expand Approximation->Right Click Scoring->Create Model 2011 SAP AG 3

Choose the Model Name and Description The method name for which you are creating a model is displayed. You have three options for model field selection To create the model fields manually, select the Manual option. If you want to create a model that is similar to an existing model created previously, you can copy it choosing the Use Model as Template option. You can make minor changes to the copied version manually to suit your requirements To create a model from a query, choose Model Field Selection and select the query which you want use as a source for model fields.the InfoObjects contained in the selected query are available as model fields 2011 SAP AG 4

The screen shows the list of Fields and we can select and exclude fields in it In the step Edit Model Fields, specify the attributes for each field and the description you give the model field does not necessarily have to be identical with that of the InfoObjects The Content types valid for a model field are dependent on the method that you are creating the model for and on the data type of the model field. The value type specified for a model field determines which entries can be made as Field Parameters and Field Values Set the Prediction Variable indicator for the model field for which the subsequent prediction is to be made. Select as a prediction variable that model field for which you wish to gain more information (via the model) and define a Key field and it should not be a Prediction field 2011 SAP AG 5

Choose the Regression type In the Model Parameters step, To exclude combinations with a minimal amount of data records, we can use the model parameter Minimum Number of Records If we select the indicator Skip input outside of trained domain, then no score value is calculated for such data records. If you do not select this indicator, the default score value is assigned to these data records. With the parameters of the model fields, you can specify for discrete fields whether all values, just special values, or just the most frequent values should be considered. For continuous fields, you can explicitly specify both limits of a value range or have them specified automatically by choosing the option Complete Data Range. With the automatic option, the limits are determined by rounding off the maximum and minimum values of the field in the training data. When the function is applied to other data, values occurring outside of this range are then treated as outliers Save and Activate the Model (we can only train or valuate a model or use it for the prediction if the model has been activated.) Log is Displayed 2011 SAP AG 6

Creating a Analysis Process for Training We can create an analysis process for a data mining method to train a data mining model. The purpose of training a model using historic data is to allow the model to learn from the historic data. The training result can then be used for a prediction or in the operational system Go to Transaction RSANWB (Analysis Process Designer) Choose General->Right Click->Create Give the description to the APD 2011 SAP AG 7

From the Data Sources, drag and drop the Query to the work area It asks for a Popup and click on Choose Query From the Help, Select the query 2011 SAP AG 8

And Click OK The Query which is the data Source is added as below For the data target, drag the icon for the relevant data mining method in the work area 2011 SAP AG 9

Double click on data mining node to make the settings in the dialog box that appears Choose the required model from F4 Help Click on ENTER and Connect the two nodes 2011 SAP AG 10

To make an explicit field assignment, double click on the data flow arrow that connects the nodes Click on Automatic Assignment and choose Same Infoobject Click on Continue and Save and activate the APD While saving it will ask for a Technical Name Execute the APD The data is written to the data target and a log is displayed 2011 SAP AG 11

To view the training results, in the context menu of data target, choose Data Mining Model View Model Results The Output will be displayed as below 2011 SAP AG 12

Click on Other statistics to view Goodness Indicator 2011 SAP AG 13

Click on General Characteristics and it will ask for a popup as below Choose the model field and select all to view the output 2011 SAP AG 14

Related Content Data Mining: Decision Tree Data Mining: Clustering For more information, visit the EDW homepage 2011 SAP AG 15

Disclaimer and Liability Notice This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade. SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document, and anyone using these methods does so at his/her own risk. SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample, including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this document. 2011 SAP AG 16