Linked Questions

1 vote
1 answer
629 views

Random number generation from a given distribution [duplicate]

Is there any way to obtain random numbers from a user defined continuous distribution in Mathematica? Thank you very much
Seyhmus Güngören's user avatar
1 vote
1 answer
299 views

How to use ProbabilityDistribution for a posterior expression [duplicate]

I am performing a Bayesian updating on a Lognormal prior. After combining the prior and likelihood and dividing by the normalization constant I get the following expression as the posterior: ...
Clay Smith's user avatar
1 vote
0 answers
181 views

RandomVariate with a custom distribution [duplicate]

I have a customized distribution and I have to draw some random number from it. How do I use RandomVariate to draw random number from a custum distribution? My naive attempt ...
mattiav27's user avatar
  • 6,837
56 votes
8 answers
12k views

Circuit drawing in Mathematica

This past semester I taught an introductory electromagnetism course and had quite a nice time using Mathematica to draw all sorts of figures and diagrams (mostly for problems and etc.). However, I was ...
Gabriel Landi's user avatar
51 votes
3 answers
6k views

RandomVariate from 2-dimensional probability distribution

A probability distribution can be created in Mathematica (I am using 8.0.1) with e.g. ...
partial81's user avatar
  • 3,111
4 votes
2 answers
637 views

Generate a random PDF

How can I generate a random probability density function $p(x)$ in the domain $[0,1]$? Is there a single Mathematica function to do so?
Mathreader's user avatar
9 votes
1 answer
1k views

Inconsistency in Histogram's "Probability" Binsize

Context Let me define a Probability distribution (following the documentation and with some connection to this question) ...
chris's user avatar
  • 23.1k
3 votes
3 answers
251 views

Draw from continuous-discrete distribution

I have a random variable with a CDF that is almost everywhere differentiable, but has a point mass somewhere: ...
FooBar's user avatar
  • 216
6 votes
1 answer
583 views

RandomVariate cannot sample from a custom multivariate ProbabilityDistribution

Let us try to define 2D distribution through PDF: ...
Konstantin's user avatar
0 votes
1 answer
603 views

Generating random numbers from specified distribution under a constraint

I need to generate 500 numbers from a distribution specified. I used the well-known CDF method, but since I'm new to Mathematica, I don't know how to set a condition on the sum of these variables. <...
davideor's user avatar
0 votes
1 answer
325 views

How to simulate with a user specified bivariate continuous probability distribution [duplicate]

I am very new to Mathematica set up and I have the following question: I have a bivariate probability distribution which is a little complicated and of the form: $$f(x,y)=(a_0+a_1+a_2)\frac{a_1 a_2}{...
Indranil's user avatar