Stock Price Analysis

Q4. Define the events uA=Up-A. uB=Up-B, and uC=Up-C. each indicating if the respective daily stock price has gone up or not relative to yesterday.
1) Obtain a two-way contingency table between uA and uB. 2) Compute P(uA), P (uB), P(uA f1 uB), P(uA u uB), P (U AIU B), P (U B IU A), P(UAIU13), P (U Be IU A). 3) Investigate if uA and uB are independent. 4) Investigate if uA and uB are independent conditional on tiC.
Q5. 1) Obtain the histograms for the daily returns of A. B. and C on the same plot. Add a vertical line to each plot for the respective means. 2) Compute the probability that each will yield a daily positive return. 3) Assume that you have $1 to invest in 3 stocks (A, B, and C) and assume that you would like to invest 30% in A. 35% in B. and 35% in C. Compute the expected return and the standard deviation of this portfolio and compare these measures against those obtained with A. B. and C individually. Briefly conunent on your findings.