BF2219 Investments Excel Assignment Sample (NTU): Solver, CAL and CAPM Workings
For information and reference only – not to be submitted as your own work. This model extract shows method, structure and interpretation. All figures below are illustrative, created to demonstrate the calculations; they are not real Bloomberg results for XOM, JNJ or AMD. Your group must download its own data and write its own analysis in line with NTU’s academic integrity policy.
This sample follows a BF2219 Investments Excel assignment at Nanyang Technological University: three stocks (ExxonMobil, Johnson & Johnson and Advanced Micro Devices), the S&P 500 as the market proxy and the one-month T-bill as the risk-free rate. The closest live brief page is our BF2201/BF2219 NTU investments assignment page, which uses a different stock set, so treat the figures here as a worked pattern rather than a match for your data.
Executive summary (model extract)
Using 120 monthly observations from January 2016 to December 2025, we measured the risk and return of XOM, JNJ and AMD from the perspective of a US-dollar investor. In the illustrative data, AMD delivers the highest mean excess return but also the highest volatility, while JNJ is the least volatile.
A Solver-optimised, long-only portfolio holds all three stocks and reaches a monthly Sharpe ratio of about 0.21. In this illustration that is slightly below the S&P 500’s 0.22, which tells us three stocks cannot fully match a diversified index (Bodie et al., 2017).
Task 1 – Data and the growth of US$1
Worksheet layout for 1_data
| Column | Content | Excel formula (row 3 example) |
|---|---|---|
| A | Month-end date (Dec-2015 to Dec-2025) | – |
| B–D | Total returns incl. dividends, XOM / JNJ / AMD | From Bloomberg, divided by 100 |
| E | SPX total return | From Bloomberg, divided by 100 |
| F | RF (one-month T-bill) | French RF value / 100 |
| G–I | PX_LAST prices | From Bloomberg |
| J–L | Price-only returns | =G3/G2-1 |
| M–P | Value of US$1 (three stocks + RF) | =M2*(1+B3), starting at 1 |
The growth chart is a simple line chart of columns M to P. In our illustration AMD finishes far above the others, while XOM and JNJ move closer together and the RF line stays almost flat.
The dividend comparison
For the dividend chart we use JNJ, because AMD pays no dividend. The price-only line ends noticeably below the total-return line, and the gap widens every year. That is compounding at work: each reinvested dividend earns its own future returns.
The conclusion for the report is simple. Measuring a dividend payer, a portfolio or an index on price alone understates its performance, which is why total-return indices are the professional standard (Bodie et al., 2017).
Your data will not look like ours. Need help checking your Bloomberg download or growth chart? Get guidance from a finance expert.
Task 2 – Means, standard deviations and correlations
Formulas used
- Arithmetic mean: =AVERAGE(B3:B122)
- Geometric mean: =GEOMEAN(1+B3:B122)-1 (entered as an array formula in older Excel)
- Standard deviation: =STDEV.S(B3:B122)
- Excess return: =B3-$F3
- Sharpe ratio: mean excess return divided by the standard deviation of excess return
- Covariance and correlation: =COVARIANCE.S(…) and =CORREL(…), as the brief requires
Table 1 – Illustrative monthly excess-return statistics
| Asset | Mean excess | Std dev | Sharpe ratio |
|---|---|---|---|
| XOM | 0.60% | 7.50% | 0.080 |
| JNJ | 0.50% | 5.00% | 0.100 |
| AMD | 3.00% | 16.00% | 0.188 |
| S&P 500 | 1.00% | 4.50% | 0.222 |
Illustrative figures only. In this example AMD would be the best single-stock choice on a Sharpe basis, but none of the stocks beats the index.
The geometric mean should sit below the arithmetic mean, and the gap grows with volatility (roughly half the variance). Expect the biggest gap for AMD. Whether higher risk brought higher average return is an empirical question for your sample; energy stocks such as XOM had a difficult 2020, which can break the simple adage over a ten-year window.
Table 2 – Illustrative correlation matrix of excess returns
| XOM | JNJ | AMD | |
|---|---|---|---|
| XOM | 1.00 | 0.25 | 0.15 |
| JNJ | 0.25 | 1.00 | 0.10 |
| AMD | 0.15 | 0.10 | 1.00 |
Low positive correlations are what you would expect from energy, healthcare and semiconductors: all three share exposure to the US economy but respond to different industry drivers. An XOM-only investor clearly gains from adding JNJ and AMD, because correlations well below 1 reduce portfolio variance (Markowitz, 1952).
Task 3 – Solver set-up for the optimal risky portfolio
- Put the weights in cells B30:D30 and start at 1, 0, 0, as the brief requires.
- Portfolio mean: =SUMPRODUCT(B30:D30, mean excess returns).
- Portfolio variance: =MMULT(MMULT(B30:D30, covariance matrix), TRANSPOSE(B30:D30)).
- Sharpe ratio cell: mean divided by SQRT(variance).
- Solver: Set Objective = Sharpe cell, To = Max, By Changing = B30:D30.
- Constraints: B30:D30 ≥ 0, B30:D30 ≤ 1, SUM(B30:D30) = 1. Method: GRG Nonlinear.
Table 3 – Illustrative optimal portfolio
| XOM | JNJ | AMD | Mean excess | Std dev | Sharpe |
|---|---|---|---|---|---|
| 15.5% | 48.5% | 36.0% | 1.42% | 6.83% | 0.207 |
The optimal portfolio more than doubles the Sharpe ratio of XOM alone. In this illustration it still falls just short of the market’s 0.222, so moving from the three-stock portfolio to the market would improve the Sharpe ratio. Your real numbers may point the other way, especially given AMD’s run over the decade; say clearly which way your data goes.
Task 4 – Capital allocation line
The CAL is E(r_C) = r_f + y × E(r_P − r_f), with σ_C = y × σ_P (Bodie et al., 2017). Setting σ_C equal to the market’s 4.5% gives:
| Case | y in risky portfolio | In RF | Complete-portfolio monthly mean excess | Illustrative value of $10,000 after 120 months |
|---|---|---|---|---|
| Optimal three-stock portfolio | 65.9% | 34.1% | 0.93% | ≈ $30,500 |
| Market index | 100% | 0% | 1.00% | ≈ $33,000 |
Ending wealth uses $10,000 × (1 + monthly mean)^120 with zero RF cost, as the brief allows. Some groups instead use the geometric mean; state your choice. The difference between the two cases comes entirely from the slope of each CAL, which is the Sharpe ratio.
Solver stuck at 1, 0, 0 or the CAL not lining up? Work through it with our finance team, or upload your brief for a quote.
Task 5 – CAPM alpha and beta
Each regression uses Data, then Data Analysis, then Regression, with market excess returns in the X-Range and the stock or portfolio excess returns in the Y-Range. The intercept is alpha and the slope is beta (Sharpe, 1964).
| Asset | Alpha (monthly) | t-stat alpha | Beta |
|---|---|---|---|
| XOM | −0.20% | −0.3 | 0.85 |
| JNJ | 0.05% | 0.1 | 0.55 |
| AMD | 1.10% | 0.8 | 1.90 |
| Optimal portfolio | 0.30% | 0.6 | 1.10 |
Illustrative values. With t-statistics well below 2, none of the alphas is statistically reliable. A market-index investor should therefore be cautious: a positive point estimate built on one decade of three stocks is weak evidence for switching.
Task 6 – The 2026 out-of-sample test
Hold the Dec-2025 weights across the available 2026 months and compute the mean, standard deviation and Sharpe ratio of the excess returns. Then repeat with one-third in each stock. In our illustrative in-sample data the naïve portfolio’s Sharpe ratio (0.203) is already close to the optimised 0.207.
That gap is small enough for estimation error to reverse it out of sample, which is a well-documented finding: DeMiguel et al. (2009) show the 1/N rule is hard to beat once you account for errors in estimated means. This is the argument to build for the discussion of why the naïve portfolio can win.
Want to understand every step before your deadline? Read our step-by-step guide to the BF2219 Excel assignment, or submit your assignment brief for one-to-one help from a finance specialist.
About the expert
Benjamin Tan Zhi Wei is a finance expert on the My Assignment Help SG team, with areas of expertise in finance, investment analysis, risk management and financial modelling, and 16+ years of experience. For related finance samples, see the FIN353 portfolio management sample, and for writing up the report, our report writing support in Singapore and homework help for university modules.
References
Bodie, Z., Kane, A., & Marcus, A. J. (2017). Essentials of investments (10th ed.). McGraw-Hill Education.
DeMiguel, V., Garlappi, L., & Uppal, R. (2009). Optimal versus naive diversification: How inefficient is the 1/N portfolio strategy? The Review of Financial Studies, 22(5), 1915–1953. https://doi.org/10.1093/rfs/hhm075
French, K. R. (n.d.). Data library. Tuck School of Business at Dartmouth. https://mba.tuck.dartmouth.edu/pages/faculty/ken.french/data_library.html
Markowitz, H. (1952). Portfolio selection. The Journal of Finance, 7(1), 77–91. https://doi.org/10.1111/j.1540-6261.1952.tb01525.x
Sharpe, W. F. (1964). Capital asset prices: A theory of market equilibrium under conditions of risk. The Journal of Finance, 19(3), 425–442. https://doi.org/10.1111/j.1540-6261.1964.tb02865.x
- BF2219 Investments Excel Assignment Sample (NTU): Solver, CAL and CAPM Workings
- FIN387 Financial Cryptography SUSS Assignment Sample Singapore
- BF2207 International Finance NTU Assignment Sample Singapore
- FIN303 Financial Management SUSS Assignment Sample Singapore
- FIN385 Blockchain Technology And Smart Contract For Finance SUSS Assignment Sample Singapore
- FIN383 Financial Technologies and Innovations SUSS Assignment Sample Singapore
- FIN358 Fixed Income And Derivative Securities SUSS Assignment Sample Singapore
- FIN353 Portfolio Management SUSS Assignment Sample Singapore
- FIN312 Mathematics And Programming For FinTech SUSS Assignment Sample Singapore
- FIN205 Data Technologies For Financial Modelling SUSS Assignment Sample Singapore
- COR167e Managing Your Personal Finances SUSS Assignment Answer SingaporeÂ
- CDO352 Financial Decisions Assignment Answer Singapore
No Need To Pay Extra
OUR LATEST ANSWERS
- PSY201 Organisational Psychology ECA Sample Answer – Employee Wellbeing and AI (SUSS)
- TOU232: Festivals and Events, Research Paper, Sample, MU, Singapore
- HRM331 Talent Management Assignment Sample Singapore
- GSP153 Art Appreciation SUSS Assignment Sample Singapore
- BPM113 Construction Technology SUSS Assignment Sample Singapore
