# Anaconda Jupyter Notebook Assignment

In a Jupyter notebook, use the following Python code to generate âexperimentalâ data for distance travelled (x_exp) under constant acceleration for various times t, given a model (x_model).

```a, v_o, x_o = (1.0, 0.05, 2.54)
t = linspace(0, 5, 100)
x_model = 0.5*a*t**2 + v_o*t + x_o
noise = 0.25*randn(100)
x_exp = x_model + noise
```
• How many data points are there? (answer in a markup cell) (1 pt)
• What is the standard deviation you should use in your chi-square calculation? (answer in a markup cell) (1 pt)

Next, in Python calculate chi-square using the âexperimentalâ and model values above.

• How many degrees of freedom do you expect for this problem? Is chi-square close to the number of degrees of freedom? (answer in a markup cell) (2 pts)

Lastly, calculate chi-square for the same data, but for a different model where v_o = 0.

• Plot your data and the two models, with a legend and axis labels. (5 pts)

## Related Questions

Similar orders to Anaconda Jupyter Notebook Assignment
56
Views
0
python project - similarity models
Python project regarding similarity models. I have attached the project instructions along with a sample project. The sample project can serve as a guide, DO NOT COPY THE DRAFT AS I NEED AN ORIGINAL SOLUTION. The sample project contains the data needed as ...
53
Views
0
Python code
In this assignment, you are going to do machine learning on a text. You will use ScikitLearn multinomial Naive Bayes classifier to build a classification model, which will classify a review either as positive or negative. A review is positive if a customer...
33
Views
0
Project 3
Jupyter notebook...
34
Views
0