Introducing Gaussian errors to data (Matlab)

In summary, the purpose of introducing Gaussian errors to data in Matlab is to simulate the natural variation and uncertainty present in real-world data. This can be done using the normrnd function, which generates random numbers from a normal distribution and can be added to data points. The magnitude of the errors can be controlled by specifying the mean and standard deviation. Adding Gaussian errors will change the original data points, but the overall shape and distribution of the data will remain the same. To check the validity of the data, it can be compared to the original and statistical tests can be performed. Visualizing the data can also help assess the impact of the added errors on trends and patterns.
  • #1
seal22
1
0

Homework Statement



I need to introduce Gaussian errors to a set of velocity measurements. The errors should have mean zero and standard deviation .2.
v = [4.6 3.8 7.2 9.7 6.4];

The Attempt at a Solution



I tried to use Matlab's imnoise command (J=imnoise(v,'gaussian',0,.04), but based on the answers I got, I think that this was not the appropriate approach to this problem (the answers are all between 0 and 1, not close to the original velocity data).
 
Physics news on Phys.org
  • #2
>> help random
 

1. What is the purpose of introducing Gaussian errors to data in Matlab?

The purpose of introducing Gaussian errors to data in Matlab is to simulate or model the natural variation and uncertainty that is often present in real-world data. This can help researchers to better understand and analyze their data, and make more accurate predictions and conclusions.

2. How do I add Gaussian errors to my data in Matlab?

To add Gaussian errors to your data in Matlab, you can use the normrnd function. This function generates random numbers from a normal (Gaussian) distribution, which can then be added to your data points using basic mathematical operations.

3. Can I control the magnitude of the Gaussian errors added to my data?

Yes, you can control the magnitude of the Gaussian errors added to your data by specifying the mean and standard deviation of the normal distribution in the normrnd function. The larger the standard deviation, the larger the magnitude of the errors will be.

4. Will adding Gaussian errors change my original data points?

Yes, adding Gaussian errors will change your original data points. This is because the errors are randomly generated and will be added to each data point, creating a new set of data with slightly different values. However, the overall shape and distribution of the data will remain the same.

5. How can I check if my data with added Gaussian errors is still valid?

To check the validity of your data with added Gaussian errors, you can compare it to the original data and see if the differences are within an acceptable range. You can also perform statistical tests to determine if the added errors have significantly affected the results. Additionally, visualizing the data with and without the added errors can help you assess the impact on the overall trends and patterns.

Similar threads

  • Set Theory, Logic, Probability, Statistics
Replies
13
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
737
  • Set Theory, Logic, Probability, Statistics
Replies
18
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
25
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
3
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
2
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
1
Views
768
  • MATLAB, Maple, Mathematica, LaTeX
Replies
12
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
6
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
15
Views
2K
Back
Top