Can you guys complete this by the deadline?
Efficient Frontier and CAPM Exercise Efficient Frontier and CAPM Exercise. Estimated completion time: for Excel experts 2 hours, for Excel novices 20 hours. 1. The file 2023FallDataFileWRDS contains monthly closing prices (col D), cash dividends (C) and cum split factors (E) for GE, AAPL and PG (stocks in that order). The file 2023FallTBills contains annualized TBill rates (divide by 1200 to convert to monthly %). a. Create a sheet titled “PriceData” with 10 columns: Date, GEPrice, GEDiv, GEFact, AAPLPrice, AAPLDiv, AAPLFact, PGPrice, PGDiv, PGFact. Dates should run from Dec 2013 to Dec 2021, i.e. 97 rows of data. b. Create a sheet “ReturnData” with 5 columns: Date, GE, AAPL, PG, MKT Index. Compute returns for each stock for each month by taking the natural log of [that month’s price with the dividend added if any] divided by the cum split factor minus the natural log of the previous month’s price divided by the factor. That is, compute the continuously compounded return Rt=ln((Pt+Dt)/Ft)-ln(Pt-1/Ft-1) instead of a simple arithmetic return Rt= (Pt+Dt -Pt-1)/Pt-1. Pt denotes the price for a given month and Pt-1 denotes the price for the prior month. Dates run from Jan 2014 to Dec 2021; no Dec 2013; 96 rows of returns. ln() is the natural logarithm function in Excel, so your formula might be =ln((D5 +C5)/E5)- ln(D6/E6) if factors are in col F and dividends in col C. For MKT Index; copy and reformat to % the repeated Value-Weighted Index returns in col G; make sure dates align. Sort all tabs in reverse chronological order, e.g. Dec2021 to Jan2014. Check that your formulas are still correct, ie ln(this month’s adj price) minus ln(prior), not vice versa. 2. Create a sheet titled “PG”. First, without the use of functions average() and stdev(), compute the average and the std. deviation of PG’s returns. Copy the dates and PG returns from “ReturnData” into the sheet, sum the return column and divide by the number of observations (=96) to get the mean Ravg. Create a column with (Rt -Ravg)2, sum it, divide by the number of observations minus one (=95), take a square root (sqrt()) of the result to get the st. deviation. Verify next to it that the Excel functions average() and stdev() give identical answers. 3. Create a sheet “PortfolioReturns” (like “ReturnData”) in which you generate returns on portfolios with the follwng respective weights for the three stocks: (30, 20, 50), (40, 40, 10), (10, 40, 50), (33 1/3, 33 1/3, 33 1/3), (50, 25, 25), (25, 50, 25), (25, 25, 50), (10, 20, 70), (20, 10, 70), (70, 20, 10). For example, (25, 50, 25) means that you put 25% in GE, 50% in AAPL and 25% in PG. Prepend a column of dates and three columns of individual stock returns. Append a column with Index returns. You end up with 15 columns: Date, the three stocks, the 10 portfolios labeled P1-P10, and Index. Dates Jan 2014 to Dec 2021, i.e. 96 rows. At the bottom of each return column compute the mean and the st. dev. of monthly returns using functions AVERAGE() and STDEV(). Note: 33.3333 ≠ 33 1/3. Enter (1/3), not 0.3333. 4. Create a sheet “Frontier”. Copy the results from 3. into a transposed 14rows x 3cols table. Columns are: portfolio label, stdev, mean. Rows are the 14 assets. Create an efficient frontier graph with mean on the Y-axis and st. deviation on the X-axis. Use “XY Scatter” from the graph menu. Each portfolio should be represented by a labeled dot. Assume the risk free (TBill) rate of 0.05%=0.0005. Add the Capital Market Line which goes through point (0, 0.05%) and is tangent to the efficient frontier (eyeball to tell which of the 14 points it should go close to). You can do this last part (CML) by hand/i.e. using the draw tool. 5. a. Create a sheet “Regressions”. Copy the date column from “ReturnData” into Col A. From the 2023SpringTBills.xlsx file copy 96 Tbill rates for the correct months (use the right-hand col where the rates are decompounded to monthly and formatted to %). Place the result in Col B. Add 4 cols C-F in which you compute the excess returns on the three stocks and Index over the TBill rates. b. Create a sheet “Beta”. Repeatedly (3 times) use the regression function in Excel to compute betas for the three stocks. Regression can be found in Excel under Data -> Data Analysis; scroll to Regression. If it doesn’t appear, go to Office icon -> Excel options -> Add-ins, and add the Analysis Tool pack. Use a DESB computer if your home one lacks this function. In the regression window, Y-variable is the column range of stock excess returns, the X-variable is always the column range of excess MKT Index returns. Beta will be the slope coefficient in the output range. (It will be labeled “XVariable” if you don’t include header row). In “ReturnData”, add a row labeled Beta at the bottom. Copy the tree betas. Add the market beta for Index (=? think a little:-). Compute the 10 betas for the portfolios by weighting the stock betas. 6. a. Create a sheet “SML”. Copy the 14 betas from Part-5b into a column. Copy the corresponding 14 return means from Part 3 into another column. Append a row in the table for TBill with its mean 0.01%=0.0001 and beta=0. Prepend a col of labels. b. Create two new sheets. As in Part 1 and 2, create 10 rows of monthly price data for GE, AAPL and PG from Dec 2021 to Sep 2022 into a new sheet “NewPriceData”. Compute 9 rows of returns from Jan 2022 to Sep 2022 (10 prices 9 returns) for the four securities (GE, AAPL, PG, Index) in “NewReturnData”. Add 10 columns for Portfolios 1-10 and compute their returns. As before, at the bottom of the “NewReturnData” compute the means and st. deviations for the four securities and the 10 portfolios. c. Overwrite the old means for the stocks, the MKT and the portfolios in the “SML” sheet with the new means. (We have the betas predicted by the 2014-2021 data, but the realized mean returns for 2022). Also copy/overwrite the TBills 2022 mean with 0.40%=0.0040. d. Plot the (new) mean returns against (old) betas on a graph using “XY Scatter” with Y-axis as the mean and X-axis as beta. Label your stocks and portfolios. Use the Draw tool to trace the Security Market Line through TBill and MKT. Format (%s, graph labels, table titles) the entire project in Excel and Word appropriately like for a business presentation. Bad formatting incurs a penalty up to 10%. Must do To ensure your success, the project proceeds in two stages. Stage 1: Complete parts 1–3, attempt to do parts 4–6 asap or by Week 2. You can upload the partial spreadsheet if you are unsure about anything, not required. Ask lots of questions about Stage 1 or Stage 2 during Week 2-3, to fix all errors. Then, Stage 2: Complete parts 4–6 by the deadline. Follow the instructions for submission. Important: What to submit to receive credit Upon final completion (Stage 2) upload two files on Canvas: 1. Upload on Canvas your Excel book (not to exceed 350 KB) by Sunday 11:59pm on the due date. Your name must appear in cells A1 of the “PriceData” and the “NewPriceData”. Your file must be named using the LastFirst.xlsx convention: if you are Adam Smith, then the file name is SmithAdam.xlsx. Follow the file naming convention to receive credit. 2. Create in Word and upload on Canvas by Sunday 11:59pm on the due date a three page document. The three pages are: (1) A cover page with your name, (2) The table and graph from Part 4, (3) The table and graph from Part 6. Make sure your graphs and tables show well. FRED Graph FRED Graph Observations Federal Reserve Economic Data Link: https://fred.stlouisfed.org Help: https://fredhelp.stlouisfed.org Economic Research Division Federal Reserve Bank of St. Louis TB3MS3-Month Treasury Bill Secondary Market Rate, Discount Basis, Percent, Monthly, Not Seasonally Adjusted Frequency: Monthly observation_dateTB3MS 1934-01-010.72 1934-02-010.62 1934-03-010.24 1934-04-010.15 1934-05-010.16 1934-06-010.15 1934-07-010.15 1934-08-010.19 1934-09-010.21 1934-10-010.27 1934-11-010.25 1934-12-010.23 1935-01-010.20 1935-02-010.19 1935-03-010.15 1935-04-010.15 1935-05-010.15 1935-06-010.15 1935-07-010.15 1935-08-010.16 1935-09-010.20 1935-10-010.20 1935-11-010.16 1935-12-010.15 1936-01-010.20 1936-02-010.20 1936-03-010.20 1936-04-010.20 1936-05-010.20 1936-06-010.20 1936-07-010.15 1936-08-010.20 1936-09-010.16 1936-10-010.13 1936-11-010.11 1936-12-010.12 1937-01-010.17 1937-02-010.15 1937-03-010.38 1937-04-010.56 1937-05-010.41 1937-06-010.36 1937-07-010.28 1937-08-010.29 1937-09-010.31 1937-10-010.20 1937-11-010.09 1937-12-010.11 1938-01-010.10 1938-02-010.08 1938-03-010.08 1938-04-010.09 1938-05-010.05 1938-06-010.05 1938-07-010.07 1938-08-010.06 1938-09-010.08 1938-10-010.05 1938-11-010.04 1938-12-010.03 1939-01-010.03 1939-02-010.03 1939-03-010.03 1939-04-010.03 1939-05-010.03 1939-06-010.03 1939-07-010.04 1939-08-010.05 1939-09-010.14 1939-10-010.05 1939-11-010.05 1939-12-010.04 1940-01-010.01 1940-02-010.02 1940-03-010.02 1940-04-010.02 1940-05-010.06 1940-06-010.10 1940-07-010.05 1940-08-010.04 1940-09-010.05 1940-10-010.02 1940-11-010.02 1940-12-010.02 1941-01-010.02 1941-02-010.04 1941-03-010.11 1941-04-010.10 1941-05-010.11 1941-06-010.12 1941-07-010.12 1941-08-010.13 1941-09-010.10 1941-10-010.09 1941-11-010.28 1941-12-010.33 1942-01-010.27 1942-02-010.25 1942-03-010.25 1942-04-010.32 1942-05-010.37 1942-06-010.37 1942-07-010.38 1942-08-010.38 1942-09-010.38 1942-10-010.38 1942-11-010.38 1942-12-010.38 1943-01-010.38 1943-02-010.38 1943-03-010.38 1943-04-010.38 1943-05-010.38 1943-06-010.38 1943-07-010.38 1943-08-010.38 1943-09-010.38 1943-10-010.38 1943-11-010.38 1943-12-010.38 1944-01-010.38 1944-02-010.38 1944-03-010.38 1944-04-010.38 1944-05-010.38 1944-06-010.38 1944-07-010.38 1944-08-010.38 1944-09-010.38 1944-10-010.38 1944-11-010.38 1944-12-010.38 1945-01-010.38 1945-02-010.38 1945-03-010.38 1945-04-010.38 1945-05-010.38 1945-06-010.38 1945-07-010.38 1945-08-010.38 1945-09-010.38 1945-10-010.38 1945-11-010.38 1945-12-010.38 1946-01-010.38 1946-02-010.38 1946-03-010.38 1946-04-010.38 1946-05-010.38 1946-06-010.38 1946-07-010.38 1946-08-010.38 1946-09-010.38 1946-10-010.38 1946-11-010.38 1946-12-010.38 1947-01-010.38 1947-02-010.38 1947-03-010.38 1947-04-010.38 1947-05-010.38 1947-06-010.38 1947-07-010.66 1947-08-010.75 1947-09-010.80 1947-10-010.85 1947-11-010.92 1947-12-010.95 1948-01-010.97 1948-02-011.00 1948-03-011.00 1948-04-011.00 1948-05-011.00 1948-06-011.00 1948-07-011.00 1948-08-011.06 1948-09-011.09 1948-10-011.12 1948-11-011.14 1948-12-011.16 1949-01-011.17 1949-02-011.17 1949-03-011.17 1949-04-011.17 1949-05-011.17 1949-06-011.17 1949-07-011.02 1949-08-011.04 1949-09-011.07 1949-10-011.05 1949-11-011.08 1949-12-011.10 1950-01-011.07 1950-02-011.12 1950-03-011.12 1950-04-011.15 1950-05-011.16 1950-06-011.15 1950-07-011.16 1950-08-011.20 1950-09-011.30 1950-10-011.31 1950-11-011.36 1950-12-011.34 1951-01-011.34 1951-02-011.36 1951-03-011.40 1951-04-011.47 1951-05-011.55 1951-06-011.45 1951-07-011.56 1951-08-011.62 1951-09-011.63 1951-10-011.54 1951-11-011.56 1951-12-011.73 1952-01-011.57 1952-02-011.54 1952-03-011.59 1952-04-011.57 1952-05-011.67 1952-06-011.70 1952-07-011.81 1952-08-011.83 1952-09-011.71 1952-10-011.74 1952-11-011.85 1952-12-012.09 1953-01-011.96 1953-02-011.97 1953-03-012.01 1953-04-012.19 1953-05-012.16 1953-06-012.11 1953-07-012.04 1953-08-012.04 1953-09-011.79 1953-10-011.38 1953-11-011.44 1953-12-011.60 1954-01-011.18 1954-02-010.97 1954-03-011.03 1954-04-010.97 1954-05-010.76 1954-06-010.64 1954-07-010.72 1954-08-010.92 1954-09-011.01 1954-10-010.98 1954-11-010.93 1954-12-011.15 1955-01-011.22 1955-02-011.17 1955-03-011.28 1955-04-011.59 1955-05-011.45 1955-06-011.41 1955-07-011.60 1955-08-011.90 1955-09-012.07 1955-10-012.23 1955-11-012.24 1955-12-012.54 1956-01-012.41 1956-02-012.32 1956-03-012.25 1956-04-012.60 1956-05-012.61 1956-06-012.49 1956-07-012.31 1956-08-012.60 1956-09-012.84 1956-10-012.90 1956-11-012.99 1956-12-013.21 1957-01-013.11 1957-02-013.10 1957-03-013.08 1957-04-013.07 1957-05-013.06 1957-06-013.29 1957-07-013.16 1957-08-013.37 1957-09-013.53 1957-10-013.58 1957-11-013.31 1957-12-013.04 1958-01-012.44 1958-02-011.53 1958-03-011.30 1958-04-011.13 1958-05-010.91 1958-06-010.83 1958-07-010.91 1958-08-011.69 1958-09-012.44 1958-10-012.63 1958-11-012.67 1958-12-012.77 1959-01-012.82 1959-02-012.70 1959-03-012.80 1959-04-012.95 1959-05-012.84 1959-06-013.21 1959-07-013.20 1959-08-013.38 1959-09-014.04 1959-10-014.05 1959-11-014.15 1959-12-014.49 1960-01-014.35 1960-02-013.96 1960-03-013.31 1960-04-013.23 1960-05-013.29 1960-06-012.46 1960-07-012.30 1960-08-012.30 1960-09-012.48 1960-10-012.30 1960-11-012.37 1960-12-012.25 1961-01-012.24 1961-02-012.42 1961-03-012.39 1961-04-012.29 1961-05-012.29 1961-06-012.33 1961-07-012.24 1961-08-012.39 1961-09-012.28 1961-10-012.30 1961-11-012.48 1961-12-012.60 1962-01-012.72 1962-02-012.73 1962-03-012.72 1962-04-012.73 1962-05-012.69 1962-06-012.73 1962-07-012.92 1962-08-012.82 1962-09-012.78 1962-10-012.74 1962-11-012.83 1962-12-012.87 1963-01-012.91 1963-02-012.92 1963-03-012.89 1963-04-012.90 1963-05-012.93 1963-06-012.99 1963-07-013.18 1963-08-013.32 1963-09-013.38 1963-10-013.45 1963-11-013.52 1963-12-013.52 1964-01-013.52 1964-02-013.53 1964-03-013.54 1964-04-013.47 1964-05-013.48 1964-06-013.48 1964-07-013.46 1964-08-013.50 1964-09-013.53 1964-10-013.57 1964-11-013.64 1964-12-013.84 1965-01-013.81 1965-02-013.93 1965-03-013.93 1965-04-013.93 1965-05-013.89 1965-06-013.80 1965-07-013.84 1965-08-013.84 1965-09-013.92 1965-10-014.03 1965-11-014.09 1965-12-014.38 1966-01-014.59 1966-02-014.65 1966-03-014.59 1966-04-014.62 1966-05-014.64 1966-06-014.50 1966-07-014.80 1966-08-014.96 1966-09-015.37 1966-10-015.35 1966-11-015.32 1966-12-014.96 1967-01-014.72 1967-02-014.56 1967-03-014.26 1967-04-013.84 1967-05-013.60 1967-06-013