No announcement yet.

Add noise to artificial data???

  • Filter
  • Time
  • Show
Clear All
new posts

  • Add noise to artificial data???

    Dear all.

    I am studying effect of filter.
    Artificially, I made raw data as function by time used excel.
    I must input noise values to raw data for reality but i don't know method about noise process.
    I would really appreciate if anyone introduce to me about mathematical or statistical methods which is add noise values to the raw data.

    Lee, HyunSeob

  • #2
    Re: Add noise to artificial data???

    what type of noise data you want to add to your raw data & what is your data?. ex. power line noise in respiration signal


    • #3
      Re: Add noise to artificial data???

      First of all, thanks sivanantham for reply to my post.

      I have data about gait(artificial data).
      Generally when we got gait data, the data is included noise. therefore we are filtering the data in order to remove noise.
      But my data have no noise because made by artificially.
      I want to add randomized noise in 5% of data approximately.


      • #4
        Re: Add noise to artificial data???

        There are functions in excel for generation of random nos. This link should help you using Excel to add noise


        • #5
          Re: Add noise to artificial data???

          If you are using MATLAB try this to generate & add noise to your gait data.

          nvar = .50; % Noise variance
          noise = 2*randn(200,1)*nvar; % Generate Random noise or
          noise = wgn(200,1,0);

          NoiseData = OrignalData+noise;

          Use either wgn() or randn() in matlab to generate noise .The array length of both Noise and original data should be same.

          If you don't have MATLAB try RAND() function in excel to generate the noise data.


          • #6
            Re: Add noise to artificial data???

            Thanks for your response..


            • #7
              Re: Add noise to artificial data???

              Thank you for your response....


              • #8
                Re: Add noise to artificial data???

                Hi HyunSeob

                You might do some thinking as to whether you need to corrupt your data with additive or multiplicative noise. The first would be GaitData(t) + NoiseAmp * Gaussian, while the second might be GaitData(t)*0.05*Gaussian. I don’t know which one the filter is supposed to remove.

                In Excel just adding three, Rand(), functions together will generate a pretty acceptable example of Gaussian noise. “Rand()+Rand()+Rand()” has a mean of 1.5 and a sigma of 0.5.

                You can use the sum of three Rand()’s in a multiplicative corrupting function or noise as


                This one has a mean of ~1 and an SD of ~0.05 or 5%.

                You can see how it behaves if you paste the above expression in cells A1 to A1000, and paste =Average(A1:A1000) in cell A1001 and =STDEV(A1:A1000) in cell A1002 Then you can repeatedly press F9 and watch Excel recalculate the mean and sigma. That’s fun.

                If you want an additive corrupting function try:

                =NoiseAmp *((RAND()+RAND()+RAND()-1.5))/20

                Play with the expressions and see what type of corrupting function meets your needs.

                Ted Andresen
                St. Petersburg, FL


                • #9
                  Re: Add noise to artificial data???

                  Ted Anderson correctly suggests using rand()+rand()+rand() in Excel to generate a random number whose distribution is closer to normal than what you'd get if you just rand() alone. But if you want "normal" noise (and it's a good idea), just create it exactly in Excel, as follows:
                  The above Excel formula has the added advantage that the user directly specifies the desired mean and standard deviation (0 and 1 respectively, in my example).
                  Bill R.