probability Questions
5
Solved
I have this data:
simulated_states = c("A", "E", "B", "B", "A", "C", "D", "A", "B", "D", "A&...
Nedry asked 19/9 at 2:8
7
Solved
Just curious but what is the probability of matching a Guid?
Say a Guid from SQL server: 5AC7E650-CFC3-4534-803C-E7E5BBE29B3D
is it a factorial?: (36*32)! = (1152)!
discuss
=D
Bumblebee asked 2/2, 2011 at 18:33
3
Solved
I would like to implement a function in python (using numpy) that takes a mathematical function (for ex. p(x) = e^(-x) like below) as input and generates random numbers, that are distributed accord...
Comical asked 26/6, 2018 at 20:7
2
Solved
Is there a built-in function in scipy/numpy for getting the PMF of a Multinomial? I'm not sure if binom generalizes in the correct way, e.g.
# Attempt to define multinomial with n = 10, p = [0.1, ...
Pneumatophore asked 16/12, 2012 at 17:51
7
How can i generate a random number between A = 1 and B = 10 where each number has a different probability?
Example: number / probability
1 - 20%
2 - 20%
3 - 10%
4 - 5%
5 - 5%
...and so on.
...
Zamudio asked 29/11, 2012 at 21:53
8
Solved
Example input:
SELECT * FROM test;
id | percent
----+----------
1 | 50
2 | 35
3 | 15
(3 rows)
How would you write such query, that on average 50% of time i could get the row with id=1, ...
X asked 23/10, 2012 at 22:22
2
Solved
In the context of the Student's t-distribution cumulative distribution function, R Version 4.3.1's ?dt documentation highlights the following result:
However, upon attempting to verify the accurac...
Whitson asked 9/10, 2023 at 13:15
10
Solved
JavaScript
I've tried searching for something like this, but I am not able to find it.
It's a simple idea:
a. Take a random number between 0 to 10.
b. Let's say the random number rolled is a 3....
Kristy asked 20/10, 2012 at 10:56
2
Solved
I have a 3D numpy array with the probabilities of each category in the last dimension. Something like:
import numpy as np
from scipy.special import softmax
array = np.random.normal(size=(10, 100, ...
Magaretmagas asked 12/7, 2020 at 13:48
3
Solved
In the C++ language there is the default hash-function template std::hash<T> for the most simple types, like std::string, int, etc. I suppose, that these functions have a good entropy and the...
Haworth asked 5/10, 2013 at 7:24
3
Solved
I am trying to learn how to sample truncated distributions. To begin with I decided to try a simple example I found here example
I didn't really understand the division by the CDF, therefore I dec...
Binetta asked 21/12, 2017 at 21:34
8
Solved
I want to generate a number based on a distributed probability. For example, just say there are the following occurrences of each numbers:
Number| Count
1 | 150
2 | 40
3 | 15
4 | 3
with a tot...
Lishalishe asked 31/3, 2012 at 13:57
23
Solved
I need to generate a uniformly random point within a circle of radius R.
I realize that by just picking a uniformly random angle in the interval [0 ... 2π), and uniformly random radius in the inte...
Know asked 29/4, 2011 at 21:27
3
Solved
I would like to get a confidence score of each of the predictions that it makes, showing on how sure the classifier is on its prediction that it is correct.
I want something like this:
How sure ...
Implicatory asked 30/6, 2015 at 4:30
6
Solved
I'm developing a back-end application for a search system. The search system copies files to a temporary directory and gives them random names. Then it passes the temporary files' names to my appli...
Egwin asked 14/5, 2009 at 9:12
3
Solved
I've encountered some code that generates a number of UUIDs via UUID.randomUUID(), takes the last 7 digits of each (recent versions of UUID are uniformly distributed in terms of entropy), and uses ...
Loisloise asked 24/4, 2023 at 19:32
6
Solved
I am making an application that stores documents and gives each one a UID based on a SHA1 digest of a few things including the timestamp. The digest has a lot of characters, and I want to allow use...
Known asked 24/1, 2011 at 16:23
2
Solved
What exactly does the LogisticRegression.predict_proba function return?
In my example I get a result like this:
array([
[4.65761066e-03, 9.95342389e-01],
[9.75851270e-01, 2.41487300e-02],
[9.999...
Mentalism asked 17/4, 2016 at 19:52
16
Solved
How do I get the probability of a string being similar to another string in Python?
I want to get a decimal value like 0.9 (meaning 90%) etc. Preferably with standard Python and library.
e.g.
si...
Evannia asked 30/6, 2013 at 7:35
1
Solved
I have the function mutateSequence that takes in three parameters. The parameter p is a value between 0 and 1, inclusive. I need two if statements, one that is entered with probability 4p/5 and ano...
Jeffrey asked 7/11, 2022 at 12:51
5
Solved
I red a lot in the forum about this, but all answers were so specific to the the asked question. The nearest one I found to my need was:Probability Random Number Generator by Alon Gubkin.
The diff...
Comrade asked 5/2, 2014 at 8:46
7
Solved
I'm a bit confused about how to generate integer values with probabilities.
As an example, I have four integers with their probability values: 1|0.4, 2|0.3, 3|0.2, 4|0.1
How can I generate these ...
Vaughnvaught asked 16/1, 2012 at 8:19
6
Given a list of probabilities like:
P = [0.10, 0.25, 0.60, 0.05]
(I can ensure that the sum of all the variables in P is always 1)
How can I write a function that randomly returns a valid index, a...
Cutlery asked 14/12, 2010 at 8:34
4
Solved
Let's say I'm writing a simple luck game - each player presses Enter and the game assigns him a random number between 1-6. Just like a cube. At the end of the game, the player with the highest numb...
Incomprehensive asked 10/6, 2010 at 16:38
6
I have to generate unique URL part which will be "unguessable" and "resistant" to brute force attack. It also has to be as short as possible :) and all generated values has to be of same length. I ...
Ethe asked 30/7, 2015 at 13:55
1 Next >
© 2022 - 2024 — McMap. All rights reserved.