GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

What is the output of the following code? newlist = np.zeros…

What is the output of the following code? newlist = np.zeros(4) for i in range(len(newlist)):    newlist[i] = i + newlist[i] print(newlist)   

Read Details

Consider a portfolio with the following weights w,  expected…

Consider a portfolio with the following weights w,  expected return on each risky asset ER, and covariance matrix Cov below. w = np.array([0.05, 0.03]) ER = np.array([0.10, 0.02])Cov = np.cov([[0.004, 0.0156], [0.0156, 0.009]]) Which of the following expressions represents the portfolio volatility in Python?

Read Details

How many atoms are in a face centered cubic lattice?

How many atoms are in a face centered cubic lattice?

Read Details

Consider the code below with numbered lines:1)def h(x): 2) r…

Consider the code below with numbered lines:1)def h(x): 2) return np.exp(-x**2 / 2) / np.sqrt(2 * np.pi) 3) 4)x = np.linspace(-4, 4, 51) 5)y = np.zeros(x) 6) 7)for i in range(len(y)-1): 8) y[i] = h(x[i]) 9)plt.plot(x, y) If we run the code above, we will receive an error. In which line lies the error?

Read Details

Assume we live in a world where the CAPM holds and it is giv…

Assume we live in a world where the CAPM holds and it is given by  ER = lambda beta: beta * 0.05 + 0.02If you know this linear relationship between beta and ER, you can compute the ER for a given beta.What is the ER on a stock with beta = 0.5?

Read Details

What is the last element of x?x = np.linspace(0, 0.4 + 0.05,…

What is the last element of x?x = np.linspace(0, 0.4 + 0.05, 9)

Read Details

Assume we download the stock price of Tesla and compute its…

Assume we download the stock price of Tesla and compute its return using the command  startdate = ‘2019-01-01’ enddate = ‘2021-01-01’ tesla = web.get_data_yahoo(“TSLA”, startdate, enddate)R_tesla = tesla[‘Adj Close’].pct_change().dropna() Which of the following commands is used to compute the volatility of Tesla returns?  

Read Details

Consider an economy with three possible states: bad, normal,…

Consider an economy with three possible states: bad, normal, and good. The probability of each state is given in the array of probabilities “p”  below. The payoff of a risky stock in each state is given in the array R.  p = np.array([0.1, 0.6, 0.3]) R = np.array([[0.05], [0.03], [-0.02]]) If we want to compute the expected return on this risky asset, what is the command line we should execute in Python?

Read Details

Consider the array below: x = np.array([9, 0.05, -90.43, 1.7…

Consider the array below: x = np.array([9, 0.05, -90.43, 1.78, 5, 6.3]) What is the element x[3] ?

Read Details

Which of the following molecule has the highest boiling poin…

Which of the following molecule has the highest boiling point? (The numbers shown in the choices are supposed to be subscripts.)

Read Details

Posts pagination

Newer posts 1 … 74,057 74,058 74,059 74,060 74,061 … 97,409 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top