<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

 <title>Daniel P Newman</title>
 <link href="https://dpnewman.com/feed" rel="self"/>
 <link href="https://dpnewman.com/"/>
 <updated>2026-04-09T22:33:21+00:00</updated>
 <id>https://dpnewman.com</id>
 <author>
   <name>Daniel P Newman</name>
   <email></email>
 </author>

 
 <entry>
   <title>Gold in 2020 - thoughts on Gold/AUD/USD exposure via the ASX</title>
   <link href="https://dpnewman.com/gold-aud-usd/"/>
   <updated>2020-08-29T00:00:00+00:00</updated>
   <id>https://dpnewman.com/gold-aud-usd</id>
   <content type="html">&lt;p&gt;A neat way to hold gold via the ASX and also be impartial AUD/USD exchange rate timing, is to hold a split of half QAU half PMGOLD.  I lay out analysis and reasons.&lt;/p&gt;

&lt;p&gt;QAU and PMGOLD are ETFs that track the price of gold. The key difference between them is that QAU is hedged back to AUD, so when AUD strengthens QAU does relatively better than PMGOLD. On the other hand, PMGOLD is USD based, so when AUD falls against USD, PMGOLD does relatively better than QAU.&lt;/p&gt;

&lt;p&gt;The plot below shows that these gold price tracking ETFs, either hedged to AUD (QAU.AX) or non-hedged (PMGOLD.AX) can perform very differently over time due to AUD/USD movements.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://dpnewman.com/images/gold1.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Since it’s too hard to accurately predict how AUD/USD fx rates will move going forward, holding half of each QAU/PMGOLD means one would not have to worry about this - it eliminates some timing risks, related to AUD/USD fx.&lt;/p&gt;

&lt;p&gt;Below are real examples on the timing/currency point.&lt;/p&gt;

&lt;p&gt;First, if one happened to purchase a gold ETF via the ASX in Jan 2020 and then needed to sell for some during March 2020, the returns were great if they picked PMGOLD and poor if they picked QAU. This difference driven by the AUD/USD fx rate, as depicted below:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://dpnewman.com/images/gold2.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;On the other hand, if one happened to purchase mid-March 2020 and needed to sell now then results are the opposite - returns would have been great if they’d picked PMGOLD and poor if they picked QAU. Again, the difference driven by the AUD/USD fx rate, as depicted below:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://dpnewman.com/images/gold3.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;The final figure below shows the time period from the start of 2020 to now, but includes an extra line with the returns of holding half QAU/PMGOLD. This half AUD-hedged/non-hedged approach gives a way for Aussies to get gold exposure that does not have AUD/USD timing risk.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://dpnewman.com/images/gold4.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;I’ll provide my code used to get/wrangle the data and make the figures here &lt;a href=&quot;https://github.com/DanielPNewman/gold&quot;&gt;https://github.com/DanielPNewman/gold&lt;/a&gt;&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Diversifying against equities while bonds are yielding ~zero and reserve banks are printing extreme amounts of money?</title>
   <link href="https://dpnewman.com/il-bonds/"/>
   <updated>2020-07-12T00:00:00+00:00</updated>
   <id>https://dpnewman.com/il-bonds</id>
   <content type="html">&lt;style&gt;
p.comment {
background-color: #DBDBDB;
padding: 3px;
border: 2px black;
margin-left: 1px;
border-radius: 1px;
font-size: 12px
}
&lt;/style&gt;

&lt;p&gt;My Sunday night thoughts on the topic.&lt;/p&gt;

&lt;h2 id=&quot;the-question&quot;&gt;The question&lt;/h2&gt;
&lt;p&gt;I was wondering if there isn’t an alternative to nominal bonds for diversifying against downturns in equities, that also gives protection against inflation&lt;sup&gt;&lt;a href=&quot;#sup-1-link&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;. Since nominal bond yields across developed economies are now so close to zero, coupled with ongoing extreme amounts of money printing by central banks to combat the covid19-related economic slowdown, there is limited upside left in holding the large exposure to nominal bonds outlined in our previous portfolios&lt;sup&gt;&lt;a href=&quot;#sup-2-link&quot;&gt;2&lt;/a&gt;&lt;/sup&gt;.&lt;/p&gt;

&lt;p&gt;So I asked the question, could I replace some (or all) of our nominal bonds with Inflation Linked (&lt;strong&gt;IL&lt;/strong&gt;) bonds, while still holding a balanced asset mix diversified across currencies, geographies and asset classes?&lt;/p&gt;

&lt;h2 id=&quot;the-answer&quot;&gt;The answer&lt;/h2&gt;
&lt;p&gt;My analysis found that the simplest way to deal with this was to keep my equities, commodities, gold and emerging markets target weights as they are, and simply switch  nominal bonds to IL bonds instead. I thought of this idea after watching &lt;a href=&quot;https://www.youtube.com/watch?v=Gb6OtuW8DVI&amp;amp;t=0s&quot;&gt;this video from Bridgewater&lt;/a&gt;. The whole video is excellent, but the last few mins (from around 27:45 onwards) lay out my motivations, succinctly.&lt;/p&gt;

&lt;p&gt;I ran historic data through my volatility budgeting algorithm to figure out the new weights needed to do this and still keep the whole portfolio balanced in line with the all-weather principle. Interestingly the asset class weights come out neatly such that all that is required for this tactical change is to switch some (or all) nominal bonds to IL bonds. All other assets’ weights could stay basically as they were. The resulting asset mix could look very much like that in &lt;a href=&quot;#table-1-link&quot;&gt;Table 1&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Table 1.&lt;/strong&gt; &lt;em&gt;A global ESG filtered all-weather portfolio that uses inflation linked (IL) bonds in place of nominal bonds&lt;sup&gt;&lt;a href=&quot;#sup-3-link&quot;&gt;3&lt;/a&gt;&lt;/sup&gt;&lt;/em&gt;
&lt;a name=&quot;table-1-link&quot;&gt;&lt;/a&gt;&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Ticker&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Portfolio Weight&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Asset Class&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Region&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Exchange&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;VESG&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;18%&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Equities&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;International (Developed Markets)&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;ASX&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;FAIR&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;6%&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Equities&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Australian&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;ASX&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;VGE&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;2.5%&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Equities&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;International (Emerging Markets)&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;ASX&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;WIP&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;10%&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Inflation linked Government Bonds&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;International (Developed Markets) Ex. US&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;NYSE&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;SCHP&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;20%&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Inflation linked Government Bonds&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;US&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;NYSE&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;ILB&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;7%&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Inflation linked Government Bonds&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Australian&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;ASX&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;GSBE47&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;4%&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Government Bonds (long term)&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Australian&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;ASX&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;GGOV&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;10%&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Government Bonds (long term)&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;International (Developed Markets)&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;ASX&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;IHEB&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;6.5%&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Emerging Market Credit&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;International (Emerging Markets)&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;ASX&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;PMGOLD&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;8%&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Gold&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Universal&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;ASX&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;DBC&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;8%&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Commodities&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Universal&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;NYSE&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;h2 id=&quot;the-notes&quot;&gt;The notes&lt;/h2&gt;
&lt;p&gt;&lt;a name=&quot;sup-1-link&quot;&gt;&lt;/a&gt;
&lt;strong&gt;&lt;sup&gt;1&lt;/sup&gt;&lt;/strong&gt; Previously, when equity markets have dropped, central banks have lowered interest rates to stimulate their economies, thus driving up bond prices which has counterbalanced the short-term downturn in equities to smooth out the ride in our volatility balanced portfolio. But now that interest rates are basically at 0%, this once trusty simulative lever of lowering interest rates is no longer going to be effective to offset drops in equity markets. So, what do we expect countries to do next time equity markets drop? For one thing, monetary policy is likely to get more extreme in terms of printing money. This extreme increase in money printing brings another risk for anybody holding large % of nominal bonds – inflation. Since bonds hold a promise to pay back their face value in cash, high inflation rates erode the purchasing power of cash and thus decrease the value of nominal bonds. IL Bonds correct for this, by increasing face value in line with inflation.&lt;/p&gt;

&lt;p&gt;&lt;a name=&quot;sup-2-link&quot;&gt;&lt;/a&gt;
&lt;strong&gt;&lt;sup&gt;2&lt;/sup&gt;&lt;/strong&gt; Amy and I made a number of posts since our &lt;a href=&quot;https://dpnewman.com/Global-All-weather-portfolios-investment-adventures-of-an-Aussie-couple/&quot;&gt;August 2019 blog&lt;/a&gt; outlining a defensive portfolio to weather economic storms. The follow-up posts in April 2020, after the market shocks caused by COVID 19, showed that both the &lt;a href=&quot;https://dpnewman.com/all-weather-update/&quot;&gt;original solution&lt;/a&gt; and our evolved solution of an &lt;a href=&quot;https://amyquinton.github.io/global-esg-all-weather-via-asx/&quot;&gt;Environmental, Social, and Governance (ESG) filtered version&lt;/a&gt; of this strategy performed exactly as designed and weathered the COVID 19 market storms well, for which we were very happy and grateful.&lt;/p&gt;

&lt;p&gt;&lt;a name=&quot;sup-3-link&quot;&gt;&lt;/a&gt;
&lt;strong&gt;&lt;sup&gt;3&lt;/sup&gt;&lt;/strong&gt; There is currently no way to get global IL bond exposure via the ASX, so we use TIP and WIP via the NYSE for our global IL bond exposure. Access to the NYSE also means we can use DBC for commodities exposure which we like since this ETF is far more liquid than the commodities ETF available on the ASX, ‘QCB’, which has very low trading volume leading to liquidity risk.&lt;/p&gt;

</content>
 </entry>
 
 <entry>
   <title>All-Weather Portfolio Update</title>
   <link href="https://dpnewman.com/all-weather-update/"/>
   <updated>2020-04-12T00:00:00+00:00</updated>
   <id>https://dpnewman.com/all-weather-update</id>
   <content type="html">&lt;style&gt;
p.comment {
background-color: #DBDBDB;
padding: 3px;
border: 2px black;
margin-left: 1px;
border-radius: 1px;
font-size: 12px
}
&lt;/style&gt;

&lt;p&gt;&lt;strong&gt;How has our all-weather strategy held up so far in the COVID-19 epidemic?&lt;/strong&gt;&lt;br /&gt; 
&lt;strong&gt;An Update&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A number of people have asked how our investment strategy - outlined in our August 2019 blog post called &lt;a href=&quot;https://dpnewman.com/Global-All-weather-portfolios-investment-adventures-of-an-Aussie-couple/&quot;&gt;Global “all-weather” portfolios - investment adventures of an Aussie couple&lt;/a&gt; -  has fared in response to the Covid-19 epidemic.&lt;/p&gt;

&lt;p&gt;The August 2019 blog shared our research into a strategy designed to perform relatively well in any economic environment. We are very glad that we did this research and took action based on our findings. It has served us well in these turbulent times!&lt;/p&gt;

&lt;p&gt;Rather than replying to each person individually, Amy and I decided we’d do 2 things: &lt;strong&gt;1)&lt;/strong&gt; I’d write this update adding the latest data to the performance plots described in our &lt;a href=&quot;https://dpnewman.com/Global-All-weather-portfolios-investment-adventures-of-an-Aussie-couple/&quot;&gt;original blog post&lt;/a&gt;, to show how that has fared during the time since we first published it; and &lt;strong&gt;2)&lt;/strong&gt; Amy would write a quick post showing &lt;strong&gt;&lt;a href=&quot;https://amyquinton.github.io/global-esg-all-weather-via-asx/&quot;&gt;our evolved solution executing an Environmental, Social, and Governance (ESG) filtered version of this strategy&lt;/a&gt;&lt;/strong&gt; as a single ESG portfolio diversified across global geographies and risk balanced across asset classes.&lt;/p&gt;

&lt;p&gt;But below are the updated versions of the plots from our &lt;a href=&quot;https://dpnewman.com/Global-All-weather-portfolios-investment-adventures-of-an-Aussie-couple/&quot;&gt;original blog post&lt;/a&gt; - with new data added to cover the 8 months since we published it:&lt;/p&gt;

&lt;h2 id=&quot;domestic-australian-assets---performance-updates&quot;&gt;Domestic Australian assets - performance updates:&lt;/h2&gt;

&lt;h4 id=&quot;the-original-domestic-australian-asset-mix-since-we-published-it-in-aug-2019&quot;&gt;The original domestic Australian asset mix since we published it in Aug 2019&lt;/h4&gt;
&lt;p&gt;&lt;img src=&quot;https://dpnewman.com/images/AU-newDataOnly.png&quot; alt=&quot;&quot; /&gt;
&lt;em&gt;The domestic Australian “All-Seasons” and “Our Version” portfolios have had superior returns and smaller drawdowns compared to 100% equities via the ASX 300 accumulation index, since we &lt;a href=&quot;https://dpnewman.com/Global-All-weather-portfolios-investment-adventures-of-an-Aussie-couple/&quot;&gt;published the asset mix in Aug 2019&lt;/a&gt;. The relevant securities and weights for each of these portfolios are shown in Table 2 of our &lt;a href=&quot;https://dpnewman.com/Global-All-weather-portfolios-investment-adventures-of-an-Aussie-couple/&quot;&gt;original blog post&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;hr /&gt;

&lt;h4 id=&quot;historical-performance-of-the-original-domestic-australian-asset-mix&quot;&gt;Historical performance of the original domestic Australian asset mix&lt;/h4&gt;
&lt;p&gt;&lt;img src=&quot;https://dpnewman.com/images/AU-combo-updated.png&quot; alt=&quot;&quot; /&gt;
&lt;em&gt;Historical performance simulations of domestic Australian “All-Seasons” and “Our Version” portfolios show these portfolios had considerably smaller and less frequent drawdowns compared to 100% equities via the ASX 300 accumulation index. Although the overall return of 100% equities (ASX 300) was the highest, one could have put money in/taken it out of All-Seasons and Our Version at any time since 2001 without suffering unpalatable losses. The same cannot be said for the ASX 300 which, on five occasions since 2001 has suffered drawdowns large enough to be unacceptable for our situation. The relevant securities and weights for each of these portfolios are shown in Table 2 of our &lt;a href=&quot;https://dpnewman.com/Global-All-weather-portfolios-investment-adventures-of-an-Aussie-couple/&quot;&gt;original blog post&lt;/a&gt;. ETFs for the required asset classes were not available prior to 2012 so the performance shown is based on their underlying indexes. Historical bond performance was derived from futures price indices with coupon payments accumulated semi annually at historical 10 year yield rates. The commodities performance reflects underlying SPGCLEP commodities index only, excluding potential ETF distribution payments and currency hedging effects. We painstakingly sourced this historic index data from a variety of free sources and can’t guarantee its accuracy - if anybody reading this has access to a proprietary data source they’d like to share with us, please get in touch!&lt;/em&gt; &lt;br /&gt;
&lt;sub&gt; Note these simulated results do not include brokerage fees and assumes the desired portfolio balance is maintained throughout, whereas in practice the portfolio would be rebalanced periodically. Simulated historical performance results have inherent limitations since unlike an actual performance record, simulations do not reflect the cost of trading or the impact of actual trades on market factors such as volume and liquidity. &lt;sub&gt;&lt;/sub&gt;&lt;/sub&gt;&lt;/p&gt;

&lt;hr /&gt;

&lt;h2 id=&quot;foreign-assets---performance-updates&quot;&gt;Foreign Assets - performance updates:&lt;/h2&gt;

&lt;h4 id=&quot;the-original-foreign-asset-mix-since-we-published-it-in-aug-2019&quot;&gt;The original foreign asset mix since we published it in Aug 2019&lt;/h4&gt;
&lt;p&gt;&lt;img src=&quot;https://dpnewman.com/images/Global-newDataOnly.png&quot; alt=&quot;&quot; /&gt;
&lt;em&gt;Our Versions of the unleveraged foreign asset mix have had superior returns and also smaller and less frequent drawdowns compared to 100% “Global Equities”. The relevant securities and weights for each of the portfolios depicted here are provided in Table 2 of our &lt;a href=&quot;https://dpnewman.com/Global-All-weather-portfolios-investment-adventures-of-an-Aussie-couple/&quot;&gt;original blog post&lt;/a&gt;.&lt;/em&gt;&lt;br /&gt;&lt;/p&gt;

&lt;hr /&gt;

&lt;h4 id=&quot;historical-performance-of-the-original-foreign-asset-mix&quot;&gt;Historical performance of the original foreign asset mix&lt;/h4&gt;
&lt;p&gt;&lt;img src=&quot;https://dpnewman.com/images/Global-combo-updated.png&quot; alt=&quot;&quot; /&gt;
&lt;em&gt;Historical performance simulations of “Our Version” of an unleveraged global All-Weather portfolio show it had lower overall returns but also considerably smaller and less frequent drawdowns compared to 100% “Global Equities”. Although 100% global equities gave a higher overall return over a longer period, our time-horizon and needs currently favour limiting drawdowns over maximising returns. The relevant securities and weights for each of the portfolios depicted here are provided in Table 2 of our &lt;a href=&quot;https://dpnewman.com/Global-All-weather-portfolios-investment-adventures-of-an-Aussie-couple/&quot;&gt;original blog post&lt;/a&gt;.&lt;/em&gt;&lt;br /&gt;
&lt;sub&gt;Note these simulated results do not include brokerage fees and assumes the desired portfolio balance is maintained throughout, whereas in practice, the portfolio would be rebalanced periodically. Simulated historical performance results have inherent limitations since unlike an actual performance record, simulations do not reflect the cost of trading or the impact of actual trades on market factors such as volume and liquidity.&lt;sub&gt;&lt;/sub&gt;&lt;/sub&gt;&lt;/p&gt;

&lt;p&gt;An important point to reiterate is that the portfolios here are NOT the same as Bridgewater’s All-Weather. Bridgewater uses cheap &lt;a href=&quot;https://www.investopedia.com/terms/l/leverage.asp&quot;&gt;leverage&lt;/a&gt; and sophisticated investment instruments to increase returns while still minimizing risk. These simplified portfolios we show here do not use leverage and thus have lower expected returns than Bridgewater’s All-Weather, but still reduces risk compared to 100% equities.&lt;/p&gt;

&lt;h2 id=&quot;our-continued-evolution&quot;&gt;Our continued evolution&lt;/h2&gt;

&lt;p&gt;We wanted a single globally diversified portfolio filtered for &lt;a href=&quot;https://www.investopedia.com/terms/e/environmental-social-and-governance-esg-criteria.asp&quot;&gt;ESG&lt;/a&gt;/ethical considerations and based upon the principles discussed here and in our &lt;a href=&quot;https://dpnewman.com/Global-All-weather-portfolios-investment-adventures-of-an-Aussie-couple/&quot;&gt;original blog post&lt;/a&gt;…&lt;/p&gt;

&lt;p&gt;So now Amy and I can share &lt;strong&gt;&lt;a href=&quot;https://amyquinton.github.io/global-esg-all-weather-via-asx/&quot;&gt;our evolved solution, executing an ESG filtered version of this strategy!&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Looking forward, we’re still making good progress on figuring out how to cost-effectively leverage our lower volatility asset classes (e.g. the Treasury bonds) to have similar expected volatility/returns as equities, thus maintaining risk parity while increasing returns, like Bridgewater can. We are still ironing out more details around margin requirements, transaction costs, rebalancing, etc. and codifying our strategy into software, but it is looking very promising. So stay tuned for the future instalments!&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;&lt;img src=&quot;https://dpnewman.com/images/chair-lift.png&quot; alt=&quot;&quot; /&gt; &lt;em&gt;This joke from our &lt;a href=&quot;https://dpnewman.com/Global-All-weather-portfolios-investment-adventures-of-an-Aussie-couple/&quot;&gt;original blog post&lt;/a&gt; has proved to be telling since we published it in Aug 2019!&lt;/em&gt;&lt;/p&gt;

</content>
 </entry>
 
 <entry>
   <title>Trip Finished</title>
   <link href="https://dpnewman.com/trip-finished/"/>
   <updated>2020-03-23T00:00:00+00:00</updated>
   <id>https://dpnewman.com/trip-finished</id>
   <content type="html">&lt;p&gt;I have just finished a long holiday vagabonding around Asia and South America (Brazil) with my wonderful wife, Amy.&lt;/p&gt;

&lt;p&gt;The trip was planned to last 11 months, but we cut it short to 9.5 months due to the Covid-19 epidemic. We have just arrived back in Melbourne and have started a compulsory 14-day self-isolation.&lt;/p&gt;

&lt;p&gt;I felt like taking a few minutes to reflect and write a short blog looking back over the last 9 and half months.&lt;/p&gt;

&lt;p&gt;And what an amazing 9.5 months it has been! We were lucky enough to visit diverse cultures across 11 countries (Singapore, Sri Lanka, Malaysia, Vietnam, Thailand, Philippines, Taiwan, New Zealand, Japan, Spain, Brazil) and get to know (and reconnect with) many wonderful people. We experienced so much amazing nature, sights, foods and people, too much to list here.&lt;/p&gt;

&lt;p&gt;But on reflection, the trip wasn’t all about touring, eating and hanging out with new and old friends – I also made some large achievements and learned productive life skills along the way. I will try to take stock of them in the list below:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;learned to surf&lt;/li&gt;
  &lt;li&gt;created a personal investment strategy&lt;/li&gt;
  &lt;li&gt;taught Amy some programming&lt;/li&gt;
  &lt;li&gt;learned to meditate as a habit&lt;/li&gt;
  &lt;li&gt;made a daily 12 min exercise routine a habit&lt;/li&gt;
  &lt;li&gt;learned to speak a little Mandarin Chinese&lt;/li&gt;
  &lt;li&gt;read excellent books&lt;/li&gt;
  &lt;li&gt;walked amazing hikes&lt;/li&gt;
  &lt;li&gt;worked on marriage foundations&lt;/li&gt;
  &lt;li&gt;skied powder snow&lt;/li&gt;
  &lt;li&gt;reconnected with old friends/colleagues living abroad&lt;/li&gt;
  &lt;li&gt;figured out my personal strengths and weaknesses&lt;/li&gt;
  &lt;li&gt;created a personal mission statement&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It feels good to think back on some of these achievements and skills that I gained while we travelled around Asia and Brazil. I feel ready to be back home in Australia and enjoy the next chapter of life!&lt;/p&gt;

</content>
 </entry>
 
 <entry>
   <title>Teaching Lawyers to code? A Lawyer learns programming for data analysis/communication</title>
   <link href="https://dpnewman.com/teaching-a-lawyer-to-code/"/>
   <updated>2019-11-12T00:00:00+00:00</updated>
   <id>https://dpnewman.com/teaching-a-lawyer-to-code</id>
   <content type="html">&lt;p&gt;&lt;a href=&quot;https://amyquinton.github.io/about/&quot;&gt;Amy&lt;/a&gt; works as a Lawyer and environmental sustainability consultant. She wanted to know some programming for data analysis/communication to help uncover and share useful environmental sustainability insights. I work as a Data Scientist so taught her some of my trade’s tools to help set up &lt;a href=&quot;https://github.com/amyquinton/&quot;&gt;her own github account&lt;/a&gt; and then learn the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;R&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Git&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;*nix&lt;/code&gt; commands necessary for her to:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;pull environmental data from a google sheets URL,&lt;/li&gt;
  &lt;li&gt;process it,&lt;/li&gt;
  &lt;li&gt;visualise it,&lt;/li&gt;
  &lt;li&gt;knit the results to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;markdown&lt;/code&gt; format&lt;/li&gt;
  &lt;li&gt;and publish the results on her &lt;a href=&quot;https://amyquinton.github.io&quot;&gt;own github pages blog&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This was a satisfying and educational process for us both:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;Amy learnt the data processing/visualisation skills needed to uncover and communicate environmental sustainability insights (more on those below).&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;I learnt about some fascinating ideas about how Project Drawdown’s solutions apply to the 17 Sustainable Development Goals (SDGs).&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And it led to publishing an excellent and thought provoking post: &lt;strong&gt;&lt;a href=&quot;https://amyquinton.github.io/drawdown-sdgs/&quot;&gt;Project Drawdown solutions meet many Sustainable Development Goals&lt;/a&gt;&lt;/strong&gt;. Certainly worth a read!&lt;/p&gt;

&lt;p&gt;On reflection, I encourage all data scientists to spend a little time teaching others (who want to learn) some of the basic tools of our trade. This can empower people (especially those from more “traditional” fields such as law) with new tools to explore and communicate data. It can only be a good thing if the ever increasing volumes of digital data are more often explored through multiple lenses of diverse areas of domain expertise.&lt;/p&gt;

&lt;p&gt;Amy said that “for me, programming for data analysis and communication was such an unknown area that it was hard to know where to start. So to have somebody who can walk you through some of the basics to get you started is really empowering!”&lt;/p&gt;

</content>
 </entry>
 
 <entry>
   <title>Travel guide to clean water in Sri Lanka without single-use plastic</title>
   <link href="https://dpnewman.com/srilanka-traveltap/"/>
   <updated>2019-10-28T00:00:00+00:00</updated>
   <id>https://dpnewman.com/srilanka-traveltap</id>
   <content type="html">&lt;p&gt;&lt;em&gt;Written by &lt;a href=&quot;https://amyquinton.github.io/about/&quot;&gt;Amy Quinton&lt;/a&gt; and &lt;a href=&quot;https://dpnewman.com/&quot;&gt;Daniel Newman&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Have you ever assumed that if it’s not safe to drink the tap water while travelling, then you must rely on single-use bottled water?&lt;/p&gt;

&lt;p&gt;We did…&lt;/p&gt;

&lt;p&gt;But the great news is this is no longer the case. Better options exist and smart, responsible travellers around the world are seeking them out.&lt;/p&gt;

&lt;p&gt;Here are some insights to help you join your fellow travellers in &lt;em&gt;giving single-use plastic bottles the flick&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;sub&gt;&lt;em&gt;We are not finanically or otherwise affiliated with any of the products or services mentioned in this blog.&lt;/em&gt;&lt;/sub&gt;&lt;/p&gt;

&lt;h2 id=&quot;sri-lanka-hydration-guide&quot;&gt;Sri Lanka hydration guide&lt;/h2&gt;

&lt;p&gt;At the start of &lt;a href=&quot;https://amyquinton.github.io/srilanka/&quot;&gt;our Sri Lanka trip&lt;/a&gt; the number of plastic bottles we were consuming was growing at an alarming rate. We thought there must be a better way. And there was!&lt;/p&gt;

&lt;p&gt;There are actually numerous clean water sources (some more obvious than others) that allowed us to significantly reduce our plastic bottle waste.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;h3 id=&quot;personal-purifier-&quot;&gt;Personal purifier &lt;br /&gt;&lt;/h3&gt;
  &lt;p&gt;Before getting into Sri Lanka’s network of water refill stations, a quick note on personal filter and purifier options. If you’re planning ahead for longer term or regular travel, having your own water purifier bottle or system can be great to cover your hydration needs. We now use &lt;a href=&quot;https://www.amazon.co.uk/Travel-Spout-800ml-filter-bottle/dp/B006RGLHOY&quot;&gt;“Travel Tap” water purifying systems&lt;/a&gt; which is very versitile and convenient, and there are plenty of other choices available.
&lt;img src=&quot;https://dpnewman.com/images/water/traveltap2.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

  &lt;p&gt;But if you don’t have one of these magical water purifiers, never fear. Check out our tips below for staying hydrated in Sri Lanka without leaving a trail of plastic pollution behind you.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3 id=&quot;getwaterlk&quot;&gt;GetWater.Lk&lt;/h3&gt;

&lt;p&gt;&lt;a href=&quot;https://www.getwater.lk/&quot;&gt;GetWater.lk&lt;/a&gt; documents the network of water refill station options around Sri Lanka to help travellers avoid single-use bottles. You can check out &lt;a href=&quot;https://www.getwater.lk/&quot;&gt;Get Water’s website&lt;/a&gt; and use their nifty map to find water refill options near you. You can also &lt;a href=&quot;https://www.getwater.lk/&quot;&gt;contribute&lt;/a&gt; by adding additional clean water refill treasures that you discover during your travels.&lt;/p&gt;

&lt;p&gt;Many of the places we found to re-fill our bottles weren’t yet recorded by Get Water. With this in mind, it’s definitely worth asking and looking around if &lt;a href=&quot;https://www.getwater.lk/&quot;&gt;Getwater.lk&lt;/a&gt; doesn’t show options near you. And if you find new options, add them!&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://www.getwater.lk/&quot;&gt;&lt;img src=&quot;https://dpnewman.com/images/water/getwater-lk.png&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Below we share with you just few of the many places and ways to refill, and things learnt along the way about water in Sri Lanka.&lt;/p&gt;

&lt;h3 id=&quot;arugambay&quot;&gt;Arugambay&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Waste Less ABay&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;On the main street in Arugambay you will find a free purified water refill station called &lt;a href=&quot;https://www.wastelessabay.com/&quot;&gt;WLAB&lt;/a&gt;. You can also drop off pastic water bottles for recycling there! It was actually &lt;a href=&quot;https://www.wastelessabay.com/&quot;&gt;WLAB&lt;/a&gt; who started the &lt;a href=&quot;https://www.getwater.lk/&quot;&gt;Getwater.lk&lt;/a&gt; initiative mentioned above!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Restuarants - Spice Trail &amp;amp; others&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Find refreshing cold water served in a re-fillable glass bottle at restaurants like Spice Trail on the main road through Arugambay (picture of menu below).&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://dpnewman.com/images/water/abay4.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://dpnewman.com/images/water/abay8.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://dpnewman.com/images/water/abay-spicetrail.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;h3 id=&quot;sigiriya&quot;&gt;Sigiriya&lt;/h3&gt;

&lt;p&gt;There are at least two free purified water re-fill stations in Sigiriya installed by &lt;a href=&quot;http://www.pinasrilanka.org/&quot;&gt;Pina Organization&lt;/a&gt;, one in the Village (on &lt;a href=&quot;https://www.google.com/maps/@7.9512442,80.7518198,3a,75y,289.4h,82.56t/data=!3m7!1e1!3m5!1sAF1QipM0SfD0xWXcwIUF6pzVRs7fWDYsLtSOutzby9Ib!2e10!3e11!7i5376!8i2688&quot;&gt;Sigiriya Rd outside Central College&lt;/a&gt;) and one inside the main (western) entrance to Lion Rock.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://dpnewman.com/images/water/sigi6.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://dpnewman.com/images/water/sigi5.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;blockquote&gt;
  &lt;h4 id=&quot;how-we-discovered-this&quot;&gt;&lt;em&gt;How we discovered this&lt;/em&gt;&lt;/h4&gt;
  &lt;p&gt;We first stumbled across a water station outside the school in Sigiriya Village. We took our bottles and refilled them before visiting Lion Rock. But we could have saved the extra walk because on arrival to Lion Rock we discovered another refill station specifically for tourists inside the entrance! Hopefully it is only a matter of time before these are more widely publicised.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3 id=&quot;anuradhapura&quot;&gt;Anuradhapura&lt;/h3&gt;

&lt;p&gt;You can actually refill at many of the local general stores in town for only 3 LKR per litre. Who knew?! A 1.5 litre plastic bottle costs between 70-150 rupees, so only 3 LKR per litre is quite a saving!&lt;/p&gt;

&lt;p&gt;The photo below shows the kind of water tank to look for. This particular place was located on Niwanthaka Chethiya Road, Anuradhapura.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://dpnewman.com/images/water/anurat.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;blockquote&gt;
  &lt;h4 id=&quot;how-we-discovered-this-1&quot;&gt;&lt;em&gt;How we discovered this&lt;/em&gt;&lt;/h4&gt;
  &lt;p&gt;We asked our excellent guest house, &lt;a href=&quot;https://www.lonelyplanet.com/sri-lanka/anuradhapura/hotels/heritage-lake-view/a/lod/59b12a09-7036-425c-9ca8-cf4e4ea55180/357449&quot;&gt;Heritage Lake View&lt;/a&gt;, if they had a verified clean water line like some other places. Our host said that wasn’t available at the property, and told us he re-fills his water drums in town for 3 LKR per litre. He took us to the general store to re-fill our water that afternoon (on our way to sightseeing) and even lent us one of his 7 litre drums to use during our stay.&lt;/p&gt;

  &lt;p&gt;So an easy option is to ask your accommodation where to refill, or if you can refill from their clean water supply (depending on the situation, you could offer a small amount to cover water costs, although this is usually not expected).&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2 id=&quot;id-tap-that&quot;&gt;I’d tap that!&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;A note on “tap water”:&lt;/strong&gt;&lt;/p&gt;
&lt;blockquote&gt;
  &lt;p&gt;Not all tap water in Sri Lanka is created equal. While you can’t drink from just any tap, most accomodation and restaurants in certain areas actually have a special water line providing safe drinking water. It’s generally referred to as a “Government” or “Water Board” water line. Technically it comes out of a tap but it is not standard “tap water”. It is a potable water line verified by the &lt;a href=&quot;https://www.waterboard.lk/web/index.php?lang=en&quot;&gt;Sri Lankan Water Board&lt;/a&gt;.&lt;/p&gt;

  &lt;p&gt;This was a big surprise to us. We started asking our accomodation if they had a Government water line. Often they did and were happy to refill our bottles for us. We understand some travellers may be wary. Ultimately you must assess the risk for yourself, but we drank a lot of Government line water without any issues, including in Trincomalee, Galle and Mirissa.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Below we share some information about water in Trincomalee and the South Coast, including some Government water line and filtered/mineral water options. (Some areas in Sri Lanka rely more heavily on ground water, which we understand varies in quality from place to place. We did not happen to drink ground/well water so do not comment further on this here.)&lt;/p&gt;

&lt;h3 id=&quot;trincomalee&quot;&gt;Trincomalee&lt;/h3&gt;

&lt;p&gt;&lt;a href=&quot;https://www.water-technology.net/uncategorised/newssri-lanka-completes-water-supply-project-funded-by-french-Government/&quot;&gt;Verified clean water lines&lt;/a&gt; are installed at most accomodation and restaurants in the area. Ask your accomodation if you can use their Government water line to re-fill your bottle.&lt;/p&gt;

&lt;p&gt;The water tasted good and we had no issues. It is important to ask otherwise restaurants/accomodation tend to assume tourists whould rather single-use plastic bottles.&lt;/p&gt;

&lt;p&gt;Sometimes we find it helps to explain we are trying to use less plastic to avoid leaving plastic pollution behind us when we travel. Our hosts have been very responsive to this and happy to accomodate this request! But if a host is reluctant or doesn’t understand our request, of course we respect that too.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;h4 id=&quot;how-we-discovered-this-2&quot;&gt;&lt;em&gt;How we discovered this&lt;/em&gt;&lt;/h4&gt;
  &lt;p&gt;It was actaully a beachfront restaurant owner who first told us about this. He was concerned about plastic pollution, as were we, and he told us most properties in the area have at least one verified clean water line. A what in the who know?! How did we not know about this?! He went on to tell us that this was locally called a ‘&lt;a href=&quot;https://www.water-technology.net/uncategorised/newssri-lanka-completes-water-supply-project-funded-by-french-Government/&quot;&gt;sofia line&lt;/a&gt;’ (or something sounding like that!) after the french water company that installed the water infrastructure. We asked our accomodation (&lt;a href=&quot;https://www.tripadvisor.com.au/Hotel_Review-g2424710-d6866663-Reviews-Sea_Zone_Hotel-Nilaveli_Eastern_Province.html&quot;&gt;Sea Zone Hotel&lt;/a&gt;) and sure enough they had a line and showed us where to refill our bottles with clean, safe drinking water!  There were separate water lines to the guest bathrooms (which are not safe for drinking) and there was only one drink safe ‘sofia line’ available outside and another one in the kitchen. The hotel owners told us it was mandatory for them to have that water line.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3 id=&quot;galle-fort&quot;&gt;Galle Fort&lt;/h3&gt;

&lt;h4 id=&quot;service-water-at-resturants&quot;&gt;&lt;em&gt;Service water at resturants&lt;/em&gt;&lt;/h4&gt;

&lt;p&gt;Dinner at &lt;a href=&quot;https://www.tripadvisor.com.au/Restaurant_Review-g297896-d1493783-Reviews-Pedlar_s_Inn_Cafe-Galle_Galle_District_Southern_Province.html&quot;&gt;Pedlar’s Inn Cafe and Restaurant&lt;/a&gt; and coffee at &lt;a href=&quot;https://www.tripadvisor.com.au/Restaurant_Review-g297896-d12690438-Reviews-The_Heritage_Cafe_Bistro-Galle_Galle_District_Southern_Province.html&quot;&gt;Heritage Cafe and Bistro&lt;/a&gt; - both provided glasses of water free of charge. If you have your water bottle with you, you could ask your restaurant to re-fill it for you.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://dpnewman.com/images/water/galle.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;blockquote&gt;
  &lt;h4 id=&quot;how-we-discovered-this-3&quot;&gt;&lt;em&gt;How we discovered this&lt;/em&gt;&lt;/h4&gt;
  &lt;p&gt;At Pedlar’s Inn Cafe and Restaurant we noticed Sri Lankan people had glasses of water on their table so asked the waiter for the same. We’re not sure if it was from the Government water line or mineral water, but it tasted fine and quenched our thirst.&lt;/p&gt;

  &lt;p&gt;Our experience is that reputable establishments in Sri Lanka have water sanitation practices in place to prepare food, fresh juices etc. After enjoying drinks like Lime Juice that clearly had added water, we started to trust that water served at these venues would also be fine. And after 6 weeks and counting travelling in Sri Lanka, so far so good!&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3 id=&quot;unawatuna-beach-galle&quot;&gt;Unawatuna Beach, Galle&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Hideout&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://en.tripadvisor.com.hk/Restaurant_Review-g644047-d15534152-Reviews-The_Hideout_Unawatuna-Unawatuna_Galle_District_Southern_Province.html&quot;&gt;The hideout cafe and restaurant&lt;/a&gt; offers free purified mineral water refills for patrons. We thoroughly enjoyed the tacos, burritos and bountry cake here too! If you just need water, we’re sure they would happily refill your bottle, maybe for a small fee.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://dpnewman.com/images/water/Una1.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;h3 id=&quot;mirissa&quot;&gt;Mirissa&lt;/h3&gt;

&lt;p&gt;We asked our friendly hosts at our Homestay (&lt;a href=&quot;https://goo.gl/maps/atBAR1xgALnbwvST7&quot;&gt;Sun Ray Rest&lt;/a&gt;) to use their Government / Water Board line for drinking water. They were very obliging and refilled our bottles for us.  If you are open to trying this option, definitely ask your accomodation about it!&lt;/p&gt;

&lt;h3 id=&quot;dickwella--hiriketiya-beach&quot;&gt;Dickwella / Hiriketiya Beach&lt;/h3&gt;

&lt;p&gt;Stay at &lt;a href=&quot;https://www.tripadvisor.com.sg/Hotel_Review-g946553-d15071396-Reviews-Peak_House-Matara_Southern_Province.html&quot;&gt;Peak house&lt;/a&gt; for all your filtered water needs! We enjoyed the water filter here so didn’t need water from the Government line, however the host told us that most properties in the area do have a Government water line.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://dpnewman.com/images/water/dickwella2.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://dpnewman.com/images/water/dickwella.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://www.tripadvisor.com.au/Hotel_Review-g644046-d14760448-Reviews-Verse_Collective-Dikwella_Southern_Province.html&quot;&gt;Verse Collective&lt;/a&gt; is trendy space in Dickwella that provides table water in re-fillable glass bottles rather than plastic. It has solid wifi too!&lt;/p&gt;

&lt;h2 id=&quot;winning-the-water-game&quot;&gt;Winning the water game&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;Time to blow this single-use bottled water myth right out of the water!&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Smart and experienced travellers around the world are seeking out alternatives to unnecessary and harmful single-use plastics. Forward thinking businesses and organisations are already offering solutions. Others are still developing the awareness and resources to do so.&lt;/p&gt;

&lt;p&gt;So, now you know, join your fellow travellers in kicking the single-use plastic habit. Support organisations offering solutions and let locals know you want to help keep their country beautiful and ocean life healthy by not leaving a trail of plastic waste behind you.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;h3 id=&quot;travel-app-feature&quot;&gt;Travel App feature?&lt;/h3&gt;

  &lt;p&gt;Would you find it useful if patforms like Trip Advisor, Booking.com, Google Maps, AirBNB etc listed “water re-fill station” as a facility at the accomodation/restaurant/area? If so send them some direct feedback or let us know in the comments below to help get this added as a feature!&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;sub&gt;&lt;em&gt;While using the tips shared here we have stayed healthy and never experienced any water related health issues in Sri Lanka. However, of course we cannot absolutely guarantee the quality of any drinking water supply.&lt;/em&gt;&lt;/sub&gt;&lt;/p&gt;

</content>
 </entry>
 
 <entry>
   <title>Global “all-weather” portfolios - investment adventures of an Aussie couple</title>
   <link href="https://dpnewman.com/Global-All-weather-portfolios-investment-adventures-of-an-Aussie-couple/"/>
   <updated>2019-08-15T00:00:00+00:00</updated>
   <id>https://dpnewman.com/Global-All-weather-portfolios-investment-adventures-of-an-Aussie-couple</id>
   <content type="html">&lt;style&gt;
p.comment {
background-color: #DBDBDB;
padding: 3px;
border: 2px black;
margin-left: 1px;
border-radius: 1px;
font-size: 12px
}
&lt;/style&gt;

&lt;p&gt;In this blog we share our path to applying US-centric All-Weather investment information to an Australian situation, with the result being a global All-Weather portfolio. This is by no means advice, rather we share our experience in case it is interesting or useful to others and to further develop our ideas. We embarked on this because our current situation necessitated reducing our investment timing risk and an “All-Weather” approach could smooth out the ride.&lt;/p&gt;

&lt;h2 id=&quot;our-story---discovering--all-weather-investment--why-we-wanted-in&quot;&gt;Our story - discovering  “All-Weather” investment &amp;amp; why we wanted in&lt;/h2&gt;
&lt;p&gt;We (&lt;a href=&quot;https://amyquinton.github.io/about/&quot;&gt;Amy&lt;/a&gt; and &lt;a href=&quot;https://dpnewman.com/&quot;&gt;Dan&lt;/a&gt;) are a couple in our early 30s, just married, and enjoying the flexibility of renting without a house mortgage. Until 2018 we invested almost 100% of our (modest) savings in a portfolio of &lt;a href=&quot;https://www.investopedia.com/terms/e/equity.asp&quot;&gt;equities&lt;/a&gt; (aka. shares/stocks) - following advice given to people with long &lt;a href=&quot;https://www.investopedia.com/terms/t/timehorizon.asp&quot;&gt;time-horizons&lt;/a&gt; to invest savings heavily in equities, preferably by &lt;a href=&quot;https://www.investopedia.com/terms/d/dollarcostaveraging.asp&quot;&gt;dollar cost averaging&lt;/a&gt;, to maximize returns over the long run. We were happy to take on the risk of equities until we decided we might want to buy a house in the next 5 years and realized our equity investment time-horizon wasn’t so long-term after all.&lt;/p&gt;

&lt;p&gt;We knew from the stock market’s history that our life-savings could quickly plummet in value and take years to recuperate. We didn’t want this to happen at the same time we planned to use our savings for a house deposit! So we started selling our equities and by the start of 2019 most of our savings were sitting in a cash savings account.&lt;/p&gt;

&lt;p&gt;The problem was that it could be awhile before we actually purchased a house and we had a nagging sense that our savings should be doing more for us in the meantime. We no longer want the risk of being almost 100% in equities but we also aren’t happy holding mainly cash since any other asset class will provide more returns than cash over time. And we definitely weren’t interested in trying to time the equity market. So what to do?&lt;/p&gt;

&lt;p&gt;When we heard about Bridgewater Associates’ &lt;a href=&quot;https://www.bridgewater.com/resources/all-weather-story.pdf&quot;&gt;“All-Weather” strategy&lt;/a&gt; to minimize downturns in any economic environment while outperforming cash this seemed like an elegant solution. Living in Melbourne with its reputation for four seasons in one day we’ve learnt to either be prepared for surprise changes in weather or face the consequences! [queue &lt;a href=&quot;https://www.youtube.com/watch?v=si3dBlNdifE.&quot;&gt;Four Seasons In One Day&lt;/a&gt; by Aussie band Crowded House]. The “All-Weather” analogy struck a chord and we thought having an investment portfolio designed to weather any economic storm would be awesome for our situation!&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://dpnewman.com/images/melbourne-weather.jpg&quot; alt=&quot;&quot; /&gt;
Image &lt;a href=&quot;http://katiestable.blogspot.com/2015/08/7-things-i-love-about-melbourne-part-1.html&quot;&gt;source&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The next question was how? There is no way we could afford the hedge fund giant’s minimum buy-in for their All-Weather fund, and the fund is closed to new investors anyway, so this was not an option. We looked around but couldn’t find anyone offering a suitable All-Weather style fund that we could access. So we decided to build one ourselves.&lt;/p&gt;

&lt;p&gt;Fortunately, in 2014 the founder of Bridgewater Associates, &lt;a href=&quot;https://www.linkedin.com/in/raydalio/&quot;&gt;Ray Dalio&lt;/a&gt;, shared his recommended asset types and &lt;a href=&quot;https://www.investopedia.com/terms/p/portfolio-weight.asp&quot;&gt;weights&lt;/a&gt; for a &lt;em&gt;very simplified&lt;/em&gt; version of All-Weather that an average person could implement themselves, in an interview with life/business strategist &lt;a href=&quot;https://www.tonyrobbins.com/&quot;&gt;Tony Robbins&lt;/a&gt;.  This helped us to get a sense of what our portfolio might look like. But because the advice was targeted at US citizens, we weren’t sure if it was directly applicable to us (as Australians) or how to practically implement it.&lt;/p&gt;

&lt;h2 id=&quot;our-problem---how-do-we-apply-us-centric-all-weather-advice-to-our-australian-situation&quot;&gt;Our problem - how do we apply US-centric All-Weather advice to our Australian situation?&lt;/h2&gt;
&lt;p&gt;We found several blogs/articles about &lt;a href=&quot;https://www.iwillteachyoutoberich.com/blog/all-weather-portfolio/&quot;&gt;how a normal US citizen could implement their own All-Weather-like strategy&lt;/a&gt; but it was not clear how to do this in Australia. So we set out to find a solution that we could personally use, which we share in this blog.&lt;/p&gt;

&lt;p&gt;But first, a brief background on what is an All-Weather portfolio?&lt;/p&gt;

&lt;h3 id=&quot;what-is-an-all-weather-portfolio&quot;&gt;What is an All-Weather portfolio?&lt;/h3&gt;
&lt;p&gt;&lt;sub&gt; &lt;em&gt;“If you can’t predict the future with much certainty and you don’t know which particular economic conditions will unfold, then it seems reasonable to hold a mix of assets that can perform well across all different types of economic environments. Leverage helps make the impact of the asset classes similar.” (from Bridgewater’s &lt;a href=&quot;https://www.bridgewater.com/resources/all-weather-story.pdf&quot;&gt;The All-Weather Story&lt;/a&gt;)&lt;/em&gt; &lt;sub&gt;&lt;/sub&gt;&lt;/sub&gt;&lt;/p&gt;

&lt;p&gt;All-Weather is an approach to asset allocation designed to minimize downside and perform relatively well regardless of the prevailing economic environment, hence the name “All-Weather”.  The concept was first implemented by Ray Dalio and his team at Bridgewater Associates, now the largest hedge fund in the world. In researching and developing All-Weather, Bridgewater recognized there are primarily two factors driving the value of any asset class - the levels of economic activity (growth) and inflation. Therefore, the economy can be broadly viewed as having four “environments”. These are:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;(1) Rising growth; (2) Falling growth; (3) Rising inflation; and (4) Falling inflation.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Throughout history and across countries, distinct asset classes have consistently performed well during each of these four environments. So, there is a season for all assets, but unlike the real weather we never know which seasons are next or when the seasons will change, and worse, two seasons can occur at once! So surprises impact asset prices due to unexpected rises or falls in growth and inflation.&lt;/p&gt;

&lt;p&gt;Recognizing this, an All-Weather portfolio essentially comprises four sub-portfolios - one for each economic environment containing assets known to perform well in that environment. Asset weights are then balanced to achieve risk-parity between each of the four environments. Bridgewater’s diagram below shows the four economic environments containing examples of relevant asset types, with risk divided equally across environments.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://dpnewman.com/images/all-weather-environments.png&quot; alt=&quot;&quot; /&gt;
Image taken from Bridgewater’s &lt;a href=&quot;https://www.bridgewater.com/resources/all-weather-story.pdf&quot;&gt;The All Weather Story&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The All-Weather approach assumes we can’t forecast the future so we don’t know which particular growth/inflation conditions will unfold. Given this, it assigns weights such that there is an equal amount of risk (25%) in each of the 4 possible growth/inflation environments. Therefore the portfolio is designed to perform no matter which growth/inflation environment eventuates.&lt;/p&gt;

&lt;h4 id=&quot;all-seasons-portfolio&quot;&gt;All-Seasons portfolio&lt;/h4&gt;
&lt;p&gt;As mentioned above, Tony Robbins popularised a simplified version of Dalio’s All-Weather, coined the “All-Seasons” portfolio in his 2014 book &lt;a href=&quot;https://www.amazon.com.au/Money-Master-Game-Financial-Freedom-ebook/dp/B00NZWJD44/ref=sr_1_1?keywords=MONEY+Master+the+Game%3A+7+Simple+Steps+to+Financial+Freedom&amp;amp;qid=1565354779&amp;amp;s=gateway&amp;amp;sr=8-1&quot;&gt;MONEY Master the Game: 7 Simple Steps to Financial Freedom&lt;/a&gt;. Robbin’s has also published a free version of the Ray Dalio All-Weather interview in this &lt;a href=&quot;https://finance.yahoo.com/news/tony-robbins--ray-dalio-s--all-weather--portfolio-161619133.html&quot;&gt;Yahoo Finance article&lt;/a&gt; which is worth a read.&lt;/p&gt;

&lt;p&gt;In a nutshell, the Dalio/Robbins All-Seasons portfolio looks like this:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;30% stocks&lt;/li&gt;
  &lt;li&gt;40% US long-term treasury bonds (20-25 years)&lt;/li&gt;
  &lt;li&gt;15% US intermediate-term treasury bonds (7-10 years)&lt;/li&gt;
  &lt;li&gt;7.5% gold&lt;/li&gt;
  &lt;li&gt;7.5% commodities&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;all-seasons-vs-bridewaters-all-weather---whats-the-difference&quot;&gt;All-Seasons vs Bridewater’s All-Weather - what’s the difference?&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;An important point to clarify is that All-Seasons is NOT the same as Bridgewater’s All-Weather.&lt;/strong&gt; Bridgewater uses cheap &lt;a href=&quot;https://www.investopedia.com/terms/l/leverage.asp&quot;&gt;leverage&lt;/a&gt; and sophisticated investment instruments to increase returns while still minimizing risk. The simplified All-Seasons portfolio does not use leverage and thus has &lt;strong&gt;lower expected returns than Bridgewater’s All-Weather, but still reduces risk.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Throughout this article, we use the term “All-Weather” to convey the general concept of diversified, risk-balanced asset allocation developed by Bridgewater outlined above, acknowledging that All-Weather portfolios that utilise leverage appropriately, like Bridgewater do, will outperform non-leveraged versions. See the Q and A section below for more commentary on using leverage in a risk balanced investment strategy.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;As an aside, we’re still working on figuring out how the average individual investor in Australia can cost-effectively leverage the lower volatility assets (e.g. Treasury bonds) to have similar expected volatility/returns as equities, thus maintaining risk parity while increasing returns, like Bridgewater can. One way might be through Treasury bond futures. But we need to iron out how to achieve this practically in a cost effect way. If you have the answer, let us know!&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;So, we set out to understand how to create our own All-Weather portfolio(s) without using leverage, for now.&lt;/p&gt;

&lt;h2 id=&quot;our-solution---domestic-and-global-portfolios&quot;&gt;Our solution - domestic and global portfolios&lt;/h2&gt;
&lt;p&gt;We wanted a globally diversified All-Weather portfolio.  We achieved this by creating essentially two sub-portfolios - an All-Weather portfolio containing Australian domestic assets, and another All-Weather portfolio containing global assets for &lt;a href=&quot;https://www.bridgewater.com/research-library/daily-observations/geographic-diversification-can-be-a-lifesaver/&quot;&gt;geographic diversification&lt;/a&gt;. First, we’ll share how we developed the domestic portfolio. Then we’ll delve into the global portfolios.&lt;/p&gt;

&lt;p&gt;Click &lt;a href=&quot;#table-2-link&quot;&gt;here to skip&lt;/a&gt; straight to our table of portfolios showing individual &lt;a href=&quot;https://www.investopedia.com/terms/s/security.asp&quot;&gt;securities&lt;/a&gt; and weights.&lt;/p&gt;

&lt;h3 id=&quot;domestic&quot;&gt;Domestic&lt;/h3&gt;

&lt;p&gt;The All-Seasons portfolio outlined by Robbins’ has a domestic bent, comprising US stocks and &lt;a href=&quot;https://www.investopedia.com/terms/g/government-bond.asp&quot;&gt;government bonds (ie treasuries)&lt;/a&gt;. We wanted exposure to both Australian and Global asset markets.&lt;/p&gt;

&lt;p&gt;The relevant global ETFs available on the Australian Securities Exchange (ASX) exclude Australian assets (ie are “ex AU”). Therefore to have exposure to Australian and global markets it was necessary to include these securities separately (see the Q and A section below for more commentary on this).&lt;/p&gt;

&lt;p&gt;We first located domestic Australian securities traded on the ASX matching &lt;a href=&quot;https://yahoofinance.tumblr.com/post/102956492899/tony-robbins-ray-dalios-all-weather-portfolio&quot;&gt;each asset type suggested by Ray Dalio to Tony Robbins for the simplified All-Seasons portfolio&lt;/a&gt;. The &lt;a href=&quot;#table-1-link&quot;&gt;Table 1&lt;/a&gt; below includes the relevant Domestic securities we found.&lt;/p&gt;

&lt;p&gt;Scroll down to &lt;a href=&quot;#table-2-link&quot;&gt;Table 2&lt;/a&gt; and for example portfolios that select one security from each asset type.&lt;/p&gt;

&lt;p&gt;&lt;a name=&quot;table-1-link&quot;&gt;&lt;/a&gt;
&lt;strong&gt;Table 1.&lt;/strong&gt; &lt;em&gt;Relevant securities for asset types in an Australian domestic “All-Seasons” portfolio.&lt;/em&gt;&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Asset type&lt;/th&gt;
      &lt;th&gt;Relevant securities via ASX / unlisted fund&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;Equities&lt;/td&gt;
      &lt;td&gt;Vanguard Australian Shares Index ETF (&lt;a href=&quot;https://www.vanguardinvestments.com.au/retail/ret/investments/product.html#/fundDetail/etf/portId=8205/?overview&quot;&gt;VAS&lt;/a&gt;);&lt;br /&gt;BetaShares Australia 			    200 ETF (&lt;a href=&quot;https://www.betashares.com.au/fund/australia-200-etf/&quot;&gt;A200&lt;/a&gt;);&lt;br /&gt;BetaShares Australian Sustainability Leaders ETF 			  	(&lt;a href=&quot;https://www.betashares.com.au/fund/australian-sustainability-leaders-etf/&quot;&gt;FAIR&lt;/a&gt;);&lt;br /&gt; Vanguard Index Australian Shares Fund (&lt;a href=&quot;https://www.vanguardinvestments.com.au/retail/ret/investments/product.html#/fundDetail/retail/portId=8129/?overview&quot;&gt;VAN0010AU&lt;/a&gt;)&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Long-term&lt;br /&gt;Australian treasury&lt;br /&gt;bonds (~20-25 yrs)&lt;/td&gt;
      &lt;td&gt;Long-term exchange-traded treasury bonds (ETBs):&lt;br /&gt;- year of maturity - 2037 (&lt;a href=&quot;https://www.australiangovernmentbonds.gov.au/bond-types/exchange-traded-treasury-bonds/list-etbs&quot;&gt;GSBG37&lt;/a&gt;);&lt;br /&gt;- year of maturity - 2039 (&lt;a href=&quot;https://www.australiangovernmentbonds.gov.au/bond-types/exchange-traded-treasury-bonds/list-etbs&quot;&gt;GSBK39&lt;/a&gt;);&lt;br /&gt;- year of maturity - 2041 (&lt;a href=&quot;https://www.australiangovernmentbonds.gov.au/bond-types/exchange-traded-treasury-bonds/list-etbs&quot;&gt;GSBI41&lt;/a&gt;);&lt;br /&gt;- year of maturity - 2047 (&lt;a href=&quot;https://www.australiangovernmentbonds.gov.au/bond-types/exchange-traded-treasury-bonds/list-etbs&quot;&gt;GSBE47&lt;/a&gt;)&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Intermediate&lt;br /&gt;Australian treasury&lt;br /&gt;bonds (5-10 yrs)&lt;/td&gt;
      &lt;td&gt;Vanguard Australian Government Bond Index ETF (&lt;a href=&quot;https://www.vanguardinvestments.com.au/retail/ret/investments/product.html#/fundDetail/etf/portId=8208/?overview&quot;&gt;VGB&lt;/a&gt;);&lt;br /&gt;BetaShares Australian Government Bond ETF (AGVT);&lt;br /&gt;iShares government bond index ETF (&lt;a href=&quot;https://www.blackrock.com/au/individual/products/251979/ishares-treasury-etf&quot;&gt;IGB&lt;/a&gt;)&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Gold&lt;/td&gt;
      &lt;td&gt;BetaShares Gold Bullion ETF - Currency Hedged (&lt;a href=&quot;https://www.betashares.com.au/fund/gold-etf-currency-hedged/&quot;&gt;QAU&lt;/a&gt;);&lt;br /&gt;ETFS Physical Gold (non-hedged) (&lt;a href=&quot;http://www.etfsecurities.com.au/product/gold&quot;&gt;GOLD&lt;/a&gt;);&lt;br /&gt;Perth Mint Gold (&lt;a href=&quot;https://www.perthmint.com/storage/perth-mint-gold-asx.html&quot;&gt;PMGOLD&lt;/a&gt;)&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Commodities&lt;/td&gt;
      &lt;td&gt;BetaShares Commodities Basket ETF - Currency Hedged (synthetic) (&lt;a href=&quot;https://www.betashares.com.au/fund/commodities-basket-etf/&quot;&gt;QCB&lt;/a&gt;)&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;We understood that the underlying principles of the All-Weather approach are &lt;a href=&quot;https://www.bridgewater.com/resources/all-weather-story.pdf&quot;&gt;timeless and universal&lt;/a&gt; and therefore would apply in Australia (and globally). But we weren’t sure whether the &lt;a href=&quot;https://www.tonyrobbins.com/wealth-lifestyle/the-end-of-the-bull-market/30/&quot;&gt;asset class proportions recommended for the US All-Seasons&lt;/a&gt; would be the same in Australia. So we (particularly &lt;a href=&quot;http://www.linkedin.com/in/daniel-newman-5a237b66&quot;&gt;the data scientist among us&lt;/a&gt;) wanted to test it out on plenty of historical data before trusting it with our life savings. To sense test, we first looked at historical performance using the &lt;a href=&quot;https://www.tonyrobbins.com/wealth-lifestyle/the-end-of-the-bull-market/30/&quot;&gt;All-Seasons asset weights&lt;/a&gt; for both US and Australian assets.&lt;/p&gt;

&lt;p&gt;Dan built &lt;a href=&quot;https://github.com/DanielPNewman/all-weather-risk-parity&quot;&gt;an algorithm&lt;/a&gt; to perform risk-parity weighting in line with Bridgewater’s &lt;a href=&quot;https://www.bridgewater.com/resources/risk-parity-is-about-balance.pdf&quot;&gt;All-Weather principles&lt;/a&gt;. This was useful to:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;confirm that Australian and global based asset classes have roughly the same relative risk-weightings as their US counterparts,&lt;/li&gt;
  &lt;li&gt;allow adjustment of the risk-parity weights to account for additional asset types, such as &lt;a href=&quot;https://www.investopedia.com/articles/bonds/09/inflation-linked-bonds.asp&quot;&gt;inflation linked (IL) bonds&lt;/a&gt; and &lt;a href=&quot;https://www.investopedia.com/articles/bonds/09/emerging-market-bonds.asp&quot;&gt;emerging market (EM) credit&lt;/a&gt;, and&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.investopedia.com/terms/b/backtesting.asp&quot;&gt;back-test&lt;/a&gt; the resulting portfolio weights to assess historical returns and more importantly, &lt;a href=&quot;https://www.investopedia.com/terms/d/drawdown.asp&quot;&gt;drawdowns&lt;/a&gt;, in terms of their size, duration and frequency.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Experimenting with different assets through &lt;a href=&quot;https://github.com/DanielPNewman/all-weather-risk-parity&quot;&gt;this algorithm&lt;/a&gt; gave us comfort that the asset weightings recommended for the US are generally applicable in Australia (and globally). Since Bridgewater uses IL-bonds and EM credit in their All-Weather strategy, and since we can access these via the ASX and have &lt;a href=&quot;https://github.com/DanielPNewman/all-weather-risk-parity&quot;&gt;an algorithm&lt;/a&gt; enabling us to risk-balance them, we also added IL bonds (and EM credit for global) to our versions of the All-Weather. Historical performance plots in &lt;a href=&quot;#figure-1-link&quot;&gt;Figure 1&lt;/a&gt;, using Australian domestic assets, shows that “our version” does a very good job of avoiding downturns compared to 100% equities/ASX300.&lt;/p&gt;

&lt;p&gt;For sure, &lt;a href=&quot;#figure-1-link&quot;&gt;Figure 1&lt;/a&gt; shows the overall return of 100% equities (ASX 300 accumulation) was the highest, but it also shows one could have put money in/taken it out of All-Seasons and Our Version at any time since 2001 without suffering unpalatable losses. This is what we are currently after! The same can not be said for 100% equities/ASX300 which, on four occasions between 2001 and 2019, suffered drawdowns large enough to be unacceptable for our current situation.&lt;/p&gt;

&lt;p&gt;&lt;a name=&quot;figure-1-link&quot;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h4 id=&quot;domestic-australian-all-seasons-and-our-versions-of-the-asset-mix-protect-capital-with-less-frequent-and-smaller-drawdowns-than-the-asx-300&quot;&gt;Domestic Australian All-Seasons and Our Versions of the asset mix protect capital, with less frequent and smaller drawdowns than the ASX 300&lt;/h4&gt;
&lt;p&gt;&lt;img src=&quot;https://dpnewman.com/images/AU-combo.png&quot; alt=&quot;&quot; /&gt;
&lt;strong&gt;Figure 1&lt;/strong&gt;. &lt;em&gt;Historical performance simulations of domestic Australian “All-Seasons” and “Our Version” portfolios show these portfolios had considerably smaller and less frequent drawdowns compared to 100% equities via the ASX 300 acummulation index. The relevant securities and weights for each of these portfolios are shown in &lt;a href=&quot;#table-2-link&quot;&gt;Table 2&lt;/a&gt;. ETFs for the required asset classes were not available prior to 2012 so the pre-2012 performance shown is based on their underlying indexes. Historical bond performance was derived from futures price indices with coupon payments accumulated semi annually at historical 10 year yield rates. The commodities performance reflects underlying SPGCLEP commodities index only, excluding potential ETF distribution payments. We painstakingly sourced this historic index data from a variety of free sources and can’t guarantee its accuracy - if anybody reading this has access to a proprietary data source they’d like to share with us, please get in touch!&lt;/em&gt; &lt;br /&gt;
&lt;sub&gt; Note these simulated results do not include brokerage fees and assumes the desired portfolio balance is maintained throughout, whereas in practice, the portfolio would be rebalanced periodically (e.g. every 6 months or so). Simulated historical performance results have inherent limitations since unlike an actual performance record, simulations do not reflect the cost of trading or the impact of actual trades on market factors such as volume and liquidity. See the Q and A section below for commentary on periodic rebalancing. &lt;sub&gt;&lt;/sub&gt;&lt;/sub&gt;&lt;/p&gt;

&lt;hr /&gt;
&lt;blockquote&gt;
  &lt;p&gt;&lt;strong&gt;Lower risk comes with lower expected returns&lt;/strong&gt;&lt;br /&gt;&lt;em&gt;We’re not suggesting our simple All-Weather portfolio is optimal or will maximize returns. It almost certainly won’t. Rather, it is designed to protect assets by avoiding large drawdowns during economic upheavals and market downturns, while still providing reasonable returns above the cash interest rate. In our current circumstance the security of knowing we are less exposed to downturns is worth the decreased expected return potential.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;hr /&gt;

&lt;h3 id=&quot;global&quot;&gt;Global&lt;/h3&gt;
&lt;p&gt;A limitation we saw of a domestic Aussie portfolio was a lack of geographical diversity. To get more exposure to global activities and therefore hopefully more resilience to economic surprises, we made a second All-Weather portfolio using global assets. (For more on the benefits of geographical diversification, including for All-Weather,  see Bridgewater Associates’ &lt;a href=&quot;https://www.bridgewater.com/research-library/daily-observations/geographic-diversification-can-be-a-lifesaver/&quot;&gt;April 2019 memo&lt;/a&gt;.)&lt;/p&gt;

&lt;p&gt;We used Dan’s &lt;a href=&quot;https://github.com/DanielPNewman/all-weather-risk-parity&quot;&gt;algorithm&lt;/a&gt; to create All-Weather risk parity weightings for global assets and back-test them. We used historic data from ETFs available on US securities exchanges for this task because they have existed for longer than their Australian ETF counterparts and therefore have more data.&lt;/p&gt;

&lt;p&gt;This process meant we identified ETFs available on US securities exchanges that can be used to create a global All-Weather portfolio. We also included US only stocks and government bonds in the mix because the US-exchanged global shares and bond ETFs exclude US stocks and bonds. For completeness we’ve included these securities in &lt;a href=&quot;#table-2-link&quot;&gt;Table 2&lt;/a&gt; under columns “Global (NYSE/ NASDAQ)” and “Global with IL-bonds (NYSE/ NASDAQ)”.&lt;/p&gt;

&lt;p&gt;Out of curiosity we added inflation-linked bonds to our Global (NYSE/ NASDAQ) portfolio. But given we could not find a global IL bond ETF on the ASX, we chose not to include IL bonds in our Global (ASX) portfolio. Of course it would be possible to access a Global IL bonds ETF via an international trading platform, but at this point we wanted to stick to ASX traded global securities to reduce complexity.&lt;/p&gt;

&lt;p&gt;The historical performance plot in &lt;a href=&quot;#figure-2-link&quot;&gt;Figure 2&lt;/a&gt; below shows that our Global version also does well at avoiding downturns compared to a 100% global equities allocation. Again, 100% equities gives a higher return, but our current time-horizon and needs favour limiting drawdowns over maximising returns.&lt;/p&gt;

&lt;p&gt;&lt;a name=&quot;figure-2-link&quot;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h4 id=&quot;our-global-asset-mix-protects-capital-during-turbulence-with-less-frequent-and-smaller-drawdowns-compared-to-100-global-equities&quot;&gt;Our Global asset mix protects capital during turbulence with less frequent and smaller drawdowns, compared to 100% Global Equities&lt;/h4&gt;
&lt;p&gt;&lt;img src=&quot;https://dpnewman.com/images/Global-combo.png&quot; alt=&quot;&quot; /&gt;
&lt;strong&gt;Figure 2.&lt;/strong&gt; &lt;em&gt;Historical performance simulations of “Our Version” of an unleveraged global All-Weather portfolio show it had lower returns but also considerably smaller and less frequent drawdowns compared to 100% “Global Equities”. The relevant securities and weights for each of the portfolios depicted here are provided in &lt;a href=&quot;#table-2-link&quot;&gt;Table 2&lt;/a&gt;.&lt;/em&gt;&lt;br /&gt;
&lt;sub&gt;Note these simulated results do not include brokerage fees and assumes the desired portfolio balance is maintained throughout, whereas in practice, the portfolio would be rebalanced periodically (e.g. every 6 months or so). Simulated historical performance results have inherent limitations since unlike an actual performance record, simulations do not reflect the cost of trading or the impact of actual trades on market factors such as volume and liquidity. See the Q and A section below for commentary on periodic rebalancing.&lt;sub&gt;&lt;/sub&gt;&lt;/sub&gt;&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;&lt;a name=&quot;table-2-link&quot;&gt;&lt;/a&gt;
&lt;strong&gt;Table 2.&lt;/strong&gt; &lt;em&gt;Relevant securities and their weights for each of the portfolios represented by the historical performance plots: All-Seasons (Domestic Australia), Our Version including IL Bonds (Domestic Australia), Our Version (Global-ASX), Our Version (Global-US NYSE/NASDAQ), Our Version including IL bonds (Global-US NYSE/NASDAQ). Historical performance simulations of these portfolios versus 100% equities are shown in &lt;a href=&quot;#figure-1-link&quot;&gt;Figure 1&lt;/a&gt; and &lt;a href=&quot;#figure-2-link&quot;&gt;Figure 2&lt;/a&gt;. A short description for each ticker is provided in &lt;a href=&quot;#table-3-link&quot;&gt;Table 3&lt;/a&gt; below.&lt;/em&gt;&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Asset type&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;All Seasons Domestic Aus (ASX)&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Our Version Domestic Aus (ASX)&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Our Version Global (ASX)&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Our Version Global (NYSE/ NASDAQ)&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Global with IL-bonds (NYSE/ NASDAQ)&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Equities&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;30% VAS or FAIR&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;24% VAS or FAIR&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;20% VESG;&lt;br /&gt;3% VGE&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;10% VEA;&lt;br /&gt;11% VTI;&lt;br /&gt;3% EEM&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;9% VEA;&lt;br /&gt;11% VTI;&lt;br /&gt;2% EEM&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Emerging market credit&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;-&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;-&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;13% IHEB&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;12% EMB&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;10% EMB&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Long-term treasury bonds (~20-25 yrs)&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;40% GSBK39 &amp;amp;/or GSBI41 &amp;amp;/or GSBE47*&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;25% GSBK39 &amp;amp;/or GSBI41 &amp;amp;/or GSBE47*&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;-&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;27% TLT&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;19% TLT&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Intermediate treasury bonds (~7-10 yrs)&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;15% IGB&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;15% IGB&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;51% VIF&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;22% BWX&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;23% BWX&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Inflation linked bonds&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;-&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;24% ILB&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;-&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;-&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;10% TIP;&lt;br /&gt;5% WIP&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Gold&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;7.5% PMGOLD&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;6% PMGOLD&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;7% GOLD&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;8% GLD&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;6% GLD&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Commodities&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;7.5% QCB&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;6% QCB&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;6%  QCB&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;7% DBC&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;5% DBC&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;hr /&gt;
&lt;blockquote&gt;
  &lt;p&gt;&lt;strong&gt;Note on long-term treasuries in Australia:&lt;/strong&gt;&lt;br /&gt;&lt;em&gt;Of note is that we could not find any ETFs on the ASX that tracked long term (~20-25 years) Australian treasury bonds. We found only individual exchange traded long-term treasury bonds (ETBs). These ETBs have lower liquidity than the ETFs which can make it difficult to buy and sell when desired. Because of this we considered not using long-term bonds at all. But since Dalio recommended including long-term bonds because they provide higher returns than intermediate (due to higher volatility), we decided to give the ETBs a go. Increased bond volatility and returns was particularly important to us since we have not yet figured out how to leverage up the volatility and returns of our bond holdings in a cost effective way.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;hr /&gt;

&lt;p&gt;&lt;a name=&quot;table-3-link&quot;&gt;&lt;/a&gt;
&lt;strong&gt;Table 3.&lt;/strong&gt; &lt;em&gt;Description and Exchange for each security listed in the &lt;a href=&quot;#table-2-link&quot;&gt;Table 2&lt;/a&gt;. It’s worth noting that BetaShares Australian Sustainability Leaders ETF (&lt;a href=&quot;https://www.betashares.com.au/fund/australian-sustainability-leaders-etf/&quot;&gt;FAIR&lt;/a&gt;) provides an ethical/sustainable Aussie equities option, and Vanguard Ethically Conscious International Shares Index ETF (&lt;a href=&quot;https://www.vanguardinvestments.com.au/retail/ret/investments/product.html#/fundDetail/etf/portId=8225/?overview&quot;&gt;VESG&lt;/a&gt;) provides an ethical/sustainable Global equities option, we found these really interesting.&lt;/em&gt;&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Ticker&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Exchange&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Description&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;BWX&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;NYSE&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;SPDR Barclays International Treasury Bond&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;DBC&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;NYSE&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Invesco DB Commodity Index Tracking Fund&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;EEM&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;NYSE&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;iShares MSCI Emerging Markets ETF&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;EMB&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;NASDAQ&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;iShares JP Morgan USD Emerging Markets Bond ETF&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;FAIR&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;ASX&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;BetaShares Australian Sustainability Leaders ETF&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;GLD&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;NYSE&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;SPDR Gold Shares&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;GOLD&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;ASX&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;ETFS Physical Gold (non-hedged)&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;GSBE47&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;ASX&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Exchange-traded Treasury Bond – maturity 2047&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;GSBG37&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;ASX&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Exchange-traded Treasury Bond – maturity 2037&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;GSBI41&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;ASX&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Exchange-traded Treasury Bond – maturity 2041&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;GSBK39&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;ASX&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Exchange-traded Treasury Bond – maturity 2039&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;IGB&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;ASX&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;iShares government bond index ETF&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;ILB&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;ASX&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;iShares Government Inflation ETF&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;IHEB&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;ASX&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;iShares J.P. Morgan USD Emerging Markets Bond (AUD Hedged) ETF&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;QAU&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;ASX&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;BetaShares Gold Bullion ETF - Currency Hedged&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;QCB&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;ASX&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;BetaShares Commodities Basket ETF - Currency Hedged (synthetic)&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;PMGOLD&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;ASX&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Perth Mint Gold ETF&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;TIP&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;NYSE&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;iShares TIPS Bond ETF&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;TLT&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;NASDAQ&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;iShares 20+ Year Treasury Bond ETF&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;VAS&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;ASX&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Vanguard Australian Shares Index ETF&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;VESG&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;ASX&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Vanguard Ethically Conscious International Shares Index ETF&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;VIF&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;ASX&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Vanguard International Fixed Interest Index ETF (Hedged)&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;VGE&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;ASX&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Vanguard FTSE Emerging Markets Shares ETF&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;VEA&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;NYSE&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Vanguard FTSE Developed Markets ETF&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;VTI&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;NYSE&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Vanguard Total Stock Market ETF&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;WIP&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;NYSE&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;SPDR FTSE International Government Inflation-Protected Bond ETF&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;hr /&gt;

&lt;h2 id=&quot;closing-remarks&quot;&gt;Closing Remarks&lt;/h2&gt;
&lt;p&gt;In the hope it may be interesting or useful to others, we’ve shared our experiences of realising we had to switch our time-horizon from long- to medium-term when thinking about investing, and that an “All-Weather” approach could help us do this. We’ve also shared our path to overcoming the problem of how to apply US-centric All-Seasons/All-Weather advice to an Australian situation using both domestic and global assets - the result being a globally diversified All-Weather portfolio. We do not comment on what percentage should be allocated to domestic vs global assets, however we do discuss this further in the Q and A section.&lt;/p&gt;

&lt;p&gt;It’s worth noting that if our personal situation was different, say already owning a house and not needing to draw on our savings for the next 20 years, we may just keep dollar cost averaging our savings into low cost passive equity index funds. But that’s not the case for us right now.&lt;/p&gt;

&lt;p&gt;Also, we are not trying to convince anyone in any situation to take our approach. We know a lot of people are interested in All-Weather, and we are simply sharing our own process and experience in building these portfolios in case it is interesting/beneficial to others, and also to clarify and develop our own thinking. To be clear, we are not qualified in finance - our backgrounds are data science/neuroscience, and law/environmental sustainability.&lt;/p&gt;

&lt;p&gt;But we’ve enjoyed finding a solution to protect our assets’ value during any economic environment in case we want to draw on it at any time. We hope our approach will tame the rollercoaster that comes with the usual bull-runs and drawdowns when entirely in equities (see &lt;a href=&quot;#figure-3-link&quot;&gt;Figure 3&lt;/a&gt; below), and also decrease our discomfort if there is another big down-turn like 2008.&lt;/p&gt;

&lt;p&gt;We plan to keep refining our All-Weather portfolios / approach as time permits, hopefully finding practical ways to &lt;strong&gt;a)&lt;/strong&gt; leverage the low volatility assets up to the level of equities’ volatility thus maintaining our All-Weather risk balance while increasing our expected returns, &lt;strong&gt;b)&lt;/strong&gt; include global IL bonds in our ASX based global portfolio, &lt;strong&gt;c)&lt;/strong&gt; add more &lt;a href=&quot;https://www.investopedia.com/terms/e/environmental-social-and-governance-esg-criteria.asp&quot;&gt;ESG&lt;/a&gt; compatible assets, &lt;strong&gt;d)&lt;/strong&gt; improve the code in our &lt;a href=&quot;https://github.com/DanielPNewman/all-weather-risk-parity&quot;&gt;all-weather-risk-parity&lt;/a&gt; repository to allow it be used for any country (pull-requests with improvements/additions welcome if any devs. are reading this!), and &lt;strong&gt;e)&lt;/strong&gt; research whether or not there is a place for crypto currencies to be added into our All-Weather asset mix. So much to do, so little time! But we’ll see how we go.&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;&lt;a name=&quot;figure-3-link&quot;&gt;&lt;/a&gt;
&lt;img src=&quot;https://dpnewman.com/images/chair-lift.png&quot; alt=&quot;&quot; /&gt; &lt;strong&gt;Figure 3.&lt;/strong&gt; &lt;em&gt;For illustration purposes (read for the lulz) only may not reflect reality!&lt;/em&gt;&lt;/p&gt;

&lt;h2 id=&quot;questions--answers&quot;&gt;Questions &amp;amp; Answers&lt;/h2&gt;

&lt;p&gt;As we were trying to understand Bridgewater’s All-Weather principles, some obvious questions occurred (and were flagged) to us, which are addressed below.&lt;/p&gt;

&lt;p&gt;Of course, we cannot comprehensively cover everything here. If you’re after a deeper understanding, we recommend reading Bridgewater Associates’ 2015 article ‘&lt;a href=&quot;https://www.bridgewater.com/resources/our-thoughts-about-risk-parity-and-all-weather.pdf\&quot;&gt;Our thoughts about Risk Parity and All Weather&lt;/a&gt;’, which addresses common questions and misconceptions about risk parity and All-Weather.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://media.giphy.com/media/1gQxJcfVsimmK9pEQX/giphy.gif&quot; alt=&quot;Alt Text&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Question:&lt;/strong&gt; Is the All-Weather asset allocation based on past correlations between assets, which are unstable/unreliable going forward?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Answer:&lt;/strong&gt; No, because:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;The asset allocation is not based on the correlations between assets.&lt;/li&gt;
  &lt;li&gt;Rather, the portfolio is created based on the relationships of assets types to their environmental drivers. (There are four environmental drivers – economic growth, economic decline, inflation and deflation.)&lt;/li&gt;
  &lt;li&gt;While asset classes offer a risk premium that is similar once adjusting for risk, their inherent sensitivities to shifts in the economic environment are different.&lt;/li&gt;
  &lt;li&gt;Therefore, we can structure a portfolio of risk adjusted asset classes so that their environmental sensitivities reliably offset one another, leaving the risk premium as the driver of returns.&lt;/li&gt;
&lt;/ul&gt;

&lt;hr /&gt;

&lt;p&gt;&lt;strong&gt;Question:&lt;/strong&gt; Wouldn’t leveraging the bonds (or other less volatile assets) increase the risk of the portfolio?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Answer:&lt;/strong&gt; No, because:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;The leverage makes the volatility of your bonds’ equal to your equities and thus gives better diversification than possible without leverage. “For example, if I put 50% of my money in an unleveraged Treasury bond and 50% of my money in stocks, my portfolio would have been dominated by stocks during the 2008 financial crisis because stocks are more volatile; however, if I leveraged my bonds to have the same volatility as stocks, I would have had much better diversification and would have had much lower risks during the financial crisis.” (Bridgewater’s &lt;a href=&quot;https://www.bridgewater.com/resources/engineering-targeted-returns-and-risks.pdf&quot;&gt;Engineering Targeted Returns and-Risks&lt;/a&gt;)&lt;/li&gt;
  &lt;li&gt;We wouldn’t  need to use too much leverage, for example Bridgewater’s All-Weather strategy is only around 2 times leveraged.&lt;/li&gt;
&lt;/ul&gt;

&lt;hr /&gt;

&lt;p&gt;&lt;strong&gt;Question:&lt;/strong&gt; Is being Australian  (earning and spending Australian dollars etcc) a good reason to run an Australian-only portfolio? Given Australia is such a small market compared to the rest of the world, wouldn’t it be better to come up with a currency hedging strategy to overlay across a global portfolio?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Answer:&lt;/strong&gt; This is an important question in relation to portfolio diversification.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;A desire to have geographical diversification was the reason we created a global All-Weather portfolio. The reasons for our approach to develop both the domestic and global portfolios separately are two-fold:&lt;/p&gt;

    &lt;ul&gt;
      &lt;li&gt;First, it was simpler to apply the All-Weather principles to domestic and global separately because global All-Weather asset allocation is more complex than domestic only. Our limited resources and reliance on global index funds means our global risk weightings are less precise. This is in part because we cannot control the exact weightings the index funds use across countries. For example, the global stocks ETF is geographically weighted differently to the global bonds ETF.&lt;/li&gt;
      &lt;li&gt;Second, the global ETFs traded on the ASX exclude Australian assets (ie are “ex AU”), therefore to have exposure to Australian markets it is necessary to include these securities separately.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Although we have noted that geographical diversification is important (see relevant &lt;a href=&quot;https://www.bridgewater.com/research-library/daily-observations/geographic-diversification-can-be-a-lifesaver/&quot;&gt;Bridgewater Associates 2019 article&lt;/a&gt; and &lt;a href=&quot;https://www.vanguardinvestments.com.au/retail/ret/articles/insights/research-commentary/portfolio-construction/home-bias-for-share-investors.jsp&quot;&gt;Vanguard Australia 2017&lt;/a&gt; article on benefits of international diversification), we have not commented on how we think assets should be allocated across the Australian vs Global assets because it is a thorny issue. For example, if we were to allocate assets based on Australia’s market cap within global indices, we would only have about 3% Australian assets and the rest (97%) would be global. However, &lt;a href=&quot;https://www.vanguardinvestments.com.au/retail/ret/articles/insights/research-commentary/portfolio-construction/home-bias-investing.jsp&quot;&gt;Vanguard Australia’s research&lt;/a&gt; shows that Australians tend to have a strong home bias when investing in shares. In 2014, Australians collectively held 66.5% Australian shares in their share portfolio, despite Australia representing only approximately 2.5% of the global market at that time. Robin Bowerman, Head of Corporate Affairs at Vanguard Australia comments that ‘home-bias investing ranks among the biggest forms of under-diversification’ (&lt;a href=&quot;https://www.vanguardinvestments.com.au/retail/ret/articles/insights/research-commentary/portfolio-construction/home-bias-investing.jsp&quot;&gt;see Bowerman’s article&lt;/a&gt;). We have found that we are not completely immune to this ‘home bias’, even though we are aware of the problem!&lt;/li&gt;
  &lt;li&gt;According to Aidan Geysen, Senior Investment Strategist and Manager with Vanguard’s Investment Strategy Group, there are numerous reasons investors prefer home equities, some of which are behavioural and some that have sound investment rationale, including ‘a preference for the familiar, ease of access, aversion to currency risk, tax benefits and liability hedging to name a few’ (&lt;a href=&quot;https://www.vanguardinvestments.com.au/retail/ret/articles/insights/research-commentary/portfolio-construction/how-much-home-country-bias-is-too-much.jsp&quot;&gt;see Geysen’s article&lt;/a&gt;). Along with all information included in our article, we leave the reader to form their own view on what geographical asset allocation is most appropriate.&lt;/li&gt;
&lt;/ul&gt;

&lt;hr /&gt;

&lt;p&gt;&lt;strong&gt;Question:&lt;/strong&gt; How does your algorithm arrive at the target weights for the various asset classes?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Answer:&lt;/strong&gt; The algorithm takes as input the users’ desired assets which the user has already pre-assigned into their relevant “environments” in this &lt;a href=&quot;https://github.com/DanielPNewman/all-weather-risk-parity/blob/master/portfolio-settings.yaml&quot;&gt;‘portfolio-settings.yaml’&lt;/a&gt; file (e.g. stocks go in the ‘rising growth’ and the ‘falling inflation’ environments because that’s when they tend to do well, IL-bonds assigned to the ‘rising inflation’ and ‘falling growth’ environments, etc). The algorithm then:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;creates weights for risk-parity of the assets within each environment, essentially creating 4 “sub-portfolios”, a sub-portfolio for each environment. Then,&lt;/li&gt;
  &lt;li&gt;it looks at the overall volatility of each sub-portfolio and creates risk-parity weights between each of the 4 sub-portfolios so each takes on 25% of the risk. Then,&lt;/li&gt;
  &lt;li&gt;each asset’s final weight is determined by the sum of [its within environment weights]-multiplied by-[its overall environment weights], and the final ticker weight is output. The within- and between-environment risk-parity calculations are performed with the help of a python version of &lt;a href=&quot;http://mirca.github.io/&quot;&gt;Ze Vinicius&lt;/a&gt; and &lt;a href=&quot;http://www.danielppalomar.com/&quot;&gt;Daniel Palomar&lt;/a&gt;’s ‘&lt;a href=&quot;https://github.com/dppalomar/riskParityPortfolio&quot;&gt;riskParityPortfolio&lt;/a&gt;’ package.&lt;/li&gt;
&lt;/ol&gt;

&lt;hr /&gt;

&lt;p&gt;&lt;strong&gt;Question:&lt;/strong&gt; How do you know when and by how much to rebalance the portfolio weights. Is this based on the prevailing growth and inflation environments? If so wouldn’t it require a measure and also a forecast for growth and inflation?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Answer:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;This passive All-Weather approach assumes we can’t/won’t forecast the future so we don’t know which particular growth/inflation conditions will unfold. Given this, it assigns weights such that there is an equal amount of risk (25%) in each of the 4 possible growth/inflation environments. Therefore the portfolio is designed to perform no matter which growth/inflation environment dominates.&lt;/li&gt;
  &lt;li&gt;Regarding the question of when/how much to rebalance: how much is easy because we simply rebalance so our portfolio weights are back in line with the target weights already determined by the All-Weather risk-parity algorithm. These target weights shouldn’t change much year-to-year as they should be arrived at using many year’s historical volatility data. Each additional year of volatility data has small effect on overall volatility estimates.&lt;/li&gt;
  &lt;li&gt;But when to rebalance depends on how happy we are to let the weights drift considering brokerage costs. In this &lt;a href=&quot;https://finance.yahoo.com/news/tony-robbins--ray-dalio-s--all-weather--portfolio-161619133.html&quot;&gt;article&lt;/a&gt; on a simplified version of Ray Dalio’s All-Weather, Robbins recommends rebalancing the All-Seasons “at least annually” and notes that “if done properly, this can actually increase tax efficiency”. People’s tax situations vary so we don’t comment on a tax strategy here.&lt;/li&gt;
  &lt;li&gt;If a big financial upheaval, like in 2008, occurs in the middle of our usual rebalancing interim, it may be worth rebalancing prematurely. But assuming our portfolio weights are still within a few % of the targets weights (we’d assign some arbitrary threshold, say &amp;lt;10% abs. overall unbalance) there should be limited need to rebalance outside our chosen interval.&lt;/li&gt;
&lt;/ul&gt;

&lt;hr /&gt;

&lt;p&gt;&lt;strong&gt;Question:&lt;/strong&gt; What about including crypto currencies like BitCoin?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Answer:&lt;/strong&gt; We could certainly consider adding crypto currencies like BitCoin into an asset mix, if we had good reasoning and evidence to decide in which of the four environments it should do well. But we have not yet done any research to confirm. We plan to research this in the future.&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;Want to know more about Bridgewater’s All-Weather investment strategy? See their articles:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.bridgewater.com/resources/all-weather-story.pdf&quot;&gt;The All Weather Story: How Bridgewater Associates created the All Weather Investment Strategy, the foundation of the ‘Risk Parity’ Movement&lt;/a&gt;;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.bridgewater.com/resources/engineering-targeted-returns-and-risks.pdf&quot;&gt;Engineering Targeted Returns and Risk&lt;/a&gt;;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.bridgewater.com/resources/our-thoughts-about-risk-parity-and-all-weather.pdf\&quot;&gt;Our thoughts about Risk Parity and All Weather&lt;/a&gt;;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.bridgewater.com/resources/risk-parity-is-about-balance.pdf&quot;&gt;Risk Parity is about Balance&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;

</content>
 </entry>
 
 <entry>
   <title>Data Science Using Docker</title>
   <link href="https://dpnewman.com/data-science-using-docker/"/>
   <updated>2018-10-30T00:00:00+00:00</updated>
   <id>https://dpnewman.com/data-science-using-docker</id>
   <content type="html">&lt;p&gt;Wow, it’s been 2 years since I last wrote a blog post. Since then I finished work as a neuroscientist and started a data science job at &lt;a href=&quot;https://www.seek.com.au/&quot;&gt;SEEK&lt;/a&gt;. Loving the career change, I’m working in the AI platform services team where I use machine learning (ML) to help improve the efficiency of employment markets. I’m lucky to be surrounded by some excellent experienced data scientists and engineers and have learnt many useful skills. I plan to start blogging again to share some of the useful things I’ve picked up over the last 2 years.&lt;/p&gt;

&lt;p&gt;One of the most useful and versatile tools I’ve picked up to help data science workflow is &lt;a href=&quot;https://www.docker.com/&quot;&gt;Docker&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id=&quot;whats-so-good-about-using-docker-for-interactive-data-science&quot;&gt;What’s so good about using docker for interactive data science?&lt;/h2&gt;

&lt;p&gt;The thing I love about using docker is, it has eliminated the hassle of re-installing software and managing package/library/module versions every time I want to train ML models on a different machine – no more fighting module conflicts! You can make a &lt;em&gt;docker image&lt;/em&gt; that has all your favourite data science tooling, and then use that image to easily build a container with your data science work environment that is identical every time, no matter what machine you build it on.&lt;/p&gt;

&lt;p&gt;So no more “it worked when I ran it on my machine”!! ;-P&lt;/p&gt;

&lt;figure&gt;
    &lt;a href=&quot;/public/images/Blog-30-10-2018/say-works-on-my-machine.jpg&quot;&gt;
        &lt;img src=&quot;/public/images/Blog-30-10-2018/say-works-on-my-machine.jpg&quot; alt=&quot;&quot; /&gt;
    &lt;/a&gt;
&lt;figcaption&gt;
    
&lt;/figcaption&gt;
&lt;/figure&gt;

&lt;h2 id=&quot;some-basic-terminology&quot;&gt;Some basic terminology&lt;/h2&gt;

&lt;h4 id=&quot;dockerfile&quot;&gt;Dockerfile:&lt;/h4&gt;
&lt;ul&gt;
  &lt;li&gt;The ‘dockerfile’ is a text file with simple code that describes your docker image.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4 id=&quot;docker-image&quot;&gt;Docker image:&lt;/h4&gt;
&lt;ul&gt;
  &lt;li&gt;The docker ‘image’ describes the base operating system and all the other programs you want  (for example, in my case: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;linux&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;R&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;dplyr&lt;/code&gt; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;python&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;fastText&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;xgboost&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;PyICU&lt;/code&gt; etc).&lt;/li&gt;
&lt;/ul&gt;

&lt;h4 id=&quot;docker-container&quot;&gt;Docker container:&lt;/h4&gt;
&lt;ul&gt;
  &lt;li&gt;A running instance of an image is called a ‘container’. You can have one or many containers of the same image running on one or many physical host machines.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;For want of an analogy…&lt;/strong&gt; analogies are rarely perfect and this one is no exception, but in terms of baking a cake:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;the &lt;em&gt;dockerfile&lt;/em&gt; is your ingredients list,&lt;/li&gt;
  &lt;li&gt;the &lt;em&gt;image&lt;/em&gt; is your recipe,&lt;/li&gt;
  &lt;li&gt;the &lt;em&gt;container&lt;/em&gt; is the cake!&lt;/li&gt;
  &lt;li&gt;And the machine you are using is the oven.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can bake as many cakes as you like with a given recipe. You can bake the exact same cake many times in different ovens. You can bake multiple cakes simultaneously in the same oven. As long as a machine has docker installed, your docker &lt;em&gt;image&lt;/em&gt; is going to run and the &lt;em&gt;container&lt;/em&gt; will work the same every time!&lt;/p&gt;

&lt;h2 id=&quot;how-to-get-started&quot;&gt;How to get Started&lt;/h2&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;a href=&quot;https://docs.docker.com/install/&quot;&gt;Install Docker&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;Test installation worked by running the simple &lt;a href=&quot;https://hub.docker.com/_/hello-world/&quot;&gt;hello-world&lt;/a&gt; Docker image:
    &lt;ul&gt;
      &lt;li&gt;in your terminal/command prompt &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;docker run hello-world&lt;/code&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;To start with, you may like to use an pre-made public image created for data science tooling, pulled directly from &lt;a href=&quot;https://hub.docker.com/&quot;&gt;dockerhub&lt;/a&gt;. There are many of these available for free for on &lt;a href=&quot;https://hub.docker.com/&quot;&gt;dockerhub&lt;/a&gt; which as a nice search function.
    &lt;ul&gt;
      &lt;li&gt;for example, you could download this &lt;a href=&quot;https://hub.docker.com/r/jupyter/datascience-notebook/&quot;&gt;Jupyter Notebook Data Science Stack&lt;/a&gt; using &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;docker pull jupyter/datascience-notebook&lt;/code&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Alternatively, create your own custom docker image, with the exact tooling and versions you want. For example, below I discuss the &lt;a href=&quot;https://github.com/DanielPNewman/training-docker-files&quot;&gt;files needed to edit and build my own custom docker image&lt;/a&gt;:&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;my-docker-image-for-training-ml-models&quot;&gt;My docker image for training ml models&lt;/h2&gt;

&lt;p&gt;I made this docker image to help with my data science work flow. Specifically it allows me to quickly and easily set up the required versions of my tooling/packages (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;python3.6&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;R&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;dplyr&lt;/code&gt; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;xgboost&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;fastText&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;pyICU&lt;/code&gt; etc.) in a container on other machines.&lt;/p&gt;

&lt;p&gt;The image can be pulled as is from directly from &lt;a href=&quot;https://hub.docker.com/r/danielpnewman/training-tools/&quot;&gt;my public docker repo&lt;/a&gt; using terminal command:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;docker pull danielpnewman/training-tools&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Alternatively you can update my docker files and rebuild your own custom image using the steps below. :-)&lt;/p&gt;

&lt;h3 id=&quot;making-your-own-docker-image-ideal-for-model-training-using-python36-xgboost-fasttext-pyicu-r-dplyr-and-any-other-data-science-tools-you-like&quot;&gt;Making your own docker image, ideal for model training using Python3.6, xgboost, fastText, PyICU, R, dplyr, and any other data science tools you like:&lt;/h3&gt;

&lt;ol&gt;
  &lt;li&gt;Clone &lt;a href=&quot;https://github.com/DanielPNewman/training-docker-files&quot;&gt;the files from my docker image&lt;/a&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;git@github.com:DanielPNewman/training-docker-files.git&lt;/code&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;If needed update the &lt;a href=&quot;https://github.com/DanielPNewman/training-docker-files/blob/master/Dockerfile&quot;&gt;Dockerfile&lt;/a&gt; with required software.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;If needed update &lt;a href=&quot;https://github.com/DanielPNewman/training-docker-files/blob/master/requirements.txt&quot;&gt;requirements&lt;/a&gt; with required python packages.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Build local docker image from Dockerfile in ~/training-docker-files directory, this code tags the image name as “danielpnewman/training-tools”, which can be changed to whatever name you like:&lt;/p&gt;

    &lt;ul&gt;
      &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cd training-docker-files&lt;/code&gt;&lt;/li&gt;
      &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;docker build -t danielpnewman/training-tools .&lt;/code&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Put training data, scripts etc. into local &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;/to-mount&lt;/code&gt; directory and then mount it into the docker container when you build it using this command:&lt;/p&gt;

    &lt;ul&gt;
      &lt;li&gt;
        &lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;docker run --interactive --tty  --volume $(pwd)/to-mount:/training/to-mount danielpnewman/training-tools&lt;/code&gt;&lt;/p&gt;
      &lt;/li&gt;
      &lt;li&gt;
        &lt;p&gt;Note you can mount multiple directories:&lt;/p&gt;

        &lt;ul&gt;
          &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;docker run --interactive --tty  --volume $(pwd)/to-mount:/training/to-mount --volume $(pwd)/scripts:/training/scrips danielpnewman/training-tools&lt;/code&gt;&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;You can close the terminal of an active docker session and then log back into it later using its CONTAINER ID, e.g:&lt;/li&gt;
&lt;/ol&gt;

 	- &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exec -it d40b2796e7ca /bin/bash&lt;/code&gt;

&lt;h2 id=&quot;very-basic-docker-cheat-sheet&quot;&gt;Very basic docker cheat sheet&lt;/h2&gt;

&lt;h4 id=&quot;list-docker-cli-commands&quot;&gt;List Docker CLI commands&lt;/h4&gt;
&lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;docker&lt;/code&gt;
&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;docker container --help&lt;/code&gt;&lt;/p&gt;

&lt;h4 id=&quot;display-docker-version-and-info&quot;&gt;Display Docker version and info&lt;/h4&gt;
&lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;docker --version&lt;/code&gt;
&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;docker version&lt;/code&gt;
&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;docker info&lt;/code&gt;&lt;/p&gt;

&lt;h4 id=&quot;execute-docker-image&quot;&gt;Execute Docker image&lt;/h4&gt;
&lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;docker run hello-world&lt;/code&gt;&lt;/p&gt;

&lt;h4 id=&quot;list-docker-images&quot;&gt;List Docker images&lt;/h4&gt;
&lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;docker image ls&lt;/code&gt;&lt;/p&gt;

&lt;h4 id=&quot;list-docker-containers-running-all-all-in-quiet-mode&quot;&gt;List Docker containers (running, all, all in quiet mode)&lt;/h4&gt;
&lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;docker container ls&lt;/code&gt;
&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;docker container ls --all&lt;/code&gt;
&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;docker container ls -aq&lt;/code&gt;&lt;/p&gt;

</content>
 </entry>
 
 <entry>
   <title>Using R to create a word cloud from my PhD thesis text</title>
   <link href="https://dpnewman.com/PhDWordCloud/"/>
   <updated>2016-11-27T00:00:00+00:00</updated>
   <id>https://dpnewman.com/PhDWordCloud</id>
   <content type="html">&lt;iframe width=&quot;800&quot; height=&quot;3700&quot; frameborder=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;/public/html/Blog-27-11-2016/text_mining_my_PHD_thesis.html&quot;&gt;&lt;/iframe&gt;

</content>
 </entry>
 
 <entry>
   <title>Median Property Prices 2005-16 - PART 2!</title>
   <link href="https://dpnewman.com/Making-Maps2/"/>
   <updated>2016-10-22T00:00:00+00:00</updated>
   <id>https://dpnewman.com/Making-Maps2</id>
   <content type="html">&lt;p&gt;A few weeks back I made a blog post with this nice little .gif below, of change over time in Median Melbourne Property Prices ($) from 2005-2016 - see my &lt;a href=&quot;http://dpnewman.com/Making-Maps/&quot;&gt;previous blog on 29 Sep 2016&lt;/a&gt; :&lt;/p&gt;

&lt;figure&gt;
    &lt;a href=&quot;/public/images/Blog-29-09-2016/output.gif&quot;&gt;
        &lt;img src=&quot;/public/images/Blog-29-09-2016/output.gif&quot; alt=&quot;&quot; /&gt;
    &lt;/a&gt;
&lt;figcaption&gt;
    
&lt;/figcaption&gt;
&lt;/figure&gt;

&lt;p&gt;Well I’ve just come back to looking at that data set and this time I’ve plotted the &lt;strong&gt;%&lt;/strong&gt; change per annum and overall, and also absolute &lt;strong&gt;$&lt;/strong&gt; change from 2005-2016 on some interactive plots.
These plots allow you to zoom in, hover over a suburb to see more info, or click on a suburb to open a new window and explore that suburb in more detail.&lt;/p&gt;

&lt;p&gt;The R code I used to make the plots below is &lt;a href=&quot;https://github.com/DanielPNewman/MelbournePropertyPrices/blob/master/MelbournePropertyPrices.Rmd\&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Explore below, it’s interesting to see that SYNDAL has the greatest per annum and overall % growth, however it’s TOORAK that has by far has the highest absolute $ growth over the same period of time.&lt;/strong&gt;&lt;/p&gt;

&lt;iframe width=&quot;800&quot; height=&quot;1350&quot; frameborder=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;/public/html/Blog-22-10-2016/MelbournePropertyPrices.html&quot;&gt;&lt;/iframe&gt;

</content>
 </entry>
 
 <entry>
   <title>The ggiraph package gives ggplot2 nice reactivity to user input</title>
   <link href="https://dpnewman.com/ggiraph/"/>
   <updated>2016-10-20T00:00:00+00:00</updated>
   <id>https://dpnewman.com/ggiraph</id>
   <content type="html">&lt;iframe width=&quot;800&quot; height=&quot;2750&quot; frameborder=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;/public/html/Blog-20-10-2016/2016-10-20-ggiraph-example.html&quot;&gt;&lt;/iframe&gt;

</content>
 </entry>
 
 <entry>
   <title>Using the plotly package to give your ggplot2 plots simple reactivity to user input</title>
   <link href="https://dpnewman.com/plotly/"/>
   <updated>2016-09-30T00:00:00+00:00</updated>
   <id>https://dpnewman.com/plotly</id>
   <content type="html">&lt;h2 id=&quot;first-make-up-some-fake-revenue-data-for-a-company-with-a-number-of-shops-operating-in-each-state-from-2012-to-2015&quot;&gt;First make up some fake revenue data for a company with a number of shops operating in each State from 2012 to 2015:&lt;/h2&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;### Install/load required packages&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#List of R packages required for this analysis:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;required_packages&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;ggplot2&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;stringr&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;plotly&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;dplyr&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#Install required_packages:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;new.packages&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;required_packages&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;!&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;required_packages&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%in%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;installed.packages&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()[,&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;Package&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;])]&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;length&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;new.packages&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;install.packages&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;new.packages&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#Load required_packages:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lapply&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;required_packages&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;require&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;character.only&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kc&quot;&gt;TRUE&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#Set decimal points and disable scientific notation&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;options&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;digits&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;scipen&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;999&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 

&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#Make up some fake data&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;data_frame&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;state&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;rep&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;New South Wales&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
                 &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;Victoria&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
                 &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;Queensland&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                 &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;Western Australia&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                 &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;South Australia&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                 &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;Tasmania&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;36&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;group_by&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;state&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mutate&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;year&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;rep&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;2012&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;9&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;rep&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;2013&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;9&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;rep&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;2014&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;9&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;rep&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;2015&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;9&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)))&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;group_by&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;state&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;year&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mutate&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;`store ID`&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;str_c&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;shop_#&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;as.character&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;seq_along&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;state&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))))&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;group_by&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;state&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;year&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;`store ID`&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mutate&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;`Revenue ($)`&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ifelse&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;state&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;New South Wales&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sample&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1000000&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;9000000&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                            &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ifelse&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;state&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;Victoria&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sample&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1000000&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;7000000&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                            &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ifelse&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;state&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;Queensland&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sample&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1000000&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;5000000&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                            &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ifelse&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;state&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;Western Australia&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sample&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100000&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;2000000&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                            &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ifelse&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;state&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;South Australia&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sample&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100000&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;900000&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;       
                            &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ifelse&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;state&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;Tasmania&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sample&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100000&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;2000000&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kc&quot;&gt;NA&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)))))))&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;now-visualise-this-data-using-ggplot&quot;&gt;Now visualise this data using ggplot:&lt;/h2&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;ggplot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;aes&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;state&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;`Revenue ($)`&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;colour&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;state&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;label&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;`store ID`&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;geom_boxplot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
    &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;geom_point&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;theme&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;axis.title.x&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;element_blank&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;axis.text.x&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;element_blank&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;axis.title.y&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;element_text&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;face&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;bold&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;size&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;12&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;axis.text.y&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;element_text&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;angle&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;vjust&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;0.5&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;size&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;11&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;legend.title&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;element_text&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;size&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;12&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;face&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;bold&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;legend.text&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;element_text&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;size&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;12&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;face&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;bold&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;plot.title&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;element_text&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;face&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;bold&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;size&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;14&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
    &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ggtitle&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;Store Revenue per State from 2012 to 2015&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;facet_wrap&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;~&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;year&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;figure&gt;
    &lt;a href=&quot;/public/images/Blog-30-09-2016/Rplot.png&quot;&gt;
        &lt;img src=&quot;/public/images/Blog-30-09-2016/Rplot.png&quot; alt=&quot;&quot; /&gt;
    &lt;/a&gt;
&lt;figcaption&gt;
    
&lt;/figcaption&gt;
&lt;/figure&gt;

&lt;h2 id=&quot;now-make-the-plot-reactive-to-the-users-mouse-by-wrapping-plotlys-ggplotly-function-around-it&quot;&gt;Now make the plot reactive to the user’s mouse by wrapping plotly’s ggplotly() function around it:&lt;/h2&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;p&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ggplotly&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ggplot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;aes&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;state&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;`Revenue ($)`&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;colour&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;state&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;label&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;`store ID`&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;geom_boxplot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
    &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;geom_point&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;theme&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;axis.title.x&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;element_blank&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;axis.text.x&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;element_blank&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;axis.title.y&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;element_text&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;face&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;bold&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;size&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;12&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;axis.text.y&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;element_text&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;angle&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;vjust&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;0.5&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;size&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;legend.title&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;element_text&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;size&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;12&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;face&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;bold&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;legend.text&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;element_text&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;size&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;12&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;face&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;bold&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;facet_wrap&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;~&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;year&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;


&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;##Publish to plotly&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# plotly_POST(p, filename = &quot;dans_plotly_example&quot;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;iframe width=&quot;900&quot; height=&quot;800&quot; frameborder=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;https://plot.ly/~DanielPNewman/2.embed&quot;&gt;&lt;/iframe&gt;

&lt;h3 id=&quot;this-type-of-simple-plot-made-using-plotly-and-ggplot2-in-r-are-great-because-they-have-some-basic-reactivity-to-user-input-eg-hover-mouse-over-data-point-and-lable-appears-with-info-about-data-point-like-store-id-for-example-but-they-do-not-need-to-be-hosted-on-a-server---they-are-simple-enough-to-be-knitted-into-a-stand-alone-html-document&quot;&gt;This type of simple plot made using plotly and ggplot2 in R are great because they have some basic “reactivity” to user input, (e.g. hover mouse over data point and lable appears with info. about data point like “store ID”” for example), but they do not need to be hosted on a server - they are simple enough to be knitted into a stand-alone HTML document.&lt;/h3&gt;

</content>
 </entry>
 
 <entry>
   <title>Median Melbourne Property Prices ($) from 2005-2016</title>
   <link href="https://dpnewman.com/Making-Maps/"/>
   <updated>2016-09-29T00:00:00+00:00</updated>
   <id>https://dpnewman.com/Making-Maps</id>
   <content type="html">&lt;p&gt;I stumbled across an interesting raw dataset from Victorian Government, Australia today, It had house and apartment prices in Melbourne, Australia from 2005-March 2016 &lt;a href=&quot;http://www.dtpli.vic.gov.au/property-and-land-titles/property-information/property-prices&quot;&gt;http://www.dtpli.vic.gov.au/property-and-land-titles/property-information/property-prices&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thought it worth a look…&lt;/p&gt;

&lt;p&gt;So I wrote some R code to import the data from excel spreadsheet, tidy it, and then make this animated plot which I think is cool because you can get some insight from it in a much faster than just looking through the raw data in an excel spreadsheet. I thought it was interesting how much faster Houses are going up in value compared to Apartments. Also interesting how most of the price increases are in on the SouthEast side of Melbourne. I will drill into this dataset further when I get time, zooming in to certain suburbs, plotting vacant land over time (also included in the raw data), etc etc.&lt;/p&gt;

&lt;p&gt;The R code I used to make the plot below is &lt;a href=&quot;https://github.com/DanielPNewman/MelbournePropertyPrices/blob/master/MelbournePropertyPrices.Rmd&quot;&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Click the plot to enlarge&lt;/em&gt;&lt;/p&gt;

&lt;figure&gt;
    &lt;a href=&quot;/public/images/Blog-29-09-2016/output.gif&quot;&gt;
        &lt;img src=&quot;/public/images/Blog-29-09-2016/output.gif&quot; alt=&quot;&quot; /&gt;
    &lt;/a&gt;
&lt;figcaption&gt;
    
&lt;/figcaption&gt;
&lt;/figure&gt;

</content>
 </entry>
 
 <entry>
   <title>Python for an R and matlab user</title>
   <link href="https://dpnewman.com/Python-for-an-R-and-matlab-user/"/>
   <updated>2016-09-24T00:00:00+00:00</updated>
   <id>https://dpnewman.com/Python-for-an-R-and-matlab-user</id>
   <content type="html">&lt;p&gt;I managed to find a few spare hours this weekend so I’m trying out Python for the first time. I usually use Matlab and R for data processing, visualisation and statistics, but I wanted to give Python a try, since some of my friends at &lt;a href=&quot;http://vokke.com.au/&quot;&gt;Vokke&lt;/a&gt; seem to really love it.&lt;/p&gt;

&lt;p&gt;It’s early days so I haven’t actually managed to produce anything useful with Python yet, but I thought I’d start to document the steps I’m taking to learn Python for data science, from the point of view of a Matlab and R user.&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;First off, I downloaded and installed &lt;a href=&quot;https://www.continuum.io/downloads&quot;&gt;Anaconda&lt;/a&gt; which includes a distribution of Python, plus all the popular python packages you might need for data science.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Then I searched for an IDE that I like the feel of. Anaconda comes with a couple of IDE’s including one called “Spyder” which I thought seemed very good. However, I ended up deciding on using the &lt;a href=&quot;https://www.yhat.com/products/rodeo&quot;&gt;Rodeo&lt;/a&gt; IDE for starters. The reason I decided on Rodeo is it is set out very similarly to the Rstudio and matlab IDEs, so I’m a little more comfortable with it to start with.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Third I started searching for the “python equivalents” to my favourite R packages for data science. I’m a major fan of most of &lt;a href=&quot;http://hadley.nz/&quot;&gt;Hadley Wickham’s&lt;/a&gt;’s R packages including ggplot2, dplyr, tidyr, lubridate, readr and readxl.  So far for python I’ve found:&lt;/p&gt;

    &lt;ul&gt;
      &lt;li&gt;
        &lt;p&gt;&lt;a href=&quot;https://github.com/pydata/pandas&quot;&gt;Pandas&lt;/a&gt; seems to be the popular package for manipulating data in python, but another package that seems closer to &lt;a href=&quot;https://github.com/hadley/dplyr&quot;&gt;dplyr&lt;/a&gt; in R, is &lt;a href=&quot;https://github.com/dodger487/dplython&quot;&gt;dplython&lt;/a&gt; which maintains the functional programing ideas of dplyr, including my favourite feature from &lt;a href=&quot;https://github.com/smbache/magrittr&quot;&gt;magrittr&lt;/a&gt; and dplyr: the pipe-operator!&lt;/p&gt;
      &lt;/li&gt;
      &lt;li&gt;
        &lt;p&gt;The python plotting packages &lt;a href=&quot;https://github.com/mwaskom/seaborn&quot;&gt;seaborn&lt;/a&gt;, &lt;a href=&quot;https://github.com/bokeh/bokeh&quot;&gt;bokeh&lt;/a&gt; and &lt;a href=&quot;http://matplotlib.org/&quot;&gt;matplotlib&lt;/a&gt; all seem really nice. Matplotlib in particular seems very familiar to the plotting system in matlab. But since I’ve recently become very comfortable using Hadley’s ggplot2 ‘grammar of graphics’ type plotting system, I think &lt;a href=&quot;https://github.com/yhat/ggplot&quot;&gt;ggplot&lt;/a&gt; for python will suit me perfectly for starters!&lt;/p&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;…annnd that’s all I’ve got time for today, BUT I plan to keep updating this post with more info, as I come across it, that I think could be useful for somebody learning python for data science who is coming from a background of R and Matlab….so stay tuned!!&lt;/p&gt;

</content>
 </entry>
 
 <entry>
   <title>Is open science the way forward?</title>
   <link href="https://dpnewman.com/Is-open-science-the-way-forward/"/>
   <updated>2016-01-07T00:00:00+00:00</updated>
   <id>https://dpnewman.com/Is-open-science-the-way-forward</id>
   <content type="html">&lt;p&gt;I’ll be finishing my PhD over the next two months, exciting times! 
Since I’ve got a thesis to write, I’ll try to keep this post short (or at least written in a short amount of time!). 
I have to give another shout out to &lt;a href=&quot;https://opennessinitiative.org/&quot;&gt;The Peer Reviewers’ Openness Initiative (PRO)&lt;/a&gt; 
which is one of several excellent new initiatives in support of open science, and which has already received over &lt;a href=&quot;https://opennessinitiative.org/signatories/&quot;&gt;200 signatories&lt;/a&gt;.
Basically, &lt;a href=&quot;https://opennessinitiative.org/&quot;&gt;PRO&lt;/a&gt; outlines a mechanism whereby peer reviewers require access to data/analysis code/materials (or at least a reason from the authors why these things are not provided) before conducting a comprehensive review. This is designed to shift incentives and achieve the goal of creating the expectation of open science practices. 
The advantages that will come with mass uptake of open science practices, particularly in relationship to the PRO initiative, 
have recently been outlined in excellent blogs by researchers who are more accomplished and qualified than me (e.g. see &lt;a href=&quot;http://mindhacks.com/2015/12/19/the-peer-reviewers-openness-initiative/&quot;&gt;here&lt;/a&gt; , &lt;a href=&quot;https://candicemorey.org/?p=51&quot;&gt;here&lt;/a&gt; , &lt;a href=&quot;http://rolfzwaan.blogspot.nl/2015/12/stepping-in-as-reviewers.html&quot;&gt;here&lt;/a&gt; , &lt;a href=&quot;http://daniellakens.blogspot.co.uk/2015/12/can-you-explain-why-you-did-not-share.html?m=1&quot;&gt;here&lt;/a&gt; , &lt;a href=&quot;http://www.nicebread.de/putting-the-i-in-open-science-how-you-can-change-the-face-of-science/&quot;&gt;here&lt;/a&gt; and &lt;a href=&quot;http://blogs.biomedcentral.com/bmcseriesblog/2012/11/20/supporting-a-new-way-to-peer-review/&quot;&gt;here&lt;/a&gt;).&lt;/p&gt;

&lt;figure&gt;
    &lt;a href=&quot;/public/images/Blog-07-01-2016/pro_lock_wide-300x149.png&quot;&gt;
        &lt;img src=&quot;/public/images/Blog-07-01-2016/pro_lock_wide-300x149.png&quot; alt=&quot;&quot; /&gt;
    &lt;/a&gt;
&lt;figcaption&gt;
    
&lt;/figcaption&gt;
&lt;/figure&gt;

&lt;p&gt;So this post is not about rehashing their excellent points. Rather, I wish to add another perspective to this discussion, &lt;strong&gt;from the viewpoint of a very early career researcher&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Since I am currently considering post-PhD career paths (e.g. post-doc positions, industry positions), initiatives like PRO are important to me, because they give me a sense of hope that over time the incentives in academic science will change to encourage open science.   I’ve noticed over the last few years that the scientific publication process (at least in psychology, cognitive science, and neuroscience where I’ve been interested) is very slowly moving more in line with the ideals of open, transparent and reproducible research. I’m excited to get on board with this open science movement as much as possible early in my career - I’ve just submitted a final research paper to contribute towards my PhD, and I’ve chosen to submit it to a fully open access journal and make all of the related raw data, analysis scripts and paradigm code open source, so my results are reproducible. 
Hurrah!!! (I’m yet to submit a pre-registered report, but that’s next on my list of publication goals). 
&lt;strong&gt;So personally I am enthusiastic about open science.&lt;/strong&gt; And I wonder if this attitude is shared amongst my peers?&lt;/p&gt;

&lt;h2 id=&quot;are-early-career-researchers-enthusiastic-about-open-science&quot;&gt;Are early career researchers enthusiastic about open science?&lt;/h2&gt;
&lt;p&gt;I would love to see some valid data addressing this question.&lt;br /&gt;
Anecdotal evidence from my conversations with friends/colleagues who are at similar career stages, 
suggests that many early career researchers agree that open science is the way forward. 
When I’ve chatted about getting on board with the open science movement (e.g. &lt;strong&gt;by &lt;a href=&quot;https://opennessinitiative.org/signatories/&quot;&gt;signing PRO&lt;/a&gt; , sharing data/analysis scripts, pre-registering studies etc.&lt;/strong&gt;), 
my colleagues have unanimously agreed that it is a good idea and the best way forward for science, &lt;a href=&quot;http://whyopenresearch.org/&quot;&gt;for these reasons&lt;/a&gt; .&lt;/p&gt;

&lt;h2 id=&quot;so-whats-stopping-early-career-researchers-practicing-open-science&quot;&gt;So what’s stopping early career researchers practicing open science?&lt;/h2&gt;
&lt;p&gt;There may be many perceived barriers to implementing open science practises, which are worth addressing (see links in first paragraph). 
But here I just wanted to comment on one of these barriers which seems to be at the forefront of early career researchers’ minds- people have pointed out to me that currently the pressures and incentives set up in academic science, particularly for early career researchers, do not always encourage or reward the extra time taken to learn and implement open science practices. One main point of concern that I’ve heard is a potential loss in the number of papers you can produce given the extra time taken to learn/implement open science practices, since criteria for awards, post-doc positions, promotions, etc. are often heavily weighted on the of number of publications, and not necessarily on how ‘open’ the science is.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is this a valid concern?&lt;/strong&gt; I cannot comment on changes (or lack of changes) in the weighting of open science practices as a criteria for awards, post-doc positions, promotions, etc. across research institutes. 
Though Felix Schonbrodt has an excellent piece about changing hiring practices towards research transparency &lt;a href=&quot;http://www.nicebread.de/open-science-hiring-practices/&quot;&gt;here&lt;/a&gt;. I can however comment on the perceived potential loss in the number of papers you can produce given the extra time taken to learn/implement open science practices:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It definitely doesn’t take much extra time! HURRAY!&lt;/strong&gt; It can feel like a burden at first, but there are many online tools to help with open science 
(e.g. the &lt;a href=&quot;https://osf.io/&quot;&gt;OFS&lt;/a&gt;, or see this excellent post, &lt;a href=&quot;http://billmills.github.io/blog/full-stack/&quot;&gt;Full Stack Science; a guide to open science infrastructure&lt;/a&gt;, about using GitHub, Docker Hub, FigShare,Travis CI and Zenodo), and once you get started it’s faster, easier and more enjoyable than you may imagine. 
It took me 4 weeks part-time (20 hours per week, so a total of 80 hours) back at the end of 2014/start of 2015 to learn how to use 
&lt;a href=&quot;http://rmarkdown.rstudio.com/&quot;&gt;R markdown&lt;/a&gt; and &lt;a href=&quot;https://github.com/&quot;&gt;github&lt;/a&gt; properly to share analysis and paradigm code. I took my time to learn it thoroughly, and this was coming from a point of complete ignorance about 
&lt;a href=&quot;http://rmarkdown.rstudio.com/&quot;&gt;R markdown&lt;/a&gt; and &lt;a href=&quot;https://github.com/&quot;&gt;github&lt;/a&gt;. There are many free online options to help learn such skills, for example I learned free via these two courses &lt;a href=&quot;https://www.coursera.org/course/datascitoolbox&quot;&gt;The Data Scientist’s Toolbox&lt;/a&gt; and &lt;a href=&quot;https://www.coursera.org/learn/reproducible-research&quot;&gt;Reproducible Research&lt;/a&gt; .&lt;br /&gt;
And it took me about half an hour to work out that my university has an account with &lt;a href=&quot;http://figshare.com/&quot;&gt;figshare&lt;/a&gt; and then to upload my 24GB of raw data, and use &lt;a href=&quot;https://figshare.com/blog/figshare_new_features_Get_DOI_or_private_sharing_link/135&quot;&gt;figshare’s neat “Generate private link” function&lt;/a&gt; for reviewers to access my data which can then be manually switched to public when you need it to be (i.e. once your paper is accepted for publication).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;So a total of ~80 hours of my time to gain the skills to make my analysis reproducible and share raw data.&lt;/strong&gt; 
And now because I have these skills and enjoy implementing them as a usual part of my analysis pipeline, 
&lt;strong&gt;it will take me no extra time to make my data and analysis code open in the future.&lt;/strong&gt; In fact, this 80 hours of work actually saves me time in the long run, because of the advantages of reproducible code; it is easier to check for errors, if you comment it well you spend less time figuring out what you did later, etc. So you get back all of that 80 hours pretty quickly. &lt;strong&gt;In the long run, the initial time-investment pays recurring dividends.&lt;/strong&gt;
So regarding applying for awards, post-doc positions, etc. I’m &lt;em&gt;banking on the hope that the reputational gain from doing fully open science from now on, not to mention the time it saves me in the long run, 
will be worth more than a small one-off expenditure of ~80 hours that it took me to learn the necessary skills.&lt;/em&gt;&lt;br /&gt;
Furthermore, if I ever need to leave academia and &lt;a href=&quot;https://www.thedataincubator.com/&quot;&gt;pursue work in industry&lt;/a&gt; then having programing, or at least scripting, skills for data analysis along with git/github for version control and reproducible research makes you more valuable for &lt;a href=&quot;https://www.thedataincubator.com/&quot;&gt;data science/analytics jobs&lt;/a&gt; in industry, than only knowing how to analyse data with the old point-and-click style methods with software like SPSS etc.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;So from my viewpoint, as a very early career researcher, it definitely appears that open science is the way forward.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Open science FTW!&lt;/strong&gt;&lt;/p&gt;

&lt;hr /&gt;

</content>
 </entry>
 
 <entry>
   <title>Methods for Open Science/Reproducible Research</title>
   <link href="https://dpnewman.com/methods-for-open-sciencereproducible-research/"/>
   <updated>2014-11-26T00:00:00+00:00</updated>
   <id>https://dpnewman.com/methods-for-open-sciencereproducible-research</id>
   <content type="html">&lt;p&gt;I’m excited about a new initiative to promote data and analysis/paradigm code sharing, called the &lt;strong&gt;The Peer Reviewers Openness Initiative (PRO)&lt;/strong&gt; &lt;a href=&quot;https://opennessinitiative.org/&quot; target=&quot;_blank&quot;&gt;https://opennessinitiative.org//&lt;/a&gt;. Openness and transparency are core values of science. PRO outlines practical steps to improve open science, and I would like to see improved openness of code and data particularly in my areas of the behavioural sciences and cognitive neuroscience.&lt;/p&gt;

&lt;p&gt;Technology (the internet) has advanced to a point now where open access data and code for scientific publications is possible, however the uptake of open science practices has been slow for a number of reasons. For one thing, better incentives are needed for the transition to open science practices. But I think another key thing  holding our area of science back is that most researchers in our area don’t even know what things like &lt;strong&gt;&lt;a href=&quot;https://github.com/&quot; target=&quot;_blank&quot;&gt;GitHub&lt;/a&gt;&lt;/strong&gt;, &lt;strong&gt;&lt;a href=&quot;http://mozillascience.org/&quot; target=&quot;_blank&quot;&gt;Mozilla Science Lab&lt;/a&gt;&lt;/strong&gt;, and &lt;strong&gt;&lt;a href=&quot;http://figshare.com/&quot; target=&quot;_blank&quot;&gt;FigShare&lt;/a&gt;&lt;/strong&gt;, etc are (I didn’t until very recently).  Also at the outset it seems like a bit hassle to learn how to use these tools. Even though I’m now finding it is not too bad – &lt;strong&gt;I’m a beginner with these kinds of open science methods but there are some really good free short courses&lt;/strong&gt; from Johns Hopkins University to help learn how to use some of the tools for open science, I’ve provided links to 3 of these below:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;(1)&lt;/strong&gt; &lt;a href=&quot;https://www.coursera.org/course/datascitoolbox&quot; target=&quot;_blank&quot;&gt;https://www.coursera.org/course/datascitoolbox&lt;/a&gt; – a short course on tools for open science including how to use &lt;strong&gt;GitHub&lt;/strong&gt; to make all of your code available (and also use other’s code!)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;(2)&lt;/strong&gt; &lt;a href=&quot;https://www.coursera.org/course/rprog&quot; target=&quot;_blank&quot;&gt;https://www.coursera.org/course/rprog&lt;/a&gt;  – a short course to use** R** to script your whole analysis for a publication from start to finish to show others exactly what was done from raw data to results (any stats software that allows scripting will do, but R is better than SPSS, for example, since R can be downloaded for free).  I’ve just started making the switch from SPSS to R for my inferential statistics since R makes sharing analysis code easier. I will still likely do my signal processing in MATLAB though.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;(3)&lt;/strong&gt; &lt;a href=&quot;https://www.coursera.org/course/repdata&quot; target=&quot;_blank&quot;&gt;https://www.coursera.org/course/repdata&lt;/a&gt; – a short course on tools for** Reproducible Research** – e.g. combine GitHub, R pubs, FigShare to make both the data and code easily available and citable with a DOI&lt;/p&gt;

&lt;p&gt;I’m going through these courses in my spare time at the moment, and hope to make my next scientific publication fully open access, in line with the ideal of reproducible research, so that other scientists can verify and build upon my findings.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Open science FTW&lt;/strong&gt;!&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>My visit to the Cognitive Neuroscience Unit (CNU) at Deakin University</title>
   <link href="https://dpnewman.com/presentation-to-the-cognitive-neuroscience-unit-at-deakin-university/"/>
   <updated>2014-11-24T00:00:00+00:00</updated>
   <id>https://dpnewman.com/presentation-to-the-cognitive-neuroscience-unit-at-deakin-university</id>
   <content type="html">&lt;p&gt;This is my first blog post, and it is actually going to be a shout out to somebody else’s blog! A couple of weeks ago I went over to Deakin University and gave a short presentation to the Cognitive Neuroscience Unit (CNU) at Deakin. I presented some of the work we have been doing in our lab at Monash. The CNU blogged about my talk here:&lt;/p&gt;

&lt;p&gt;&lt;a title=&quot;Spatial attention asymmetries in disorders of attention&quot; href=&quot;http://cogexneuro.blogspot.com.au/2014/11/spatial-attention-asymmetries-in.html&quot; target=&quot;_blank&quot;&gt;http://cogexneuro.blogspot.com.au/2014/11/spatial-attention-asymmetries-in.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It was great to meet the members of the newly formed Deakin CNU, they have attracted an excellent team of researchers there lead by &lt;a title=&quot;Peter Enticott&quot; href=&quot;http://www.deakin.edu.au/profiles/peter-enticott&quot; target=&quot;_blank&quot;&gt;Peter Enticott&lt;/a&gt;. I was impressed by the enthusiasm for cognitive neuroscience shown by the members of the CNU. After the talk I was shown a tour around the labs at the Deakin CNU, and I was very impressed with their facilities for &lt;a href=&quot;http://en.wikipedia.org/wiki/Transcranial_magnetic_stimulation&quot; target=&quot;_blank&quot;&gt;transcranial magnetic stimulation&lt;/a&gt; (TMS).  I believe the CNU was only established this year (2014), but have already been productive and I’m expecting to see more exciting research from them in the years to come!&lt;/p&gt;
</content>
 </entry>
 

</feed>
