• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 3 out of 24 pages
Exam (elaborations)

WGU D599 Task 3: Market Basket Analysis | Complete Report, Apriori Algorithm, Python Code & Association Rules | 2026/2027 Updated

Document preview thumbnail
Preview 3 out of 24 pages

WGU D599 Task 3: Market Basket Analysis | Complete Report, Apriori Algorithm, Python Code & Association Rules | 2026/2027 Updated

Content preview

TASK 3: MARKET BASKET ANALYSIS – APRIORI –
COMPLETE REPORT
A. RESEARCH QUESTION – PURPOSE
Research Question: What products are frequently
purchased together and what association rules can drive
cross-selling, product placement, and promotion
strategies?
Goal: Perform market basket analysis using Apriori
algorithm – Generate frequent itemsets – Generate
association rules – Evaluate support, confidence, lift –
Provide Python code, visualizations, business
recommendations – Compare metrics
Example Dataset: Use your assigned WGU D599 Task 3
dataset – e.g., Retail transactions, Grocery, Online Retail
– Example here uses Online Retail II – 1000 transactions
– Columns – TransactionID, Items – Bread, Milk, Eggs,
Butter, Cheese, Beer – Replace with your actual D599
file – Same workflow applies
Business Value: Cross-sell – Place bread near butter –
Bundle – Bread + Butter discount – Recommendation
engine – If buys milk recommend cheese

,B. CONCEPTS – SUPPORT, CONFIDENCE, LIFT
Definitions – High-Yield for D599:
• Support: Frequency itemset appears – Support{A} =
Transactions containing A / Total transactions – e.g.,
Bread appears in 400/1000 = 0.4 – Frequent if
support >= min_support – Filters rare items
• Confidence: Conditional probability – Confidence{A-
>B} = Support{A,B} / Support{A} – e.g., 300
transactions have bread+butter, 400 have bread –
Confidence Bread->Butter = 300/400=0.75 – 75%
who buy bread buy butter – Measures reliability
• Lift: How much more likely B given A vs random –
Lift{A->B} = Confidence{A->B} / Support{B} =
Support{A,B} / (Support{A}*Support{B}) – Lift=1
independent, >1 positive association, <1 negative –
Most important – e.g., Support Bread 0.4 Butter 0.3
Both 0.3 – Confidence 0.75 – Support Butter 0.3 –
Lift 0.75/0.3=2.5 – 2.5x more likely to buy butter if
buy bread than random

, • Conviction: Direction – Conviction{A->B} = (1-
Support{B})/(1-Confidence{A->B}) – Higher means
stronger
• Leverage: Difference – Leverage = Support{A,B} -
Support{A}*Support{B} – 0 independent
Thresholds – Typical:
• min_support 0.01-0.05 – 1-5% – Too high misses rare
but profitable – Too low too many rules – Depends
dataset size
• min_confidence 0.3-0.6 – 30-60%
• min_lift >1.0 – Usually >1.2 for actionable – Filter lift
>1 for positive
• For D599 – Use min_support 0.02, min_confidence
0.5, min_lift 1.2 – Document justification
C. DATA PREPARATION – PYTHON – FULL CODE
Step 1: Import Libraries
Python
import pandas as pdimport numpy as npimport
matplotlib.pyplot as pltimport seaborn as snsfrom

Document information

Uploaded on
October 25, 2026
Number of pages
24
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$16.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Sold
36
Followers
3
Items
3027
Last sold
1 week ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions