Questions tagged [apriori]

An algorithm for finding frequent itemsets in transactional datasets.

Filter by
Sorted by
Tagged with
2 votes
1 answer
38 views

How to identify patterns/associations in a multiple choice question towards another variable?

I have a dataset where with two questions. Question 1 is a multiple-choice question and asks the participants which treatment they took. E.g., treatment A, treatment B, treatment C etc. Question 2 ...
Gustav's user avatar
  • 127
3 votes
2 answers
33 views

Logic behind writing custom planned contrasts for a triple interaction

I have a model with a triple interaction involving two factors and one continuous variable. Replicable example: ...
Maurice Pasternak's user avatar
5 votes
0 answers
23 views

Apriori Algorithm confusion: difference between frequency and support

What is the correct way to calculate support? I have seen two different ways and I'm confused as a result. One way (say first approach) is explained https://en.wikipedia.org/wiki/...
Srishti M's user avatar
  • 1,405
0 votes
0 answers
20 views

Confidence vs order in data mining

Is there the relation between confidence and order of association rule when I am applying Apriori algorithm? Or is it dependent on the dataset? Disclaimer: This is based on a homework question. The ...
tumchaaditya's user avatar
1 vote
1 answer
399 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/...
Archana Jalaja Surendran's user avatar
1 vote
1 answer
164 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 ...
Sean's user avatar
  • 3,917
2 votes
1 answer
186 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 ...
igorkf's user avatar
  • 365
3 votes
1 answer
510 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 ...
raphael_mav's user avatar
1 vote
0 answers
259 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 ...
krishna koti's user avatar
1 vote
0 answers
112 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 ...
Islacine's user avatar
2 votes
1 answer
83 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
18 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: ...
user9940344's user avatar
3 votes
1 answer
3k 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 ...
Lamba_Jay's user avatar
1 vote
1 answer
436 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: ...
ironman's user avatar
  • 692
1 vote
1 answer
213 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 ...
John's user avatar
  • 11
8 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 ...
Karel Macek's user avatar
  • 2,816
2 votes
1 answer
1k 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: ...
Karel Macek's user avatar
  • 2,816
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: ...
Jarad's user avatar
  • 335
1 vote
0 answers
472 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 ...
Bing's user avatar
  • 179
4 votes
1 answer
998 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 ...
user366312's user avatar
  • 2,100
1 vote
1 answer
128 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?
Terry Wong's user avatar
1 vote
0 answers
182 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 ...
jkyh's 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 ...
Bhavya Shahi's user avatar
0 votes
1 answer
730 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 ...
j.jerrod.taylor's user avatar
1 vote
0 answers
344 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 ...
Dendi Segal's user avatar
0 votes
2 answers
5k 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. ...
j.jerrod.taylor's user avatar
5 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 ...
Vishal's user avatar
  • 1,284
0 votes
1 answer
26 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 : ...
Romeo Kienzler's user avatar
5 votes
1 answer
10k 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 ...
ChiPlusPlus's user avatar
-2 votes
1 answer
507 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?
GeorgeOfTheRF's 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?
GeorgeOfTheRF's 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 ...
Chakra's user avatar
  • 137
5 votes
3 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 ...
DP78's user avatar
  • 67
0 votes
0 answers
171 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 ...
FrlUn's user avatar
  • 1
1 vote
1 answer
182 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 ...
pmdci's user avatar
  • 111
2 votes
1 answer
481 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 ...
H.Choi's user avatar
  • 123
2 votes
0 answers
781 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 ...
foobar0100's user avatar
1 vote
0 answers
356 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 ...
Rachael Blake's 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 ...
Naive Babes's user avatar
4 votes
2 answers
969 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 ...
Naive Babes's user avatar
0 votes
1 answer
180 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 ...
Marek L.'s user avatar
  • 101
2 votes
1 answer
2k 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 ...
MANOVAboard's user avatar
3 votes
1 answer
800 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. ...
marbel's user avatar
  • 204
1 vote
0 answers
218 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 ...
Giorgio Spedicato's user avatar
11 votes
3 answers
16k 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 ...
Ant's's user avatar
  • 539