Hi PF!(adsbygoogle = window.adsbygoogle || []).push({});

I have some data (y-value data and x-value data) which I can plot to make a curve (see attachment, the top curve). However, when trying to compute the slope of this data I have an issue (see attachment, the bottom "curve"). The formula I am using for slope is ##(y_{i+1}-y_{i-1})/(2 \Delta x)##.

To me it seems the issue is I have way too much data. Many of the y data values for some small neighborhood in the domain are the same due to measurement errors (measuring can only be so accurate). Should I simply omit all but, say, every 10th data value? Is this scientifically acceptable (results will be published)?

I can explain more if you need. Thanks!

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# I How to calculate slope for data set

Have something to add?

Draft saved
Draft deleted

Loading...

Similar Threads - calculate slope data | Date |
---|---|

I How to calculate the area under a curve | Jul 21, 2017 |

B Integration of a quantity when calculating Work | May 25, 2017 |

I How does divergence calculate all of flow through a surface? | May 24, 2017 |

A Create function which meets slope and point requirements | Jul 28, 2016 |

**Physics Forums - The Fusion of Science and Community**