Probability of a password having no uppercase letters and at least one digit.
$begingroup$
A password consists of 7 characters, where each character has is either an uppercase letter, lowercase letter or a (decimal) digit. I'm trying to find the probability of a password having no uppercase letters and at least one digit.
I know that my sample space has cardinality $62^7$. Let $A = text{set of that a passwords that have no uppercase letters }$, and $B = text{set of that a password that have at least one decimal digit }$. I tried to first find $|A cap B|$ by using the property that $|A cap B| = |S| - |bar A cup bar B|$, where $S$ is our sample space and a bar represents the complement of a set with respect to the sample space. Now, $bar A cup bar B = text{set of that a password that have only letters } = bar B$, from which we have $|bar A cup bar B| = 52^7$. This thus gives $|A cap B| = |S| - |bar A cup bar B| = 62^7-52^7$. Thus we have that the probability of a password having no uppercase letters and at least one digit is: $$frac{62^7-52^7}{62^7}$$ Now, I'm not entirely sure if my solution is correct as this probability coincides with the probability that I obtain a password with at least one decimal digit which would imply that the number of passwords which have at least one decimal digit and no lowercase letters is equal to the number of password with at least one decimal digit, which is obviously false. However, I'm not exactly sure where I've went wrong.
probability
$endgroup$
add a comment |
$begingroup$
A password consists of 7 characters, where each character has is either an uppercase letter, lowercase letter or a (decimal) digit. I'm trying to find the probability of a password having no uppercase letters and at least one digit.
I know that my sample space has cardinality $62^7$. Let $A = text{set of that a passwords that have no uppercase letters }$, and $B = text{set of that a password that have at least one decimal digit }$. I tried to first find $|A cap B|$ by using the property that $|A cap B| = |S| - |bar A cup bar B|$, where $S$ is our sample space and a bar represents the complement of a set with respect to the sample space. Now, $bar A cup bar B = text{set of that a password that have only letters } = bar B$, from which we have $|bar A cup bar B| = 52^7$. This thus gives $|A cap B| = |S| - |bar A cup bar B| = 62^7-52^7$. Thus we have that the probability of a password having no uppercase letters and at least one digit is: $$frac{62^7-52^7}{62^7}$$ Now, I'm not entirely sure if my solution is correct as this probability coincides with the probability that I obtain a password with at least one decimal digit which would imply that the number of passwords which have at least one decimal digit and no lowercase letters is equal to the number of password with at least one decimal digit, which is obviously false. However, I'm not exactly sure where I've went wrong.
probability
$endgroup$
add a comment |
$begingroup$
A password consists of 7 characters, where each character has is either an uppercase letter, lowercase letter or a (decimal) digit. I'm trying to find the probability of a password having no uppercase letters and at least one digit.
I know that my sample space has cardinality $62^7$. Let $A = text{set of that a passwords that have no uppercase letters }$, and $B = text{set of that a password that have at least one decimal digit }$. I tried to first find $|A cap B|$ by using the property that $|A cap B| = |S| - |bar A cup bar B|$, where $S$ is our sample space and a bar represents the complement of a set with respect to the sample space. Now, $bar A cup bar B = text{set of that a password that have only letters } = bar B$, from which we have $|bar A cup bar B| = 52^7$. This thus gives $|A cap B| = |S| - |bar A cup bar B| = 62^7-52^7$. Thus we have that the probability of a password having no uppercase letters and at least one digit is: $$frac{62^7-52^7}{62^7}$$ Now, I'm not entirely sure if my solution is correct as this probability coincides with the probability that I obtain a password with at least one decimal digit which would imply that the number of passwords which have at least one decimal digit and no lowercase letters is equal to the number of password with at least one decimal digit, which is obviously false. However, I'm not exactly sure where I've went wrong.
probability
$endgroup$
A password consists of 7 characters, where each character has is either an uppercase letter, lowercase letter or a (decimal) digit. I'm trying to find the probability of a password having no uppercase letters and at least one digit.
I know that my sample space has cardinality $62^7$. Let $A = text{set of that a passwords that have no uppercase letters }$, and $B = text{set of that a password that have at least one decimal digit }$. I tried to first find $|A cap B|$ by using the property that $|A cap B| = |S| - |bar A cup bar B|$, where $S$ is our sample space and a bar represents the complement of a set with respect to the sample space. Now, $bar A cup bar B = text{set of that a password that have only letters } = bar B$, from which we have $|bar A cup bar B| = 52^7$. This thus gives $|A cap B| = |S| - |bar A cup bar B| = 62^7-52^7$. Thus we have that the probability of a password having no uppercase letters and at least one digit is: $$frac{62^7-52^7}{62^7}$$ Now, I'm not entirely sure if my solution is correct as this probability coincides with the probability that I obtain a password with at least one decimal digit which would imply that the number of passwords which have at least one decimal digit and no lowercase letters is equal to the number of password with at least one decimal digit, which is obviously false. However, I'm not exactly sure where I've went wrong.
probability
probability
asked Jan 15 at 21:40
HaiHai
34819
34819
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
There are a total of $62^7$ passwords, of which $36^7$ have no uppercase letters. The latter can be split into two types - 1. at least one digit, 2. zero digits. So let's find the number of passwords with no uppercase letters and no digits (category 2). This would be $26^7$. Thus, the number of passwords with no uppercase letters and at least one digit is $36^7-26^7$. Finally, the desired probability is:
$$frac{36^7-26^7}{62^7}$$
$endgroup$
add a comment |
Your Answer
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%2f3075005%2fprobability-of-a-password-having-no-uppercase-letters-and-at-least-one-digit%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$
There are a total of $62^7$ passwords, of which $36^7$ have no uppercase letters. The latter can be split into two types - 1. at least one digit, 2. zero digits. So let's find the number of passwords with no uppercase letters and no digits (category 2). This would be $26^7$. Thus, the number of passwords with no uppercase letters and at least one digit is $36^7-26^7$. Finally, the desired probability is:
$$frac{36^7-26^7}{62^7}$$
$endgroup$
add a comment |
$begingroup$
There are a total of $62^7$ passwords, of which $36^7$ have no uppercase letters. The latter can be split into two types - 1. at least one digit, 2. zero digits. So let's find the number of passwords with no uppercase letters and no digits (category 2). This would be $26^7$. Thus, the number of passwords with no uppercase letters and at least one digit is $36^7-26^7$. Finally, the desired probability is:
$$frac{36^7-26^7}{62^7}$$
$endgroup$
add a comment |
$begingroup$
There are a total of $62^7$ passwords, of which $36^7$ have no uppercase letters. The latter can be split into two types - 1. at least one digit, 2. zero digits. So let's find the number of passwords with no uppercase letters and no digits (category 2). This would be $26^7$. Thus, the number of passwords with no uppercase letters and at least one digit is $36^7-26^7$. Finally, the desired probability is:
$$frac{36^7-26^7}{62^7}$$
$endgroup$
There are a total of $62^7$ passwords, of which $36^7$ have no uppercase letters. The latter can be split into two types - 1. at least one digit, 2. zero digits. So let's find the number of passwords with no uppercase letters and no digits (category 2). This would be $26^7$. Thus, the number of passwords with no uppercase letters and at least one digit is $36^7-26^7$. Finally, the desired probability is:
$$frac{36^7-26^7}{62^7}$$
answered Jan 15 at 21:50
Aditya DuaAditya Dua
1,15418
1,15418
add a comment |
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%2f3075005%2fprobability-of-a-password-having-no-uppercase-letters-and-at-least-one-digit%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