I asked a question for a project I am supposed to do and have changed my topic. Now I will use results from a physics lab I did. It is to estimate the value of $g$, the gravitational acceleration using a ramp and frictionless cart. I want to estimate the error for my calculation using propagation of error, but I am running into issues.
So to begin, we measured five values of the height of the ramp to obtain five measured values of $\theta$ for five different $\theta$ values.$\theta$ is the angle of inclination of the ramp. Then I measured five values for the average acceleration of the cart down the ramp for each of these theta values.
Finally I used the equation $g=\frac{a_x}{\sin \theta}$ and plotted the $\sin \theta$ values on a scatterplot against the acceleration and calculated a line of best fit to estimate the value of $g$ (the slope). Now with this $g$ value I want to calculate an error using propagation of error techniques. I was thinking of calculating the average and standard deviation of $\theta$ values for each different $\theta$ value and doing the same for the acceleration values, then estimating the variance of $\hat{g}=\frac{a_x}{\sin \theta}$ using $\sigma_{\hat{g}}=\sqrt{\frac{\partial \hat{g}}{\partial a_x}\sigma_{a_x}^2+\frac{\partial \hat{g}}{\partial \theta}\sigma_{\theta}^2}$ to obtain a value of $\hat{g} \pm \sigma_{\hat{g}}$, but then I realize there are also errors from using a regression line. Or to be more exact, I am unsure of what error values I need to calculate since I used the equation $\frac{a_x}{\sin\theta}$ indirectly. My question is what can I do to obtain a successful error for my estimated $g$ value?