Is getting a random integer even possible?
$begingroup$
On googling I got
Random numbers are numbers that occur in a sequence such that two conditions are met: (1) the values are uniformly distributed over a defined interval or set, and (2) it is impossible to predict future values based on past or present ones. Random numbers are important in statistical analysis and probability theory.
What if I want to pick a random integer from the number line ?
The number line consists of infinitely many integers.
My favorable event is to get a number (random) and the number of events possible is the complete number line i.e. infinity.
I won't be considering any limits here as our number line doesn't tend to infinity but does contain infinitely many elements.
Now the probability of getting a random number
P(E) = 1 / ∞ = 0
So I won't be able to get a random number, ever.
This implies, never would I ever be able to get a random number.
That's absurd as many of our science topics do depends on things being random.
probability random integers
$endgroup$
add a comment |
$begingroup$
On googling I got
Random numbers are numbers that occur in a sequence such that two conditions are met: (1) the values are uniformly distributed over a defined interval or set, and (2) it is impossible to predict future values based on past or present ones. Random numbers are important in statistical analysis and probability theory.
What if I want to pick a random integer from the number line ?
The number line consists of infinitely many integers.
My favorable event is to get a number (random) and the number of events possible is the complete number line i.e. infinity.
I won't be considering any limits here as our number line doesn't tend to infinity but does contain infinitely many elements.
Now the probability of getting a random number
P(E) = 1 / ∞ = 0
So I won't be able to get a random number, ever.
This implies, never would I ever be able to get a random number.
That's absurd as many of our science topics do depends on things being random.
probability random integers
$endgroup$
5
$begingroup$
There is no such thing as a uniform distribution on the set of integers (for the reasons that you outlined).
$endgroup$
– John Coleman
Aug 3 '16 at 14:29
$begingroup$
Integers are distributed uniformly, aren't they ?
$endgroup$
– Hritik
Aug 3 '16 at 14:30
3
$begingroup$
There is no uniform probability distribution on them (though there are various non-uniform distributions). The fact that the integers are spatially distributed in a uniform way is irrelevant.
$endgroup$
– John Coleman
Aug 3 '16 at 14:32
$begingroup$
Perhaps you are using a different definition of "uniform distribution"? If you are using the standard definition then, as @JohnColeman says, there does not exist a uniform distribution on the integers.
$endgroup$
– Lee Mosher
Aug 3 '16 at 14:34
$begingroup$
Would you like to explain a bit further or quote a reference ?
$endgroup$
– Hritik
Aug 3 '16 at 14:34
add a comment |
$begingroup$
On googling I got
Random numbers are numbers that occur in a sequence such that two conditions are met: (1) the values are uniformly distributed over a defined interval or set, and (2) it is impossible to predict future values based on past or present ones. Random numbers are important in statistical analysis and probability theory.
What if I want to pick a random integer from the number line ?
The number line consists of infinitely many integers.
My favorable event is to get a number (random) and the number of events possible is the complete number line i.e. infinity.
I won't be considering any limits here as our number line doesn't tend to infinity but does contain infinitely many elements.
Now the probability of getting a random number
P(E) = 1 / ∞ = 0
So I won't be able to get a random number, ever.
This implies, never would I ever be able to get a random number.
That's absurd as many of our science topics do depends on things being random.
probability random integers
$endgroup$
On googling I got
Random numbers are numbers that occur in a sequence such that two conditions are met: (1) the values are uniformly distributed over a defined interval or set, and (2) it is impossible to predict future values based on past or present ones. Random numbers are important in statistical analysis and probability theory.
What if I want to pick a random integer from the number line ?
The number line consists of infinitely many integers.
My favorable event is to get a number (random) and the number of events possible is the complete number line i.e. infinity.
I won't be considering any limits here as our number line doesn't tend to infinity but does contain infinitely many elements.
Now the probability of getting a random number
P(E) = 1 / ∞ = 0
So I won't be able to get a random number, ever.
This implies, never would I ever be able to get a random number.
That's absurd as many of our science topics do depends on things being random.
probability random integers
probability random integers
edited Dec 12 '18 at 20:38
Hritik
asked Aug 3 '16 at 14:27
HritikHritik
971110
971110
5
$begingroup$
There is no such thing as a uniform distribution on the set of integers (for the reasons that you outlined).
$endgroup$
– John Coleman
Aug 3 '16 at 14:29
$begingroup$
Integers are distributed uniformly, aren't they ?
$endgroup$
– Hritik
Aug 3 '16 at 14:30
3
$begingroup$
There is no uniform probability distribution on them (though there are various non-uniform distributions). The fact that the integers are spatially distributed in a uniform way is irrelevant.
$endgroup$
– John Coleman
Aug 3 '16 at 14:32
$begingroup$
Perhaps you are using a different definition of "uniform distribution"? If you are using the standard definition then, as @JohnColeman says, there does not exist a uniform distribution on the integers.
$endgroup$
– Lee Mosher
Aug 3 '16 at 14:34
$begingroup$
Would you like to explain a bit further or quote a reference ?
$endgroup$
– Hritik
Aug 3 '16 at 14:34
add a comment |
5
$begingroup$
There is no such thing as a uniform distribution on the set of integers (for the reasons that you outlined).
$endgroup$
– John Coleman
Aug 3 '16 at 14:29
$begingroup$
Integers are distributed uniformly, aren't they ?
$endgroup$
– Hritik
Aug 3 '16 at 14:30
3
$begingroup$
There is no uniform probability distribution on them (though there are various non-uniform distributions). The fact that the integers are spatially distributed in a uniform way is irrelevant.
$endgroup$
– John Coleman
Aug 3 '16 at 14:32
$begingroup$
Perhaps you are using a different definition of "uniform distribution"? If you are using the standard definition then, as @JohnColeman says, there does not exist a uniform distribution on the integers.
$endgroup$
– Lee Mosher
Aug 3 '16 at 14:34
$begingroup$
Would you like to explain a bit further or quote a reference ?
$endgroup$
– Hritik
Aug 3 '16 at 14:34
5
5
$begingroup$
There is no such thing as a uniform distribution on the set of integers (for the reasons that you outlined).
$endgroup$
– John Coleman
Aug 3 '16 at 14:29
$begingroup$
There is no such thing as a uniform distribution on the set of integers (for the reasons that you outlined).
$endgroup$
– John Coleman
Aug 3 '16 at 14:29
$begingroup$
Integers are distributed uniformly, aren't they ?
$endgroup$
– Hritik
Aug 3 '16 at 14:30
$begingroup$
Integers are distributed uniformly, aren't they ?
$endgroup$
– Hritik
Aug 3 '16 at 14:30
3
3
$begingroup$
There is no uniform probability distribution on them (though there are various non-uniform distributions). The fact that the integers are spatially distributed in a uniform way is irrelevant.
$endgroup$
– John Coleman
Aug 3 '16 at 14:32
$begingroup$
There is no uniform probability distribution on them (though there are various non-uniform distributions). The fact that the integers are spatially distributed in a uniform way is irrelevant.
$endgroup$
– John Coleman
Aug 3 '16 at 14:32
$begingroup$
Perhaps you are using a different definition of "uniform distribution"? If you are using the standard definition then, as @JohnColeman says, there does not exist a uniform distribution on the integers.
$endgroup$
– Lee Mosher
Aug 3 '16 at 14:34
$begingroup$
Perhaps you are using a different definition of "uniform distribution"? If you are using the standard definition then, as @JohnColeman says, there does not exist a uniform distribution on the integers.
$endgroup$
– Lee Mosher
Aug 3 '16 at 14:34
$begingroup$
Would you like to explain a bit further or quote a reference ?
$endgroup$
– Hritik
Aug 3 '16 at 14:34
$begingroup$
Would you like to explain a bit further or quote a reference ?
$endgroup$
– Hritik
Aug 3 '16 at 14:34
add a comment |
2 Answers
2
active
oldest
votes
$begingroup$
Most typically you choose a random natural from a finite range. If you toss a fair coin, you get a random number that is either $0$ or $1$. If you call a random number generator on your computer, you might get a number in the range $[0,2^{32}-1]$. There is no problem having equal probability in these cases. If you want to choose a random natural, you can't have the probability of all numbers be equal, but you can use a non-uniform distribution that sums to $1$. If you don't think $0$ is a natural, you can have $p(n)=2^{-n}$, for example.
$endgroup$
$begingroup$
Actually I'm considering entire integers (and perhaps entire number line would be better) because as randomness exists in nature, it has to be fair with all the numbers present.
$endgroup$
– Hritik
Aug 4 '16 at 15:11
$begingroup$
@Hritik But randomness in nature doesn't imply a uniform distribution on a countably infinite set, or on the integers specifically, nor on the whole real line for that matter. Why should it?
$endgroup$
– Ned
Dec 12 '18 at 21:12
add a comment |
$begingroup$
Progress through the integers beginning with the first element in a well-founded wellorder and combine that with a probability $p_x=f(x)$ of stopping on any given element, given that you land on it, where $f(x)$ satisfies $forall x:0<f(x)<1$.
Then by this means you can not only do so, but given an appropriate function, infinitely many integer outcomes (including possibly every integer) can have non zero probability.
An appropriate function for the natural numbers $Bbb N^+$ is $f(x)=1/2^x$
$endgroup$
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%2f1880140%2fis-getting-a-random-integer-even-possible%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$
Most typically you choose a random natural from a finite range. If you toss a fair coin, you get a random number that is either $0$ or $1$. If you call a random number generator on your computer, you might get a number in the range $[0,2^{32}-1]$. There is no problem having equal probability in these cases. If you want to choose a random natural, you can't have the probability of all numbers be equal, but you can use a non-uniform distribution that sums to $1$. If you don't think $0$ is a natural, you can have $p(n)=2^{-n}$, for example.
$endgroup$
$begingroup$
Actually I'm considering entire integers (and perhaps entire number line would be better) because as randomness exists in nature, it has to be fair with all the numbers present.
$endgroup$
– Hritik
Aug 4 '16 at 15:11
$begingroup$
@Hritik But randomness in nature doesn't imply a uniform distribution on a countably infinite set, or on the integers specifically, nor on the whole real line for that matter. Why should it?
$endgroup$
– Ned
Dec 12 '18 at 21:12
add a comment |
$begingroup$
Most typically you choose a random natural from a finite range. If you toss a fair coin, you get a random number that is either $0$ or $1$. If you call a random number generator on your computer, you might get a number in the range $[0,2^{32}-1]$. There is no problem having equal probability in these cases. If you want to choose a random natural, you can't have the probability of all numbers be equal, but you can use a non-uniform distribution that sums to $1$. If you don't think $0$ is a natural, you can have $p(n)=2^{-n}$, for example.
$endgroup$
$begingroup$
Actually I'm considering entire integers (and perhaps entire number line would be better) because as randomness exists in nature, it has to be fair with all the numbers present.
$endgroup$
– Hritik
Aug 4 '16 at 15:11
$begingroup$
@Hritik But randomness in nature doesn't imply a uniform distribution on a countably infinite set, or on the integers specifically, nor on the whole real line for that matter. Why should it?
$endgroup$
– Ned
Dec 12 '18 at 21:12
add a comment |
$begingroup$
Most typically you choose a random natural from a finite range. If you toss a fair coin, you get a random number that is either $0$ or $1$. If you call a random number generator on your computer, you might get a number in the range $[0,2^{32}-1]$. There is no problem having equal probability in these cases. If you want to choose a random natural, you can't have the probability of all numbers be equal, but you can use a non-uniform distribution that sums to $1$. If you don't think $0$ is a natural, you can have $p(n)=2^{-n}$, for example.
$endgroup$
Most typically you choose a random natural from a finite range. If you toss a fair coin, you get a random number that is either $0$ or $1$. If you call a random number generator on your computer, you might get a number in the range $[0,2^{32}-1]$. There is no problem having equal probability in these cases. If you want to choose a random natural, you can't have the probability of all numbers be equal, but you can use a non-uniform distribution that sums to $1$. If you don't think $0$ is a natural, you can have $p(n)=2^{-n}$, for example.
edited Dec 12 '18 at 14:10
answered Aug 3 '16 at 14:39
Ross MillikanRoss Millikan
295k23198371
295k23198371
$begingroup$
Actually I'm considering entire integers (and perhaps entire number line would be better) because as randomness exists in nature, it has to be fair with all the numbers present.
$endgroup$
– Hritik
Aug 4 '16 at 15:11
$begingroup$
@Hritik But randomness in nature doesn't imply a uniform distribution on a countably infinite set, or on the integers specifically, nor on the whole real line for that matter. Why should it?
$endgroup$
– Ned
Dec 12 '18 at 21:12
add a comment |
$begingroup$
Actually I'm considering entire integers (and perhaps entire number line would be better) because as randomness exists in nature, it has to be fair with all the numbers present.
$endgroup$
– Hritik
Aug 4 '16 at 15:11
$begingroup$
@Hritik But randomness in nature doesn't imply a uniform distribution on a countably infinite set, or on the integers specifically, nor on the whole real line for that matter. Why should it?
$endgroup$
– Ned
Dec 12 '18 at 21:12
$begingroup$
Actually I'm considering entire integers (and perhaps entire number line would be better) because as randomness exists in nature, it has to be fair with all the numbers present.
$endgroup$
– Hritik
Aug 4 '16 at 15:11
$begingroup$
Actually I'm considering entire integers (and perhaps entire number line would be better) because as randomness exists in nature, it has to be fair with all the numbers present.
$endgroup$
– Hritik
Aug 4 '16 at 15:11
$begingroup$
@Hritik But randomness in nature doesn't imply a uniform distribution on a countably infinite set, or on the integers specifically, nor on the whole real line for that matter. Why should it?
$endgroup$
– Ned
Dec 12 '18 at 21:12
$begingroup$
@Hritik But randomness in nature doesn't imply a uniform distribution on a countably infinite set, or on the integers specifically, nor on the whole real line for that matter. Why should it?
$endgroup$
– Ned
Dec 12 '18 at 21:12
add a comment |
$begingroup$
Progress through the integers beginning with the first element in a well-founded wellorder and combine that with a probability $p_x=f(x)$ of stopping on any given element, given that you land on it, where $f(x)$ satisfies $forall x:0<f(x)<1$.
Then by this means you can not only do so, but given an appropriate function, infinitely many integer outcomes (including possibly every integer) can have non zero probability.
An appropriate function for the natural numbers $Bbb N^+$ is $f(x)=1/2^x$
$endgroup$
add a comment |
$begingroup$
Progress through the integers beginning with the first element in a well-founded wellorder and combine that with a probability $p_x=f(x)$ of stopping on any given element, given that you land on it, where $f(x)$ satisfies $forall x:0<f(x)<1$.
Then by this means you can not only do so, but given an appropriate function, infinitely many integer outcomes (including possibly every integer) can have non zero probability.
An appropriate function for the natural numbers $Bbb N^+$ is $f(x)=1/2^x$
$endgroup$
add a comment |
$begingroup$
Progress through the integers beginning with the first element in a well-founded wellorder and combine that with a probability $p_x=f(x)$ of stopping on any given element, given that you land on it, where $f(x)$ satisfies $forall x:0<f(x)<1$.
Then by this means you can not only do so, but given an appropriate function, infinitely many integer outcomes (including possibly every integer) can have non zero probability.
An appropriate function for the natural numbers $Bbb N^+$ is $f(x)=1/2^x$
$endgroup$
Progress through the integers beginning with the first element in a well-founded wellorder and combine that with a probability $p_x=f(x)$ of stopping on any given element, given that you land on it, where $f(x)$ satisfies $forall x:0<f(x)<1$.
Then by this means you can not only do so, but given an appropriate function, infinitely many integer outcomes (including possibly every integer) can have non zero probability.
An appropriate function for the natural numbers $Bbb N^+$ is $f(x)=1/2^x$
edited Dec 13 '18 at 10:49
answered Dec 12 '18 at 10:40
user334732user334732
4,27411240
4,27411240
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%2f1880140%2fis-getting-a-random-integer-even-possible%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
5
$begingroup$
There is no such thing as a uniform distribution on the set of integers (for the reasons that you outlined).
$endgroup$
– John Coleman
Aug 3 '16 at 14:29
$begingroup$
Integers are distributed uniformly, aren't they ?
$endgroup$
– Hritik
Aug 3 '16 at 14:30
3
$begingroup$
There is no uniform probability distribution on them (though there are various non-uniform distributions). The fact that the integers are spatially distributed in a uniform way is irrelevant.
$endgroup$
– John Coleman
Aug 3 '16 at 14:32
$begingroup$
Perhaps you are using a different definition of "uniform distribution"? If you are using the standard definition then, as @JohnColeman says, there does not exist a uniform distribution on the integers.
$endgroup$
– Lee Mosher
Aug 3 '16 at 14:34
$begingroup$
Would you like to explain a bit further or quote a reference ?
$endgroup$
– Hritik
Aug 3 '16 at 14:34