<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Pablo Andres Alvarado on Medium]]></title>
        <description><![CDATA[Stories by Pablo Andres Alvarado on Medium]]></description>
        <link>https://medium.com/@pablo-andreslv?source=rss-400d5d988880------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*BoRcWsKnGdFqo7jpZ4OdQA.jpeg</url>
            <title>Stories by Pablo Andres Alvarado on Medium</title>
            <link>https://medium.com/@pablo-andreslv?source=rss-400d5d988880------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 18:15:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pablo-andreslv/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[What is On-Demand Pay?]]></title>
            <link>https://pablo-andreslv.medium.com/what-is-on-demand-pay-ff4b78c2446c?source=rss-400d5d988880------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff4b78c2446c</guid>
            <category><![CDATA[wages]]></category>
            <category><![CDATA[payroll]]></category>
            <dc:creator><![CDATA[Pablo Andres Alvarado]]></dc:creator>
            <pubDate>Tue, 06 Apr 2021 18:32:26 GMT</pubDate>
            <atom:updated>2021-05-27T15:34:26.270Z</atom:updated>
            <content:encoded><![CDATA[<h3>Wages On-Demand, how does it work?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l21ma0RcVmy9oy0sFgXDsA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@neonbrand?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">NeONBRAND</a> on <a href="https://unsplash.com/s/photos/payday?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Wages On-Demand programs allow workers to gain access to wages before their company’s regular payday. These programs are great for helping employees make it from paycheck to paycheck, reducing company turnover rates, and increasing employee productivity.</p><p>These programs provide access to money that the employee has technically already earned; for that reason, Wages on Demand is not a loan and has no interest.</p><h3>Wages on Demand as an Employer Benefit</h3><p><strong>How does it work?</strong></p><p>Wages on Deman programs connect to the employer’s payroll and timekeeping systems to transforms hours worked into accessible funds that enable employees to receive pay advances. OrbisPay’s capital is used to advance the money, and the employer reimburses OrbisPay on payday. The employer releases the same amount of money on payday that they would if they didn’t have the program, and there are no additional costs for the company.</p><p><strong>The impact</strong></p><p>When OrbisPay is offered as part of a benefits package, on-demand pay can prove to be a helpful tool for employee retention, productivity, and higher job applicants.</p><p>Even employees who don’t need an early wage access service might see the value in it and feel comfortable because their employer offers such a practical benefit. The ability to get paid almost immediately after a shift can make a huge difference for someone going through a financial crisis.</p><p>Life doesn’t wait two weeks for payday.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff4b78c2446c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Orbispay - Kick start your financial Wellness.]]></title>
            <link>https://pablo-andreslv.medium.com/orbispay-kick-start-your-financial-wellness-ce2a7f7e9c6e?source=rss-400d5d988880------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce2a7f7e9c6e</guid>
            <category><![CDATA[fintech]]></category>
            <category><![CDATA[fintech-startups]]></category>
            <category><![CDATA[financial-wellness]]></category>
            <dc:creator><![CDATA[Pablo Andres Alvarado]]></dc:creator>
            <pubDate>Tue, 09 Mar 2021 21:03:04 GMT</pubDate>
            <atom:updated>2021-03-09T21:03:04.250Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t44xpVFz4wy0s3eBtun8KQ.jpeg" /></figure><p>We are celebrating Orbispay’s launch 🚀! This marks the start of our journey to be the leading financial services solution for American workers.</p><p>The excitement the Orbis team is currently feeling is not just because we are ready to deploy our services to millions of Americans that need us, but most importantly Orbispay is a startup underpinned by a social purpose. Using our cutting-edge technology and innovation we are on a mission to improve employees&#39; financial health.</p><h3>Financial Wellness as a Benefit</h3><p>Orbispay works hand in hand with Employers and HR departments to offer a complete suite of financial services. The no-cost benefit that makes a real, measurable impact. Today&#39;s cloud-based and API-driven technology platforms can enable us to provide three fundamental pillars in our offerings for financial wellness at low cost and with minimal integration challenges.</p><ul><li>Cash When You Want — On-demand Pay</li><li>Personal Financial Management — Money Experience</li><li>Cash When You Don&#39;t Have — Credit Services</li></ul><h3>Workers Want Faster Access to Wages — EWA</h3><p>Earn wage access (EWA) allows workers to gain access to their wages before payday. EWA programs are great for helping employees make it from paycheck to paycheck, a reality that impacts 78% of Americans nowadays.</p><p>A number of recent surveys make it clear that today’s workers need a pay cycle that adapts to their own necessities, and employers must adhere to these requests. Since EWA programs simply provide access to money that the employee has technically already earned, this product is not a loan, and therefore, there is no interest.</p><p>According to <a href="https://www.kronos.com/about-us/newsroom/death-traditional-pay-check-us-workers-want-faster-access-wages-finds-workforce-institute-kronos-survey#:~:text=More%20than%20half%20of%20all,than%20additional%20paid%20time%20off.&amp;text=Employees%20who%20can%20do%20their,hour%20pay%20period%20is%20outdated.">Kronos</a> survey: More than half of employees (57%) say they would work harder and stay longer at a company that offers on-demand pay, with no significant difference between hourly (58%) and salary (56%) employees.</p><h3>Money Experience</h3><p>One thing that big technology platforms showed us is the value of data. We all know how important analytics has become in the past few years for companies, but what about analytics in your own personal finances?</p><p>Orbispay tools leverage employees&#39; financial data so that they can understand their own financial lives and can use that data as a guide to making better decisions for their financial strength.</p><p>In the survey <a href="https://workforceinstitute.org/death-of-the-paycheck/">Death of the Paycheck?</a> 72% of employed American adults would <strong>prefer to work</strong> for an employer that offers financial planning and budgeting tools over one that does not.</p><h3>Access to fair credit</h3><p>Building a new <a href="https://www.orbispay.me/post/access-to-fair-credit-building-a-new-underwriting-model">underwriting model</a> is a challenge, but at Orbispay we believe that workers must be measured based on their “Ability to pay” instead of their “Willingness to pay” that FICO scores heavily relate to. Payroll data allowed us to provide affordable credit access to the people that were segregated for years from financial institutions. That&#39;s why employers play a big role in our mission to unlock these services.</p><p>If you are a company looking to learn more about Orbispay and how we can help your employees unlock financial wellness,<a href="https://meetings.hubspot.com/pablo-alvarado"> let&#39;s chat!</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce2a7f7e9c6e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Investing in Technological Revolutions]]></title>
            <link>https://pablo-andreslv.medium.com/investing-in-technological-revolutions-f43f647f5367?source=rss-400d5d988880------2</link>
            <guid isPermaLink="false">https://medium.com/p/f43f647f5367</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[investing]]></category>
            <category><![CDATA[finance]]></category>
            <dc:creator><![CDATA[Pablo Andres Alvarado]]></dc:creator>
            <pubDate>Mon, 15 Feb 2021 04:58:28 GMT</pubDate>
            <atom:updated>2021-02-15T04:58:28.118Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*twIDLMxlSP_5mqMRPXzTFw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@ikukevk?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Kevin Ku</a> on <a href="https://unsplash.com/s/photos/investment-tech?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>A technological revolution is a big deal. It modernizes all existing industries, increasing the full spectrum of economic productivity. It can be easy to get caught believing that today’s most successful industries and companies are unlike anything we’ve ever seen before. . However, within the social and technological paradigms of their time, past technological revolutions have resulted in unprecedented surges in productivity and growth. The relationship between these technological revolutions and financial capital has followed a consistent pattern.</p><p>This repeated pattern was summarized in a model proposed by Carlotta Perez in her book,<a href="https://www.amazon.com/Technological-Revolutions-Financial-Capital-Dynamics/dp/1843763311"> Technological Revolutions, and Financial Capital.</a> The model states that first, there is an eruption of the revolution resulting from incremental advances and innovations that culminate in technology with the capacity to increase the economy’s productivity and the financial capital to support it. The eruption is then followed by two or three decades of the new technology being installed in the economy.</p><p>The installation phase of the new technology can be very turbulent, due to the fact that the newly emerged technology divides the economy into the old and the new, creating social and economic divisions, regulatory turmoil, and wealth inequality. The installation period has historically been accompanied by what Perez calls a “<em>major technology bubble” </em>centered on the new breakthrough technologies and spurred by the extraordinary profits produced by them. The major technology bubble is, as with any bubble followed by a collapse. The collapse leads to a recomposition of the regulatory framework that sets the conditions for the final deployment period of this new technology. The final phase consists of more organic growth in financial assets that lasts until the limits to productivity and growth from the technology are reached, setting the stage for the eruption and financing of the next technological revolution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*pkslpiGIsY5Nqy93sKPpJw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@martinceralde?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Martin Ceralde</a> on <a href="https://unsplash.com/s/photos/wall-street?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>The major technology bubble tends to happen midway through the process of assimilation of each technological revolution, affecting primarily the companies engaged in those technologies. This bubble-like behavior of technological revolutions ultimately results in lower returns for investors. These bubbles are empirical facts in the historical data that cannot be ignored when talking about investing in new technological revolutions. Examples of these major technology bubble trends include; The surge of development and canal mania which was followed by a canal bust. Railway mania which was followed by a railway bust. The infrastructure boom of the late 80’s followed by several busts, the roaring ’20s and in the Great Depression, and lastly, the surge of IPO’s in the Internet bubble ended in the tech crash.</p><p>The concept of a bubble used by Perez is convenient and easy to understand. Investors tend to get a frenzy about the potential of high profits from the new technology.</p><p>In the 2004 paper,<a href="http://pietroveronesi.org/research/bubble14www.pdf"> Was there a Nasdaq bubble in late 1990?</a> Lubos Pastor and Pietro Veronesi prove mathematically that higher uncertainty regarding t the average profitability of the companies creating new technologies leads to higher prices, all else equal. When an exciting new technology company is being tested, there is a huge range of potential outcomes. Could the company be the next Microsoft? Perhaps or perhaps not.</p><p>We should always keep in mind what a stock represents.</p><blockquote><em>A stock is a claim on a company’s future profits. Investment returns do not come from a company’s growth. They come from the relationship between a company’s future profits and how much you, the investor, paid for those profits.</em></blockquote><p>Paying a higher price should lead to lower realized returns, all else equal. This is exactly what historical records show in the fifth edition of Jeremy Siegel’s book,<a href="https://www.amazon.com/Stocks-Long-Run-Definitive-Investment/dp/0071800514"> Stocks for the Long Run</a>, Siegel offers the example of the S&amp;P 500 Index.</p><p>Bets on new industries or against declining ones have historically failed to pay off. What about the next technological revolution? Does it make sense to look for the next Apple, Amazon, or Google before their prices rise? This notion is more akin to playing the lottery than many people realize. Evidence from IPO’s and venture capital explains why. Stock returns in general exhibit positive skewness.</p><p>Most stocks perform poorly, and a relatively small number of stocks perform exceptionally well. The positive skewness I IPO’s, which tend to behave like small-cap growth stocks and venture capital, is even more pronounced. The vast majority of small-cap growth stocks produce poor returns, while a few produce large positive returns. Almost two-thirds of venture capital financings lose money, while a tiny number of them produce huge returns. The chances of picking winners before the fact are not in your favor.</p><p>Investing in technological revolutions is one of the least successful strategies in investing. Whether we interpret the empirical reality through the lens of frenzied, irrational investors paying too much for expected growth or rational investors assessing highly uncertain future payoffs, the historical record remains the same. Counterintuitively, investing in declining industries or more generally, companies with low prices have produced reliably better outcomes. But every time a new technology or industry creates new opportunities for financial capital, investors flock to it with seeming disregard for the historical record and the theory predicting similar outcomes in the future.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f43f647f5367" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Leveraging Predictive Analytics for Banking: The why and how.]]></title>
            <link>https://pablo-andreslv.medium.com/leveraging-predictive-analytics-for-banking-the-why-and-how-8a17225aab7f?source=rss-400d5d988880------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a17225aab7f</guid>
            <category><![CDATA[banking]]></category>
            <category><![CDATA[predictive-analytics]]></category>
            <dc:creator><![CDATA[Pablo Andres Alvarado]]></dc:creator>
            <pubDate>Wed, 01 Jul 2020 11:38:58 GMT</pubDate>
            <atom:updated>2020-07-01T11:38:58.783Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*tudgnhrJ9NZoyQ7D7wdBGw.png" /></figure><p>Predictive analytics can help banks to use the existing data to identify trends for more accurate planning, forecasting, and decision making. By using predictive analytics organizations can predict outcomes, identify untapped opportunities, expose hidden risks, anticipate the future, but most importantly act <em>quickly</em>.</p><p>The banking sector struggles with two contradicting challenges. First, it needs to adopt the latest technologies to stay competitive and fight fraud. Second, it still has to hold on to legacy systems, frequently those on-premises, that offer stability and a certain degree of protection.</p><p>Clients are also putting more pressure on financial service providers, as they request more <em>personalized solutions</em>, easy-to-access products, and overall better <em>customer experience</em>. With this ongoing disparity between client demands and banking goals, predictive analytics can help at numerous touchpoints and streamline more than a few operations.</p><p>There are several routine processes that can be improved or enhanced using predictive analytics, including:</p><ol><li>Customer acquisition: Predictive Analytics help in the process of optimized targeting, making it less demanding for banks to instantly recognize the high-esteem client fragments most likely to react.</li><li>Customer retention: Loyal customers must be rewarded, and customer attribution must be reduced. Since banks have a large customer base, most of the time it is too late to retain a customer, and they lose their track. Predictive analytics helps in identifying individuals who wish to switch the bank and the reason behind it.</li><li>Buying behavior of customers: Banks can use predictive analytics to segment the customers and replace them with individual messages tailored to reach the customer’s profile.</li><li>Collections: Banks have all sorts of customers, some who pay, and one who lags, keeping a record of each is difficult. Banks can achieve a better comprehension of their portfolio risk and along these lines enhance the productiveness of the collection process. Machine learning can help institutions to distinguish the clients who might be in danger in the future and what moves banks should make to accomplish positive outcomes.</li><li>Cash Planning: Predictive analytics enable banks to track the past usage patterns and daily coordination between the in-and out-payments at their branches, thus foreseeing the future needs of their potential clients.</li><li>Marketing Optimization: Helping marketers to plan marketing campaigns and programs is really valuable for banks. Since financial services are hard to differentiate by providers, marketing efforts get more laborious. Predictive analytics can help with this task by identifying those clients who are most eager to buy a product. By providing all the details about the customers’ behavior and attitude, analytics helps in delivering the right message at the right time to the right individual.</li><li>Customer Lifetime Value: Every organization is interested in identifying clients with a high potential of becoming loyal. Companies are more than happy to offer these clients discounts and special offers, as the cost of acquiring a new client exceeds that of promotions. Predictive analytics looks at the lifestyles, spending patterns, as well as other variables and computes the probability of a client to buy products other than the ones they initially signed up for.</li><li>Feedback: Feedback is essential for an organization’s growth. Predictive analytics enables banks and financial firms to keep up their association with the clients by giving them the correct services and products for their needs and according to individual preferences in the most arranged manner.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a17225aab7f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Combining Predictive Analytics with BI]]></title>
            <link>https://pablo-andreslv.medium.com/combining-predictive-analytics-with-bi-6d82fe8cf822?source=rss-400d5d988880------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d82fe8cf822</guid>
            <category><![CDATA[automl]]></category>
            <category><![CDATA[predictive-analytics]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Pablo Andres Alvarado]]></dc:creator>
            <pubDate>Wed, 01 Jul 2020 11:36:30 GMT</pubDate>
            <atom:updated>2020-07-01T11:37:29.761Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G_noFDvmffcPqB5_JjdnoA.png" /></figure><p>Predictive analytics is a category of data analytics aimed at making predictions about future outcomes, based on historical data and analytics techniques such as statistical modeling and machine learning. The science of predictive analytics can generate future insights with a significant degree of precision. With the help of sophisticated predictive analytics tools and models, any organization can now use past and current data to reliably forecast trends and behaviors into the future.</p><h3>The Scenario</h3><p>As an auto body shop, the company had an interest in broadening its customer base and winning market share from competitors in the US. Optimizing customer retention is not the only goal, the shop wants to optimize other aspects such as inventory management, marketing attribution, and customer satisfaction.</p><h3>The Predicament</h3><p>With a large list of customers, it is simply not possible to “guess” certain behaviors such as; which of these customers might leave? What are they planning to buy next? or what are the most effective channels for advertisement? With reports, charts, and traditional statistical analyses, the best they could do was glean insight for general reasons. Without knowing customer-by-customer how those trends applied, they were unable to target effectively.</p><h3>The Solution</h3><p>Using machine learning to automatically determine the future behaviors of a customer who will probably churn, buy, or consume an ad. AI algorithms have distinct advantages over conventional analyses for these kinds of tasks. Unlike statistical methods, machine learning does not require any guessing at which variables will be predictive of behaviors.</p><h3>Combining BI with AI</h3><p>Let me clarify this first, the “intelligence” in AI refers to computer intelligence, while BI refers to the more intelligent business decision-making that data analysis and visualization can yield. Utilizing AI we move from descriptive and diagnostic to predictive and prescriptive.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/0*fSUGD1MHxwGNjlGX" /></figure><h3>Domo + Squark</h3><p>Domo is one of our BI connectors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iulTvIKPB_xU8YKz" /></figure><p>For this scenario, I followed these simple steps to obtain my predictions using <em>Squark</em>:</p><ol><li>Connected and pulled data from the cloud server of the Auto Body Shop and uploaded the data to <em>Squark</em> (it’s as easy as drag and drop). This data set I considered my “<em>training file</em>”.</li><li>Selected the dependent variable (Target). What do I want to predict?</li><li>Selected the independent variables (Predictors).</li><li>Uploaded my<em> “production file”</em> (this file contains all the customers to predict).</li><li>Deployed, <em>Squark’s</em> codless solution tested hundreds of possible models and algorithms to find the most accurate one for my application using an Automated Machine Learning process. (AutoML)</li><li>Predictions are ready to be used in Domo!</li></ol><p>Once I got my predictions, I built my DataViz dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ubQEy-hd996Qnogu" /></figure><h3>Understanding my DataViz Dashboard</h3><blockquote>DataViz is the graphic representation of data. It involves producing images that communicate relationships among the represented data to viewers of the dashboards.</blockquote><p>A dashboard is an information management tool that visually tracks, analyzes, and displays KPI’s, metrics, and key data points to monitor the health of a business, department, or specific process. The big difference is that usually dashboards are fueled by business questions but when I combined with AI and predictive analytics I am fueling my dashboard by <em>answers.</em></p><h3>Churn Analysis.</h3><p>The importance of predicting churn is not just to find which customers will stop purchasing products but, to also understand why? Witch variables of my customers had the biggest weight regarding the decision to leave my company?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SKo5JRbBfRn-g-F6" /></figure><ul><li>Churn Prediction: How many clients the body shop is going to lose? (binary classification) In this case, 23% of my leads.</li><li>Variable of Importance for Churn: In this section, thanks to Machine Learning I am going to understand why. Why my customers are going to leave the body shop? What are the variables with the highest importance in my prediction? In this particular case, we can see that Customer Satisfaction is highly influential. Thanks to Squark capability for Natural Language Processing (NLP) I found that based on the reviews section of the web, most of the customers were unhappy.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/0*cRxh-yzTXKLsq_XC" /></figure><ul><li>Churn by State: Where are these customers located in the US? Now that I know California and New York are the states with a higher possible churn rate, I can run specific actions to prevent it. Actions could include: Special offers/coupons in these states? Better training for my sales reps to increase customer satisfaction? Are my managers in these locations not performing well?</li><li>Customer LTV: Since I now know how many, why, and where my customer might churn, another great question to answers is how much revenue the body shop is going to lose? Calculating Customer Lifetime Value (Regression model) is going to tell me how much each customer is worth to the organization and help me understand why I cannot let them go.</li></ul><h3>Marketing Analysis</h3><p>Predicting marketing efforts is essential nowadays. In a world where businesses have unlimited needs but limited resources, the allocation of resources is critical for all companies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CyT_YhDO1aVIxf6h" /></figure><ul><li>Product Demand: Predicting which product my customer is going to purchase (multi-class classification) can help organizations in multiple ways. Since you predict what X number of customers is going to buy, inventory optimization is the first aspect. How many products should I order from my supplier a year? How many units the body shop has to send to each location across the US monthly? What is my sales forecast going to look like for a determinate period of time?</li><li>Cross-sell/up optimization is another key to effective marketing. You’re 60–70% more likely to sell to an existing customer, compared to the 5–20% likelihood of selling to a new prospect. Predicting which products a customer is more likely to buy can help marketing teams. For example: If the body shop found out that X number of customers who purchase tires are also likely to buy cleaning products, now I can run email marketing campaigns with coupons/offers that encourage them to buy these products in a bundle.</li><li>Marketing Attribution Report: Marketing attribution is a reporting strategy that allows us to see the impact that marketers made on a purchase or sale. Knowing where my clients are coming from, helps marketing departments allocate resources more effectively. In the case of the body shop, we can see that social media has the biggest portion of the marketing attribution, so I can make an informed decision to allocate more resources to social media (more ads, more content marketing in a specific channel, etc) and at the same time, I can analyze why other channels are not working, in this case why cold calling and blogging are not relevant in the purchase desition? Is my content not good enough? Should I stop spending resources on these channels since I know the low impact on my customers?</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sdl04w2Ublr3avOG" /></figure><ul><li>Social Media Interactions: Finally, since the body shop understood that social media is the best channel, now we can predict how successful our efforts will be on this channel (Regression model). How many interactions are my ad’s going to have? How many people are we going to reach on this channel? Is the ad is going to be successful? if no, it is worth it to do it?</li></ul><p>Squark is a tool designed to fill the technical gap for average business users. Without statistical and coding barriers, we can democratize access to AI and Machine Learning for all types of companies and professionals. Now it is possible for companies to generate faster results without an army of data scientists!</p><p><strong>Actions beat Insights!</strong></p><p>Want to know more about <a href="http://www.squarkai.com/">Squark</a>? Feel free to <a href="https://calendly.com/pablo-alvarado">contact me</a>, I’d be happy to provide you with a demo account to get you started.</p><p>#predictiveanalytics #AI #AutoML</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d82fe8cf822" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Driving Sales Using Data Analytics Dashboards]]></title>
            <link>https://pablo-andreslv.medium.com/driving-sales-using-data-analytics-dashboards-7deb5baf76?source=rss-400d5d988880------2</link>
            <guid isPermaLink="false">https://medium.com/p/7deb5baf76</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[dashboard]]></category>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[Pablo Andres Alvarado]]></dc:creator>
            <pubDate>Tue, 31 Mar 2020 17:02:18 GMT</pubDate>
            <atom:updated>2020-03-31T17:02:18.442Z</atom:updated>
            <content:encoded><![CDATA[<p>As a successful modern enterprise, you’ll be using data-driven insights to understand your customers’ needs in a rapidly evolving world, enabling you to proactively evolve your products alongside those needs.</p><p><strong>Why is it so important for a company to be data-centric?</strong></p><p>When it comes to measuring success, a company might first look to its customer base, sales figures or bottom-line results and these are all important indicators of growth. But the picture they convey is far from complete. Do these figures explain who and when the customer is buying your product? Do they show you how much loyalty there is in your market? Do they tell you what you need to do to stay competitive in the future?</p><p>Turning data analysis insights into action</p><p>Data analytics helps you understand your customers’ behavior and predict how that behavior might change in the future. It can help you recognize why customers leave, make necessary improvements to your product or services. The data-centric journey is made up of four stages:</p><ul><li>Integrate and understand</li><li>Analyze and discover</li><li>Act and optimize</li><li>Execute and deliver</li></ul><p>So, how can you make sure you’re covering all these stages?</p><p><strong>Identify the problem:</strong> Like most research, you need to start with a question. It’s not enough to know what data you want to gather, you also need to know what you’re going to do with the data and insights once you have them. What problem is your company looking to solve? How is this data going to solve it? This approach helps to focus your analysis and tailor your research to ensure the resulting data is both relevant and applicable.</p><p><strong>Get the metrics right:</strong> In order to apply insights to your business in a practical way, you need to be using the right metrics. Many companies direct their entire focus towards descriptive analytics (what happened) and don’t include enough diagnostic analytics (why and how it happened) or predictive analytics (what will happen next). It’s only by amalgamating the three different types of data that you can get a full picture which will help you fix problems and improve your business in the future.</p><p><strong>Have the right systems in place:</strong><em> </em>The data will potentially be used to influence top-line decisions in your business, so you need to make sure it’s reliable. Many companies don’t have enough internal expertise to assess whether their data is good enough to solve their problems and give a truly meaningful analysis. By putting the right systems and infrastructure in place from the start, you can yield data that are useful, accurate, and easy to understand.</p><p><strong>Use experts:<em> </em></strong>You need well-organized teams and skilled data experts to bring your data out of raw spreadsheets and map it to the market in a useful way. At all levels of your business, you need employees who can use data appropriately and have a strong understanding of its scope –as well as its limitations– so you can gain useful, actionable insights from the data.</p><h3>Visualizing All Data, At A Glance</h3><p>The function of a dashboard is to provide real-time results by aggregating and extracting value from all the data you collect, otherwise known as your key performance indicators (KPIs). It simplifies your data into more manageable chunks of visual information that allows you to see what you are doing right and where you need to improve. When utilized properly, dashboards can be used to help you make informed decisions that dramatically impact business performance.</p><p>While there are infinite ways to customize a dashboard and make it your own, all dashboards fall into one of three main categories:</p><ul><li><strong>Operational Dashboards</strong> — This is the most common dashboard type, with metrics updating in real-time showing data related to daily operations. The main purpose of an operational dashboard is to provide a comprehensive snapshot of performance, which means that you should incorporate a large amount of detail without using too many drill-downs.</li><li><strong>Analytical Dashboards </strong>— Use data from the past to identify trends that can influence future decision-making. Users should be able to interact with the data on an analytical dashboard, so many of them incorporate pivot tables and drill-downs. The ideal audience for viewing analytical dashboards are database analysts, as they typically require a level of understanding that a typical business user may not possess.</li><li><strong>Strategic Dashboards</strong> — Track performance in relation to your key performance indicators, to better align actions with strategy. If you are looking for a dashboard to share with your whole organization, consider creating a strategic dashboard. Transparency of data can lead to an increase in motivation and other unexpected benefits.</li></ul><h3>Benefits &amp; Uses of A Dashboard</h3><p>A dashboard has many functions, so there are a number of benefits of dashboard reporting. Here are the top five features and benefits of a dashboard:</p><ol><li><strong>Data transparency </strong>— Data is any company’s most important asset. However, it doesn’t do much good if no one can understand or access it. A well-designed dashboard provides on-demand access to all of your most important metrics.</li><li><strong>Access to data </strong>— As the name implies, a dashboard gathers multiple data sources, including Excel, into a single interface. That means you can immediately see a detailed overview of your business in one quick glance.</li><li><strong>Better decision making</strong> — Dashboards provide an unbiased view not only of the company’s performance overall, but each department as well. If each department is able to access the dashboard, it can offer a foundation for further dialogue and great decision making. Business dashboards provide a good starting point for these decisions, which is one of the biggest advantages of dashboards.</li><li><strong>Accountability</strong> — While it’s always nice to see what you’re doing right, you also need to see and understand what you’re doing wrong in order to increase your performance. Business dashboards can show you exactly where your trouble areas are and arm you with the information you need to improve.</li><li><strong>Interactivity</strong> — Some of the best dashboards provide a dynamic experience. Rather than providing static information, you and your users can filter data, interact with charts to see changes over time, and even allow for an ad-hoc component for on-the-fly. That means you can get as much or as little detail on specific metrics as you want.</li></ol><p>I tried to put all together these five futures in just one sales <a href="https://public.tableau.com/shared/P6R9T78QJ?:display_count=y&amp;:origin=viz_share_link">dashboard</a> using <a href="https://www.tableau.com/">Tableau.</a> Take a look!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FeuWh2jA_KB5HfWViP5ioA.jpeg" /><figcaption>Sales Dashboard-Pablo Alvarado</figcaption></figure><p><a href="https://public.tableau.com/views/SalesKeyPerformanceIndicators/Story1?:display_count=y&amp;publish=yes&amp;:origin=viz_share_link">Tableau Public</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7deb5baf76" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Portfolio Optimization with Python.]]></title>
            <link>https://pablo-andreslv.medium.com/portfolio-optimization-with-python-5e83ac92ab56?source=rss-400d5d988880------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e83ac92ab56</guid>
            <dc:creator><![CDATA[Pablo Andres Alvarado]]></dc:creator>
            <pubDate>Sat, 28 Mar 2020 04:03:36 GMT</pubDate>
            <atom:updated>2020-03-28T04:03:36.716Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/698/1*sElMvFAbjMaE_mwocE1dzA.png" /></figure><p><strong>Portfolio Optimization with Python.</strong></p><p>You might already know portfolio optimization by another name, such as ‘optimal asset allocation’ or ‘modern portfolio theory’. But no matter the name, the idea and objective are the same. You want to build your portfolio to yield the maximum possible return while maintaining the amount of risk you’re willing to carry.</p><p>This means creating a balanced portfolio, which means you want to spread your investment capital across a variety of assets. Then, you’ll balance those assets in order to attain your desired risk-reward outcome.</p><p>Portfolio optimization should result in what investors call an ‘efficient portfolio’. This means it’s generating the highest possible return at your established risk tolerance.</p><p>I decided to create a Python code for this purpose, this code perform multiple analytics to the portfolio such as Weight optimization, Risk Parity, Sharpe Ratio, Treynor Ratio, and Sortino Ratio.</p><p>Let’s jump into the code!</p><p>First, we have to import some packages that we are going to use for this project, principally pandas, bumpy for the analytics and plotly for the graphs.</p><pre>#let’s <br>import pandas as pd<br>import numpy as np<br>from pandas_datareader.data import DataReader<br>import pandas_datareader.data as web<br>from datetime import date<br>import plotly.graph_objects as go<br>import statsmodels.api as sm<br>from scipy.stats import norm<br>import plotly.io as pio<br>import plotly.express as px<br>import time <br>from tqdm import tqdm<br>import winsound<br>from scipy.optimize import minimize<br>from plotly.subplots import make_subplots</pre><p>Now we are going to access the data from yahoo for our tickers. At the same time, we are going to compute individual returns, the average return of the portfolio and the volatility.</p><pre>TOLERANCE = 1e-10</pre><pre>pio.renderers.default = &quot;browser&quot;<br>def c():<br>    for i in tqdm(range(10)):<br>        time.sleep(3)</pre><pre>c()<br>#set the function for returns, mean and volatility<br>tickers=[&#39;KLAC&#39;,&#39;CINF&#39;,&#39;TGT&#39;,&#39;PEP&#39;,&#39;ZTS&#39;,&#39;AIZ&#39;,&#39;LMT&#39;,&#39;SO&#39;,&#39;MDT&#39;,&#39;HD&#39;]<br>wts=[0.125,0.119,0.117,0.106,0.1,0.098,0.096,0.094,0.084,0.061]</pre><pre>start_date1=date(2019,1,1)<br>end_date1=date(2020,1,1)<br>initial_investment=1000000<br>def get_stock_quote(tickers):<br>    c()<br>    start=start_date1<br>    end=end_date1<br>    source=&#39;yahoo&#39;<br>    price=DataReader(tickers,source,start,end)<br>    df=pd.DataFrame(price)<br>    return df</pre><pre>def get_returns():<br>    c()<br>    adj_close=get_stock_quote(tickers)[&#39;Adj Close&#39;]<br>    rets=adj_close.pct_change()<br>    rets=rets.dropna()<br>    rets=pd.DataFrame(rets)<br>    return rets</pre><pre>def get_mean():<br>    c()<br>    returns=get_returns()<br>    return returns.mean()<br>def get_std():<br>    c()<br>    returns=get_returns()<br>    return returns.std()</pre><p>Then, we are going to obtain the benchmark data and the daily risk-free ratio(T-Bonds). This data is going to help us later to perform the optimization for our portfolio.</p><pre>#get the data for risk free rate and benchmark — we will use that later<br>def get_risk_free_rate_daily():<br> c()<br> start=start_date1<br> end=end_date1<br> source_two=’fred’<br> code=’DGS10&#39;<br> rfr=DataReader(code,source_two,start,end)<br> rfr=rfr.dropna()<br> rfr=rfr.mean()/100<br> d_rfr=rfr/252<br> return np.float64(d_rfr)</pre><pre>#this function is for regression<br>def get_benchmark():<br> c()<br> start=start_date1<br> end=end_date1<br> source=’yahoo’<br> bench=[‘^GSPC’]<br> adj_close=DataReader(bench,source,start,end)[‘Adj Close’]<br> bench_returns=adj_close.pct_change()<br> bench_returns=bench_returns.dropna()<br> return bench_returns</pre><pre>#this function is for sortino<br>def get_benchmark_average_daily_return():<br> c()<br> rets=get_benchmark()<br> mean=rets.mean()<br> return mean</pre><p>We are going to finalize the portfolio analysis running correlation matrix.</p><p>To start the optimization, we are going to start our imulation with 100000 portfolios.</p><pre>#figure out what is the correlation and covariance of assets<br>def get_correlation():<br> c()<br> returns=get_returns()<br> correlation=returns.corr()<br> return correlation<br>def get_covariance():<br> c()<br> returns=get_returns()<br> covariance=returns.cov()<br> return covariance</pre><pre>#let the fun begin<br>def simulate_portfolios():<br> c()<br> port_simulations=100000<br> cov_matrix=get_covariance()<br> mean_returns=get_mean()<br> port_returns=[]<br> port_volatility=[]<br> stock_weights=[]<br> sharpe_ratio=[]<br> d_rfr=get_risk_free_rate_daily()<br> num_assets=len(tickers)<br> for single_port in range(port_simulations):<br> weights=np.random.random(num_assets)<br> weights/=np.sum(weights)<br> returns=np.dot(weights,mean_returns)<br> volatility=np.sqrt(np.dot(weights.T,np.dot(cov_matrix,weights)))<br> sharpe=float((returns-d_rfr)/volatility)<br> port_returns.append(returns)<br> port_volatility.append(volatility)<br> stock_weights.append(weights)<br> sharpe_ratio.append(sharpe)<br> portfolio={‘Returns’:port_returns,<br> ‘Volatility’:port_volatility,<br> ‘Sharpe Ratio’:sharpe_ratio}<br> for counter,symbol in enumerate(tickers):<br> portfolio[symbol+’ Weight’]=[Weight[counter] for Weight in stock_weights]<br> df=pd.DataFrame(portfolio)<br> return df</pre><p>Now its time to optimize our Sharpe Ratio from our efficient frontier. At the same time, we are calculating the risk parity of the investment.</p><pre>def get_best_sharpe_port():<br> c()<br> all_portfolios=pd.DataFrame(simulate_portfolios())<br> max_sharpe_port = all_portfolios.iloc[all_portfolios[‘Sharpe Ratio’].idxmax()]<br> return max_sharpe_port<br>#risk parity<br>TOLERANCE = 1e-10<br>def _allocation_risk(weights, covariances):<br> portfolio_risk = np.sqrt((weights * covariances * weights.T))[0, 0]<br> return portfolio_risk<br>def _assets_risk_contribution_to_allocation_risk(weights, covariances):<br> portfolio_risk = _allocation_risk(weights, covariances)<br> assets_risk_contribution = np.multiply(weights.T, covariances * weights.T) \<br> / portfolio_risk<br> return assets_risk_contribution</pre><pre>def _risk_budget_objective_error(weights, args):<br> covariances = args[0]<br> assets_risk_budget = args[1]<br> weights = np.matrix(weights)<br> portfolio_risk = _allocation_risk(weights, covariances)<br> assets_risk_contribution = \<br> _assets_risk_contribution_to_allocation_risk(weights, covariances)<br> assets_risk_target = \<br> np.asmatrix(np.multiply(portfolio_risk, assets_risk_budget))<br> error = \<br> sum(np.square(assets_risk_contribution — assets_risk_target.T))[0, 0]<br> return error</pre><pre>def _get_risk_parity_weights(covariances, assets_risk_budget, initial_weights):<br> constraints = ({‘type’: ‘eq’, ‘fun’: lambda x: np.sum(x) — 1.0},<br> {‘type’: ‘ineq’, ‘fun’: lambda x: x})<br> optimize_result = minimize(fun=_risk_budget_objective_error,<br> x0=initial_weights,<br> args=[covariances, assets_risk_budget],<br> method=’SLSQP’,<br> constraints=constraints,<br> tol=TOLERANCE,<br> options={‘disp’: False})<br> weights = optimize_result.x<br> return weights</pre><pre>yahoo_tickers=tickers<br>def get_weights(yahoo_tickers,<br> start_date=start_date1,<br> end_date=end_date1):<br> prices = pd.DataFrame([web.DataReader(t,<br> ‘yahoo’,<br> start_date,<br> end_date).loc[:, ‘Adj Close’]<br> for t in yahoo_tickers],<br> index=yahoo_tickers).T.asfreq(‘B’).ffill()<br> covariances = 52.0 * \<br> prices.asfreq(‘W-FRI’).pct_change().iloc[1:, :].cov().values<br> assets_risk_budget = [1 / prices.shape[1]] * prices.shape[1]<br> init_weights = [1 / prices.shape[1]] * prices.shape[1]<br> weights = \<br> _get_risk_parity_weights(covariances, assets_risk_budget, init_weights)<br> weights = pd.Series(weights, index=prices.columns, name=’weight’)<br> return weights</pre><p>Finally, we get the optimize returns and weights for our optimized portfolio. In this part of the code, we are going to calculate Sharpe Ratio, Sortino Ratio with the downside, and Treynor Ratio.</p><pre>def get_portfolio_returns():<br> c()<br> returns=get_returns()<br> ap=pd.DataFrame(simulate_portfolios())<br> ap=ap.sort_values(by=’Sharpe Ratio’,ascending=False)<br> w=ap[:1]<br> w=w.drop(columns=[‘Returns’,’Volatility’,’Sharpe Ratio’])<br> w=np.array(w)<br> weighted_returns=(w*returns)<br> port_ret=weighted_returns.sum(axis=1)<br> return port_ret<br>#just a work with portfolio<br>def get_mean_portfolio_returns():<br> c()<br> mu=get_portfolio_returns().mean()<br> return mu<br>def get_std_of_portfolio_returns():<br> c()<br> sigma=get_portfolio_returns().std()<br> return sigma</pre><pre>def get_returns_bp():<br> c()<br> ret_data=get_returns()<br> weighted_returns=(wts*ret_data)<br> port_ret=weighted_returns.sum(axis=1)<br> return port_ret</pre><pre>def get_mean_bp_returns():<br> c()<br> mu=get_returns_bp().mean()<br> return mu</pre><pre>def get_std_of_bp():<br> c()<br> std=get_returns_bp().std()<br> return std</pre><pre>def get_sharpe_ratio_for_bp():<br> c()<br> d_rfr=get_risk_free_rate_daily()<br> returns_bp=get_returns_bp()<br> mean=returns_bp.mean()<br> std=returns_bp.std()<br> sharpe_ratio=((mean-d_rfr)/std)<br> return sharpe_ratio</pre><pre>def get_treynor_ratio_for_bp():<br> regression_tab=pd.DataFrame(get_benchmark())<br> regression_tab[‘Portfolio Returns’]=get_returns_bp()<br> x=regression_tab[‘^GSPC’]<br> y=regression_tab[‘Portfolio Returns’]<br> model = sm.OLS(x,y).fit()<br> beta=model.params[0]<br> d_risk_free=get_risk_free_rate_daily()<br> treynor_ratio=(y.mean()-d_risk_free)/beta<br> return treynor_ratio</pre><pre>def get_sortino_for_bp():<br> c()<br> d_rfr=get_risk_free_rate_daily()<br> tab=pd.DataFrame(get_benchmark())<br> tab[‘Portfolio Returns’]=get_returns_bp()<br> tab[‘Portfolio Drawdown Risk’]=np.where(tab[‘Portfolio Returns’]&lt;tab[‘^GSPC’].mean(),<br> tab[‘Portfolio Returns’],<br> tab[‘^GSPC’].mean())<br> downside_risk=tab[‘Portfolio Drawdown Risk’].std()<br> sortino_ratio=(((tab[‘Portfolio Returns’].mean())-d_rfr)/downside_risk)<br> return sortino_ratio</pre><p>For the dashboard, we are going to use the plotly package. I decided to use plotly because I love the 3D graphs!</p><pre>#initial settings to get the summary. No worries, it is super slow.<br>sharpe_ratio = round(get_sharpe_ratio(),4)<br>sharpe_ratio_rp=round(get_sharpe_ratio_rp(),4)<br>sharpe_ratio_bp=round(get_sharpe_ratio_for_bp(),4)<br>treynor_ratio=round(get_treynor_ratio(),4)<br>treynor_ratio_rp=round(get_treynor_for_rp_port(),4)<br>treynor_ratio_bp=round(get_treynor_ratio_for_bp(),4)<br>sortino_ratio=round(get_sortino(),4)<br>sortino_ratio_rp=round(get_sortino_for_rpp(),4)<br>sortino_ratio_bp=round(get_sortino_for_bp(),4)<br>var=pd.DataFrame(calculate_value_at_risk_in_15_days())<br>var_rpp=pd.DataFrame(calculate_value_at_risk_in_15_days_rpp())<br>var_bp=pd.DataFrame(calculate_var_bp_in_15_days())<br>eff_front_df=pd.DataFrame(simulate_portfolios())</pre><pre>fig=go.Figure(data=[go.Table(<br> header=dict(values=[‘Index’,’Sharpe Ratio Portfolio’,’Risk Parity Portfolio’]),<br> cells=dict(values=[[‘sharpe ratio’,’treynor ratio’,’sortino ratio’],[sharpe_ratio,treynor_ratio,sortino_ratio],[sharpe_ratio_rp,treynor_ratio_rp,sortino_ratio_rp]]))])<br>#GRAND FINALEEEEE<br>#define variables for the dashboard<br>portfolio=pd.DataFrame(get_cumulative_return_of_portfolio())<br>portfolio[‘Risk Parity Portfolio’]=pd.DataFrame(get_cumulative_return_of_risk_parity())<br>portfolio[‘Bank Portfolio’]=pd.DataFrame(get_cumulative_return_of_bp())<br>portfolio[‘Market Returns’]=pd.DataFrame(get_cumulative_return_of_benchmark())<br>eff_front_df=pd.DataFrame(simulate_portfolios())<br>#define the main frame (what the dash is going to look like)<br>fig = make_subplots(<br> rows=2,cols=2,<br> specs=[[{‘type’:’scatter’},{‘type’:’table’}],<br> [{‘type’:’scatter’},{‘type’:’scatter3d’}]],<br> subplot_titles=(“Cumulative returns for portfolios”,”Summary table”, “Projected value at risk”,”3D Efficient frontier”))<br>#adding traces to the main frame<br>fig.add_trace(go.Scatter(x=portfolio.index,y=portfolio[‘cumulative return of portfolio’],<br> name=’Highest Sharpe Portfolio Cumulative Return’),<br> row=1,col=1)<br>fig.add_trace(go.Scatter(x=portfolio.index,y=portfolio[‘Risk Parity Portfolio’],<br> name=’Risk Parity Portfolio Cumulative Return’),<br> row=1,col=1)<br>fig.add_trace(go.Scatter(x=portfolio.index,y=portfolio[‘Market Returns’], <br> name=’Market Cumulative Return’), <br> row=1,col=1)<br>fig.add_trace(go.Scatter(x=portfolio.index,y=portfolio[‘Bank Portfolio’],<br> name=’Bank Portfolio Cumulative Return’),<br> row=1,col=1)<br>fig.add_trace(go.Table(<br> header=dict(values=[‘Index’,’Sharpe Ratio Portfolio’,’Risk Parity Portfolio’,’Bank Portfolio’]),<br> cells=dict(values=[[‘sharpe ratio’,’treynor ratio’,’sortino ratio’],<br> [sharpe_ratio,treynor_ratio,sortino_ratio],<br> [sharpe_ratio_rp,treynor_ratio_rp,sortino_ratio_rp],<br> [sharpe_ratio_bp,treynor_ratio_bp,sortino_ratio_bp]])), <br> row=1,col=2)<br>fig.add_trace(go.Scatter3d(x=eff_front_df[‘Volatility’],y=eff_front_df[‘Returns’],z=eff_front_df[‘Sharpe Ratio’],<br> name=’3D Efficient Frontier’,mode=’markers’),<br> row=2,col=2)<br>fig.add_trace(go.Scatter(x=var[‘day’],y=var[‘value’],<br> name=’Value at risk 15 days projections for best sharpe ratio portfolio’), <br> row=2,col=1)<br>fig.add_trace(go.Scatter(x=var_rpp[‘day’],y=var[‘value’],<br> name=’Value at risk 15 days profections for risk parity portfolio’),<br> row=2,col=1)<br>fig.add_trace(go.Scatter(x=var_bp[‘day’],y=var[‘value’],<br> name=’Value at risk 15 days projections for bank portfolio’),<br> row=2,col=1)<br>#make the dash look better<br>fig.update_xaxes(title_text=’Date’,row=1,col=1)<br>fig.update_yaxes(title_text=’Cumulative Return, %’,row=1,col=1)<br>fig.update_xaxes(title_text=’Day projected’,row=2,col=1)<br>fig.update_yaxes(title_text=’Value at risk,$’,row=2,col=1)<br>fig.update_xaxes(title_text=’Risk’,row=2,col=2)<br>fig.update_yaxes(title_text=’Return’,row=2,col=2)<br>fig.update_layout(width = 1500, height= 1000, title_text=”Portfolio Summary”)<br>fig.show()<br>#it takes long to execute, so I made a sound to signal execution<br>duration = 1000 # milliseconds<br>freq = 440 # Hz<br>winsound.Beep(freq, duration)<br>#that’s it.</pre><p>You wanna test your portfolio? Optimize it with my robo. You can find the whole code in my <a href="https://github.com/pabraktball/portfoliorobo">GitHub repository</a>.</p><p><a href="https://github.com/pabraktball/portfoliorobo">pabraktball/portfoliorobo</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e83ac92ab56" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A deeper look into the 2019 Rugby World Cup in Japan]]></title>
            <link>https://pablo-andreslv.medium.com/a-deeper-look-into-the-2019-rugby-world-cup-in-japan-6def9bef191c?source=rss-400d5d988880------2</link>
            <guid isPermaLink="false">https://medium.com/p/6def9bef191c</guid>
            <category><![CDATA[rugby]]></category>
            <category><![CDATA[dáta]]></category>
            <category><![CDATA[world-cup]]></category>
            <category><![CDATA[sports]]></category>
            <dc:creator><![CDATA[Pablo Andres Alvarado]]></dc:creator>
            <pubDate>Wed, 18 Mar 2020 16:16:22 GMT</pubDate>
            <atom:updated>2020-03-18T16:16:22.798Z</atom:updated>
            <content:encoded><![CDATA[<p>Published on September 24, 2019, <a href="https://www.linkedin.com/pulse/deeper-look-2019-rugby-world-cup-japan-pablo-andres-alvarado/">LinkedIn</a>.</p><h3>Rugby, International expansion.</h3><p>There are 9.6 million rugby players in the word, and an increase of 28% of female players registered worldwide, overpassing the half-million players.</p><p>More than 2.2 million kids were involved in the program “Get into Rugby” in 2018.</p><p>In total there are more than 800 million people interested in word rugby worldwide especially with a huge increase in the popularity of young people in emerging markets. The increase in the last years is thanks to the great effectiveness of programs like “Get into Rugby” running by the World Rugby Federation.</p><p>South Africa has the largest number of registered players in the world with an incredible 635.288 players, that’s means 18% of the worldwide registered players with constant growth year by year. (405.438 in 2016 and 530.398 in 2017)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/917/0*6TvUAaVU6wfNEVsl" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/664/0*Ezf71qLh1izjJNsI" /></figure><p>If we looking into the teams who are part of the RWC19 we can see the trend between number and players and the world ranking.</p><h3>World Cup Japan 2019, Innovations to take a look.</h3><p><strong>1. The broadcast.</strong></p><ul><li>For the first time, the own Word Rugby will be in charge of the production and control of the broadcast.</li><li>The goal is to reach 800 households in 217 countries around the world.</li><li>The Word Rugby offers streaming for countries that don’t have TV rights, especially to countries in Asia, one of the biggest expansion markets for rugby.</li><li>The TV broadcast is offering Ultra HD, 4K for broadcasters and the domestic Japanese NHK offers 8K broadcast for the first time in a World Cup.</li></ul><p><strong>2. AR &amp; RV Technology.</strong></p><ul><li>The broadcast will have Augmented Reality (AR) for 34 out of 48 games. This technology is applied to lineups and stats between players and teams.</li><li>This type of content is not exclusive for TV broadcast, we can also see this technology in social media platforms for better engagement with fans like the Rugby Word Cup Instagram account.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/0*Om9FtJoF9Usz2O_n" /></figure><p><strong>3. 3D Replays by Canon.</strong></p><p>Developed by the Free Viewpoint Video System by Canon, these kinds of replays will give us videos with incredible angels never seen before with the conventional system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/869/0*dhyIa-lTr0OeGKnK" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/997/0*ZOFZ-cQ3L6hGsple" /></figure><p>All the content will be available for free on the Canon Website</p><p><strong>4. The Rugby Ball.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/0*6vA5mL0n4g6IZr1e" /></figure><p>For the seventh time, the manufacturer Gilbert was in charge to develop the official ball of the event, Sirius. The focus for this ball was to develop a better grip of the ballspecially for the humid conditions of Japan during the cup. “We tried to keep the aerodynamic design in the ball and at the same time increase the grip”, Said Ian Savage, engineer in charge oat Gilbert.</p><p>The design has a mix of Japanese elements and the classic culture of rugby. The fractal in the ball represents the “rising sun” and at the same time helps the players giving them a reference at the moment to pass the ball.</p><p><strong>4. The most interactive World Cup in history.</strong></p><ul><li>Through an agreement with Google, we will have the official highlights of all the games on YouTube. There will also be a portal dedicated to the event in Google News.</li><li>World Rugby released emojis for Rugby World Cup 2019 Twitter and Instagram to excite fans and make them feel closer to the venues and stadiums of Japan. You can follow all the action with the hashtag #RWC2019</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*o2BtirxcPBx85n4O" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/0*hhewi2_OOqfTnGYX" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/0*gMay5kTlJ7rYp3Oo" /></figure><p><strong>5. Media-Zone</strong> with an unprecedented opening in content distribution</p><p>The accredited media for the tournament will have the possibility of free download for previous press conferences and post-match, for website publishing, as well as 30 -secondary digital highlights daily.</p><p>“The media environment is evolving rapidly and, for what which will be an innovative Rugby World Cup on many levels, we are giving accredited media access without precedents to video content and additional opportunities for content to bring fans closer to action that will make Japan 2019 a very special event, “ said Dominic Rumbles head of the media at the World Cup.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6def9bef191c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Storytelling]]></title>
            <link>https://pablo-andreslv.medium.com/data-storytelling-4272740229d2?source=rss-400d5d988880------2</link>
            <guid isPermaLink="false">https://medium.com/p/4272740229d2</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[hubspot]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[tableau]]></category>
            <dc:creator><![CDATA[Pablo Andres Alvarado]]></dc:creator>
            <pubDate>Wed, 18 Mar 2020 16:10:36 GMT</pubDate>
            <atom:updated>2020-03-18T16:10:36.447Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/761/1*PV8d6cG64UEB_ZE64FMs3A.png" /></figure><p>There is an increasing use of analytics in many organizations these days. Today’s businesses need timely information that helps people to take important decisions in business. Finance plays an important role. As a matter of fact, data science and finance go hand in hand.</p><p>Finance industries perceive data as an essential commodity and fuel. It turns raw data into a meaningful product. Finance is the hub of data and financial institutions were among the earliest users and pioneers of data analytics.</p><p>Big data, data visualization, and storytelling. You have probably heard these terms, and you’re likely to hear often in the finance world. Data is everywhere, but it’s what we do with that data, what insights we tap into that make it so valuable.</p><p>Data storytelling is the blending of two worlds; hard data and human communication. It’s a compelling narrative crafted around compelling data.</p><ul><li>It Provides Meaning and Value</li></ul><p>In a world where we are besieged by data but desperate for meaning, data storytelling helps connect the dots. It is an incredibly effective way to communicate valuable insights and assign meaning and context to data that otherwise lives as numbers in an excel spreadsheet.</p><p>All content is interpreted as data by the brain, but the highest-value content provides more than knowledge; it provides insight. Data storytelling allows us to extract and communicate insight through compelling stories.</p><p>To use as an <a href="https://public.tableau.com/profile/pablo.alvarado#!/vizhome/HubSpotFinancialDasboard/Story1">example</a>, I decided to combine the data from financial statements, ratio analysis, stock prices and volume of <a href="http://www.hubspot.com/">HubSpot</a>. I created a financial dashboard using <a href="https://www.tableau.com/">Tableau</a>, the narrative guides you through the data, and the data supports the narrative, giving you the best of both the analytical and emotional experience.</p><ul><li>Comprehension: Our brains are hardwired to process visuals faster than language.</li><li>Retention: Information visually processed makes it easier to remember.</li><li>Appeal: Data visualization is visually stimulating, making the content more attractive for decision-makers.</li></ul><p><a href="https://public.tableau.com/profile/pablo.alvarado#!/vizhome/HubSpotFinancialDasboard/Story1">Tableau Public</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4272740229d2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Avoiding index funds?]]></title>
            <link>https://pablo-andreslv.medium.com/avoiding-index-funds-bef65ed7a17e?source=rss-400d5d988880------2</link>
            <guid isPermaLink="false">https://medium.com/p/bef65ed7a17e</guid>
            <dc:creator><![CDATA[Pablo Andres Alvarado]]></dc:creator>
            <pubDate>Sat, 07 Mar 2020 20:03:13 GMT</pubDate>
            <atom:updated>2020-03-07T20:03:13.011Z</atom:updated>
            <content:encoded><![CDATA[<p>There are a lot of financial advisors who genuinely believe that index funds are terrible investments and stands:</p><p><strong>“Index funds are risky”</strong></p><p>The prime of this statement is that you will get all of the ups and all of the downs that the market delivers. The alternative would be to invest with an active manager that is able to fill out the market and use their analysis and intuition to outperform the index. The active management story sounds way better but is not really backed up with data. <a href="https://investor.vanguard.com/index-funds/index-vs-active">Vanguard</a> publishes a study in 2018 to look at the performance of active managers in a bull market (when stocks are going well) and bear markets (when stocks are doing poorly). Active managers should outperform the index in bear market, the data show that more than 50% of active managers outperform the index in some historical bear markets. But in other bear markets, less than 50% managed to beat the index. For that reason, this should not instill confidence in anyone betting on active management to save them in a down market.</p><p>If active funds do not offer any protection when stocks fall then there is no basis to say that index funds are a relatively risky investment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/0*FuzSrmi2Zj0FJir6" /></figure><p>Active management also introduces a whole other element of risk. We know that the market as a whole is risky. It goes up and down in value as investors expectations about future change. For taking on the risk of the market investors expected a positive return, in other words, the risk of the market is a “priced risk”. An active manager is still taking on market risk but, they are also taking an “active risk” that their bets will end up paying off. Active risk is not a price risk!</p><p>Another common reason to avoid index funds is that you get no control over your holdings. You end up buying the whole bad stocks along with the good ones. With the right active manager will only get the good stocks while avoiding the bad ones. This is another great story with no good data to back up. The problem to pick the good stocks is that there is no way to tell what a good stock is. There is an enormous difference between the quality of the company and the quality of its stock returns.</p><p>Of the roughly 26,000 stocks that appear in the <a href="http://www.crsp.org/products/research-products/crsp-us-stock-databases">CRSP database</a>, a comprehensive database of the US stocks, from 1926 through 2015 only 1000 of them was responsible for all the market returns in excess of treasury bills over that time period.</p><p>We can think this issue in another way, global stocks as a whole returned 8% per year on average from 1994 through 2017. If you miss the top 10% of performers each year, your average return drops to 3.6% per year. It is easy for an active manager to say indexing results in owning all of the good and bad stocks, what they are not able to tell you is which stocks are good and which ones are bad. The reality is that there are a small number of stocks that drive the market’s returns and it is next to impossible to consistently identify those stocks at least ahead of time.</p><p>When proponents of active management give these reasons for avoiding index funds it is always on the basis that active management is superior. “Smart investors only invest with skilled active managers”, well if you can find one.</p><p>The idea that an active manager might be skilled, needs to be considered alongside the fact that their success may be due to luck. Even over long periods of time, some active managers will beat the market due to luck rather than skill, and this makes the process of finding a skilled manager super challenging. The abstract of the paper written by Mark Carhart concludes “The results do not support the existence of skilled or informed mutual fund portfolio managers”.</p><p>In 2010 Eugene Fama and Kenneth French again studied mutual funds in their article “<a href="http://mba.tuck.dartmouth.edu/bespeneckbo/default/AFA611-Eckbo%20web%20site/AFA611-S8C-FamaFrench-LuckvSkill-JF10.pdf">Luck Versus Skill in the cross-section of mutual fund return</a>”. They found that before costs there are both skilled and unskilled managers. However, skilled managers are not skilled enough to cover their own costs.</p><blockquote>Statistically, it would take 36 years of 2% alpha, which is 2% of excess risk-adjusted performance with a standard deviation of alpha of 6%, for manager skill to be statistically significant at a 95% level of confidence.</blockquote><p>With no way to identify skilled managers ahead of time, the argument that skilled managers make index funds obsolete does not make any sense.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bef65ed7a17e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>