Questions tagged [probability]
Consider if your question would be better at stats.stackexchange.com. Probability touches upon uncertainty, random phenomena, random numbers, random variables, probability distributions, sampling, combinatorics.
probability
4,062
questions
-5
votes
1
answer
79
views
Playful cat and keyboard [closed]
Problem:
The keyboard on the screen of the mobile application consists of:
26 capital Latin letters,
10 digits
4 navigation keys: up, down, right and left.
The application is open on a tablet, on ...
-5
votes
2
answers
197
views
Monte Carlo simulations by large no of trials
Consider that following program.
import math
import random
def inside_unit_circle(point):
"""
Compute distance of point from origin
"""
distance = math.sqrt(point[0] ** 2 + point[1] *...
-5
votes
1
answer
353
views
what are drawbacks of PNN over MLP
I have a question that i couldn't find any straight forward answer for it anywhere.
it seems that PNN is much faster than MLP at least in training process and it is more accurate too. so why MLP is ...
-5
votes
1
answer
220
views
Permutations of integers in Java
I have to list all permutations of given 3 integers,
before I start - I did look for it online, but I didnt find anything that fits my needs.
I need to find all permutations of three, six sided die....
-5
votes
2
answers
89
views
How can I process a command in determined probability in C? [closed]
I would like to process a command like the way, that if I press character A, make the corresponding command in e.g 15% of the cases. Thanks for your help!
-5
votes
1
answer
364
views
How to find Expectation of a Random Variable √X in probability
How to calculate Expected Value of Random Variable √X
-5
votes
2
answers
365
views
Convert Percent to Odds Ratio and Reverse
Easy softball for someone to knock out of the park: what is the correct coding formula for computing an odds ratio to a percent, and a percent to an odds ratio? Example:
Odds to Percent
1 in 8192 = 0....
-6
votes
2
answers
54
views
Why can't I set my indexed variable equal to an integer in my if statement? [closed]
I'm writing a simulation of streaks in basketball, how likely it is players have streaks of 5 baskets in a row, assuming the likelihood of making a shot is 50/50. Here is the code I have so far:
def ...
-6
votes
2
answers
1k
views
how to coin toss using python?
I'm new to python and i'm doing a probability question on simulate the result of a coin toss. I read the question but I don't understand how to do it. Here's the question:
"Does python have the ...
-7
votes
1
answer
851
views
Random word generator with a equal probability of occurrence of letters [closed]
So I made a pretty simple word generator program in c# that works relatively well. My question is how to generate a words with a equal probability of occurrence of letters eg. aaaa, aabb or abab
My ...
-7
votes
1
answer
314
views
Python - How to generate a random number with a bitwise probability?
I need to work out the number of atoms decayed in a specified time. I was given the half life of Radon-222 and have calculated from this the probability that any one atom will decay within 1 minute.
...
-8
votes
1
answer
566
views
How can I implement chance/probability into Python? [duplicate]
I want to have Python print "Yes" 70% of the time, and "No" 30% of the time. How should I go about doing so?