Questions tagged [apriori]

An algorithm for finding frequent itemsets in transactional datasets.

Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

Is there a way to measure or find the optimal accuracy of an association rule model which is to know if it is overfit or not

I'm currently new at data mining and have a problem understanding that most model such as classification and regression techniques are mostly using test and validation sets, which they can also apply ...
user avatar
  • 1
0 votes
0 answers
24 views

Taking quantities sold into account with Market Basket Analysis

When performing a Market Basket Analysis you can calculate the 'support', 'confidence' and 'lift' of the Antecedants products (LHS) and consequents products (RHS). However, if I want to use a Market ...
user avatar
  • 1
0 votes
0 answers
107 views

Python: Generating conditionally dependent probabilities for Apriori data generation

Goal: I want to generate fake transaction data to use as input to the Apriori association rule mining algorithm using python (3.9). The data should be generated such that for some reasonable* ...
user avatar
1 vote
1 answer
60 views

Apriori Algorithm Visualization & Interpretation in R

I would like to visualize the items that are frequently bought together. Also I would like to know how to interpret the visualization. The dataset is taken from https://www.kaggle.com/sivaram1987/...
user avatar
0 votes
1 answer
65 views

What is the threshold for "frequent" in the Apriori algorithm?

I'm reading about the Apriori algorithm using the textbook Introduction to Machine Learning (Ethem Alpaydin) and had a question. I've noticed that the textbook and many other resources I find online ...
user avatar
  • 2,569
1 vote
1 answer
100 views

Makes sense to do a Market Basket Analysis with transactions grouped by month (or week)?

Most of the articles on the internet shows the Market Basket Analysis using data from supermarket (i.e. clients uses to buy a lot of items in one day in a supermarket), so I think makes sense to group ...
user avatar
  • 279
2 votes
1 answer
350 views

Hypothesis testing for apriori market basket analysis

I'm wondering if there is a possibility to perform hypothesis tests to show that the resulting rules from an apriori market basket analysis are statistically significant? Maybe I'm missing the forest ...
user avatar
1 vote
0 answers
168 views

How to measure Sales lift for a campaign without experimental design?

I want to be able to calculate Sales Lift for a campaign conducted but prior to campaign no control group was established. So, I cannot measure the impact on Sales because of campaign to treatment ...
user avatar
1 vote
0 answers
53 views

Clustering binary data : feature selection vs Apriori

My data set is a 999 rows x 964 columns Panda DataFrame. Each row is a user. My data is binary : 0 for absent and 1 for present. I would like to fit the users ...
user avatar
2 votes
1 answer
62 views

Methods for analyzing “cross-frequency” tables?

I am looking for a statistical method that is suitable for the problem: which goods in my shop are most frequently bought together, and which aren’t? For my commodities, I can make a table like this ...
user avatar
1 vote
0 answers
13 views

Should the output of Apriori algorithm be a one to one relationship

I am currently following this guide: https://stackabuse.com/association-rule-mining-via-apriori-algorithm-in-python/ as an output all of the rules are of the form: ...
user avatar
3 votes
1 answer
2k views

How to validate the association rules or results obtained from Market Basket Analysis? Train-test methodology

If I have a large set of transactions where in each has a set of goods and I want to do market basket analysis (affinity analysis) using Apriori. However, compared to traditional supervised machine ...
user avatar
1 vote
1 answer
281 views

Using apriori algorithm for market basket analysis

While I was studying the formulation of market basket analysis problem in the book Elements of Statistical Learning in the chapter unsupervised learning, I came through the following statement: ...
user avatar
  • 672
1 vote
1 answer
195 views

Completely confused about alpha and p values, help please? [closed]

I'm trying to work thru the following question. I'm pretty sure A doesn't apply, but having trouble with the concept in general. A study team compared study drug x with placebo for maintenance ...
user avatar
  • 11
7 votes
1 answer
2k views

Bayesian network vs. association rules

Apriori algorithm finds some implication rules. Similar results are provided by Bayesian networks. What is the essential difference? What are the specific advantages/disadvantages? Edit: The ...
user avatar
  • 2,503
2 votes
1 answer
895 views

Association Rules by Apriori Algorithm - How to read them?

Let's consider mining of the association rules for basket analysis at a petrol station. It is obvious that most people buy petrol, some of them something extra. The following implications are valid: ...
user avatar
  • 2,503
1 vote
1 answer
2k views

R Arules Market Basket Analysis Redundant Rules Approaches [closed]

Using R and arules. I see several opinions on how to remove redundant rules which give different answers. If this is my example dataset: ...
user avatar
  • 285
1 vote
0 answers
447 views

Bayesian inference and a priori probability

A woman claims she has "magical powers" and can guess the correct value of any card in a four-card deck 50% of the time (of course, for someone without magical powers, this value would be only 25% of ...
user avatar
  • 179
3 votes
1 answer
413 views

What is the relationship between covariance matrix and contour plot?

From this video, https://www.youtube.com/watch?v=fr5wML3y1Xk I deduced that here, $a==b$ and $c<0$. Here are my questions, (1) What does it mean by "equal loss values of errors"? (2) What ...
user avatar
  • 1,548
1 vote
1 answer
114 views

Should I include all data for Apriori algorithm?

For Transaction ID 3, It contains beer only and beer does not exists in other transaction. Do I need to include transaction Id 3 when calculating the association rule by using the Apriori algorithm?
user avatar
1 vote
0 answers
178 views

Reportable accuracy of Apriori Models

I have a problem formulating a requirement into a statistical learning problem with reportable accuracy and was hoping to tap into your expertise. The supermarket is trying to build a model that ...
user avatar
  • 111
1 vote
2 answers
1k views

Can apriori algorithm be applied to an extremely small dataset effectively

I have a medical data set of just 50 samples and I need to study the relationships between several features. For this, I want to use the apriori algorithm but I am not sure whether it will be ...
user avatar
0 votes
1 answer
542 views

How do apriori based algorithms avoid finding spurious relationships in their rules?

I'm taking a class on data mining and of course, we went over the Apriori algorithm (Fast Algorithms for Mining Association Rules). Something that I want to know is how do apriori based algorithms ...
user avatar
1 vote
0 answers
325 views

ANOVA planned (a priori) tests

Can anybody tell me which ANOVA planned (a priori) tests exist? Which are their characteristics? How and when are they used? As I´m beginner in this area it would be also useful in someone could ...
user avatar
0 votes
2 answers
4k views

Interpreting association rules correctly?

I working on a problem to identify subgroups within a population. After writing some code to get my data into the correct format I was able to use the apriori algorithm for association rule mining. ...
user avatar
3 votes
1 answer
7k views

Market Basket Analysis using Clustering to discover *new* product combinations

I have transaction data from a Quick Service Restaurant (QSR) client. Each record in this data set represents a transaction. My objective is to discover products that are the best candidates to be ...
user avatar
  • 1,174
0 votes
1 answer
21 views

How can I formally describe the count function of the support measure of frequent itemsets

currently composing a lecture on Association Rule Mining, Frequent Item sets. Therefore I need to formally describe the count function of the support measure as occurring int the following forumula : ...
user avatar
5 votes
1 answer
9k views

How is the support calculated using hash trees for Apriori algorithm?

I started studying association rules and specially the Apriori algorithm through this free chapter. I understood most of the points in relation with this algorithm except the one on how to build the ...
user avatar
-2 votes
1 answer
432 views

What are the assumptions & consequence of violations of assumptions of Apriori algorithm? [closed]

What are the consequence of violations of each of these assumptions?
user avatar
-1 votes
4 answers
10k views

What are the benefits and limitations of Apriori algorithm? [closed]

In which scenarios will Apriori algorithm fail? Is A->B & B->A considered the same in Apriori? Do they have same support, confidence & Lift?
user avatar
2 votes
1 answer
1k views

Apriori versus Jaccard Coeff for recommender-system

I developed a market basket program for a retailer. I used the pymining library association rules function. I assume this uses the Apriori algorithm. I got 340,000 rules for an input of 17,000 ...
user avatar
  • 137
4 votes
2 answers
5k views

when to use apriori vs eclat association rules in R

actually I have to extract from my data the frequent pattern in R. The first algorithm I have used is apriori but reading some articles I have seen that also ...
user avatar
  • 57
0 votes
0 answers
165 views

Wiener transformation - K-Apriori Algorithm

Wiener transformation is used to transform a binary data to a real data? How it works? Is there a R package that implements this transformation? I have been searching about Market Basket Analysis and ...
user avatar
  • 1
1 vote
1 answer
178 views

Can affinity analysis be used for identifying other types of correlation besides purchases?

I made a questionnaire where respondents were asked to select up to 5 hurdles they consider to be the most significant for BI (business intelligence) initiatives in the cloud. Now I would like to ...
user avatar
  • 111
2 votes
1 answer
431 views

latent class analysis which modifies "given a certain class, probability for a respondent to show observed response"

Context I am trying to model a latent class model, which i give a priori restriction for the class-specific probabilities I'm using an SP data, for which respondents chose an alternative in 3 ...
user avatar
  • 123
1 vote
0 answers
743 views

What are some applications of the Apriori algorithm?

My understanding is that for online promotions the Apriori algorithm is not used as much as say collaborative filtering algorithms largely because the cost of marketing to the long tail is so cheap ...
user avatar
1 vote
0 answers
327 views

A-priori contrasts with type III sums of squares in R

I have a statistical analysis / data analysis problem: I am analyzing data using a factorial three-way ANOVA with a-priori contrasts and type III sums of squares. (Please don't speak about type I ...
user avatar
1 vote
0 answers
26 views

Text mining of machine logs to find correlation between errors in R [duplicate]

I've with me 50 MB data from a machine consisting of event logs such as device status, warning and error. I wish to perform text mining on the same to find correlation between errors i.e. one error ...
user avatar
4 votes
2 answers
937 views

Text mining of machine logs to find correlation between errors in R

I've with me 50 MB data from a machine consisting of event logs such as device status, warning and error. I wish to perform text mining on the same to find correlation between errors i.e. one error ...
user avatar
0 votes
1 answer
115 views

Apriori without left (before) and right (after) side

I use apriory algorithm for Market Basket Analysis in R. There is left (lhs) and right side (rhs) to look for: What customers buy before buying selected items (rhs is set, lhs is calculated) What ...
user avatar
  • 101
2 votes
1 answer
1k views

Can I justify using a one-tailed test in for this interaction effect?

I have an experimental setup with 2 factors, site and disturbance treatment. I have reason to suspect that plots at site A will be more affected by treatment than plots at site B. My response ...
user avatar
2 votes
1 answer
675 views

Is confidence transitive in asociation rules?

Given a set of rule such as: $A \rightarrow B$; $B \rightarrow C$; that satisfy minimum confidence in the context of apriori algorithm meaning: $$\text{Conf}(A \rightarrow B) \geq \text{min. ...
user avatar
  • 184
1 vote
0 answers
208 views

modeling changing items in market basket analysis

I'm performing a "dynamic" market basket analysis where a customer transaction is traced from the beginning (here it has an initial basket of product) to the finalized purchase (where there is the ...
user avatar
11 votes
3 answers
15k views

Apriori algorithm in plain English?

I read wiki article about Apriori. I have the trouble in understanding the prune and Join step. Can anyone explain me how Apriori algorithm works in simple terms(such that Novice like me can ...
user avatar
  • 539