Quiz-Ch10-quakes-FA23

.pdf

School

East Los Angeles College *

*We aren’t endorsed by this school

Course

3020

Subject

Physics

Date

Dec 6, 2023

Type

pdf

Pages

8

Uploaded by christiancastilla23 on coursehero.com

Quiz-Ch10-quakes-FA23 November 7, 2023 # Quiz Ch. 1-10: Explaining Variation in Earthquake Magnitude [3]: # Run this code to load the required packages suppressMessages ( suppressWarnings ( suppressPackageStartupMessages ({ library (mosaic) library (supernova) library (coursekata) }))) Hello wonderful students. I’m confident you can do this! Please remember to read every word of each question. If you have time after you finish, I highly recomend taking a minute to look back over your work. In R, there is a data frame called quakes (Preloaded in R) which gives information about the earthquakes around Fiji since 1964. Variables in the data frame: lat Latitude of the location of the quake; around Fiji, smaller numbers (more negative) indicate south while larger numbers (less negative) are north. long Longitude of the location of the quake; around Fiji, smaller numbers indicate west and larger numbers indicate east. depth Distance in kilometers away from the earth’s surface. mag Richter Magnitude stations Number of earthquake observation stations reporting the earthquake [ ]: 0.1 Question 1 How many variables are in this data frame? What are the cases/observations? [7]: quakes 1
A data.frame: 1000 × 5 lat long depth mag stations <dbl> <dbl> <int> <dbl> <int> -20.42 181.62 562 4.8 41 -20.62 181.03 650 4.2 15 -26.00 184.10 42 5.4 43 -17.97 181.66 626 4.1 19 -20.42 181.96 649 4.0 11 -19.68 184.31 195 4.0 12 -11.70 166.10 82 4.8 43 -28.11 181.93 194 4.4 15 -28.74 181.74 211 4.7 35 -17.47 179.59 622 4.3 19 -21.44 180.69 583 4.4 13 -12.26 167.00 249 4.6 16 -18.54 182.11 554 4.4 19 -21.00 181.66 600 4.4 10 -20.70 169.92 139 6.1 94 -15.94 184.95 306 4.3 11 -13.64 165.96 50 6.0 83 -17.83 181.50 590 4.5 21 -23.50 179.78 570 4.4 13 -22.63 180.31 598 4.4 18 -20.84 181.16 576 4.5 17 -10.98 166.32 211 4.2 12 -23.30 180.16 512 4.4 18 -30.20 182.00 125 4.7 22 -19.66 180.28 431 5.4 57 -17.94 181.49 537 4.0 15 -14.72 167.51 155 4.6 18 -16.46 180.79 498 5.2 79 -20.97 181.47 582 4.5 25 -19.84 182.37 328 4.4 17 ￿ ￿ ￿ ￿ ￿ -25.79 182.38 172 4.4 14 -23.75 184.50 54 5.2 74 -24.10 184.50 68 4.7 23 -18.56 169.05 217 4.9 35 -23.30 184.68 102 4.9 27 -17.03 185.74 178 4.2 32 -20.77 183.71 251 4.4 47 -28.10 183.50 42 4.4 17 -18.83 182.26 575 4.3 11 -23.00 170.70 43 4.9 20 -20.82 181.67 577 5.0 67 -22.95 170.56 42 4.7 21 -28.22 183.60 75 4.9 49 -27.99 183.50 71 4.3 22 -15.54 187.15 60 4.5 17 -12.37 166.93 291 4.2 16 -22.33 171.66 125 5.2 51 -22.70 170.30 69 4.8 27 -17.86 181.30 614 4.0 12 -16.00 184.53 108 4.7 33 -20.73 181.42 575 4.3 18 2
5; Earthquakes surrounding Fiji since 1964 0.2 Question 2 For this lab, our outcome variable is magnitude (how big the earthquake was). Make some pre- sentable plots to explore which of the other variables best explain the variation in mag . Which variable looks like it explains variation in magnitude based on just the plots? What about the plot made you think that variable is the best at explaining variation in magnitude? [4]: gf_histogram ( ~ mag, data = quakes) %>% gf_boxplot ( -1 ~ mag) gf_histogram ( ~ lat, data = quakes) %>% gf_boxplot ( -1 ~ lat) 3
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help