Establish relationship between two sets of data Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Moderator Election Q&A - Questionnaire 2019 Community Moderator Election ResultsHadoop/Pig Aggregate DataMethods for Determining Possible Causation Between Two Time SeriesCorrelating company entities between different data sourcesMeasuring Difference Between Two Sets of Likert ValuesCorrelation between products based on purchases placed around the same dateIs there any logic to adding a threshold to see if two variables are related?Determining the correlations between aggregated data and non aggregated dataCorrelation between nominal categorical variablesHow to measure correlation between several categorical features and a numerical label in Python?

Storing hydrofluoric acid before the invention of plastics

Is the Standard Deduction better than Itemized when both are the same amount?

Is there a service that would inform me whenever a new direct route is scheduled from a given airport?

Should I discuss the type of campaign with my players?

Does surprise arrest existing movement?

The logistics of corpse disposal

When is phishing education going too far?

How to bypass password on Windows XP account?

I need to find the potential function of a vector field.

What are the pros and cons of Aerospike nosecones?

Why does Python start at index -1 when indexing a list from the end?

What are the motives behind Cersei's orders given to Bronn?

Why are there no cargo aircraft with "flying wing" design?

How discoverable are IPv6 addresses and AAAA names by potential attackers?

ListPlot join points by nearest neighbor rather than order

Is a manifold-with-boundary with given interior and non-empty boundary essentially unique?

Models of set theory where not every set can be linearly ordered

Check which numbers satisfy the condition [A*B*C = A! + B! + C!]

What causes the vertical darker bands in my photo?

How to recreate this effect in Photoshop?

iPhone Wallpaper?

Is above average number of years spent on PhD considered a red flag in future academia or industry positions?

How do I mention the quality of my school without bragging

When to stop saving and start investing?



Establish relationship between two sets of data



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
2019 Moderator Election Q&A - Questionnaire
2019 Community Moderator Election ResultsHadoop/Pig Aggregate DataMethods for Determining Possible Causation Between Two Time SeriesCorrelating company entities between different data sourcesMeasuring Difference Between Two Sets of Likert ValuesCorrelation between products based on purchases placed around the same dateIs there any logic to adding a threshold to see if two variables are related?Determining the correlations between aggregated data and non aggregated dataCorrelation between nominal categorical variablesHow to measure correlation between several categorical features and a numerical label in Python?










1












$begingroup$


I have two data sets - Product to Features and Products to Parts



A = (P1, F1, F2, F3), (P2, F2, F4, F6), (P3, F1, F6, F8)...
B = (P1, M1, M2, M3), (P2, M4, M7), (P3, M1, M5, M7, M9, M10)..


where:



P1, P2, P3... are products

F1, F2, F3... are features

M1, M2, M3... are parts used in building products.



Is it possible to come up with relationship amongst features and parts?



e.g. (F1, M1, M2), (F2, M1, M4, M6)... and so on?










share|improve this question











$endgroup$











  • $begingroup$
    Are you looking to join two datasets on one aspect (product id I'm guessing)?
    $endgroup$
    – S van Balen
    Apr 1 at 22:39










  • $begingroup$
    Yes, that is the idea. Is there any data science method that can take such metrics and come up with a possible association/correlation?
    $endgroup$
    – Viral Patel
    Apr 2 at 15:23















1












$begingroup$


I have two data sets - Product to Features and Products to Parts



A = (P1, F1, F2, F3), (P2, F2, F4, F6), (P3, F1, F6, F8)...
B = (P1, M1, M2, M3), (P2, M4, M7), (P3, M1, M5, M7, M9, M10)..


where:



P1, P2, P3... are products

F1, F2, F3... are features

M1, M2, M3... are parts used in building products.



Is it possible to come up with relationship amongst features and parts?



e.g. (F1, M1, M2), (F2, M1, M4, M6)... and so on?










share|improve this question











$endgroup$











  • $begingroup$
    Are you looking to join two datasets on one aspect (product id I'm guessing)?
    $endgroup$
    – S van Balen
    Apr 1 at 22:39










  • $begingroup$
    Yes, that is the idea. Is there any data science method that can take such metrics and come up with a possible association/correlation?
    $endgroup$
    – Viral Patel
    Apr 2 at 15:23













1












1








1





$begingroup$


I have two data sets - Product to Features and Products to Parts



A = (P1, F1, F2, F3), (P2, F2, F4, F6), (P3, F1, F6, F8)...
B = (P1, M1, M2, M3), (P2, M4, M7), (P3, M1, M5, M7, M9, M10)..


where:



P1, P2, P3... are products

F1, F2, F3... are features

M1, M2, M3... are parts used in building products.



Is it possible to come up with relationship amongst features and parts?



e.g. (F1, M1, M2), (F2, M1, M4, M6)... and so on?










share|improve this question











$endgroup$




I have two data sets - Product to Features and Products to Parts



A = (P1, F1, F2, F3), (P2, F2, F4, F6), (P3, F1, F6, F8)...
B = (P1, M1, M2, M3), (P2, M4, M7), (P3, M1, M5, M7, M9, M10)..


where:



P1, P2, P3... are products

F1, F2, F3... are features

M1, M2, M3... are parts used in building products.



Is it possible to come up with relationship amongst features and parts?



e.g. (F1, M1, M2), (F2, M1, M4, M6)... and so on?







correlation






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 2 at 6:15









KT12

8811




8811










asked Apr 1 at 21:45









Viral PatelViral Patel

61




61











  • $begingroup$
    Are you looking to join two datasets on one aspect (product id I'm guessing)?
    $endgroup$
    – S van Balen
    Apr 1 at 22:39










  • $begingroup$
    Yes, that is the idea. Is there any data science method that can take such metrics and come up with a possible association/correlation?
    $endgroup$
    – Viral Patel
    Apr 2 at 15:23
















  • $begingroup$
    Are you looking to join two datasets on one aspect (product id I'm guessing)?
    $endgroup$
    – S van Balen
    Apr 1 at 22:39










  • $begingroup$
    Yes, that is the idea. Is there any data science method that can take such metrics and come up with a possible association/correlation?
    $endgroup$
    – Viral Patel
    Apr 2 at 15:23















$begingroup$
Are you looking to join two datasets on one aspect (product id I'm guessing)?
$endgroup$
– S van Balen
Apr 1 at 22:39




$begingroup$
Are you looking to join two datasets on one aspect (product id I'm guessing)?
$endgroup$
– S van Balen
Apr 1 at 22:39












$begingroup$
Yes, that is the idea. Is there any data science method that can take such metrics and come up with a possible association/correlation?
$endgroup$
– Viral Patel
Apr 2 at 15:23




$begingroup$
Yes, that is the idea. Is there any data science method that can take such metrics and come up with a possible association/correlation?
$endgroup$
– Viral Patel
Apr 2 at 15:23










2 Answers
2






active

oldest

votes


















1












$begingroup$

I think you may be able to shed light on relationships between features and parts using association rule learning. You can treat the parts and features similarly to items in a market basket.



Updated:



A = ('P1', 'F1', 'F2', 'F3'),
('P2', 'F2', 'F4', 'F6'),
('P3', 'F1', 'F6', 'F8')

B = ('P1', 'M1', 'M2', 'M3'),
('P2', 'M4', 'M7'),
('P3', 'M1', 'M5', 'M7', 'M9', 'M10')

parts = 'P1','P2','P3'

basket =
for k in parts:
temp = []
for a in A:
if k in a:
temp += list(a)
for b in B:
if k in b:
temp += list(b)
temp.remove(k)
basket[k] = temp


Then use each value in the basket dictionary as a basket.






share|improve this answer











$endgroup$












  • $begingroup$
    would association rule apply across sets or only within a set (like the example they use - items in a given sales transaction and their relationship)
    $endgroup$
    – Viral Patel
    Apr 2 at 15:09










  • $begingroup$
    I would combine the features and parts that correspond to each product, and treat each product's features and parts as one basket.
    $endgroup$
    – KT12
    Apr 3 at 1:47


















0












$begingroup$

It totally depends on how the features are related to the parts.



If they related, you can form a bi-partite graph of (features-parts) for every product. Bi-Partitie graph can be formed if there are no relations between Features and Products among themselves.



enter image description here



If the relation for you is not correct, you can always form a tupled relation.



p1: (f1, m1), (f2, m1)


this finally depends on your dataset and the relation it has among themselves.






share|improve this answer











$endgroup$












  • $begingroup$
    There is definitely a relationship "HAS" between product and features. There is no explicit relationship between features and corresponding parts to implement the feature. Goal is to derive the same using above 2 sets.
    $endgroup$
    – Viral Patel
    Apr 2 at 15:07











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "557"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f48378%2festablish-relationship-between-two-sets-of-data%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









1












$begingroup$

I think you may be able to shed light on relationships between features and parts using association rule learning. You can treat the parts and features similarly to items in a market basket.



Updated:



A = ('P1', 'F1', 'F2', 'F3'),
('P2', 'F2', 'F4', 'F6'),
('P3', 'F1', 'F6', 'F8')

B = ('P1', 'M1', 'M2', 'M3'),
('P2', 'M4', 'M7'),
('P3', 'M1', 'M5', 'M7', 'M9', 'M10')

parts = 'P1','P2','P3'

basket =
for k in parts:
temp = []
for a in A:
if k in a:
temp += list(a)
for b in B:
if k in b:
temp += list(b)
temp.remove(k)
basket[k] = temp


Then use each value in the basket dictionary as a basket.






share|improve this answer











$endgroup$












  • $begingroup$
    would association rule apply across sets or only within a set (like the example they use - items in a given sales transaction and their relationship)
    $endgroup$
    – Viral Patel
    Apr 2 at 15:09










  • $begingroup$
    I would combine the features and parts that correspond to each product, and treat each product's features and parts as one basket.
    $endgroup$
    – KT12
    Apr 3 at 1:47















1












$begingroup$

I think you may be able to shed light on relationships between features and parts using association rule learning. You can treat the parts and features similarly to items in a market basket.



Updated:



A = ('P1', 'F1', 'F2', 'F3'),
('P2', 'F2', 'F4', 'F6'),
('P3', 'F1', 'F6', 'F8')

B = ('P1', 'M1', 'M2', 'M3'),
('P2', 'M4', 'M7'),
('P3', 'M1', 'M5', 'M7', 'M9', 'M10')

parts = 'P1','P2','P3'

basket =
for k in parts:
temp = []
for a in A:
if k in a:
temp += list(a)
for b in B:
if k in b:
temp += list(b)
temp.remove(k)
basket[k] = temp


Then use each value in the basket dictionary as a basket.






share|improve this answer











$endgroup$












  • $begingroup$
    would association rule apply across sets or only within a set (like the example they use - items in a given sales transaction and their relationship)
    $endgroup$
    – Viral Patel
    Apr 2 at 15:09










  • $begingroup$
    I would combine the features and parts that correspond to each product, and treat each product's features and parts as one basket.
    $endgroup$
    – KT12
    Apr 3 at 1:47













1












1








1





$begingroup$

I think you may be able to shed light on relationships between features and parts using association rule learning. You can treat the parts and features similarly to items in a market basket.



Updated:



A = ('P1', 'F1', 'F2', 'F3'),
('P2', 'F2', 'F4', 'F6'),
('P3', 'F1', 'F6', 'F8')

B = ('P1', 'M1', 'M2', 'M3'),
('P2', 'M4', 'M7'),
('P3', 'M1', 'M5', 'M7', 'M9', 'M10')

parts = 'P1','P2','P3'

basket =
for k in parts:
temp = []
for a in A:
if k in a:
temp += list(a)
for b in B:
if k in b:
temp += list(b)
temp.remove(k)
basket[k] = temp


Then use each value in the basket dictionary as a basket.






share|improve this answer











$endgroup$



I think you may be able to shed light on relationships between features and parts using association rule learning. You can treat the parts and features similarly to items in a market basket.



Updated:



A = ('P1', 'F1', 'F2', 'F3'),
('P2', 'F2', 'F4', 'F6'),
('P3', 'F1', 'F6', 'F8')

B = ('P1', 'M1', 'M2', 'M3'),
('P2', 'M4', 'M7'),
('P3', 'M1', 'M5', 'M7', 'M9', 'M10')

parts = 'P1','P2','P3'

basket =
for k in parts:
temp = []
for a in A:
if k in a:
temp += list(a)
for b in B:
if k in b:
temp += list(b)
temp.remove(k)
basket[k] = temp


Then use each value in the basket dictionary as a basket.







share|improve this answer














share|improve this answer



share|improve this answer








edited Apr 3 at 1:53

























answered Apr 2 at 2:37









KT12KT12

8811




8811











  • $begingroup$
    would association rule apply across sets or only within a set (like the example they use - items in a given sales transaction and their relationship)
    $endgroup$
    – Viral Patel
    Apr 2 at 15:09










  • $begingroup$
    I would combine the features and parts that correspond to each product, and treat each product's features and parts as one basket.
    $endgroup$
    – KT12
    Apr 3 at 1:47
















  • $begingroup$
    would association rule apply across sets or only within a set (like the example they use - items in a given sales transaction and their relationship)
    $endgroup$
    – Viral Patel
    Apr 2 at 15:09










  • $begingroup$
    I would combine the features and parts that correspond to each product, and treat each product's features and parts as one basket.
    $endgroup$
    – KT12
    Apr 3 at 1:47















$begingroup$
would association rule apply across sets or only within a set (like the example they use - items in a given sales transaction and their relationship)
$endgroup$
– Viral Patel
Apr 2 at 15:09




$begingroup$
would association rule apply across sets or only within a set (like the example they use - items in a given sales transaction and their relationship)
$endgroup$
– Viral Patel
Apr 2 at 15:09












$begingroup$
I would combine the features and parts that correspond to each product, and treat each product's features and parts as one basket.
$endgroup$
– KT12
Apr 3 at 1:47




$begingroup$
I would combine the features and parts that correspond to each product, and treat each product's features and parts as one basket.
$endgroup$
– KT12
Apr 3 at 1:47











0












$begingroup$

It totally depends on how the features are related to the parts.



If they related, you can form a bi-partite graph of (features-parts) for every product. Bi-Partitie graph can be formed if there are no relations between Features and Products among themselves.



enter image description here



If the relation for you is not correct, you can always form a tupled relation.



p1: (f1, m1), (f2, m1)


this finally depends on your dataset and the relation it has among themselves.






share|improve this answer











$endgroup$












  • $begingroup$
    There is definitely a relationship "HAS" between product and features. There is no explicit relationship between features and corresponding parts to implement the feature. Goal is to derive the same using above 2 sets.
    $endgroup$
    – Viral Patel
    Apr 2 at 15:07















0












$begingroup$

It totally depends on how the features are related to the parts.



If they related, you can form a bi-partite graph of (features-parts) for every product. Bi-Partitie graph can be formed if there are no relations between Features and Products among themselves.



enter image description here



If the relation for you is not correct, you can always form a tupled relation.



p1: (f1, m1), (f2, m1)


this finally depends on your dataset and the relation it has among themselves.






share|improve this answer











$endgroup$












  • $begingroup$
    There is definitely a relationship "HAS" between product and features. There is no explicit relationship between features and corresponding parts to implement the feature. Goal is to derive the same using above 2 sets.
    $endgroup$
    – Viral Patel
    Apr 2 at 15:07













0












0








0





$begingroup$

It totally depends on how the features are related to the parts.



If they related, you can form a bi-partite graph of (features-parts) for every product. Bi-Partitie graph can be formed if there are no relations between Features and Products among themselves.



enter image description here



If the relation for you is not correct, you can always form a tupled relation.



p1: (f1, m1), (f2, m1)


this finally depends on your dataset and the relation it has among themselves.






share|improve this answer











$endgroup$



It totally depends on how the features are related to the parts.



If they related, you can form a bi-partite graph of (features-parts) for every product. Bi-Partitie graph can be formed if there are no relations between Features and Products among themselves.



enter image description here



If the relation for you is not correct, you can always form a tupled relation.



p1: (f1, m1), (f2, m1)


this finally depends on your dataset and the relation it has among themselves.







share|improve this answer














share|improve this answer



share|improve this answer








edited Apr 2 at 1:34









Stephen Rauch

1,52551330




1,52551330










answered Apr 1 at 23:27









William ScottWilliam Scott

1063




1063











  • $begingroup$
    There is definitely a relationship "HAS" between product and features. There is no explicit relationship between features and corresponding parts to implement the feature. Goal is to derive the same using above 2 sets.
    $endgroup$
    – Viral Patel
    Apr 2 at 15:07
















  • $begingroup$
    There is definitely a relationship "HAS" between product and features. There is no explicit relationship between features and corresponding parts to implement the feature. Goal is to derive the same using above 2 sets.
    $endgroup$
    – Viral Patel
    Apr 2 at 15:07















$begingroup$
There is definitely a relationship "HAS" between product and features. There is no explicit relationship between features and corresponding parts to implement the feature. Goal is to derive the same using above 2 sets.
$endgroup$
– Viral Patel
Apr 2 at 15:07




$begingroup$
There is definitely a relationship "HAS" between product and features. There is no explicit relationship between features and corresponding parts to implement the feature. Goal is to derive the same using above 2 sets.
$endgroup$
– Viral Patel
Apr 2 at 15:07

















draft saved

draft discarded
















































Thanks for contributing an answer to Data Science Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

Use MathJax to format equations. MathJax reference.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f48378%2festablish-relationship-between-two-sets-of-data%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Adding axes to figuresAdding axes labels to LaTeX figuresLaTeX equivalent of ConTeXt buffersRotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?TikZ scaling graphic and adjust node position and keep font sizeNumerical conditional within tikz keys?adding axes to shapesAlign axes across subfiguresAdding figures with a certain orderLine up nested tikz enviroments or how to get rid of themAdding axes labels to LaTeX figures

Luettelo Yhdysvaltain laivaston lentotukialuksista Lähteet | Navigointivalikko

Gary (muusikko) Sisällysluettelo Historia | Rockin' High | Lähteet | Aiheesta muualla | NavigointivalikkoInfobox OKTuomas "Gary" Keskinen Ancaran kitaristiksiProjekti Rockin' High