{"nbformat":4,"nbformat_minor":0,"metadata":{"colab":{"provenance":[{"file_id":"1peKCdWtOUODF_ZBqPnCrtkSBFVRWVht-","timestamp":1737831313340}],"toc_visible":true},"kernelspec":{"name":"python3","display_name":"Python 3"},"language_info":{"name":"python"}},"cells":[{"cell_type":"markdown","source":["# Periods of a pendulum"],"metadata":{"id":"YhH6aukqPlIc"}},{"cell_type":"markdown","source":["Click on the Code Cell below, fill in the \"...\" as per the instruction and then run the code cell (shift-enter).\n","\n","If you are having outsize struggles mounting your drive, try using a different browser. If that fails, ask your TA for help."],"metadata":{"id":"f0TeR5IFHHQD"}},{"cell_type":"code","source":["#start up\n","from google.colab import drive\n","drive.mount('/content/drive')\n","\n","\n","# Edit the file path below with the directory information where your utilities file is located on your Drive.\n","%run \"/content/drive/My Drive/Colab Notebooks/utilities.ipynb\"\n","\n"],"metadata":{"id":"AJdqi2AxPn2q"},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":["## **Learning goals**\n","By the end of this 2-week unit, 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.\n","\n","\n"],"metadata":{"id":"g6vn80J4NBxk"}},{"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":["## **Session I: Understanding our measurements**\n","\n","The focus of this unit is to evaluate whether the period of a pendulum depends on the amplitude of the swing. To test a model, scientists need to collect the highest quality data possible (or feasible).\n","\n","**By the end of today's lab, you will present to your TA your claim and evidence about which of several methods are the most precise ways to measure the period of a pendulum.**\n","\n","We will use those methods next week to test the proposed model.\n","\n","### **A. Collect some data**\n","Set up a pendulum apparatus with your group and make about ten measurements of the time it takes the pendulum to go through **a single period**. Utilize all group members to collect these data quickly (i.e., have everyone simultaneously measure the time with their own stopwatches).\n","\n","In the space below, briefly describe your experimental design. How have you chosen to assemble the apparatus? What design choices did you make and why? What measures are you taking to reduce uncertainty in your measurement?\n"],"metadata":{"id":"BS1oEbugEW9u"}},{"cell_type":"markdown","source":["**[Description of experimental design and technique here]**\n","\n","\n","---\n","\n"],"metadata":{"id":"lHnHDZ5bikRz"}},{"cell_type":"markdown","source":["In the following Code cells, record your ten measurements for the period. Each measurement should be separated by a comma, for example, if you made the following three measurements: 10 s, 2 s, and 20 s, the code would be:\n","\n","`periods=np.array([10,2,20])`"],"metadata":{"id":"iLxJIJSkijAS"}},{"cell_type":"code","execution_count":null,"metadata":{"id":"NXKY7DgpM_aO"},"outputs":[],"source":["periods = np.array([...])\n","\n","print(\"Measurements of the period of the pendulum from 10 single swings:\")\n","print(periods)"]},{"cell_type":"markdown","source":["### **A. Evaluating data**\n","\n","The quality of a measurement can be evaluated based on its uncertainty. Uncertainty is unavoidable when making measurements, so we need to identify and estimate uncertainties as part of any measurement process.\n","\n","We use the term **uncertainty** to refer to inevitable limitations in measurements associated with the methods or tools we use to make measurements.\n","\n","Uncertainty should not be confused with **an error**--a mistake that should have been avoided or fixed. **Human error**, although commonly used, is incredibly vague. Don't use it. Instead, be specific. **If a human made an error, fix it.**\n","\n","In the text cell below, list as many factors as you can that may have caused the variability in your measurements of the period of a pendulum. Roughly rank them based on how large you expect their impact to be on your measurements. Briefly explain your reasoning for the overall ranking.\n"],"metadata":{"id":"ZXnbewBNPcMT"}},{"cell_type":"markdown","source":["**[Your list here]**\n","\n","\n","---\n","\n"],"metadata":{"id":"92dDz_AsV_JD"}},{"cell_type":"markdown","source":["Run the code cell below to calculate the mean, standard deviation, and standard uncertainty in the mean of your measurements of the period from each amplitude."],"metadata":{"id":"CjOxb7MmWBCr"}},{"cell_type":"code","source":["mean_periods=np.mean(periods)\n","sd_periods=standard_deviation(periods)\n","su_periods=standard_unc_of_mean(periods)\n","\n","print(\"Mean = \" + str(\"%.2f\" % mean_periods) + \" s; Standard Deviation = \" + str(\"%.2f\" % sd_periods) + \" s; Standard Uncertainty in the Mean = \" + str(\"%.2f\" % su_periods]) + \" s\")"],"metadata":{"id":"lMRyY8RMWIEr"},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":["Typical reaction time uncertainty is about 0.1 s and most stopwatches are precise to 0.01 s.\n","\n","Is your standard deviation (the uncertainty in each measurement of the period) closer to the reaction time uncertainty or the stopwatch precision? Comment on what this might mean regarding the physical sources of uncertainty in your measurements (speculate!)."],"metadata":{"id":"2J35JKSiWHca"}},{"cell_type":"markdown","source":["**[Your answer here]**\n","\n","\n","---\n","\n"],"metadata":{"id":"ULSFPYRP8jLh"}},{"cell_type":"markdown","source":["Design multiple ways you could minimize the uncertainty in your measurements **with the equipment available to you here in the lab.** Briefly explain your reasoning."],"metadata":{"id":"Zd8gaU7m8mcz"}},{"cell_type":"markdown","source":["**[Your answer here]**\n","\n","\n","---\n","\n"],"metadata":{"id":"OgOiu3Rm8sVD"}},{"cell_type":"markdown","source":["### **B. Reducing uncertainty**\n","\n","Today, we will consider two methods for reducing measurement uncertainty: increasing the number of swings per trial and increasing the number of trials.\n","\n","\n","Why might measuring five consecutive pendulum swings in a single measurement trial reduce the uncertainty on your estimate of the period as compared to an estimate from five measurement trials of single swings?\n","\n","\n"],"metadata":{"id":"la1EWQ_XVlVu"}},{"cell_type":"markdown","source":["**[Your answer here]**\n","\n","\n","---\n","\n"],"metadata":{"id":"PA94KOEO9GLZ"}},{"cell_type":"markdown","source":["How many repeated trials do you expect you would need to match the uncertainty from a single measurement of five consecutive swings? Provide either a guess or calculated prediction, with a brief explanation of your reasoning."],"metadata":{"id":"k3vBYk_Lt1qY"}},{"cell_type":"markdown","source":["**[Your prediction and explanation here]**\n","\n","\n","---\n","\n"],"metadata":{"id":"UKj-bxFRt2cm"}},{"cell_type":"markdown","source":[" \n","Continuing the logic, measuring 20 or 50 consecutive pendulum swings should be even better than measuring 5 swings. One potential issue is that the amplitude of the swing will change over time.\n","\n","How many consecutive swings do you expect would lead to a noticeable change in amplitude? Provide either a guess or calculated prediction, with a brief explanation of your reasoning."],"metadata":{"id":"QLypWQ-g9KO_"}},{"cell_type":"markdown","source":["**[Your prediction and explanation here]**\n","\n","\n","---\n","\n"],"metadata":{"id":"OmqxE9KKBzmJ"}},{"cell_type":"markdown","source":["You should carry out two experiments to test these ideas.\n","\n","#### **Uncertainty Experiment 1**\n","First, design and implement a *quick* investigation to test your prediction for the number of repeated trials needed to match the uncertainty from a single measurement of five consecutive swings. Document your investigation and results.\n"],"metadata":{"id":"AbyEEGCcB1mZ"}},{"cell_type":"markdown","source":["**[Your design here]**\n","\n","\n","---\n","\n"],"metadata":{"id":"Zj9Rfez99R3N"}},{"cell_type":"code","source":["# your analysis code here: copy code from the activities above"],"metadata":{"id":"J-HP-mTQGnTw"},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":["**[Your results and findings here]**\n","\n","\n","---\n","\n"],"metadata":{"id":"xj99tnS9G1RS"}},{"cell_type":"markdown","source":["#### **Uncertainty Experiment 2**\n","\n","Second, design and implement a *quick* investigation to determine at what number of consecutive swings the amplitude of the pendulum noticeably changes. Be sure you are specific about what you determine to be a noticeable change in amplitude. Document your investigation and results."],"metadata":{"id":"cKrJBsyCBfIn"}},{"cell_type":"markdown","source":["**[Your design here]**\n","\n","\n","---\n","\n"],"metadata":{"id":"_aoeetH-BrnB"}},{"cell_type":"code","source":["# your analysis code here: copy and edit code from the activities above"],"metadata":{"id":"fBR9xDhxGpzH"},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":["**[Your results and findings here]**\n","\n","\n","---\n","\n"],"metadata":{"id":"SPfjG8sMG6iC"}},{"cell_type":"markdown","source":["\n","### **C. Iterating and improving**\n","Let's keep going to find more ways to reduce the uncertainty of our measurements.\n","\n","Carry out additional investigations to reduce the uncertainty in your measurements of the periods of your pendulum. You should be able to efficiently achieve an ultimate precision better than 0.005 s. \n","\n","In the space below, jot down your methods and results, including:\n","\n","* a clear description of how you measured the period, including any on-the-fly changes as you implemented the procedures,\n","* your raw data and calculated means, standard deviations, and standard uncertainties in the mean for your measurements of the period of the pendulum,\n","* a qualitative evaluation of the extent to which each of your methods affected the quality of your measurements, and\n","* suggestions for what you could do to reduce the uncertainty further.\n"],"metadata":{"id":"jVMY0pk-96xz"}},{"cell_type":"markdown","source":["**[Your design here]**\n","\n","\n","---\n","\n"],"metadata":{"id":"2h6NBY8W-SKh"}},{"cell_type":"code","source":["# your analysis code here: copy and edit code from the activities above"],"metadata":{"id":"wSz1qZHDG_UC"},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":["**[Your results and findings here]**\n","\n","\n","---\n","\n"],"metadata":{"id":"1_e-LcHVHAKN"}},{"cell_type":"markdown","source":["# **Lab Checkout**\n","\n","By the end of the lab session, document below a claim about what you now believe to be the **most precise, accurate, and efficient method** 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.\n","\n","**[Your claim and evidence here]**\n","\n","---"],"metadata":{"id":"JFaH3Tz_qwFj"}},{"cell_type":"markdown","source":[">Save your notebook as PDF with all your answers to the questions, modified code cells, and output from each code cell visible.\n","\n",">You can also go to `File` > `Download` > `Download .ipynb`. This will download your notebook in .ipynb format. You can then use an online .ipynb to .pdf converter, such as [this one](https://www.convert.ploomber.io/).\n","\n",">Make sure all your outputs are visible and nothing has been truncated or removed in your PDF before you submit it to Gradescope. If you need help with this, ask your TA for help.\n","\n",">Submit your notebook by uploading it to the Gradescope assignment titled **Lab 1.1 (S)**."],"metadata":{"id":"qdyOyUvakmA2"}}]}