Bartleby Related Questions Icon

Related questions

Question

data 8 Lab 09 Regression

 

Can you solve this code please?

Question 1.3. Compute the mean and standard deviation of the eruption durations and waiting times. Then create a table called faithful_standard containing the
eruption durations and waiting times in standard units. The columns should be named duration (standard units) and wait (standard units).
duration_mean = np.mean("duration")
duration_std = np.std("duration")
wait_mean = np.mean("wait")
wait_std = np.std("wait")
faithful standard = Table().with_columns (
"duration (standard units)", ("duration" -np.mean ("duration"))/np.std("duration"))
"wait (standard units)", ("wait"-np.mean ("wait"))/np.std("wait")
faithful standard
↑↓曱
expand button
Transcribed Image Text:Question 1.3. Compute the mean and standard deviation of the eruption durations and waiting times. Then create a table called faithful_standard containing the eruption durations and waiting times in standard units. The columns should be named duration (standard units) and wait (standard units). duration_mean = np.mean("duration") duration_std = np.std("duration") wait_mean = np.mean("wait") wait_std = np.std("wait") faithful standard = Table().with_columns ( "duration (standard units)", ("duration" -np.mean ("duration"))/np.std("duration")) "wait (standard units)", ("wait"-np.mean ("wait"))/np.std("wait") faithful standard ↑↓曱
Expert Solution
Check Mark