1. Engineering
  2. Computer Science
  3. use python 3 built in random number generator part a...

Question: use python 3 built in random number generator part a...

Question details

a) Graphical tests of randomness For a large sequence of N pseudo-random numbers ri,12,...,/v, make a 2D scatter plot of Xi = η, y = η+1. Does the scatter plot have any noticeable regularity? Do the scatter dots uniformly fill the square?Use python 3 built in random number generator
c) Tests of near neighbour correlations For your pseudo random sequences for part a), also determine the values of xX for j 1,2,3. Do your average values of C(j) approach the theoretical limit of Ya? Does the deviation from this limit scale as O 1/ N ? Produce similar plots as for part a) and discuss.

Part a plots

1.0 0.4 0.2 0.0 0.0 0.2 0.4 0.6 0.8 1.0

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution