Random sampling of 100 data points from a binomial population
$begingroup$
This is my question I need to answer: Generate a random sample of 100 data points from a binomial population
B(40, 0.4).
I'm pretty sure that n=100 and my mean is 40 and standard deviation is .4, but I just do not know how to find the random sample?
statistics
$endgroup$
add a comment |
$begingroup$
This is my question I need to answer: Generate a random sample of 100 data points from a binomial population
B(40, 0.4).
I'm pretty sure that n=100 and my mean is 40 and standard deviation is .4, but I just do not know how to find the random sample?
statistics
$endgroup$
3
$begingroup$
Presumably you have access to a random number generator, which produces pseudo-random numbers in the interval $[0,1)$. Call something between $0$ and $0.4$ a success. Repeat $40$ times, count the number of successes. That will give you one data point. Repeat $100$ times.
$endgroup$
– André Nicolas
Dec 12 '13 at 0:30
add a comment |
$begingroup$
This is my question I need to answer: Generate a random sample of 100 data points from a binomial population
B(40, 0.4).
I'm pretty sure that n=100 and my mean is 40 and standard deviation is .4, but I just do not know how to find the random sample?
statistics
$endgroup$
This is my question I need to answer: Generate a random sample of 100 data points from a binomial population
B(40, 0.4).
I'm pretty sure that n=100 and my mean is 40 and standard deviation is .4, but I just do not know how to find the random sample?
statistics
statistics
asked Dec 12 '13 at 0:03
M ColbyM Colby
11
11
3
$begingroup$
Presumably you have access to a random number generator, which produces pseudo-random numbers in the interval $[0,1)$. Call something between $0$ and $0.4$ a success. Repeat $40$ times, count the number of successes. That will give you one data point. Repeat $100$ times.
$endgroup$
– André Nicolas
Dec 12 '13 at 0:30
add a comment |
3
$begingroup$
Presumably you have access to a random number generator, which produces pseudo-random numbers in the interval $[0,1)$. Call something between $0$ and $0.4$ a success. Repeat $40$ times, count the number of successes. That will give you one data point. Repeat $100$ times.
$endgroup$
– André Nicolas
Dec 12 '13 at 0:30
3
3
$begingroup$
Presumably you have access to a random number generator, which produces pseudo-random numbers in the interval $[0,1)$. Call something between $0$ and $0.4$ a success. Repeat $40$ times, count the number of successes. That will give you one data point. Repeat $100$ times.
$endgroup$
– André Nicolas
Dec 12 '13 at 0:30
$begingroup$
Presumably you have access to a random number generator, which produces pseudo-random numbers in the interval $[0,1)$. Call something between $0$ and $0.4$ a success. Repeat $40$ times, count the number of successes. That will give you one data point. Repeat $100$ times.
$endgroup$
– André Nicolas
Dec 12 '13 at 0:30
add a comment |
2 Answers
2
active
oldest
votes
$begingroup$
I generated in Mathematica, here are one sample data:
13, 16, 14, 18, 13, 10, 15, 15, 22, 9, 18, 18, 13, 17, 14, 10, 18,
16, 15, 18, 12, 16, 13, 12, 12, 9, 13, 17, 14, 13, 25, 16, 20, 23,
15, 10, 23, 14, 16, 18, 19, 22, 13, 16, 20, 16, 15, 12, 12, 13, 17,
15, 18, 13, 13, 17, 15, 15, 20, 15, 13, 16, 14, 18, 15, 15, 19, 17,
16, 21, 17, 20, 19, 14, 16, 16, 17, 19, 17, 23, 14, 20, 17, 13, 15,
21, 21, 23, 17, 22, 9, 11, 21, 12, 20, 15, 22, 15, 20, 15
$endgroup$
$begingroup$
You said 40 is the mean..so let me redo again. 40 should be the number of trial.
$endgroup$
– LorenMt
Dec 12 '13 at 0:37
$begingroup$
OP had indeed said $40$ is the mean, but that is not true.
$endgroup$
– André Nicolas
Dec 12 '13 at 0:39
$begingroup$
I have changed the data.
$endgroup$
– LorenMt
Dec 12 '13 at 0:41
add a comment |
$begingroup$
You need a random number generator. If you have excel, you can simply use the following formula: BINOM.INV(40,0.4,RAND()) and copy it into 100 cells. Each time you pres F9, you will get a new set of observations.
$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%2f603509%2frandom-sampling-of-100-data-points-from-a-binomial-population%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
$begingroup$
I generated in Mathematica, here are one sample data:
13, 16, 14, 18, 13, 10, 15, 15, 22, 9, 18, 18, 13, 17, 14, 10, 18,
16, 15, 18, 12, 16, 13, 12, 12, 9, 13, 17, 14, 13, 25, 16, 20, 23,
15, 10, 23, 14, 16, 18, 19, 22, 13, 16, 20, 16, 15, 12, 12, 13, 17,
15, 18, 13, 13, 17, 15, 15, 20, 15, 13, 16, 14, 18, 15, 15, 19, 17,
16, 21, 17, 20, 19, 14, 16, 16, 17, 19, 17, 23, 14, 20, 17, 13, 15,
21, 21, 23, 17, 22, 9, 11, 21, 12, 20, 15, 22, 15, 20, 15
$endgroup$
$begingroup$
You said 40 is the mean..so let me redo again. 40 should be the number of trial.
$endgroup$
– LorenMt
Dec 12 '13 at 0:37
$begingroup$
OP had indeed said $40$ is the mean, but that is not true.
$endgroup$
– André Nicolas
Dec 12 '13 at 0:39
$begingroup$
I have changed the data.
$endgroup$
– LorenMt
Dec 12 '13 at 0:41
add a comment |
$begingroup$
I generated in Mathematica, here are one sample data:
13, 16, 14, 18, 13, 10, 15, 15, 22, 9, 18, 18, 13, 17, 14, 10, 18,
16, 15, 18, 12, 16, 13, 12, 12, 9, 13, 17, 14, 13, 25, 16, 20, 23,
15, 10, 23, 14, 16, 18, 19, 22, 13, 16, 20, 16, 15, 12, 12, 13, 17,
15, 18, 13, 13, 17, 15, 15, 20, 15, 13, 16, 14, 18, 15, 15, 19, 17,
16, 21, 17, 20, 19, 14, 16, 16, 17, 19, 17, 23, 14, 20, 17, 13, 15,
21, 21, 23, 17, 22, 9, 11, 21, 12, 20, 15, 22, 15, 20, 15
$endgroup$
$begingroup$
You said 40 is the mean..so let me redo again. 40 should be the number of trial.
$endgroup$
– LorenMt
Dec 12 '13 at 0:37
$begingroup$
OP had indeed said $40$ is the mean, but that is not true.
$endgroup$
– André Nicolas
Dec 12 '13 at 0:39
$begingroup$
I have changed the data.
$endgroup$
– LorenMt
Dec 12 '13 at 0:41
add a comment |
$begingroup$
I generated in Mathematica, here are one sample data:
13, 16, 14, 18, 13, 10, 15, 15, 22, 9, 18, 18, 13, 17, 14, 10, 18,
16, 15, 18, 12, 16, 13, 12, 12, 9, 13, 17, 14, 13, 25, 16, 20, 23,
15, 10, 23, 14, 16, 18, 19, 22, 13, 16, 20, 16, 15, 12, 12, 13, 17,
15, 18, 13, 13, 17, 15, 15, 20, 15, 13, 16, 14, 18, 15, 15, 19, 17,
16, 21, 17, 20, 19, 14, 16, 16, 17, 19, 17, 23, 14, 20, 17, 13, 15,
21, 21, 23, 17, 22, 9, 11, 21, 12, 20, 15, 22, 15, 20, 15
$endgroup$
I generated in Mathematica, here are one sample data:
13, 16, 14, 18, 13, 10, 15, 15, 22, 9, 18, 18, 13, 17, 14, 10, 18,
16, 15, 18, 12, 16, 13, 12, 12, 9, 13, 17, 14, 13, 25, 16, 20, 23,
15, 10, 23, 14, 16, 18, 19, 22, 13, 16, 20, 16, 15, 12, 12, 13, 17,
15, 18, 13, 13, 17, 15, 15, 20, 15, 13, 16, 14, 18, 15, 15, 19, 17,
16, 21, 17, 20, 19, 14, 16, 16, 17, 19, 17, 23, 14, 20, 17, 13, 15,
21, 21, 23, 17, 22, 9, 11, 21, 12, 20, 15, 22, 15, 20, 15
edited Dec 12 '13 at 0:38
answered Dec 12 '13 at 0:22
LorenMtLorenMt
25818
25818
$begingroup$
You said 40 is the mean..so let me redo again. 40 should be the number of trial.
$endgroup$
– LorenMt
Dec 12 '13 at 0:37
$begingroup$
OP had indeed said $40$ is the mean, but that is not true.
$endgroup$
– André Nicolas
Dec 12 '13 at 0:39
$begingroup$
I have changed the data.
$endgroup$
– LorenMt
Dec 12 '13 at 0:41
add a comment |
$begingroup$
You said 40 is the mean..so let me redo again. 40 should be the number of trial.
$endgroup$
– LorenMt
Dec 12 '13 at 0:37
$begingroup$
OP had indeed said $40$ is the mean, but that is not true.
$endgroup$
– André Nicolas
Dec 12 '13 at 0:39
$begingroup$
I have changed the data.
$endgroup$
– LorenMt
Dec 12 '13 at 0:41
$begingroup$
You said 40 is the mean..so let me redo again. 40 should be the number of trial.
$endgroup$
– LorenMt
Dec 12 '13 at 0:37
$begingroup$
You said 40 is the mean..so let me redo again. 40 should be the number of trial.
$endgroup$
– LorenMt
Dec 12 '13 at 0:37
$begingroup$
OP had indeed said $40$ is the mean, but that is not true.
$endgroup$
– André Nicolas
Dec 12 '13 at 0:39
$begingroup$
OP had indeed said $40$ is the mean, but that is not true.
$endgroup$
– André Nicolas
Dec 12 '13 at 0:39
$begingroup$
I have changed the data.
$endgroup$
– LorenMt
Dec 12 '13 at 0:41
$begingroup$
I have changed the data.
$endgroup$
– LorenMt
Dec 12 '13 at 0:41
add a comment |
$begingroup$
You need a random number generator. If you have excel, you can simply use the following formula: BINOM.INV(40,0.4,RAND()) and copy it into 100 cells. Each time you pres F9, you will get a new set of observations.
$endgroup$
add a comment |
$begingroup$
You need a random number generator. If you have excel, you can simply use the following formula: BINOM.INV(40,0.4,RAND()) and copy it into 100 cells. Each time you pres F9, you will get a new set of observations.
$endgroup$
add a comment |
$begingroup$
You need a random number generator. If you have excel, you can simply use the following formula: BINOM.INV(40,0.4,RAND()) and copy it into 100 cells. Each time you pres F9, you will get a new set of observations.
$endgroup$
You need a random number generator. If you have excel, you can simply use the following formula: BINOM.INV(40,0.4,RAND()) and copy it into 100 cells. Each time you pres F9, you will get a new set of observations.
answered Dec 12 '13 at 3:52
user76844
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%2f603509%2frandom-sampling-of-100-data-points-from-a-binomial-population%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
3
$begingroup$
Presumably you have access to a random number generator, which produces pseudo-random numbers in the interval $[0,1)$. Call something between $0$ and $0.4$ a success. Repeat $40$ times, count the number of successes. That will give you one data point. Repeat $100$ times.
$endgroup$
– André Nicolas
Dec 12 '13 at 0:30