# Questions tagged [random]

Questions about random number generation and the properties of numbers so generated.

646 questions
Filter by
Sorted by
Tagged with
0answers
29 views

### RandomVariate and Map, strange behavior noticed

I'm performing Bayesian Analysis and I have written this piece of code ...
1answer
517 views

### Random walk with decreasing step size

I have to make simulation of a random walk that gets smaller and smaller. Each step the x-axis gets rescaled 1/2 and y-axis by 1/Sqrt. So one needs more and more ...
2answers
184 views

### Get random solution for equation with $n$ parameters and infinite solutions?

I'm trying to get a random solution for an equation with arbitrary number of parameters which has infinite solutions. Note that the answer must be in n dimensions ...
1answer
170 views

### How can one generate an open-ended sequence of low-discrepancy points in 3D?

I'd like a low-discrepancy sequence of points over a 3D-hypercube $[-1,1]^3$, but don't want to have to commit to a fixed number $n$ of points beforehand, that is just see how the numerical ...
3answers
403 views

### 3D random walk between two end points

Say I have 2 endpoints A and B. I would like to use W. Mathematica to generate a random walk between these two endpoints in a three-dimensional space. Es.: A=Point[{0,0,0}] and B=Point[{1,1,1}]. I ...
1answer
120 views

### Rescaling random walk

I want to make an animation of a random walk that rescales every time the graph gets to the end point, with the condition that the plot range on x axis is only on [0,1]. In first step, the graph ...
0answers
42 views

### Difference in the eigenvalues of random matrices

I am a novice in Mathematica and coding, in general. I have doubts in understanding a code in which nearest neighboring distance between eigen values of random matrices is evaluated. ...
1answer
244 views

### Problems with RandomChoice

Consider an Matrix of dimension n1xn1. I would like to get a list with n2 distinct matrix (of dimension ...
1answer
252 views

### ParallelTable much slower than Table on RandomReal with arbitrary precision

So I was trying a very simple example (Mathematica 11.0.1) ...
1answer
172 views

### Adding random numbers to the arguments of a sum of cosines

This is probably really a simple question. I would like to plot a sum of cosines with increased argument and for each cosine in sum I would like to add random value: ...
1answer
270 views

### Animating Random walk [closed]

I need to make a animation of a development of a random walk. The code for generating the walk itself works, but when I try to animate it, I get an error saying Non-negative machine-sized integer ...
1answer
101 views

### Plotting randomly generated points [closed]

I am trying to generate 100 random points of variables mf1 and msc1 and calculate mhiggs. I ...
1answer
130 views

### How to perform integration processes NDSOlve and show list of random variables used in this process?

I have an ODE system which solves of n variables, with initial conditions defined using the previous differential equation solution of n-1 variables and with an initial condition for the last variable ...
1answer
89 views

### Estimating angle between two random vectors

I'm interested in angles between random vectors on unit ball. Expected value of cosine is 0 by symmetry, so, expectation of cosine squared is the interesting bit. The following ...
2answers
156 views

### How to create lists with random numbers symmetric?

I need to create two vector lists using table. This list contains random numbers that I want to be symmetric. ...
1answer
445 views

### Fourier Transform With Noise

For the following function I need to do the following steps. Sin[2πt](1+0.2 Sin [6πt] + 0.1 Sin [8πt]) Plot the function. Generate a table of data points from this function with random noise ...
3answers
126 views

### Create a random array totaling a given value with given numbers [duplicate]

I have to create a random 16x16 array filled so that the sum of the entire flattened array is 500 (e.g. the sum I'd need for the array ...
0answers
89 views

### Mathematica cannot generate the random variables for a given Probability Distribution

I need to generate a large number of random variables from the distribution generated by the following code. Distribution is given by DistributionF. The code is ...
5answers
296 views

2answers
2k views

### How to generate random numbers for Beta distribution in a range?

In Excel I can just write: BETA.INV(RAND(),alpha,beta,lowerbound,upperbound) To generate a beta distributed random between lower bound and upper bound How can ...
1answer
197 views

### Beginner Simulating Gaussian Process with Correlation

I have no little experience with algorithms. I would like to learn how to simulate a real valued Gaussian process with correlation (e.g., exponentially correlated $\Gamma(t)=e^{-\vert t \vert/2}).$ ...
2answers
152 views

### Colorize $3D$ “random walk” of $\pi$ digits

The following graphic is a 3D "random walk" of $\pi$ digits by converting them in base $6$ representing $6$ directions : ...
0answers
57 views

### Alternative Methods of Using Cumulative Density Functions To Obtain Probabilities

I have a CDF that is generated from the subtraction of two arrays as part of a minimization procedure. A consequence is that events in the simulation can cause the subtracted total to be less than 0: ...
0answers
97 views

### Unexpected behavior of FindClusters

This is my code created by 10.4ï¼ ...
1answer
189 views

### Continuous noise representation

I am new to stochastic processes (and actually Mathematica too) and there are many things that I still didn't fully understand yet so please forgive me if I say something wrong. What I am trying to ...
0answers
68 views

...
1answer
88 views

### random walk using RecurrenceTable

I'm trying to generate a random walk using RecurrenceTable: ...