Skip to main content
added 16 characters in body; edited tags
Source Link
Andy
  • 19.3k
  • 20
  • 86
  • 104

I have a vector of simulated data:

data = c(0.47, 0.45, 0.30, 1.15, 0.82, 0.38, 0.51, 1.36, 1.72, 0.36)

I've been adding noise to this by generating random numbers centered at 0 with different standard deviations.:

noise = rnorm(10, mean = 0, sd = 0.1)
data_wNoise = data + noise

I've been setting the sdstandard deviation arbitrarily (between 0.001 and 1.5). Is there a better way to simulate this by setting a specific signal-to-noise ratio? I don't know anything about the power of the signal in the data.

I have a vector of simulated data:

data = c(0.47, 0.45, 0.30, 1.15, 0.82, 0.38, 0.51, 1.36, 1.72, 0.36)

I've been adding noise to this by generating random numbers centered at 0 with different standard deviations.

noise = rnorm(10, mean = 0, sd = 0.1)
data_wNoise = data + noise

I've been setting the sd arbitrarily (between 0.001 and 1.5). Is there a better way to simulate this by setting a specific signal-to-noise ratio? I don't know anything about the power of the signal in the data.

I have a vector of simulated data:

data = c(0.47, 0.45, 0.30, 1.15, 0.82, 0.38, 0.51, 1.36, 1.72, 0.36)

I've been adding noise to this by generating random numbers centered at 0 with different standard deviations:

noise = rnorm(10, mean = 0, sd = 0.1)
data_wNoise = data + noise

I've been setting the standard deviation arbitrarily (between 0.001 and 1.5). Is there a better way to simulate this by setting a specific signal-to-noise ratio? I don't know anything about the power of the signal in the data.

Tweeted twitter.com/#!/StackStats/status/437532041656410112
Source Link
Amyunimus
  • 775
  • 1
  • 11
  • 18

How to simulate Signal-Noise Ratio?

I have a vector of simulated data:

data = c(0.47, 0.45, 0.30, 1.15, 0.82, 0.38, 0.51, 1.36, 1.72, 0.36)

I've been adding noise to this by generating random numbers centered at 0 with different standard deviations.

noise = rnorm(10, mean = 0, sd = 0.1)
data_wNoise = data + noise

I've been setting the sd arbitrarily (between 0.001 and 1.5). Is there a better way to simulate this by setting a specific signal-to-noise ratio? I don't know anything about the power of the signal in the data.