Question: Using R studio, data is something like this , how to plot histogram with 15 min bar width Date column: -2001-01-01 06:57:04 UTC 2001-01-01 08:54:31

Using R studio, data is something like this , how to plot histogram with 15 min bar width

Date column: -"2001-01-01 06:57:04 UTC" "2001-01-01 08:54:31 UTC" "2001-01-02 07:30:03 UTC" "2001-01-02 23:17:41 UTC" Magnitude column : 7.5 6.8 6.4 6.0 7.1 7.0 6.0 7.7 6.4 6.0 6.9 6.0 6.3 6.0 7.7 6.2 6.0 6.6 7.4 6.1 6.2 6.1 6.2 6.0 7.1 6.2

Using R studio, data is something like this , how to plothistogram with 15 min bar width Date column: -"2001-01-01 06:57:04 UTC" "2001-01-01

# A tibble: 1,826 x 2 Date Magnitude 1 2001-01-01 06:57:04 7.5 2 2001-01-01 08:54:31 6.8 3 2001-01-02 07:30:03 6.4 4 2001-01-02 23:17:41 6 5 2001-01-09 16:49:28 7.1 6 2001-01-10 16:02:44 7 7 2001-01-11 00:04:03 6 8 2001-01-13 17:33:32 7.7 9 2001-01-15 05:52:16 6.4 10 2001-01-16 13:25:01 6 # ... with 1,816 more rows (a) Plot a histogram of the times with bars 15 minutes wide. (b) Use a x2 test to determine if the hour of the day that the earthquakes originate is equally distributed among the 24 hours. (c) Write some R code which will calculate the Kolmogorov-Smirnov statistics Dit and Din for testing that the times are uniformly distributed throughout the day. Find D. (d) Calculate an approximate P-value for this hypothesis test using the Brownian Bridge approxi- mation we discussed in lecture. # A tibble: 1,826 x 2 Date Magnitude 1 2001-01-01 06:57:04 7.5 2 2001-01-01 08:54:31 6.8 3 2001-01-02 07:30:03 6.4 4 2001-01-02 23:17:41 6 5 2001-01-09 16:49:28 7.1 6 2001-01-10 16:02:44 7 7 2001-01-11 00:04:03 6 8 2001-01-13 17:33:32 7.7 9 2001-01-15 05:52:16 6.4 10 2001-01-16 13:25:01 6 # ... with 1,816 more rows (a) Plot a histogram of the times with bars 15 minutes wide. (b) Use a x2 test to determine if the hour of the day that the earthquakes originate is equally distributed among the 24 hours. (c) Write some R code which will calculate the Kolmogorov-Smirnov statistics Dit and Din for testing that the times are uniformly distributed throughout the day. Find D. (d) Calculate an approximate P-value for this hypothesis test using the Brownian Bridge approxi- mation we discussed in lecture

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!