Answered step by step
Verified Expert Solution
Question
1 Approved Answer
= simulatedB simulatedS = simulatedB ## np.random.normal(5, 0.5, size=20) # create 20 fake Beijing prices np.random.normal(5, 0.5, size=10) # create 10 fake Seattle prices
= simulatedB simulatedS = simulatedB ## np.random.normal(5, 0.5, size=20) # create 20 fake Beijing prices np.random.normal(5, 0.5, size=10) # create 10 fake Seattle prices , ## array([5.28680292, 5.672704 5.47515532, 4.5042225, 6.10792454, 5.55367062, 5.93738803, 5.53429585, 5.00046181, 4.85310013, 5.49085665, 4.91413966, 5.43145621, 4.6731814 4.76162393, 4.30303043, 5.36229575, 5.64092359, 4.96849 ## ## simulatedS , 4.76309679]) np.mean(simulatedB) - np.mean(simulatedS) ## 0.19683804281616624 Hint: As stated before, the inverse of 10x is log10 x. However, log10 x - log 10 y is NOT equivalent to log10(x y)!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started