# Items tagged with probabilityprobability Tagged Items Feed

### Generating sampling points with a known distribut...

July 04 2015
0 5

Hi,

Suppose I have a probability distribution function f(x). I would like to generate points in a

(1) given interval, can be up to infinity

(2) number of points

(3) satisfy the known probability distribution function f(x)

(4) possible other specifications

Is there any build-in option in maple I could use? Or I have to write something manually?

Thank you very much!

### A matter of notation...

June 13 2015
0 7

Dear Maple users

I am unsure how to handle events and their probabilities in Maple. Let's say I know that an event A has the probability say 0.3 and another event B has probability 0.8. I would like to make the following assignments:

P(A):=0.3:

P(B):=0.8

and maybe defining the conditional probability:

P(A|B):=0.55

but I am not allowed to do so in Maple because if will regarded as a function definition. My purpose is to make simple calculations with those probabilities for example:

P(C):=P(A)*P(B)  etc.

My problem is therefore more of a notational problem than a mathematical one. I hope someone can advice me on a proper setup. I am using 2D math notation, by the way. I could of course name the variables containing the probability using simple names like X1, X2, etc., but then I need constantly to remember what they really mean. The above assignments would be much better, because they are easier to handle mentally.

Regards,Erik

### compute the cdf of a piecewise probability distrib...

April 01 2015
1 1

This should be trivial but I am not able to figure out the right syntax to execute it

The pdf is given by :

f_X(x)={ 1/25 *x, 0<=x<5

2/5 -x/25, 5<=x<10

0, otherwise

I have tried to use the "CumulativeDistributiveFunction" so far

### Expected Value of a function...

January 08 2015
0 2

Hello people in Mapleprimes,

I want to do calculations about an expected value.

For example,

expectedvalueofc.pdf

that is, \int_a^b c d \Omega

where, \Omega is a distribution function of c.

But, I don't know whether this equation can be put into worksheet.

Is there no way other than writing this as

\int_a^b c g(c) dc,

where g shows a probability density function.

Can I use Statistics[ExpectedValue] to calculate expected value with a general distribution function, not specified

to normal distribution?

I hope you will give me some hints.

Best wishes.

### conditional probability DICE...

October 29 2014
0 1

What is the probability that the total of two dice will be greater than 9, given that the first die is a 5?

### cross correlation of log-normal pdfs...

June 03 2014
0 8

Please I want to know how to solve this integration.

int(exp(-(ln(y)-2*sigma^2)^2/(8*sigma^2))/(y*sqrt(8*Pi*sigma^2))*exp(-(ln(y+z)-2*sigma^2)^2/(8*sigma^2))/((y+z)*sqrt(8*Pi*sigma^2)), y = 0 .. infinity)

### Monty Hall Problem with 3 and 4 doors...

December 10 2013
1 17

How  can you create a loop for Monty Hall Problem when you have 3 door (1 opening) and then 4 Doors (with 2 openings and possible 2 switches)

### Help with Biased Coin Toss...

November 11 2013
1 2

Hi,

I need help formulating a biased coin toss.

I want to toss a coin 0 being heads and 1 being tails with probabilty 0.495 of getting heads, how do I show whether heads or tails wins??

Thanks

### Probability distribution function...

November 07 2013
1 10

Hello,

would you please help me how can i introduce a probability distribution function to maple in document mode?

I want to calculate integral of x f(x)dx, while I want maple to know f(x) is a probability distribution function.

I do not have any assumption about f(x)(for example normal or exponential distriburion)

Thanks

### Probability [mean, variance of min of a pair]...

September 13 2013
0 3

In a pocket, we have $5$ balls number from $1$ to

### Distance between random points...

September 10 2013
0 0

Let X be the random variable uniformly distributed in the disk centered at the origin O(0,0) with radius 1 and let Y be the random variable uniformly distributed in the square having its vertices A(6,-1), B(9,-2), C(8,-5), and E(5,-4). What is the PDF of the distance between X and Y? Is it possible to find that with Maple? The similar question in three dimensions, replacing a square by a cube and a disk by a solid sphere.

### Student-T Inverse...

June 02 2013
1 3

I need to integrate the Student-T function which is a function of two variables (nu and t). Maple allows me to use this function through this command:

with(Statistics);

PDF(RandomVariable(StudentT(nu)),t);

The integration of this function gives me the probability (p) of certain event (nu is already known):

p=Int(Student,t=-infinity..X)

If I provide the value of X I can compute the integral easily, now the problem appears when I want to...

### What typical textbook symbol for the complement of...

April 07 2013
0 6

I can define a discrete, finite universal set U, say the digits 1-5.

U:={1,2,3,4,5}

I can define a subset such as

X:={2,4}

Maple will compute the complement

U\X

but I cannot find any common textbook way of naming that complement that Maple will accept.  I cannot use a superscript c.  I cannot use a prime.  I cannot use an apostrophe.  I cannot use an overbar. Yes, I can type any of those using the various symbol...

### probability girl?...

February 08 2013 Maple
2
7

dicing-with-death-chance-risk-and-health (Stephen Senn)

Mr Brown has exactly two children. At least one of them is a boy. What is the probability
that the other is a girl?

What could be simpler than that? After all, the other child either is or is not a girl.
I regularly use this example on the statistics courses I give to life scientistsworking
in the pharmaceutical industry. They all agree that the probability is one-half.

So they are all...

### More Code Problems, Help Me Write...

February 01 2013
1 4

I need more help with code please!

A box of candy hearts contains 52 hearts, of which 19 are white, 10 are tan, 7 are pink, 3 are purple, 5 are yellow, 2 are orange, and 6 are green. If you select 9 pieces randomly without replacement, what is the probability that A_3 of the 9 are white, and B_3 of the 9 are white, 2 are tan 1 is pink and 1 is yellow and 2 are green

19 Whites in the pack / 52 hearts in the pack = .3654 possibility of picking a white from 1 draw.

 1 2 3 Page 1 of 3
﻿