• 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 4 out of 82 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 4 out of 82 pages

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

Content preview

,Exam Blueprint & Instructions
WGU D599 Task 3: Market Basket Analysis | Complete Report, Apriori Algorithm, Python Code & Association Rules



Part I · Exam Questions (1-200)

1. Market Basket Analysis Fundamentals & Use Cases (22 q) ....5

2. Apriori Algorithm, Support, Confidence & Lift (23 q) ....6

3. Data Preprocessing: Transaction Encoding & One-Hot (22 q) ....7

4. Python Implementation: mlxtend & efficient_apriori (22 q) ....8

5. Association Rules Generation & Filtering (22 q) ....9

6. Model Evaluation: Metrics, Threshold Tuning & Pruning (22 q) . . . . 10

7. WGU D599 Task 3 Report Requirements & Documentation (22 q) . . . . 11

8. Visualization: Network Graphs & Rule Scatter Plots (22 q) . . . . 12

9. Business Implications, Limitations & Recommendations (23 q) . . . . 13



Instructions:
• 200 original questions for WGU D599 Task 3 mastery.
• Covers market basket analysis, Apriori, support/confidence/lift, association rules.
• Python uses mlxtend, TransactionEncoder, apriori, association_rules per WGU standards.
• Correct answers and rationales follow each item immediately.
• Original study material, not actual WGU assessment.

,SECTION ONE: QUESTIONS 1-200
Choose the single best answer. Correct answers and rationales follow each item.


Market Basket Analysis Fundamentals & Use Cases
Question 1. In WGU D599 Task 3, what is the correct approach for explaining difference
between Apriori and FP-Growth for frequent itemset mining efficiency?
A. Encode transactions without one-hot encoding and pass raw lists directly to apriori causing
errors
B. Set min_support to 0.9 causing zero frequent itemsets and failing to generate any
association rules
C. Calculate lift incorrectly as support/confidence and ignore support threshold, leading to
spurious rules
D. from mlxtend.frequent_patterns import apriori, association_rules; frequent_itemsets =
apriori(df, min_support=0.02, use_colnames=True)
CORRECT ANSWER: D. from mlxtend.frequent_patterns import apriori, association_rules;
frequent_itemsets = apriori(df, min_support=0.02, use_colnames=True)
RATIONALE: For WGU D599 Task 3 market basket analysis, explaining difference between Apriori and FP-
Growth for frequent itemset mining efficiency requires correct methodology. Correct (D): from
mlxtend.frequent_patterns import apriori, association_rules; frequent_itemsets = apriori(df,
min_support=0.02, use_colnames=True). This satisfies Apriori theory (anti-monotone property), WGU
rubric (Python code, association rules, business report), and avoids common errors. Incorrect
options produce empty results, leakage, or rubric failure.


Question 2. When implementing evaluating business value of rule {bread} -> {butter} with
support 0.05 and lift 2.5 in Python, which code avoids errors?
A. Calculate lift incorrectly as support/confidence and ignore support threshold, leading to
spurious rules
B. Encode transactions without one-hot encoding and pass raw lists directly to apriori causing
errors
C. Set min_support based on business need (e.g., 0.02 = appears in 2% transactions) to prune
infrequent itemsets, balancing coverage vs noise
D. Set min_support to 0.9 causing zero frequent itemsets and failing to generate any
association rules
CORRECT ANSWER: C. Set min_support based on business need (e.g., 0.02 = appears in 2%
transactions) to prune infrequent itemsets, balancing coverage vs noise
RATIONALE: For WGU D599 Task 3 market basket analysis, evaluating business value of rule {bread} ->
{butter} with support 0.05 and lift 2.5 requires correct methodology. Correct (C): Set min_support
based on business need (e.g., 0.02 = appears in 2% transactions) to prune infrequent itemsets,
balancing coverage vs noise. This satisfies Apriori theory (anti-monotone property), WGU rubric
(Python code, association rules, business report), and avoids common errors. Incorrect options
produce empty results, leakage, or rubric failure.


Question 3. A student observes using TransactionEncoder from mlxtend.preprocessing to
convert transaction lists to one-hot DataFrame with low lift. What does it mean?
A. Omit documentation of thresholds, code, and business limitations from WGU D599 report
B. Set min_support to 0.9 causing zero frequent itemsets and failing to generate any
association rules

, C. Calculate lift incorrectly as support/confidence and ignore support threshold, leading to
spurious rules
D. Use TransactionEncoder().fit_transform(transactions) to create boolean DataFrame, then
pd.DataFrame with columns=te.columns_ for mlxtend apriori
CORRECT ANSWER: D. Use TransactionEncoder().fit_transform(transactions) to create boolean
DataFrame, then pd.DataFrame with columns=te.columns_ for mlxtend apriori
RATIONALE: For WGU D599 Task 3 market basket analysis, using TransactionEncoder from
mlxtend.preprocessing to convert transaction lists to one-hot DataFrame requires correct
methodology. Correct (D): Use TransactionEncoder().fit_transform(transactions) to create boolean
DataFrame, then pd.DataFrame with columns=te.columns_ for mlxtend apriori. This satisfies Apriori
theory (anti-monotone property), WGU rubric (Python code, association rules, business report), and
avoids common errors. Incorrect options produce empty results, leakage, or rubric failure.


Question 4. Which Python snippet correctly implements handling large transaction datasets
with efficient memory usage and sparse representation?
A. Omit documentation of thresholds, code, and business limitations from WGU D599 report
B. Correct D599 methodology: handling large transaction datasets with efficient memory usage
and sparse with Python modeling, threshold justification, and rubric-compliant business report
C. Set min_support to 0.9 causing zero frequent itemsets and failing to generate any
association rules
D. Calculate lift incorrectly as support/confidence and ignore support threshold, leading to
spurious rules
CORRECT ANSWER: B. Correct D599 methodology: handling large transaction datasets with
efficient memory usage and sparse with Python modeling, threshold justification, and
rubric-compliant business report
RATIONALE: For WGU D599 Task 3 market basket analysis, handling large transaction datasets with
efficient memory usage and sparse representation requires correct methodology. Correct (B): Correct
D599 methodology: handling large transaction datasets with efficient memory usage and sparse with
Python modeling, threshold justification, and rubric-compliant business report. This satisfies
Apriori theory (anti-monotone property), WGU rubric (Python code, association rules, business
report), and avoids common errors. Incorrect options produce empty results, leakage, or rubric
failure.


Question 5. What is the primary purpose of generating association_rules with
metric='confidence', min_threshold=0.6 for D599 report in market basket analysis?
A. Set min_support to 0.9 causing zero frequent itemsets and failing to generate any
association rules
B. Calculate confidence = support(X∪Y)/support(X) and lift = confidence/support(Y); lift >1
indicates positive association, use for WGU report
C. Omit documentation of thresholds, code, and business limitations from WGU D599 report
D. Calculate lift incorrectly as support/confidence and ignore support threshold, leading to
spurious rules
CORRECT ANSWER: B. Calculate confidence = support(X∪Y)/support(X) and lift =
confidence/support(Y); lift >1 indicates positive association, use for WGU report
RATIONALE: For WGU D599 Task 3 market basket analysis, generating association_rules with
metric='confidence', min_threshold=0.6 for D599 report requires correct methodology. Correct (B):
Calculate confidence = support(X∪Y)/support(X) and lift = confidence/support(Y); lift >1 indicates
positive association, use for WGU report. This satisfies Apriori theory (anti-monotone property),
WGU rubric (Python code, association rules, business report), and avoids common errors. Incorrect
options produce empty results, leakage, or rubric failure.

Document information

Uploaded on
October 27, 2026
Number of pages
82
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$17.99

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.
GradeAchiver
2.3
(4)
Sold
48
Followers
2
Items
4836
Last sold
15 hours 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