<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Niral J Shah</title>
  <subtitle>Notes on data, lending and the news.</subtitle>
  <link href="https://www.niraljshah.com/feed.xml" rel="self"/>
  <link href="https://www.niraljshah.com/blog/"/>
  <id>https://www.niraljshah.com/blog/</id>
  <updated>2020-05-21T00:00:00Z</updated>
  <author><name>Niral J Shah</name><uri>https://www.niraljshah.com/</uri></author>
  <entry>
    <title>An ELO-rating model for loan default prediction</title>
    <link href="https://www.niraljshah.com/blog/elo-rating-loan-default/"/>
    <id>https://www.niraljshah.com/blog/elo-rating-loan-default/</id>
    <published>2020-05-21T00:00:00Z</published>
    <updated>2020-05-21T00:00:00Z</updated>
    <summary>Scoring loan applicants the way chess rates players — against a model applicant who repaid — with a confidence interval that says when to buy a credit report.</summary>
    <content type="html">&lt;p&gt;ELO-rating is used to predict the performance of a sport player in a tournament or otherwise.
This works as defining an ideal or an average model player and comparing the performance measures of all other players with this model player. This gives us an overview of how each player is better than each other indirectly.&lt;/p&gt;
&lt;p&gt;This can be also work in finance. Although, no company is reportedly using this kind of technique, I believe we can create an ideal loan applicant by taking the average of all the loan applicants who have successfully repayed their loan. This will give us an idea of what an average non-defaulting loan applicant looks like and we can compare all the loan applicants with this model applicant.&lt;/p&gt;
&lt;p&gt;This will not only reduce the need of credit report. This is a huge change in the cost per customer.&lt;/p&gt;
&lt;p&gt;The best part about the process is that it will give out an ELO-rating or a new credit score along with a credit report with a CONFIDENCE INTERVAL. This means that when we are not very confident on our outcome (which is less than 7% of the time), we can work our way through by getting an actual credit report for the applicant. The potential of this task when tested on the demo data showed us that it can decrease the rate of defaulting from 8.5% to 1.8%&lt;/p&gt;</content>

    <category term="fintech"/>
    <category term="credit risk"/>
    <category term="machine learning"/>
  </entry>
  <entry>
    <title>Stock Price Analyzer using sentiment analysis on news articles and tweets</title>
    <link href="https://www.niraljshah.com/blog/stock-price-analyzer/"/>
    <id>https://www.niraljshah.com/blog/stock-price-analyzer/</id>
    <published>2019-08-22T00:00:00Z</published>
    <updated>2019-08-22T00:00:00Z</updated>
    <summary>Averaging the sentiment of each day’s news about Facebook and reading it against the share price, June to July 2019.</summary>
    <content type="html">&lt;p&gt;News and current affairs affect the stocks when it comes to trading. It also affects the way people think &amp;amp; the way they make a decision.
We have a seen that the sentiment behind the news affect more than it should be.
But how can we escape it and predict the change before it happens?&lt;/p&gt;
&lt;p&gt;Bloomberg is already using the technique of using sentiment analysis on current news to estimate the change on related stocks.
And making millions out of it.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://github.com/niraljshah/Stock-Sentiment-Algorithm-for-Trading&quot; rel=&quot;noopener&quot;&gt;You can find this project and its code on Github here&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Here is an example of how it works...&lt;/p&gt;
&lt;p&gt;I used the Business Times to search for news articles on Facebook. Ideally, we can use tweets from powerful celebrities, media houses
and companies to reach to the news faster. So I ran it for the last six months and averaged the sentiments of each news article for a
given day. Here it goes...&lt;/p&gt;
&lt;div class=&quot;table-wrap&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Date&lt;/th&gt;&lt;th class=&quot;align-right&quot;&gt;Sentiment rate&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;26 Jul 2019&lt;/td&gt;&lt;td class=&quot;align-right&quot;&gt;0.796&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;25 Jul 2019&lt;/td&gt;&lt;td class=&quot;align-right&quot;&gt;0.981&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;24 Jul 2019&lt;/td&gt;&lt;td class=&quot;align-right&quot;&gt;−0.086&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;18 Jul 2019&lt;/td&gt;&lt;td class=&quot;align-right&quot;&gt;0.883&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;17 Jul 2019&lt;/td&gt;&lt;td class=&quot;align-right&quot;&gt;0.962&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;16 Jul 2019&lt;/td&gt;&lt;td class=&quot;align-right&quot;&gt;0.986&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;15 Jul 2019&lt;/td&gt;&lt;td class=&quot;align-right&quot;&gt;−0.548&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;13 Jul 2019&lt;/td&gt;&lt;td class=&quot;align-right&quot;&gt;0.38&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;12 Jul 2019&lt;/td&gt;&lt;td class=&quot;align-right&quot;&gt;−0.176&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;11 Jul 2019&lt;/td&gt;&lt;td class=&quot;align-right&quot;&gt;0.684&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;10 Jul 2019&lt;/td&gt;&lt;td class=&quot;align-right&quot;&gt;−0.428&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;09 Jul 2019&lt;/td&gt;&lt;td class=&quot;align-right&quot;&gt;0.246&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;04 Jul 2019&lt;/td&gt;&lt;td class=&quot;align-right&quot;&gt;−0.264&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;03 Jul 2019&lt;/td&gt;&lt;td class=&quot;align-right&quot;&gt;0.094&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;02 Jul 2019&lt;/td&gt;&lt;td class=&quot;align-right&quot;&gt;0.055&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;01 Jul 2019&lt;/td&gt;&lt;td class=&quot;align-right&quot;&gt;−0.243&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;28 Jun 2019&lt;/td&gt;&lt;td class=&quot;align-right&quot;&gt;−0.006&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;27 Jun 2019&lt;/td&gt;&lt;td class=&quot;align-right&quot;&gt;0.842&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;26 Jun 2019&lt;/td&gt;&lt;td class=&quot;align-right&quot;&gt;−0.194&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;25 Jun 2019&lt;/td&gt;&lt;td class=&quot;align-right&quot;&gt;−0.27&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;21 Jun 2019&lt;/td&gt;&lt;td class=&quot;align-right&quot;&gt;−0.357&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;20 Jun 2019&lt;/td&gt;&lt;td class=&quot;align-right&quot;&gt;0.997&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;19 Jun 2019&lt;/td&gt;&lt;td class=&quot;align-right&quot;&gt;0.814&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;18 Jun 2019&lt;/td&gt;&lt;td class=&quot;align-right&quot;&gt;0.978&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;Here, every sentiment score for the day shows the sentiment average for the day. 1 means a very positive news for the company while -1
tends to show the negativity or a setback for the company. This gives an idea about how the stock of facebook is going to be in the
near term. Let us see how effective it is:&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://www.niraljshah.com/blog/media/stock-sentiment-predictions.webp&quot; alt=&quot;Facebook’s daily share price from 18 June to 26 July 2019, with trading volume and a 15-day moving average, above a line of the daily news sentiment. Annotations mark the rise in early July and the dip around 15–19 July against the sentiment readings for the same days.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Facebook’s share price, volume and daily news sentiment, June–July 2019.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;In the above image we can see that the dip in the second week of July 2019 on Facebook stock could have predicted.
The bull run for 26th June till 10th July 2019 could be predicted as the last point on Facebook news was positive on 25th June 2019
Thereafter, the sentiments are fairly stable near zero value which indicated there will be a stable change all the way till next
non-zero sentiment value.&lt;/p&gt;
&lt;p&gt;Further steps of improvement here would be to devise an relatability algorithm as sometimes the news article does not always affect the
stock. The other main step would be to figure out the accuracy of this method and how to improve it.&lt;/p&gt;</content>

    <category term="fintech"/>
    <category term="sentiment"/>
    <category term="python"/>
  </entry>
  <entry>
    <title>Fall Relief: An effort to reduce falls and related injuries among age group 65 and older</title>
    <link href="https://www.niraljshah.com/blog/fall-relief/"/>
    <id>https://www.niraljshah.com/blog/fall-relief/</id>
    <published>2019-08-04T00:00:00Z</published>
    <updated>2019-08-04T00:00:00Z</updated>
    <summary>A team project building targeted exercise and diet plans to make falls less likely for people aged 65 and over.</summary>
    <content type="html">&lt;p&gt;Most people consider falls are inevitable in seniors. Wrong! Contrary to the common belief, in most cases accidental falls are preventable.&lt;/p&gt;
&lt;p&gt;Globally, falls are a major public health problem.
For people aged 65 years or older, the average health system cost per fall injury in Australia is a substantial A$ 1630.&lt;/p&gt;
&lt;p&gt;Implementation of effective prevention strategies with a subsequent 25% reduction in the incidence of falls for
the 65+ age group could create a net savings of over A$ 50 million.&lt;/p&gt;
&lt;p&gt;Our product &amp;quot;Fall Relief&amp;quot; is born to solve this issue and improve user&amp;#39;s lifestyle,
by providing them with a targeted lifestyle plan which includes exercises and dietary regimes catered based on the
user&amp;#39;s current deficiency to help them live a better life and reduce the likelihood of falling.&lt;/p&gt;
&lt;p&gt;Made by a group of 4: 2 Business Analyst, an IT Developer and a Data Scientist - Team BigHD&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://www.niraljshah.com/blog/media/fall-relief.webp&quot; alt=&quot;The Fall Relief home page: the Fall Relief logo and the menu — Home, Assessment, Health tips, Helplines, About — above a photograph of an older woman smiling at a carer, with the words “Preventing unintentional falls at home. Discover the risks of falling using our assessment tool” and an “Assess Now” button.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;The Fall Relief site, as the team built it in 2019.&lt;/figcaption&gt;&lt;/figure&gt;</content>

    <category term="health"/>
    <category term="data"/>
  </entry>
  <entry>
    <title>Humanoid Robots</title>
    <link href="https://circuitdigest.com/article/humanoid-robots"/>
    <id>https://circuitdigest.com/article/humanoid-robots</id>
    <published>2017-12-22T00:00:00Z</published>
    <updated>2017-12-22T00:00:00Z</updated>
    <summary>A guest article on robots built to look and move like people — how they are put together, where artificial intelligence comes in, and where they are already useful, from healthcare to the home. (Circuit Digest)</summary>

    <category term="electronics"/>
    <category term="robotics"/>
  </entry>
  <entry>
    <title>What is a Hoverboard and How does it work?</title>
    <link href="https://circuitdigest.com/article/what-is-hoverboard-how-does-it-work"/>
    <id>https://circuitdigest.com/article/what-is-hoverboard-how-does-it-work</id>
    <published>2017-11-03T00:00:00Z</published>
    <updated>2017-11-03T00:00:00Z</updated>
    <summary>A guest article on how a self-balancing scooter stays upright — the accelerometers, gyroscopes and magnetometers inside it, the parts it is built from, and how it is steered. (Circuit Digest)</summary>

    <category term="electronics"/>
  </entry>
</feed>
