{"nbformat":4,"nbformat_minor":0,"metadata":{"colab":{"provenance":[{"file_id":"1dOxqtBX0DFFnvVd6nbyIGWlIZc_UCJWI","timestamp":1781056827609}],"toc_visible":true},"kernelspec":{"name":"python3","display_name":"Python 3"},"language_info":{"name":"python"}},"cells":[{"cell_type":"markdown","source":["\n","# Periods of a Pendulum -- Session II"],"metadata":{"id":"YhH6aukqPlIc"}},{"cell_type":"markdown","source":["## **Learning goals**\n","By the end of this unit (Lab 1.1 & Lab 1.2), you should be able to:\n","\n"," * Design an experiment with sufficiently high precision to test a model, finding efficient and effective ways to reduce uncertainty.\n"," * Identify and quantify sources of uncertainty in data.\n"," *\tCompare pairs of measurements based on their uncertainties and use those comparisons to make appropriate inferences.\n"," * Iterate on an experimental procedure to reduce *uncertainty*, test assumptions and claims, and extend the investigation to explore the phenomenon."],"metadata":{"id":"N9ksQTf5wNTR"}},{"cell_type":"markdown","source":["## **Group organization**\n","In this course you'll be working in groups on lab activities and related assignments. Negotiating group dynamics successfully is therefore an\n","integral component of the course. To help you get to know each other, and to ensure effective collaboration and fairness, group members\n","should discuss and write down the answers to the following questions in order to establish a “Partner Agreement.”\n","\n","Who are your Group Members and how do they prefer to be referred to (nicknames, pronouns, etc.)?\n","\n","\n","**[Your group members info here -- throughout this notebook keep your responses in boldface so we can easily distinguish your work from the main text of the lab manual]**\n","\n","\n","\n","---\n","\n","\n","\n","\n","\n"],"metadata":{"id":"YpJyxREtEcDR"}},{"cell_type":"markdown","source":["Take turns having each group member share one thing about themselves (where you’re from, what you like to do outside of class, etc.). Keep\n","going around until you’ve found one thing you all have in common that you expect no other group will have in common and record it below.\n","\n","**[Your unique commonality]**\n","\n","\n","---\n","\n"],"metadata":{"id":"GnwMoKvBEr8d"}},{"cell_type":"markdown","source":["Discuss with your partners your reasons for taking this course and what you’re personally hoping to get out of it. How do your goals compare?\n","Discuss how you can support each other’s goals. Can you agree on a collective goal for the group (e.g. to ensure everyone learns something new, to have\n","fun, to provide a physics study group). Establish your collective purpose and record it below.\n","\n","**[Your collective purpose]**\n","\n","\n","---\n","\n"],"metadata":{"id":"0vsQgPReEpMa"}},{"cell_type":"markdown","source":["To complete each lab a number of distinct tasks will need to be completed by individual group members or collaboratively by the group as a\n","whole. These tasks include, but are not necessarily limited to, setting up equipment, collecting data, taking notes, and performing analysis, and\n","managing the group. The tasks each of you spend the most time on will also likely be the ones you learn the most about and grow the most in\n","your ability to perform. How will you ensure each member has an equitable role and is able to be involved in all aspects of the work they’re\n","interested?\n","\n","**[Your group's plan here]**\n","\n","\n","---\n","\n"],"metadata":{"id":"2nf2yWvYEluh"}},{"cell_type":"markdown","source":["### **Setup the Notebook**\n","To use the functions that you'll need to analyze your data, you will have to load the `utilities.ipynb` file as you did last week. Run the code cells below."],"metadata":{"id":"f0TeR5IFHHQD"}},{"cell_type":"code","source":["#start up\n","\n","from google.colab import drive\n","drive.mount('/content/drive')\n"],"metadata":{"id":"AJdqi2AxPn2q"},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":["Fill in the \"...\" in the code cell below with the directory information where your utilities file is located on your Drive. Then run the code cell."],"metadata":{"id":"3iaUvKHhIb9a"}},{"cell_type":"code","source":["%run \"/content/drive/My Drive/Colab Notebooks/utilities.ipynb\""],"metadata":{"id":"VQUAhMVxIiKv"},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":["## **Session II: Model testing**\n","\n","In Session I, you came up with the most precise methods to measure the period of a pendulum.\n","\n","**By the end of today's lab, you will present to your TA your claim and evidence about whether the period of the pendulum depends on the amplitude of the swing.**\n","\n","You may have previously seen the equation $T=2\\pi\\sqrt{\\frac{L}{g}}$, which relates the period of the pendulum to its length $L$ and assumes, among other things, that:\n","\n","* the only forces on the pendulum are due to gravity and tension in the string,\n","* the pendulum string is massless,\n","* the initial angle of amplitude is small, and\n","* the pendulum bob behaves like a point mass.\n","\n","This equation and its assumptions form part of a **model**--a simplified representation of physical behavior that **describes, explains, and predicts** a physical system under certain conditions such as those as stated above. The key to the simplification, however, is that all models have limitations.\n","\n"],"metadata":{"id":"g6vn80J4NBxk"}},{"cell_type":"markdown","source":["\n","### **A. Comparing measurements**\n","\n","To start to build our evidence base, use your method for precisely measuring pendulum periods from Session I to **quickly** collect measurements of the period of your pendulum when released from two angles of amplitude: $10^{\\circ}$ and $20^{\\circ}$.\n","\n","Record and summarize those data using the code cells below."],"metadata":{"id":"YzmEDSMMVme7"}},{"cell_type":"markdown","source":["**[your method briefly described here]**"],"metadata":{"id":"B5UD_k7KD2_y"}},{"cell_type":"code","source":["# Input the raw data for your measurements of the period of a pendulum using your precise measurement method\n","periods_ten = np.array([...])\n","periods_twenty = np.array([...])\n","\n","#Calculate the mean, standard deviation, and standard uncertainty of the mean\n","mean_periods_ten=np.mean(periods_ten)\n","sd_periods_ten=standard_deviation(periods_ten)\n","su_periods_ten=standard_unc_of_mean(periods_ten)\n","\n","mean_periods_twenty=np.mean(periods_twenty)\n","sd_periods_twenty=standard_deviation(periods_twenty)\n","su_periods_twenty=standard_unc_of_mean(periods_twenty)"],"metadata":{"id":"l_aJwRQgI9fE"},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":["Run the code cell below to calculate the $t^\\prime$ value to compare the period of the pendulum when released from these two amplitudes."],"metadata":{"id":"6tpp-6uUYUiw"}},{"cell_type":"code","source":["t_first = t_prime(mean_periods_ten, su_periods_ten, mean_periods_twenty, su_periods_twenty)\n","\n","print(\"First set of results:\")\n","\n","print(\"Ten degrees: Mean = \" + str(\"%.3f\" % mean_periods_ten) + \" s; Standard Deviation = \" + str(\"%.3f\" % sd_periods_ten) + \" s; Standard Uncertainty in the Mean = \" + str(\"%.3f\" % su_periods_ten) + \" s\")\n","\n","print(\"Twenty degrees: Mean = \" + str(\"%.3f\" % mean_periods_twenty) + \" s; Standard Deviation = \" + str(\"%.3f\" % sd_periods_twenty) + \" s; Standard Uncertainty in the Mean = \" + str(\"%.3f\" % su_periods_twenty)+ \" s\")\n","\n","print(\"t-prime = \" + str(\"%.3f\" % t_first))"],"metadata":{"id":"uMGrzGIPYX8H"},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":["**Q.** What are some plausible explanations for why your measurements yielded this $t^\\prime$ value? Come up with as many as you can think of! Try thinking mechanistically and physically -- thinking outside the box is highly encouraged!"],"metadata":{"id":"OSihAiXCKJbJ"}},{"cell_type":"markdown","source":["**[your response here]**\n","\n","---"],"metadata":{"id":"EMaPY1olKM7S"}},{"cell_type":"markdown","source":["**Q.** Given the goal to determine whether the period of the pendulum depends on the angle of amplitude, what are some reasonable next steps based on your $t^\\prime$ value?"],"metadata":{"id":"bV3DJdeqKP3r"}},{"cell_type":"markdown","source":["**[your response here]**\n","\n","\n","---\n","\n"],"metadata":{"id":"YNHjLwhVKQoJ"}},{"cell_type":"markdown","source":["### **B. Next steps**\n","\n","Depending on your $t^\\prime$ value above, one or more next steps may be more logical.\n","\n","For example, a small $t^\\prime$ value means that you cannot distinguish the two sets of measurements, which may mean that the period does not differ between the amplitudes of $10^{\\circ}$ and $20^{\\circ}$. To test this claim, you may want to measure the period from other amplitudes to build a stronger evidence base. Alternatively, the result may mean that your precision is not good enough to distinguish a difference that actually exists. To test this claim, you may want to find a way to further reduce your uncertainty and see if the effect persists.\n","\n","A large (greater than 3) $t^\\prime$ value means that you can distinguish the two sets of measurements, which may mean that we have violated the assumption that the amplitude is \"small.\" To test this claim, you may want to measure the period from other amplitudes (smaller and bigger) to better understand what counts as \"small\" amplitudes. Alternatively, the result may mean that some other variable is causing these measurements to differ, such as air resistance, friction in the pivot, or some kind of mistake. To test this claim, you may want to find a way to control that other variable and see if the effect persists.\n","\n","**Q.** With your group, decide on a claim that you wish to test that follows logically from your $t^\\prime$ value. Briefly describe what claim you are testing, evidence for that claim, and how you will test the claim.\n"," "],"metadata":{"id":"FQ6dwGeFIoBx"}},{"cell_type":"markdown","source":["**[your response here]**\n","\n","\n","---\n","\n"],"metadata":{"id":"5YlpMZSIKmAT"}},{"cell_type":"markdown","source":["Hold a mini-conference with another group where you each\n","\n","a) present your claim, evidence for that claim, and how you will test the claim and\n","\n","b) give each other feedback on whether you are convinced of their claim and whether their experiment makes sense to systematically test the claim.\n","\n","When evaluating the other group's ideas, try to be a \"constructively critical reviewer\": come up with alternative explanations for their evidence or ways that the results of their experiment may not effectively test the claim (e.g., the same result could support multiple explanations).\n","\n","**Q.** Briefly describe that mini-conference, including any changes to your proposed design."],"metadata":{"id":"B-M1LqIEKr1T"}},{"cell_type":"markdown","source":["**[Your list of feasible experiments here]**\n","\n","---"],"metadata":{"id":"D7m8G0PuKwvT"}},{"cell_type":"markdown","source":["**Q.** Work with your group to carry out your investigation. Document:\n","* a clear description of the measurement method,\n","* your raw data, calculated means, standard deviations, and standard uncertainty in the means, and the associated $t^\\prime$ values between the measurements, as appropriate, and\n","* your interpretation of your results and appropriate next steps."],"metadata":{"id":"bPxStZzeKz5E"}},{"cell_type":"markdown","source":["**[Your methods here]**"],"metadata":{"id":"LWD75tu4K7e7"}},{"cell_type":"code","source":["# your analysis here\n"],"metadata":{"id":"Vs7rDbn_K-d8"},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":["**[Your interpretation and next steps here]**\n","\n","---\n","\n"],"metadata":{"id":"mP420zUDLFYM"}},{"cell_type":"markdown","source":["### **C. Iterating and improving**\n","\n","**Q.** Find another group who performed a different kind of experiment from you and exchange results and findings. Based on both your and their results, craft a new/updated claim with evidence and propose next steps to further test the claim.\n","\n"],"metadata":{"id":"mgfi7mTKLK2L"}},{"cell_type":"markdown","source":["**[Your experimental design here]**"],"metadata":{"id":"SHP6Z1HTL6e5"}},{"cell_type":"code","source":["#your analysis here"],"metadata":{"id":"1zn8giTEIs7N"},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":["**[Your interpretation and next steps here]**\n","\n"],"metadata":{"id":"JeNk-vCu9KSo"}},{"cell_type":"markdown","source":["Conduct as many new experiments as you have time for, creating new text and code cells to document your methods, data/analysis, and interpretations/next steps as you go.\n","\n","\n","\n","---\n"],"metadata":{"id":"5PZje_9zeasm"}},{"cell_type":"markdown","source":["## **Lab Checkout**\n","\n","By the end of the lab session, document below a claim about **whether the period of the pendulum depends on the angle of amplitude** and briefly summarize your evidence (from above) that supports your claim. Present your claim to your TA or (if you are out of time), they will look over these notes to evaluate your claim.\n","\n","In the checkout, they will be looking for:\n","* Whether the claim is supported by evidence,\n","* Whether that evidence is sufficient, and\n","* Whether it is clear that you collected the data."],"metadata":{"id":"oTeWEYoB9Kk1"}},{"cell_type":"markdown","source":["**[Your response here]**\n","\n","\n","---\n","\n"],"metadata":{"id":"2MKhelnL9iT4"}},{"cell_type":"markdown","source":["**Reminder:** Submit your group's notebook by the end of **the lab session**.\n","\n","* To submit, make sure all your code and text cells have been run and the output is displayed.\n","* Convert your .ipynb file to a PDF using the print function or using an online ipynb->PDF converter.\n","* Submit your PDF to Gradescope by the end of **each lab session**.\n","* Only one person from your group needs to submit the file, but that person needs to **add all group members to the submission in Gradescope.**"],"metadata":{"id":"fAASDdYOgomd"}}]}