CS 1025 Computational Modeling and Simulation

Test Two Study Guide - FALL 2014 - Friday, December 5th


  1. VIP - Study this carefully!!!: Turtle Trigonometry Solution with help on how to approach most or all of the problems using the Ghostbusters i. ii. iii. step approach.
      i. Peter Venkman  - Understand the problem.  Focus on WHAT.
    
                          (a) What is given?  What is known?
                          (b) What is the goal?  What is the unknown?
    
     ii. Raymond Stantz - Develop a PLAN.  Focus on HOW to solve it.
    
                          How to get from (a) to (b).
                          HOW to use the known givens to get to unknown goal 
                                               or result.
                          What formulas, such as SOH, CAH, TOA involve
                          the (a) known and the (b) unknown aspects?
    
    iii. Egon Spengler - Implement and carry out your plan using the 
                         tools such as NetLOGO, Data Flyer, After Effects,
                         Maya, Windows calculator, and hand calculations
                         with pen and pencil to carry out and clearly
                         SHOW your WORK step by step!
    

  2. What topics will be covered from the Exam #1 Study Guide? Review and practice for ALL of them. Test #2 is comprehensive.

    1. Monte Carlo - review of Wednesday, November 14th, 2012 class. How to think about the known and the unknown and do algebra with the general formula. Dinosaur/Shark/Star Wars Fruit Snacks tossing solution to Area of the Contruction paper. Note: This was done in August 2013 with Star Burst candy cubes and two different size boxes.

                                 b
      Do you understand the a = --- (d) formula and concepts.
                                 c
       
      Can you look at a Monte Carlo problem 
          and find the a, 
                   the b,                         b
                   the c,                   The -----
                   the d?                         c
      
          and figure out which of the four parts is the goal, the unknown?
      
      It is all in the above study guide PDF.   See page CCC.  See CCC.
       
      BICTION = if the INK don' flow, the understanding don't grow.
        
      Take some notes, use some lead or ink, consume some scratch paper.
      Practice.  Don't just read over and look at.  DO!  Nike.  Just DO it.
      

    2. The Mystery Distance and Pythagorean Theorem 10/21 test one followup.

      Worksheet - Oct 21st midterm followup exercise 8 questions.

    3. Turtle Trigonometry exercise. Heading, xcor, ycor, and turtle #1 having similar triangle to turtle #2.

    4. The Data Flyer application from SHODOR.
      Find the best fitting (smallest "Sum of squares of deviations:")
               line 
                    f(x) = mx + b
               
               for the following two points using Data Flyer:
      
                   -5 -1   <------ point a
                    0  3   <------ point b
      
      Now, REFRESH the Data Flyer application and try these three points:
      
                  -5   -1           point a  (same as before)
                   0    3           point b  (same as before)
                  -2.5  2           point c  <----- ths new 3rd point
       
           Can you get the Sum of squares of deviations: 0.67 or less????
      
           Note:  It is helpful to click on "Light Grid Lines" 
      
           When you get the 0.67 or less 
                for the Sum of the squares of the deviations, 
                after doing enough Change Function and Slider adjusting,
      
                you have discovered your 
                best fitting function 
      
                f(x) = mx + b, or
      
                  y  =  mx + b    What is m?   What is b?
      
      Know the idea 
           of the RISE                                                       
                       (the y2 - y1 or y difference 
                                              or distance or change)
          and 
              the RUN 
                       (the x difference, x2 - x2, 
                                            the x distance or change)
      
                    E                     E              R
                    S                    S               I
                    I                   I                S
                    R      or          R                 E
             R U N               R U N             R U N 
      
             Run across (the x-axis)    Rise UP (on the y-axis)
      
             Rise
            ------  =   slope of the line connecting the two points
             Run
      

    5. Ski slopes: Finding the SLOPE of a line given two points.

    6. Example: Using the Data Flyer tool to find the linear relationship between two variables (X = birth rate and Y = female life expectancy).

    7. Monte Carlo with NetLogo - 33 by 33 grid, Cows and Houses, not to be confused with cows in houses instead of barns!

  3. Monte Carlo concepts and problems. MonteCarlo20darts.pdf: Throwing 20 darts, throwing 100 darts, estimating area of an ellipse, estimating area A, B, C and D when a line is involved. y = mx + b. The line has slope m and intercept b.

    Netlogo TURTLES randomly scatter, then turn into either a COW or a HOUSE depending on whether they hit the BULLS EYE or missed the oval shaped bulls eye.





Monte Carlo concepts will be on TEST TWO
Throwing Darts to determine an AREA.

MONTE CARLO QUESTIONS: Throwing Monte Carlo Darts or randomly scattering out turtles! :-)


  • Monte Carlo - given a diagram and graphical setup of an area, be able to determine what the area of below the function or between two functions is by using the Monte Carlo method.

    Know and understand the formula for coming up with a Monte Carlo estimated area when you know the proportion of or the actual count of "darts" that landed inside the area of interest.

  • Example:  Look at the following diagram which shows a solid point for every dart that was thrown
              and where it hit inside the target area.  The target area is the rectangle there you see
              that goes from x = 1 to x = 3 and from y = 4 to y = 8.
               
              (Note: for practical purposes, only 16 or 20 darts were thrown 
                                                   in the examples shown here).
       
              Calculate what the estimated area of the region above function g 
                                                          and below function h would be?  (The area BETWEEN function g and function h).  
              Please show your work and calculations.
              I need to see your process of arriving at the result.
              You will get partial credit if your equation is correct, but you just had a simple calculation, arithmetic error.
              You will NOT get full credit for just having the correct answer, so show the process for that reason too.