Market Basket Analysis

Published

5 June, 2020

Language

English

Written by

Share

Market Basket Analysis

Have you wondered why daily used items such as milk and water get stored at the shop’s last corner instead of the shop’s entrance? Or the way these items get categorized? What about how retailers pick items that get packed as a promotion set? For large retailers, all these things aren’t random. Retailers use a data mining technique called market basket analysis to uncover associations between items. Market basket analysis uses a dataset of thousands or millions of buyer transactions to find relationships between items. The set of items a customer buys is referred to as an itemset. 

Market Basket Analysis benefits

  • Better location of items in-store to promote impulse buys.
  • Selection of items for joint promotions and marketing programs.
  • Enable categorization of shopper purpose and motivations.
  • Help make decisions regarding store segmentation, customer segmentation, and target messaging.

How Basket Analysis benefits works

Market Basket Analysis uses rules that probabilistic in nature or, in other words, they are derived from the frequencies of co-occurrence in the observations.

Market Basket Analysis takes data at the transaction level, which lists all items bought by a customer in a single purchase. The technique determines relationships of what products were purchased with which other product(s). These relationships are then used to build profiles containing If-Then rules of the items purchased.

The rules could be written as:

If {A} Then {B}

{A} is called the antecedent.

{B} is called the consequent.

The antecedent is the condition and the consequent is the result. The association rule has three measures that express the degree of confidence in the rule, Support, Confidence, and Lift. 

Now let’s define these three measurements.

Support: The number of times this rule occurred over the total transactions.

Confidence: The support for rule over the support for the antecedent.

Lift: is confidence over the probability of the outcome.

Okay, enough for the theory, let’s have an example, you are in a supermarket to buy milk. Based on the analysis, are you more likely to buy apple or cheese in the same transaction than somebody who did not buy milk?

Consider we have a dataset of buyers transactions that contains 9 transactions with 3 products per transaction.

The next step is to determine the relationships and rules. For explanation purposes, the following table shows some of the relationships. In total there are 22 rules for the 9 baskets.

Based on the above table now we can determine which product(s) are most likely bought together.

Other application areas 

  • Banks: Market Basket Analysis can be used to analyze credit card purchases of customers to build profiles for fraud detection purposes and cross-selling opportunities.
  • Telecommunications: In Telecommunications, where high churn rates continue to be a growing concern, Market Basket Analysis can be used to determine what services are being utilized and what packages customers are purchasing. They can use that knowledge to direct marketing efforts at customers who are more likely to follow the same path.
  • Insurance: Identification of fraudulent medical insurance claims. 
  • Medical: In Healthcare or Medical, Market Basket Analysis can be used for comorbid conditions and symptom analysis, with which a profile of illness can be better identified. It can also be used to reveal biologically relevant associations between different genes or between environmental effects and gene expression.

Conclusion

At present, retailers are facing immense pressure due to the expansion of e-commerce, especially when it comes to bigwigs such as Amazon and Walmart Inc. Companies must analyze various trends from both online and offline channels to increase retail sales. In this article, we showed how Market basket analysis could be leveraged to analyze the changing retail market trends and market dynamics to gain a competitive edge in the market.

Written by
Senna Labs
Senna Labs

Keep me posted
to follow product news, latest in technology, solutions, and updates

More than 120,000 people/day  visit to read our blogs

Beyond the Labs

Explore all

11 July, 2025
JS class syntax
เชื่อว่าหลายๆคนที่เขียน javascript กันมา คงต้องเคยสงสัยกันบ้าง ว่า class ที่อยู่ใน js เนี่ย มันคืออะไร แล้วมันมีหน้าที่ต่างกับการประกาศ function อย่างไร?เรามารู้จักกับ class ให้มากขึ้นกันดีกว่า class เปรียบเสมือนกับ blueprint หรือแบบพิมพ์เขียว ที่สามารถนำไปสร้างเป็นสิ่งของ( object ) ตาม blueprint หรือแบบพิมพ์เขียว( class ) นั้นๆได้ โดยภายใน class
11 July, 2025

by

JS class syntax
11 July, 2025
15 สิ่งที่ทุกธุรกิจต้องรู้เกี่ยวกับ 5G
ผู้ให้บริการเครือข่ายในสหรัฐฯ ได้เปิดตัว 5G ในหลายรูปแบบ และเช่นเดียวกับผู้ให้บริการเครือข่ายในยุโรปหลายราย แต่… 5G มันคืออะไร และทำไมเราต้องให้ความสนใจบทความนี้ได้รวบรวม 15 สิ่งที่ทุกธุรกิจต้องรู้เกี่ยวกับ 5G เพราะเราปฏิเสธไม่ได้เลยว่ามันกำลังจะถูกใช้งานอย่างกว้างขวางขึ้น1. 5G หรือ Fifth-Generation คือยุคใหม่ของเทคโนโลยีเครือข่ายไร้สายที่จะมาแทนที่ระบบ 4G ที่เราใช้อยู่ในปัจจุบัน ซึ่งมันไม่ได้ถูกจำกัดแค่มือถือเท่านั้น แต่รวมถึงอุปกรณ์ทุกชนิดที่เชื่อมต่ออินเตอร์เน็ตได้2. 5G คือการพัฒนา 3 ส่วนที่สำคัญที่จะนำมาสู่การเชื่อมต่ออุปกรณ์ไร้สายต่างๆขยายช่องสัญญาณขนาดใหญ่ขึ้นเพื่อเพิ่มความเร็วในการเชื่อมต่อการตอบสนองที่รวดเร็วขึ้นในระยะเวลาที่น้อยลงความสามารถในการเชื่อมต่ออุปกรณ์มากกว่า 1 ในเวลาเดียวกัน3. สัญญาณ 5G นั้นแตกต่างจากระบบ
11 July, 2025

by

15 สิ่งที่ทุกธุรกิจต้องรู้เกี่ยวกับ 5G
11 July, 2025
จัดการ Array ด้วย Javascript (Clone Deep)
ในปัจจุบันนี้ ปฏิเสธไม่ได้เลยว่าภาษาที่ถูกใช้ในการเขียนเว็บต่าง ๆ นั้น คงหนีไม่พ้นภาษา Javascript ซึ่งเป็นภาษาที่ถูกนำไปพัฒนาเป็น framework หรือ library ต่าง ๆ มากมายผู้พัฒนาหลายคนก็มีรูปแบบการเขียนภาษา Javascript ที่แตกต่างกัน เราเลยมีแนวทางการเขียนที่หลากหลาย มาแบ่งปันเพื่อน ๆ เกี่ยวกับการจัดการ Array ด้วยภาษา Javascript กัน เรามาดูตัวอย่างกันเลยดีกว่าโดยปกติแล้วการ copy ค่าจาก value type ธรรมดา สามารถเขียนได้ดังนี้
11 July, 2025

by

จัดการ Array ด้วย Javascript (Clone Deep)

Let’s build digital products that are
simply awesome !

We will get back to you within 24 hours!Say hello
Please tell us your ideas.
- Senna Labsmake it happy
Contact ball
Contact us bg 2
Contact us bg 4
Contact us bg 1

Contact Senna Labs at :

hello@sennalabs.com28/11 Soi Ruamrudee, Lumphini, Pathumwan, Bangkok 10330+66 62 389 4599
© 2022 Senna Labs Co., Ltd.All rights reserved. | Privacy policy