Lab 4
Fitting and Using Models
The point of this lab
• Say we want to get really good at guessing the
number of jelly beans in a jar
• So we decide to practice with a bunch of
different jars of jelly beans
The point of this lab
• First, we record our guess of number of jellybeans in each jar
• Next, we record the actual number of jellybeans
• Based on how off our guesses are, we can know how to “correct” them in
the future to get a more accurate prediction
Jar
Our Guess 252 90 135 63 720 100
Actual # 125 48 70 31 355
Based on how off our guesses were for the first 5
jars, what would you predict the actual # is here?
The point of this lab
Jar
Our Guess 252 90 135 63 720 100
Actual # 125 48 70 31 355
We can make a formula to “correct” our guess:
𝑐𝑜𝑟𝑟𝑒𝑐𝑡𝑒𝑑 𝑔𝑢𝑒𝑠𝑠 =
1
2
× (𝑜𝑢𝑟 𝑔𝑢𝑒𝑠𝑠)
The point of this lab
Another example…
• Say we want to get really good at guessing the number
of wins the gamecocks will have in their season
• We decide to practice guessing for a few seasons to
“hone our model”
The point of this lab
Season 2017 2018 2019 2020 2021 2022
Our Guess 5 6 8 2 4 7
Actual # 8 9 11 5 7
Once again, we can make a formula to “correct” our guess:
𝑐𝑜𝑟𝑟𝑒𝑐𝑡𝑒𝑑 𝑔𝑢𝑒𝑠𝑠 = 𝑜𝑢𝑟 𝑔𝑢𝑒𝑠𝑠 + 3
What you should learn
• What is the meaning of predictor variable and response variable?
• How can we use a fitted model (like 𝒚 = 0.5𝒙 + 3 ) to give us a prediction?
• Given a fitted model (like 𝒚 = 0.5𝒙 + 3 ), and some data (values for x,y),
how do we calculate the residuals?
• In the context of predictions, what is the empirical rule for standard
deviation?
• What does it mean to be a biased guesser?
Lab4 2022
Now type your table 4.1 in statcrunch like so…
Graph → Scatterplot → X variable: Guessed, Y variable: True → Compute
Paste this graph to your word document &
answer question 2 based on this graph
Graph → Scatterplot → X variable: Guessed, Y variable: True →
→ Overlay function of x: x → Compute
Paste this graph to your word document &
answer question 3 based on this graph
Stats → Regression → Simple Linear → X variable: Guessed, Y variable: True
→ Compute
Paste the output (tables and such AS WELL as
the graph) into your word document
Paste the output (tables and such AS WELL as
the graph) into your word document
Stats → Regression → Polynomial → X variable: Guessed, Y variable: True
→ Compute
Look at the plot that you made on slide 12
of this powerpoint (NOT SLIDE 10 or 11) and
use that to answer the question
Look at the plot that you made on slide 13
of this powerpoint and use that to answer
the question
You found s in the cell to
the left of this… just
multiply it by 2
You found s in the cell to
the left of this… just
multiply it by 2
Write which model (Linear or Quadratic) you found to be best for
your data. You will justify this choice later.
Circle the reason(s) that made you
choose Linear vs. Quadratic
This formula can be found on the outputs that you made on slide 12 or 13
(depending if you chose linear or polynomial model) it looks like True = Blah blah
Write your guess for
the 11th object here.
… now plug that x value into the formula that you
just wrote, and see what value it spits out for True.
I will tell you this value (so you can compare it with your model’s
prediction)
Calculate this by subtracting your model’s prediction of the weight (value in
row 4) from the true weight (value in row 5).
Find the value of 2s in table 4.2 (make sure you use the 2s from your chosen
model). See if your error value from the row above falls into the interval
(−2𝑠, 2𝑠)
What each person needs to turn in:
• Tables 4.1, 4.2, 4.3
• Completed discussion questions
• Plots & tables etc. that we made on slides 10 - 13

More Related Content

PPTX
PPTX
PPTX
Mathematics 101
PPTX
Scalars and Vectors Part4
PPTX
Measures of central tendency
PPTX
Statistics and inferences review - bootcamp
PPTX
How to figure out percentages
PPT
Solving Proportions
Mathematics 101
Scalars and Vectors Part4
Measures of central tendency
Statistics and inferences review - bootcamp
How to figure out percentages
Solving Proportions

What's hot (19)

PPT
Percentages
PPT
Multiply and divide numbers between 0 and 1
PPT
7.8 simple probability 2
DOCX
G6 m4-g-lesson 26-s
PPTX
MULTIPLICATION
PPTX
May 8, 2014
PPTX
PPTX
Multiplication W Sound
PPT
Core 3 Numerical Methods 2
PPT
Mental Math Strategies for Grade 3
PPTX
Percentages
PPTX
multiplication with carrying
PPS
Beauty Of Mathematics
PPTX
Multiplication
PPT
1628 statistics
PPS
The Beauty Of Mathematics
PPTX
0,1,10x add subcurrent
PPT
Math facts (math)
PDF
Digital textbook std ix
Percentages
Multiply and divide numbers between 0 and 1
7.8 simple probability 2
G6 m4-g-lesson 26-s
MULTIPLICATION
May 8, 2014
Multiplication W Sound
Core 3 Numerical Methods 2
Mental Math Strategies for Grade 3
Percentages
multiplication with carrying
Beauty Of Mathematics
Multiplication
1628 statistics
The Beauty Of Mathematics
0,1,10x add subcurrent
Math facts (math)
Digital textbook std ix
Ad

Similar to Lab4 2022 (20)

DOCX
A General Manger of Harley-Davidson has to decide on the size of a.docx
DOCX
De vry math 221 all discussion+ilbs latest 2016 november
PPTX
Maths notes for 4038 and 4016 paper
PPTX
Statistical tests
DOCX
De vry math 221 all discussion+ilbs latest 2016 november 1
DOCX
De vry math 221 all ilabs latest 2016 november
PPTX
Week 6 lecture_math_221_dec_2012
DOCX
De vry math221 all ilabs latest 2016 november
DOCX
Page 1 of 7  Pre‐calculus 12 Final Assignment (22 mark.docx
DOCX
De vry math 399 all ilabs latest 2016 november
PPTX
Tutorial linear equations and linear inequalities
PPTX
Week 6 lecture_math_221_apr_2012
PPTX
Math 221 week 6 lecture april 2015
DOCX
SAMPLING MEAN DEFINITION The term sampling mean .docx
PDF
Chapter 3 - Problem Solving.pdf
DOCX
De vry math 399 ilabs & discussions latest 2016
DOCX
De vry math 399 ilabs & discussions latest 2016 november
PPTX
GRADE 9 Proportion PowerPoint Presentation
DOCX
SAMPLING MEAN DEFINITION The term sampling mean is.docx
DOCX
Mathematics 8,6 and5 - WEEK8- d5_q2.docx
A General Manger of Harley-Davidson has to decide on the size of a.docx
De vry math 221 all discussion+ilbs latest 2016 november
Maths notes for 4038 and 4016 paper
Statistical tests
De vry math 221 all discussion+ilbs latest 2016 november 1
De vry math 221 all ilabs latest 2016 november
Week 6 lecture_math_221_dec_2012
De vry math221 all ilabs latest 2016 november
Page 1 of 7  Pre‐calculus 12 Final Assignment (22 mark.docx
De vry math 399 all ilabs latest 2016 november
Tutorial linear equations and linear inequalities
Week 6 lecture_math_221_apr_2012
Math 221 week 6 lecture april 2015
SAMPLING MEAN DEFINITION The term sampling mean .docx
Chapter 3 - Problem Solving.pdf
De vry math 399 ilabs & discussions latest 2016
De vry math 399 ilabs & discussions latest 2016 november
GRADE 9 Proportion PowerPoint Presentation
SAMPLING MEAN DEFINITION The term sampling mean is.docx
Mathematics 8,6 and5 - WEEK8- d5_q2.docx
Ad

Recently uploaded (20)

PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
PDF
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
PPTX
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
PDF
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PPTX
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
PDF
AI-driven educational solutions for real-life interventions in the Philippine...
PDF
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
PPTX
TNA_Presentation-1-Final(SAVE)) (1).pptx
PPTX
Share_Module_2_Power_conflict_and_negotiation.pptx
PDF
Trump Administration's workforce development strategy
PDF
Empowerment Technology for Senior High School Guide
PDF
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
PDF
My India Quiz Book_20210205121199924.pdf
PDF
IGGE1 Understanding the Self1234567891011
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PDF
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
PDF
HVAC Specification 2024 according to central public works department
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
AI-driven educational solutions for real-life interventions in the Philippine...
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
TNA_Presentation-1-Final(SAVE)) (1).pptx
Share_Module_2_Power_conflict_and_negotiation.pptx
Trump Administration's workforce development strategy
Empowerment Technology for Senior High School Guide
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
My India Quiz Book_20210205121199924.pdf
IGGE1 Understanding the Self1234567891011
202450812 BayCHI UCSC-SV 20250812 v17.pptx
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
HVAC Specification 2024 according to central public works department
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)

Lab4 2022

  • 1. Lab 4 Fitting and Using Models
  • 2. The point of this lab • Say we want to get really good at guessing the number of jelly beans in a jar • So we decide to practice with a bunch of different jars of jelly beans
  • 3. The point of this lab • First, we record our guess of number of jellybeans in each jar • Next, we record the actual number of jellybeans • Based on how off our guesses are, we can know how to “correct” them in the future to get a more accurate prediction Jar Our Guess 252 90 135 63 720 100 Actual # 125 48 70 31 355 Based on how off our guesses were for the first 5 jars, what would you predict the actual # is here?
  • 4. The point of this lab Jar Our Guess 252 90 135 63 720 100 Actual # 125 48 70 31 355 We can make a formula to “correct” our guess: 𝑐𝑜𝑟𝑟𝑒𝑐𝑡𝑒𝑑 𝑔𝑢𝑒𝑠𝑠 = 1 2 × (𝑜𝑢𝑟 𝑔𝑢𝑒𝑠𝑠)
  • 5. The point of this lab Another example… • Say we want to get really good at guessing the number of wins the gamecocks will have in their season • We decide to practice guessing for a few seasons to “hone our model”
  • 6. The point of this lab Season 2017 2018 2019 2020 2021 2022 Our Guess 5 6 8 2 4 7 Actual # 8 9 11 5 7 Once again, we can make a formula to “correct” our guess: 𝑐𝑜𝑟𝑟𝑒𝑐𝑡𝑒𝑑 𝑔𝑢𝑒𝑠𝑠 = 𝑜𝑢𝑟 𝑔𝑢𝑒𝑠𝑠 + 3
  • 7. What you should learn • What is the meaning of predictor variable and response variable? • How can we use a fitted model (like 𝒚 = 0.5𝒙 + 3 ) to give us a prediction? • Given a fitted model (like 𝒚 = 0.5𝒙 + 3 ), and some data (values for x,y), how do we calculate the residuals? • In the context of predictions, what is the empirical rule for standard deviation? • What does it mean to be a biased guesser?
  • 9. Now type your table 4.1 in statcrunch like so…
  • 10. Graph → Scatterplot → X variable: Guessed, Y variable: True → Compute Paste this graph to your word document & answer question 2 based on this graph
  • 11. Graph → Scatterplot → X variable: Guessed, Y variable: True → → Overlay function of x: x → Compute Paste this graph to your word document & answer question 3 based on this graph
  • 12. Stats → Regression → Simple Linear → X variable: Guessed, Y variable: True → Compute Paste the output (tables and such AS WELL as the graph) into your word document
  • 13. Paste the output (tables and such AS WELL as the graph) into your word document Stats → Regression → Polynomial → X variable: Guessed, Y variable: True → Compute
  • 14. Look at the plot that you made on slide 12 of this powerpoint (NOT SLIDE 10 or 11) and use that to answer the question Look at the plot that you made on slide 13 of this powerpoint and use that to answer the question You found s in the cell to the left of this… just multiply it by 2 You found s in the cell to the left of this… just multiply it by 2
  • 15. Write which model (Linear or Quadratic) you found to be best for your data. You will justify this choice later. Circle the reason(s) that made you choose Linear vs. Quadratic This formula can be found on the outputs that you made on slide 12 or 13 (depending if you chose linear or polynomial model) it looks like True = Blah blah Write your guess for the 11th object here. … now plug that x value into the formula that you just wrote, and see what value it spits out for True. I will tell you this value (so you can compare it with your model’s prediction) Calculate this by subtracting your model’s prediction of the weight (value in row 4) from the true weight (value in row 5). Find the value of 2s in table 4.2 (make sure you use the 2s from your chosen model). See if your error value from the row above falls into the interval (−2𝑠, 2𝑠)
  • 16. What each person needs to turn in: • Tables 4.1, 4.2, 4.3 • Completed discussion questions • Plots & tables etc. that we made on slides 10 - 13