Skip to content

Instantly share code, notes, and snippets.

@pierrelouisbescond
Created May 31, 2020 12:41
Show Gist options
  • Save pierrelouisbescond/cd7edcf3ee3401da7180e497d93d546d to your computer and use it in GitHub Desktop.
Save pierrelouisbescond/cd7edcf3ee3401da7180e497d93d546d to your computer and use it in GitHub Desktop.
import numpy as np
import pandas as pd
import math
import plotly.graph_objects as go
size = 500
# For every dimension, we create a normal distribution by setting the mean, standard deviation and size
df = pd.DataFrame(np.random.normal(0, 5, size), columns=["x"])
df["y"] = np.random.normal(0, 10, size)+df["x"]
df["z"] = np.random.normal(0, 10, size)+df["x"]*2
df
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment