Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Mining your Business in Retail with IBM DB2 Intelligent Miner

Garcia Bordes M. Eugenia, Computer Science student, Student
M. Eugenia Garcia Bordes is a Computer Science student at the Facultat de Informatica de Barcelona (FIB), which belongs to the Universitat Politecnica de Catalunya (UPC) in Spain. Despite her technical background, she has attended several courses about management and economics while her studies. On the other hand, she joined the Unitech International exchange programme in 2002-2003. During an intensive, full year abroad, thanks to this programme Eugenia complemented her engineering studies with international academic and industry exposure, joint courses and insights in management theory and practise. Within this framework, after studying one semester at Technische Universiteit Delft (TUDelft) in the Netherlands, she spent half a year in the IBM Research and Development Laboratory in Boeblingen (Germany), where she developed this tutorial.

Summary:  Apply data mining techniques using IBM DB2 Intelligent Miner to generate automatically product recommendations for customers in a possible e-commerce shop environment.

Date:  08 Dec 2006 (Published 11 Sep 2003)
Level:  Introductory PDF:  A4 and Letter (1289 KB | 50 pages)Get Adobe® Reader®

Activity:  3985 views
Comments:  

Introducing this tutorial

Objectives

This tutorial shows you how to apply data mining techniques using IBM DB2 Intelligent Miner to generate automatically product recommendations for customers in a possible e-commerce shop environment. Moreover, we can characterize the customers in terms of the products they purchase and the frequency of their shoppings. This customer profiling will be key to determine targets for an outbound cross-sell campaign. We will be able to ensure that the recommendations will be appropriate to each customer because other customers with a similar behaviour bought what we are now recommending.

To fulfill these objectives, this article shows you how to use IBM DB2 Intelligent Miner Modeling to create a mining model and then IBM DB2 Intelligent Miner Visualization to evaluate it and to display its results. Furthermore, this tutorial gives you some examples of how you could integrate all with the existing business applications, as the integration of the data mining results with channels and reporting is key for a successful marketing strategy.

You will learn how to do this using the Easy Mining Procedures for DB2 Intelligent Miner, an easy-to-use SQL interface for the main steps of the data-mining process. In particular, they contain stored procedures for the basic mining functions such as classification, clustering, or discovery of association rules and procedures for general, higher-level, common mining tasks such as the discovery of a prediction model or the detection of outliers in a table.

This tutorial takes you through the entire process of extracting product recommendations and customer's profiling step by step, using real data taken from the retail business. By following the examples, you can modify various parameters to observe the resulting outcome. By completing the exercises, you can check what you have learned.


When you have completed this tutorial, you can:

  • Understand the concepts of data mining:
  • What is data mining?
  • What can you achieve with data mining?
  • How does the data mining process look like?

  • Apply the techniques that you have learned to your own corporate problems and put each of the theoretical steps of the Data Mining process into practice.
  • Generate business explanations and deploy them.

NOTE: In the future we may refer to the IBM DB2 Intelligent Miner tools as IM Visualization/IM modeling/ IM Scoring, where IM means Intelligent Miner.


Who should read this tutorial?

This tutorial is addressed to Information Technology (IT) professionals. To complete this tutorial, you should be familiar with databases. You need not be familiar with data mining concepts. If you do not have domain knowledge of the business area, you should work together with people that can provide this knowledge.

Knowing the business area is mandatory. With data mining, you can solve business problems by analyzing the corporate data. However, you will not come up with a proper answer or explanation if there is not a concise definition and understanding of the business problem.


Tutorial Scenario

Nowadays internet shops offer product recommendations every time the customer adds a product into the cart. In an early future, there will be little computer devices in each cart of a physical supermarket. Each time a customer puts a new product in the cart, its code will be scanned and a display will show some product recommendations in real time, taking into account the kind of customer that is purchasing and the item he/she has put in the cart.

Right now companies can apply product recommendation to improve their cross-selling campaigns, for example. The cross-selling strategy is based in pushing new products to current customers based on their past purchases. Cross-selling is designed to widen the customer's reliance on the company and decrease the likelihood of the customer switching to a competitor. Indeed, companies are worried in losing their clients as it is very expensive to attract new ones with promotion campaigns, publicity, etc.

This is our scenario:

"A retail company wants to have a better knowledge of their clients and their behaviour so that it can offer a better product recommendation in its next cross selling campaign."


Required Software

To complete the steps in this tutorial, the following software must be installed on your computer:

  • IBM DB2 Version 8.2 or higher (Download the trial version from http://www.ibm.com/software/data/db2/udb)
  • IBM DB2 Data Warehouse Edition Version 9.1 with Intelligent Miner Modeling, Scoring and Visualization

As operating systems, this tutorial supports Windows and Linux.


Duration

To complete this tutorial, you need about 3 to 3.5 hours in average.

However, you might want to read this tutorial more than once when you want to translate the data mining techniques into your own business environment.


Preparing your computer

Retrieving the required files

The data from the retail company is stored in the retail-case folder or in this zip file.

We assume that you have installed and configured DB2 Intelligent Miner Modeling, Scoring and Visualization according to the installation instructions.

Creating and configuring the database and importing the data

Before you can build or call a model, you must create and configure the retail database, and import the data.

Windows:

  1. To display a DB2 command window, click Start -> Programs -> IBM DB2 -> Command Line Tools -> Command Window.
  2. Go to the directory where you have saved the retail-case folder, for example, :e\retail_tutorial\retail-case\, and type the following command on the command line for creating and populating the retail database:
    	[tutorial path]:\> setup
                            

Linux:

  1. Log on as the owner of the DB2 instance (e.g., db2inst1) and execute, if necessary, db2start.
  2. Go to the directory where you have saved the retail-case folder, for example, /retail_tutorial/retail-case/, and type the following command on the command line for creating and populating the retail database:
    	/[tutorial path]> sh setup.sh 
                            


Trademarks

The following terms are trademarks of the IBM Corporation in the United States, other countries, or both:

  • DB2
  • DB2 Universal Database
  • Websphere
  • IBM
  • Intelligent Miner
  • Redbooks

Microsoft, Windows, Windows NT, and the Windows logo are trademarks of Microsoft Corporation in the United States, other countries, or both.

Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both.

Other company, product, and service names may be trademarks or service marks of others.

1 of 11 | Next

Comments



Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Information Management
ArticleID=161118
TutorialTitle=Mining your Business in Retail with IBM DB2 Intelligent Miner
publish-date=12082006
author1-email=
author1-email-cc=

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Try IBM PureSystems. No charge.