Number of couple of pairs in two datasets
$begingroup$
This is a problem related to combination math.
I have two sets of elements : $A = big(a,b,...,z big)$ and $B = (1,2,...,26)$.
Each element from set $A$ can be paired with an element of set $B$, leading to a pair. I want to make couple of unique pairs so that each pair can be selected multiple times but a couple can only be picked once:
{(a,1), (b,2)} is one valid couple,
{(a,2)(b,2)} is not (2 is used twice in the couple).
{(b,2)(a,1)} is not valid because identical to {(a,1), (b,2)}.
{(a,1),(b,3)} is valid (a,1) already picked but (b,3) not picked.
How many couple of pairs can I make for this dataset?
How many triplets of pairs (per ex.: {(a,2)(b,2),(c,3)}?
If dataset $A$ is of size $m$, and dataset $B$ of size $n$, the formula I get on the paper is $S = sum_{i=0}^{n-1}mBig(2.(n-1)-2i)Big)$, but I experimentally I count $2.binom{n}{2}^2$ combinations.
Event if the second formula is correct, I'm really interested in the general formula (triplets, quadruplets,... of pairs).
combinatorics
$endgroup$
add a comment |
$begingroup$
This is a problem related to combination math.
I have two sets of elements : $A = big(a,b,...,z big)$ and $B = (1,2,...,26)$.
Each element from set $A$ can be paired with an element of set $B$, leading to a pair. I want to make couple of unique pairs so that each pair can be selected multiple times but a couple can only be picked once:
{(a,1), (b,2)} is one valid couple,
{(a,2)(b,2)} is not (2 is used twice in the couple).
{(b,2)(a,1)} is not valid because identical to {(a,1), (b,2)}.
{(a,1),(b,3)} is valid (a,1) already picked but (b,3) not picked.
How many couple of pairs can I make for this dataset?
How many triplets of pairs (per ex.: {(a,2)(b,2),(c,3)}?
If dataset $A$ is of size $m$, and dataset $B$ of size $n$, the formula I get on the paper is $S = sum_{i=0}^{n-1}mBig(2.(n-1)-2i)Big)$, but I experimentally I count $2.binom{n}{2}^2$ combinations.
Event if the second formula is correct, I'm really interested in the general formula (triplets, quadruplets,... of pairs).
combinatorics
$endgroup$
$begingroup$
If I understand your question correctly, each ordered pair must contain a letter and a number in that order and each couple must contain two ordered pairs that do not share the same number or same letter. Is that correct?
$endgroup$
– N. F. Taussig
Feb 1 at 10:25
$begingroup$
@N.F.Taussig Correct!
$endgroup$
– T4nT413
Feb 1 at 10:47
add a comment |
$begingroup$
This is a problem related to combination math.
I have two sets of elements : $A = big(a,b,...,z big)$ and $B = (1,2,...,26)$.
Each element from set $A$ can be paired with an element of set $B$, leading to a pair. I want to make couple of unique pairs so that each pair can be selected multiple times but a couple can only be picked once:
{(a,1), (b,2)} is one valid couple,
{(a,2)(b,2)} is not (2 is used twice in the couple).
{(b,2)(a,1)} is not valid because identical to {(a,1), (b,2)}.
{(a,1),(b,3)} is valid (a,1) already picked but (b,3) not picked.
How many couple of pairs can I make for this dataset?
How many triplets of pairs (per ex.: {(a,2)(b,2),(c,3)}?
If dataset $A$ is of size $m$, and dataset $B$ of size $n$, the formula I get on the paper is $S = sum_{i=0}^{n-1}mBig(2.(n-1)-2i)Big)$, but I experimentally I count $2.binom{n}{2}^2$ combinations.
Event if the second formula is correct, I'm really interested in the general formula (triplets, quadruplets,... of pairs).
combinatorics
$endgroup$
This is a problem related to combination math.
I have two sets of elements : $A = big(a,b,...,z big)$ and $B = (1,2,...,26)$.
Each element from set $A$ can be paired with an element of set $B$, leading to a pair. I want to make couple of unique pairs so that each pair can be selected multiple times but a couple can only be picked once:
{(a,1), (b,2)} is one valid couple,
{(a,2)(b,2)} is not (2 is used twice in the couple).
{(b,2)(a,1)} is not valid because identical to {(a,1), (b,2)}.
{(a,1),(b,3)} is valid (a,1) already picked but (b,3) not picked.
How many couple of pairs can I make for this dataset?
How many triplets of pairs (per ex.: {(a,2)(b,2),(c,3)}?
If dataset $A$ is of size $m$, and dataset $B$ of size $n$, the formula I get on the paper is $S = sum_{i=0}^{n-1}mBig(2.(n-1)-2i)Big)$, but I experimentally I count $2.binom{n}{2}^2$ combinations.
Event if the second formula is correct, I'm really interested in the general formula (triplets, quadruplets,... of pairs).
combinatorics
combinatorics
edited Feb 1 at 17:03
T4nT413
asked Jan 31 at 18:30
T4nT413T4nT413
32
32
$begingroup$
If I understand your question correctly, each ordered pair must contain a letter and a number in that order and each couple must contain two ordered pairs that do not share the same number or same letter. Is that correct?
$endgroup$
– N. F. Taussig
Feb 1 at 10:25
$begingroup$
@N.F.Taussig Correct!
$endgroup$
– T4nT413
Feb 1 at 10:47
add a comment |
$begingroup$
If I understand your question correctly, each ordered pair must contain a letter and a number in that order and each couple must contain two ordered pairs that do not share the same number or same letter. Is that correct?
$endgroup$
– N. F. Taussig
Feb 1 at 10:25
$begingroup$
@N.F.Taussig Correct!
$endgroup$
– T4nT413
Feb 1 at 10:47
$begingroup$
If I understand your question correctly, each ordered pair must contain a letter and a number in that order and each couple must contain two ordered pairs that do not share the same number or same letter. Is that correct?
$endgroup$
– N. F. Taussig
Feb 1 at 10:25
$begingroup$
If I understand your question correctly, each ordered pair must contain a letter and a number in that order and each couple must contain two ordered pairs that do not share the same number or same letter. Is that correct?
$endgroup$
– N. F. Taussig
Feb 1 at 10:25
$begingroup$
@N.F.Taussig Correct!
$endgroup$
– T4nT413
Feb 1 at 10:47
$begingroup$
@N.F.Taussig Correct!
$endgroup$
– T4nT413
Feb 1 at 10:47
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
You can make $2cdotbinom{26}2^2$ couples. Here is the reasoning:
Choose two element from A and two elements from B. That gives $binom{26}2^2$. There are $2$ ways to arrange them. e.g. with $(a,b)$ and $(1,2)$, you can do ${(a,1),(b,2)}$ or ${(a,2),(b,1)}$.
$endgroup$
1
$begingroup$
So If I understand correctly, for 2 datasets of respective size n and m, we have $2.binom{n}{2}.binom{m}{2}$ ?
$endgroup$
– T4nT413
Feb 1 at 12:21
$begingroup$
@T4nT413 yes that's right.
$endgroup$
– abc...
Feb 2 at 1:02
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3095276%2fnumber-of-couple-of-pairs-in-two-datasets%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
You can make $2cdotbinom{26}2^2$ couples. Here is the reasoning:
Choose two element from A and two elements from B. That gives $binom{26}2^2$. There are $2$ ways to arrange them. e.g. with $(a,b)$ and $(1,2)$, you can do ${(a,1),(b,2)}$ or ${(a,2),(b,1)}$.
$endgroup$
1
$begingroup$
So If I understand correctly, for 2 datasets of respective size n and m, we have $2.binom{n}{2}.binom{m}{2}$ ?
$endgroup$
– T4nT413
Feb 1 at 12:21
$begingroup$
@T4nT413 yes that's right.
$endgroup$
– abc...
Feb 2 at 1:02
add a comment |
$begingroup$
You can make $2cdotbinom{26}2^2$ couples. Here is the reasoning:
Choose two element from A and two elements from B. That gives $binom{26}2^2$. There are $2$ ways to arrange them. e.g. with $(a,b)$ and $(1,2)$, you can do ${(a,1),(b,2)}$ or ${(a,2),(b,1)}$.
$endgroup$
1
$begingroup$
So If I understand correctly, for 2 datasets of respective size n and m, we have $2.binom{n}{2}.binom{m}{2}$ ?
$endgroup$
– T4nT413
Feb 1 at 12:21
$begingroup$
@T4nT413 yes that's right.
$endgroup$
– abc...
Feb 2 at 1:02
add a comment |
$begingroup$
You can make $2cdotbinom{26}2^2$ couples. Here is the reasoning:
Choose two element from A and two elements from B. That gives $binom{26}2^2$. There are $2$ ways to arrange them. e.g. with $(a,b)$ and $(1,2)$, you can do ${(a,1),(b,2)}$ or ${(a,2),(b,1)}$.
$endgroup$
You can make $2cdotbinom{26}2^2$ couples. Here is the reasoning:
Choose two element from A and two elements from B. That gives $binom{26}2^2$. There are $2$ ways to arrange them. e.g. with $(a,b)$ and $(1,2)$, you can do ${(a,1),(b,2)}$ or ${(a,2),(b,1)}$.
answered Feb 1 at 10:29
abc...abc...
3,237739
3,237739
1
$begingroup$
So If I understand correctly, for 2 datasets of respective size n and m, we have $2.binom{n}{2}.binom{m}{2}$ ?
$endgroup$
– T4nT413
Feb 1 at 12:21
$begingroup$
@T4nT413 yes that's right.
$endgroup$
– abc...
Feb 2 at 1:02
add a comment |
1
$begingroup$
So If I understand correctly, for 2 datasets of respective size n and m, we have $2.binom{n}{2}.binom{m}{2}$ ?
$endgroup$
– T4nT413
Feb 1 at 12:21
$begingroup$
@T4nT413 yes that's right.
$endgroup$
– abc...
Feb 2 at 1:02
1
1
$begingroup$
So If I understand correctly, for 2 datasets of respective size n and m, we have $2.binom{n}{2}.binom{m}{2}$ ?
$endgroup$
– T4nT413
Feb 1 at 12:21
$begingroup$
So If I understand correctly, for 2 datasets of respective size n and m, we have $2.binom{n}{2}.binom{m}{2}$ ?
$endgroup$
– T4nT413
Feb 1 at 12:21
$begingroup$
@T4nT413 yes that's right.
$endgroup$
– abc...
Feb 2 at 1:02
$begingroup$
@T4nT413 yes that's right.
$endgroup$
– abc...
Feb 2 at 1:02
add a comment |
Thanks for contributing an answer to Mathematics 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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3095276%2fnumber-of-couple-of-pairs-in-two-datasets%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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

$begingroup$
If I understand your question correctly, each ordered pair must contain a letter and a number in that order and each couple must contain two ordered pairs that do not share the same number or same letter. Is that correct?
$endgroup$
– N. F. Taussig
Feb 1 at 10:25
$begingroup$
@N.F.Taussig Correct!
$endgroup$
– T4nT413
Feb 1 at 10:47