<?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 Misrab Faizullah-Khan on Medium]]></title>
        <description><![CDATA[Stories by Misrab Faizullah-Khan on Medium]]></description>
        <link>https://medium.com/@misrabfaizullahkhan?source=rss-5ece7770f6dc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*xIeSV6fOkDxVOIB0.jpg</url>
            <title>Stories by Misrab Faizullah-Khan on Medium</title>
            <link>https://medium.com/@misrabfaizullahkhan?source=rss-5ece7770f6dc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 16:12:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@misrabfaizullahkhan/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[Crypto Concerns]]></title>
            <link>https://medium.com/@misrabfaizullahkhan/crypto-concerns-f5c7fed31c67?source=rss-5ece7770f6dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/f5c7fed31c67</guid>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[bitcoin]]></category>
            <dc:creator><![CDATA[Misrab Faizullah-Khan]]></dc:creator>
            <pubDate>Sat, 28 Apr 2018 08:05:41 GMT</pubDate>
            <atom:updated>2018-04-29T01:25:18.988Z</atom:updated>
            <content:encoded><![CDATA[<p>Thoughts on existing limitations with Bitcoin-like cryptocurrencies</p><p><em>Posted on February 9th, 2015</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*dwvfZn3AQf6cmgkjMfwdug.jpeg" /></figure><h4>Introduction</h4><p>After spending some time thinking about cryptocurrencies, I have developed <br>some opinions on where things are headed. I could be wrong, and these views will no doubt evolve over time, but I hope there is some reason in them. Cryptocurrency is fascinating, and definitely has a role to play in the future; the questions are what role and when.</p><p>I’ll start by talking about Bitcoin and the Blockchain, and then move on to <br>the Stellar payment infrastructure in a subsequent post, which I currently find promising. I’ll assume basic knowledge of how Bitcoin works. For a quick overview, see my [earlier post](/economics/2015–01–17-bitcoin.html) or related resources.</p><h4>Price Volatility</h4><p>My first major concern is volatility. Take a look at the <a href="http://www.coindesk.com/price/">CoinDesk</a> index of Bitcoin price in USD over the last year:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/664/0*xSDXEVpZbDV8cBzU.png" /></figure><p>It’s probably not news to you that Bitcoin’s price has been somewhat volatile. It is after all a novel currency. Two questions arise: is volatility a problem, and will Bitcoin’s price stabilise?</p><p>If we’re hoping for a currency for trade of goods and services, and we assume the value of US dollars and other traditional currencies is relatively stable for the foreseeable future (at least through the transition to digital currencies), volatility <em>is</em> very much a problem. If I buy a can of soda today for the equivalent of USD 1 in Bitcoin, I will be upset tomorrow if it turns out I spent USD 100, or even USD 2 retrospectively.</p><p>On to the second question: will the price of Bitcoin, or another cryptocurrency with limited and predictable supply stabilise? To answer this, it’s worth conducting a thought experiment in monetary theory. Suppose we live on an island where everything is traded in seashells. What’s the rough value of a seashell, in terms of something (there are no US dollars to compare to)? The relative price of goods and services will determine their relative value to <em>each other</em>, but how much is <em>one seashell</em> worth? In other words, how is the base price of a coconut set. It could be 10 seashells, after which all other products could derive their own price. What stops it from being 5 seashells? One perspective is that, subject to limited distortions like human psychology, politics, employement etc., the absolute level of prices (not relative prices) will be largely determined by the supply of seashells. We have to be very careful when describing the supply however. Is it simply the absolute number of seashells? What’s the supply we care about?</p><p>In a given time period, on average every seashell is spent a certain number of times. If there are 100 total seashells, and only 50 are spent a year, we’d say the <a href="http://en.wikipedia.org/wiki/Velocity_of_money">velocity of money</a> is a half (I’m speaking in very gross terms here, but I think the intuition remains). Therefore, the <em>nominal</em> value of all goods and services in that given period of time is just the total money supply times the velocity of transactions. <strong>This is what determines the rough price of a coconut, our base for comparison</strong>.</p><p>If a Bitcoin were a real currency that could be traded for any good or services, disregarding other currencies its value could be in the millions of current USD. Even if we take into account other currencies (which then take a share of the money supply pie), Bitcoin’s theoretical value could be astronomical. <em>This</em> is what so many cryptocurrency speculators are betting on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/0*733r4SWGogrMYy-B.png" /><figcaption>Taken from Wikipedia</figcaption></figure><p>If someone could snap their fingers and have Bitcoin jump to this value; if all goods and services (or an agreed upon subset) could be traded for Bitcoin; if people could agree on what market the currency underpins, then there is no reason Bitcoin couldn’t reach some equilibrium value. The problem is the path there.</p><p>Given a more or less fixed supply, and no clear path to stability, <strong>I have serious doubts as to whether Bitcoin will transition to being a real currency for trade</strong>. Of course, it could find niche applications (i.e. machine-to-machine rapid trading), but vanilla trade is unlikely to be one of them.</p><h4>Blockchain Scalability</h4><p><strong><em>Edit</em></strong><em> [22–03–2015]: </em><a href="http://en.wikipedia.org/wiki/Gavin_Andresen"><em>Gavin Andresen</em></a><em>, chief scientist of the </em><a href="http://blog.bitcoinfoundation.org/"><em>Bitcoin Foundation</em></a><em> has written a great article on a </em><a href="http://blog.bitcoinfoundation.org/a-scalability-roadmap/"><em>scalability roadmap</em></a><em> that addresses many of the issues mentioned here. There are still challenges to overcome, but it seems time and brainpower are being applied to them.</em><br> <br>Okay, so we’ve seen that perhaps Bitcoin on its own will not be a ubiquitous means of exchange. That said, the <a href="https://en.bitcoin.it/wiki/Block_chain">Blockchain</a> <em>is </em>a brilliant innovation. Using computational resources of the network to democratise ledger sychronisation without the need of a central authority is amazing. However, while the problem of double-spending is addressed, a new paradox is created: that of scalability.</p><p>The Blockchain limits block size (groups of transactions considered to have happened at the same time) to about 1 megabyte. This <a href="https://www.youtube.com/watch?v=cZp7UGgBR0I">video</a> explains why: if the block size is too big, then expensive, specialised hardware is required to actually solve blocks. This defies the whole idea of a decentralised system: in effect control is returned to large organisations with sufficient resources. Therein lies the paradox: the block size limits the maximum theoretical <a href="https://en.bitcoin.it/wiki/Maximum_transaction_rate">number of transaction</a> <em>across the network</em> to about 10 per second. Compare this to VISA (think credit cards), that processes an average of <a href="https://en.bitcoin.it/wiki/Scalability">2,000 transaction per second</a>.</p><p>Other, less fundamental albeit important issues also arise. As time goes by, the size of the Blockchain increases. It currently stands at about 29 gigabytes, making storage on a local client impractical. Thus, many clients are now <a href="https://en.bitcoin.it/wiki/Thin_Client_Security">thin</a>. Instead of truly verifying transactions, they rely on trusted nodes, again obviating the whole idea of decentralised security.</p><p><strong><em>Edit</em></strong><em> [11–02–2015]: while studying the Ethereum crypto system, I came accross <br>a good explanation of Merkle trees and thin clients [</em><a href="https://www.ethereum.org/pdfs/EthereumWhitePaper.pdf"><em>see page 9 of white paper</em></a><em>). It seems that a thin client could achieve a high degree of security with a smaller version of the Blockchain, albeit one that still likely grows with time.</em></p><h4>Conclusion</h4><p>Perhaps some new innovation will address the limitations mentionned, but for the moment both Bitcoin and the Blockchain have significant flaws (despite their admitted brilliance). A path to price stability for Bitcoin is unclear or implausible, restricting it to niche use cases. As for the Blockchain, it has yet to address the paradox of distributed security and scalability.</p><p>I remain optimistic about cryptocurrencies. The promises of decentralisation and digitisation are, amongst others, extremely appealing. Hopefully by being critical of existing issues, and creative in addressing them, we’ll find the inevitable path forward.</p><h4>Acknowledgements</h4><p>What I do know thus far was mainly learned from open online sources, for which I am extremely grateful as always. These included but are not limited to the <a href="https://en.bitcoin.it/">Bitcoin wiki</a>, videos like <a href="https://www.youtube.com/watch?v=l9jOJk30eQs">this</a> and <a href="https://www.youtube.com/watch?v=cZp7UGgBR0I">this</a>, and of course the <a href="https://bitcoin.org/bitcoin.pdf">original paper</a> by Satoshi.</p><p>Further thanks are due to my brother and close friends, for listening to me think out loud, and for providing wise feedback.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f5c7fed31c67" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Social Economics]]></title>
            <link>https://medium.com/@misrabfaizullahkhan/social-economics-d651674d83b8?source=rss-5ece7770f6dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/d651674d83b8</guid>
            <category><![CDATA[economics]]></category>
            <dc:creator><![CDATA[Misrab Faizullah-Khan]]></dc:creator>
            <pubDate>Sat, 28 Apr 2018 07:51:22 GMT</pubDate>
            <atom:updated>2018-04-29T01:25:49.038Z</atom:updated>
            <content:encoded><![CDATA[<p>The economic dynamics of future cities</p><p><em>Posted on May 6th, 2017</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*fedMqfNeMhyr4uS8kmbA0w.jpeg" /></figure><h4>Economic Islands</h4><p>I was thinking recently about the sustainability of an economy like Singapore’s. It seems be an exception rather thI was thinking recently about the sustainability of an economy like Singapore’s. It seems be an<br>exception rather than the norm: a simultaneous city and nation. What’s more is it’s a literal geographical island. Every single day, ships loaded with cargo make their way through its port, as do planes through its airports and trucks through its northern land checkpoint with Malaysia. This cargo has to sustain a population of more than 5.5 million people consuming about three meals a day, and much more beyond that.</p><p>It seems a rather unnatural situation. Surely this means basic items like food and water have high cost structures resulting in high prices. While this is most certainly the case for scarce land, the problem of import cost is somewhat abated by Singapore’s role as a trade hub.</p><p>And yet one cannot deny the fact that, on a high level, almost everything consumed in Singapore must be imported: the cement, the wood, the rice, the cars. All of this must be paid for in foreign currency: in other words, through the derived value of the Singapore Dollar (SGD) itself. If other countries need not the SGD, Singapore quite literally starves to death. And where does this derived demand stem from? Fistly, one needs SGD to purchase the few products the island does natively possess, namely <em>land</em>. A rising wealthy class around the region in search of stability and infrastructural efficiency ensures relatively robust demand here. Secondly, there is a huge value-add manufacturing sector, whereby the country imports products, adds value to them, and then technically exports them soon after. Thirdly there is financial demand for SGD as an important regional currency in a financial hub, from high-frequency to longer-term transactions. And finally, perhaps most interestingly, there is the demand for Singaporean labor, which could be considered a sort of value-add in the services. Think the multinationals (MNCs).</p><p>Given most of what is consumed in Singapore starts off abroad, in some sense the entire pie to be shared amongst residents comes from these four sources. The entire rest of the domestic economy, from barbers to restaurants and cafes, shares in and redistributes this pie of essentially foreign origin.</p><h4>Not So Anomalous</h4><p>This seems like a very fragile situation. If derived demand for the SGD wanes, Singapore is in big trouble. And indeed massive areas of traditional influx are on a downward trend. There is contraction in the banks, insurance companies, the entire shipping sector as China turns to domestic instead of export-driven growth, the oil sector with a global supply glut and consequently low prices, and much more. How is the nation to survive as a geographical, political and most importantly economic island through such storms?</p><p>And yet if one takes a step back, one perhaps realises that this situation is not that anomalous at all. Consider any large city, be it London, New York or Dakar. Each has a population of millions. None grows a significant portion of their food. City are typically net importers of the basics. The only reason that the population does not starve (for the most part) is that it generates sufficient economic value to have purchasing power.</p><p>Unlike Singapore, this value routing doesn’t need to hop through currencies, but the principle is the same: it just hops through prices instead. Unlike Singapore, socio-economic dynamics take place within a single political bloc. This has some repercussions. A city-nation-state has to negotiate trade terms with surrounding countries; London need not as much with surrounding regions in the UK. The labour force is also more fluid outward (but not inward) in places like London. If unemployment is too high, people can more easily move out of the city, but remain in the country. Singapore’s population might find this harder. However, given a large portion of the country’s workforce is non-resident, there is a significant outward buffer. What’s more is that there is more control on <em>inward</em> flow: Singapore can throttle its immigration on a <em>city</em> level, tautologically. London must accept legal residents from other parts of the country or region.</p><p>So no doubt there are nuances, and economic and ideological trade offs on both ends. But through this lens, economic islands like Singapore may not be anomalous as they first seem. Cities are as cities do.</p><h4>Universal Basic Income — Wait, What?</h4><p>So what are the prospects for an economy like Singapore’s? Or, more generally, what are the dynamics of competition between the cities and nations of the future? Allow me a small tangent.</p><p>Numerous explorations have been made into the future of work, and most notably the stratification of incomes, from Ryan Avent’s <a href="https://www.amazon.com/Wealth-Humans-Status-Twenty-first-Century/dp/1250075807">The Wealth of Humans</a> to articles in the <a href="http://www.economist.com/news/special-report/21700758-will-smarter-machines-cause-mass-unemployment-automation-and-anxiety">Economist</a>. The theme of the day is increasing automation through robots and software, increasing returns to capital instead of labour, and a smaller workforce earning more of the pie, with masses in economic mediocrity and poverty.</p><p>Many have argued that in such circumstances, capitalism has to be revised. If remuneration is tied to economic productivity, and humans are just not that productive anymore, we are faced with a very clear choice between destitute masses (with social turmoil), and novel ways of distributing wealth without excessively hindering capitalist incentives. Unfortunately it’s not just a logical decision, but a social transition, which means it will likely be slow, painful and messy, if it happens at all.</p><p>Regardless, one leading contender among ways forward is Universal Basic Income. In other words, a small stipend for every person, no strings attached. Take any economy (geographically or otherwise delineated), tax the sources of value-add, and redistribute among all the “stakeholders” of that economy.</p><p>And so we are at last led precisely back to our point on economic versus political boundaries. As mentioned, London and Singapore are very similar as cities, except that London has (1) a common currency with the rest of the larger nation (including agricultural and other sub-economics), and (2) is part of the same economic union.</p><p>This means that were the idea of a Universal Basic Income to gain ground (which I argue it inevitably <em>must</em>), London has to share its pie amongst a much wider demographic base. This likely means higher taxes i.e. less competitiveness. More broadly speaking, in the future, economic “units” that are able to generate value-add more efficiently, be that intrinsically through a smaller population, or through clever innovation, will be the most competitive economies. They will attract more of the decreasingly human factors of production, and have more leeway for investment in infrastructure and its people per capita.</p><p>Thus the tables are turned, and what may seem an Achilles’ heel for a city-state, may in fact prove to be its secret economic weapon in the long-run.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d651674d83b8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Context Switching]]></title>
            <link>https://medium.com/@misrabfaizullahkhan/context-switching-72f009f94257?source=rss-5ece7770f6dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/72f009f94257</guid>
            <category><![CDATA[thinking-out-loud]]></category>
            <dc:creator><![CDATA[Misrab Faizullah-Khan]]></dc:creator>
            <pubDate>Sat, 28 Apr 2018 07:39:02 GMT</pubDate>
            <atom:updated>2018-04-29T01:27:03.810Z</atom:updated>
            <content:encoded><![CDATA[<p>A curious connection between context switching and prejudice</p><p><em>Posted on November 26th, 2017</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*NTIO68N_ZdCrgHJKY094oA.jpeg" /></figure><p>What is context in the first place, and thus a context switch? One way<br>of looking at context is being composed of:</p><p>1. A current state<br>2. Possibly some past states<br>3. A mode of operation</p><p>For example, let’s say my current mental context is writing this post.<br>My current state is the thoughts I have in my mind on the topic of<br>context switching. My past state is perhaps the last five minutes of<br>thoughts on the matter.</p><p>Most importantly, I’m operating in a certain “mode”. This is a different<br>mode from say having a discussion with someone, or running long<br>distance. By mode, I suppose I mean a way of thinking, with associated<br>emphasis on certain thought patterns. This deserves a separate analysis.</p><p>It’s worth noting that some modes may be closer than others. For<br>example, my current state of autonomous focus is likely more similar to<br>long distance running than having a discussion, although there are<br>certainly elements of both.</p><p>A context switch is then to transition the mind’s gaze to a different<br>state, resetting or resuming a separate historical context or train of<br>thought. This brings us to the core topic: how context switching may<br>relate to rapid mental malleability. By mental malleability in this<br>case, I mean the ability to rapidly interact with a scenario with<br>limited prejudice from other scenarios.</p><p>By breaking down the notion of “context”, or “scenario”, prejudice in<br>our lens means confounding (1) states, (2) history, and (3) mode of<br>operation. Thus if I were to start having a discussion with someone<br>right now, especially about a different topic, I’d have to store my<br>current mental state writing this post, to resume later. It would<br>probably not be a perfect process. Most likely, I’d also forget my<br>historical train of thought herein, to some extent. But, in my opinion,<br>most importantly, I’d bring over the baggage of my “blog” way of<br>thinking to the discussion. Indeed, the distortion goes both ways. It’s<br>very possible the conversation, consciously or otherwise, gets biased<br>towards the exposition of some topic. Conversely, when I return to<br>writing, my prose may become more colloquial.</p><p>Presumably with practice and effort, one can get better at jumping<br>around mentally with less distortion and baggage. I imagine this skill<br>can be generalised to all situations, where a fresh state of mind can<br>mean the perception and processing of true reality within the context,<br>as opposed to ones from the past.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=72f009f94257" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Dynamics of Scaling an Organisation]]></title>
            <link>https://medium.com/gojekengineering/the-dynamics-of-scaling-an-organisation-cb96dbe8aecd?source=rss-5ece7770f6dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb96dbe8aecd</guid>
            <category><![CDATA[culture]]></category>
            <category><![CDATA[management]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[communication]]></category>
            <category><![CDATA[growth]]></category>
            <dc:creator><![CDATA[Misrab Faizullah-Khan]]></dc:creator>
            <pubDate>Wed, 18 Apr 2018 08:58:27 GMT</pubDate>
            <atom:updated>2018-04-18T08:58:27.929Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E7MY3zorHeeXAYrnhWFdxA.jpeg" /></figure><p>At GO-JEK, I had the privilege of scaling a Data Science team from a few members in one location, to about 30+ people across three countries.</p><p>This, and past experiences have helped me come to certain preliminary conclusions on how teams best function. This is my version of “general theory of organisations”, if you will. 😉</p><p>In this post, I’ll try and discuss relatively general ideas, as opposed to details that apply specifically to data science teams. It’s also most definitely a work in progress, and I’m more than happy to be proven wrong on certain points, and refine these views. It’s not meant to be a comprehensive theory, but hopefully contains some nuggets of wisdom. I highlight certain <strong>concepts</strong> that I think serve as crucial mental checkpoints in the framework.</p><p>My favourite characterisations of organisations are “just a bunch of people working together to create a product or service”¹, or “information processing systems”². In other words, there are one or multiple goals to achieve beyond what a single individual could output, so a group was formed. Simply put, organisations are a solution to <strong>the scaling of a problem</strong>. So let’s start by talking about how we can scale them optimally to best address scaling of challenges.</p><h3>Scaling</h3><p>I like to think of scaling as depicted in the diagram below. Output is typically related to the product or service of the organisation. It can be represented at different levels of granularity³, or relate to different objectives; such as low<br>staff turnover or morale.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/391/1*4pOAoKhJ1pxJdCYlLCSiKQ.png" /></figure><p>I would argue most organisations encounter diminishing returns to scale, or the “bad” line. Incremental team members contribute less and less marginal productivity as complexity and communication bottlenecks arise. In fact, even scaling output linearly with respect to team members is probably quite a feat. Hopefully, this feels anecdotally intuitive to you: ever felt the difference between having a 3rd member on a project, versus a 20th?</p><p>However, imagine an organisation that was able to achieve increasing returns to scale labeled as “excellent”. This team would experience network effects as it grew (presumably within reasonable bounds?). If it were a company, it would leave the competition in the dirt. Think it’s only a theoretical proposition? I disagree.</p><blockquote>I’ve seen and built teams where adding a novel skillset to a homogeneous group was like rocket fuel for productivity.</blockquote><p>And it gets better: one can presumably both shift these “excellent” levels of output upwards (dashed line), and increase their slope, by improving <strong>leverage</strong> — tools and processes that enhance individual productivity, and team communication. More on this in a bit.</p><h3>Organisations as a Graph</h3><p>It helps in many ways to view organisations as graphs; made up of nodes and edges. Typically, nodes would represent individuals, and edges would represent interfacing/communication between them. It may make sense to view multiple individuals as a node under certain circumstances. For example, when communication overheads within that team is genuinely negligible, or when we’re modelling at a lower level of granularity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/471/1*VT1gxJJQ5TPpZfRbmCyoUQ.png" /></figure><p>Remember: organisations are a way to scale output. From a graph perspective, stuff happens at two places in the org: within nodes (1), and at edges, the interface of nodes (2). So these are the two dimensions we can optimise. Let’s consider one at a time.</p><p>Optimising on the node level (1) is a bit more straightforward, regardless of whether the node is an individual or an extremely tightly knit group. It involves things like:</p><p>- Keeping the individual(s) motivated. This can range from compensation to a holistic <a href="https://en.wikipedia.org/wiki/Maslow%27s_hierarchy_of_needs">Maslow</a> approach.<br>- Tools to be productive e.g. software, non-communication processes.<br>- Efficient information dissemination (a whole section on this later)<br>- Career growth and guidance.<br>- Clarity of purpose. Output can definitely be low if one is targeting the wrong output!<br>- Self-development: learning skills, design thinking. A lot of this rests on the individual’s own imperative</p><p>There seems to be more literature addressing (1), so I’ll spend more time on (2): optimising communication. Many believe, (including me once upon a time), that communication structures are a reflection the underlying product being built. If we’re building a web application for businesses, one might expect a certain divide between an engineering team focusing on the tech, and a business team focusing on corporate clients. If one component of the product is a recommendation system, one might expect a separate data science team working on this, with perhaps limited communication with the other teams (relative to internal team communication).</p><p>I believe it was Alan Kay who argued the exact opposite: it is in fact <strong>underlying communication structures in an organisation that chiefly determine the product</strong> (although there is of course feedback). I personally call this the <strong>process-product paradox</strong>. This seems counter-intuitive, but increasingly true from my experience.</p><p>Consider startups, whose products often directly reflect the founding teams’ identities in the early days. Or consider the previous example, where we now divide the org into three teams: one with mainly engineers, but a couple of data scientists and business folks. Likewise another team with mainly business folks and a few of the others, and so on. What I argue would result is a product that solves business problems, informed by what’s possible through tech (perhaps even things that don’t yet exist on the market), with indeed a recommendation engine, but also fundamental personalisation built in throughout. Not bad for a paradox.</p><p>So we get it. Communication patterns are important. Let’s explore how we can organise these patterns, reduce their overhead, and improve quality.</p><h3>Edge Scaling</h3><p>If you’re not familiar with <a href="https://en.wikipedia.org/wiki/Big_O_notation">Big O Notation</a>, here’s some of the best advice I’ll ever give you in life: <strong>spend the next ten minutes understanding it.</strong> Seriously. It’s a way to think about scalability in any field, and the world would benefit tremendously if people in all domains, from politicians to scientists to artists understood it better.</p><p>Consider a dense or complete graph. How does the communication overhead (edges) increase as we increase the number ’n’ of people (nodes)? In the complete case, you connect the first node to all others. The next node has one less connection to be made, and so on. We calculate the sum:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*5f3hYHbAxhKi2rZiZmpCzw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/412/1*QKnXa93ty0pG3FTl4yPQLw.png" /></figure><p>For an idea of magnitude, this means 100 individuals end up on the order (remember this is Big O) of 10,000 communication channels. Think that’s unrealistic? Even if divided into teams of 5, we’re talking talking 4000 channels. Fancy halving the graph’s density? We’re still talking 2000 channels. The point is that it scales quadratically. <strong>In other words, it does not scale</strong>. If you’re a business, forget about competitors committing homicide. You’ve just committed suicide.</p><p>The good thing is alternative organisational designs are completely possible. Take the most common solution approach, for instance: hierarchy. Graphically speaking, this means organising nodes into a k-tree, where k is the number of splits at each level of the tree.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/371/1*EvEJfxDrJKkMOJV4BjGM-g.png" /></figure><p>This could represent a CEO, to whom VPs report, to whom team leads report. The good news is that trees with n nodes have n-1, or O(n) edges. The problem in this case is that there are downsides to excessive hierarchy, including team isolation, employee dissatisfaction, and communication breakdown itself. The height of a tree with k splits is the number of times you need to multiply k to get number of leaf nodes (hence the logarithm). For example, if we had 156 individuals (for simplicity), we would have 125 leaves, and a communication depth of at least 3. This is reasonable for smaller organisations, but doesn’t scale much further. In fact, I would go so far as to say that any indirect communication across nodes (<a href="https://en.wikipedia.org/wiki/Chinese_whispers">Chinese Whispers</a>) leads to issues.</p><p>Another alternative is to divide people into extremely tightly woven, multi-skilled SWAT teams. The multidisciplinary nature of such teams, and their small size (e.g. ~5 people) is precisely why we can think of them as independent nodes in the organisation, able to take reasonably sized projects end-to-end. Communication can still build up across teams, so one might choose to limit the degree of any node to, say, 2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*7d5GOTfesJJA-T7nkAhxlg.png" /></figure><p>The SWAT team structure is in fact a special case of a very common structure: large functional teams like “product”, “data science” and “business intelligence”. I think the problem with those are threefold:</p><p>1. Such teams often get too big, meaning the node abstraction doesn’t really apply.<br>2. Node degree (number of connections to other teams) usually explodes<br>3. Skillsets tend to be relatively homogeneous. This again fails the node abstraction (1) if one believes such teams work less as a unit, and contributes to (2) as constant cross-team, cross-skill interaction is required</p><p>That said, there are benefits to having specialised functional teams. This leads to what I call a heterogeneous SWAT team structure. You have your usual SWAT teams, but certain functional teams or individuals float around as required. These are kept small, but perhaps don’t figure into SWAT teams’ degree restriction.</p><p>The kind of nerd analogy I have in my mind is SWAT-like teams of superheroes/differently skilled characters in a game/military tactical units (pick your favourite or make up a new one) going on quests end-to-end. As multi-skilled as these teams are, they sometimes encounter an obstacle that requires a drill team/some artillery. So they call the functional support team in to do some temporary heavy lifting, and then carry on.</p><p>There is a separate advantage to this approach: individuals’ motivation levels. <strong>Think about how you would feel going to work with your band of brothers and sisters, versus a large homogeneous amorphous group</strong>. It also doesn’t have to be a permanent situation; there is plenty of scope for occasional rotation of individuals across nodes.</p><p>The heterogeneous SWAT team structure is currently the best I can come up with for any organisation of more than 10 people. And I think it scales well. That said, I can imagine all sorts of alterations that might work best in any given environment, albeit with the same underlying principles from this model.</p><h3>A Note on Concurrency</h3><p><em>Organisations are in many ways distributed systems of human beings</em>, and I would be remiss not to highlight the absolutely crucial point of <strong>concurrency</strong>, as well as point out a common misconception about <strong>parallelism</strong>.</p><p>The usual analogy is that of digging a hole. To dig it faster, you could get a bigger spade. This corresponds to making nodes better at what they do, for example with skills mentorship. An alternative would be to get your friends to help you out. At some point you’d probably get in each other’s way, so it might make sense to increase your output by each digging an identical hole at the same time. This is the basis of parallelism: doing many similar tasks independently at the same time.</p><p>Concurrency, sometimes confused with parallelism, is a much broader idea. Now you and your friends are doing different tasks: some of you digging, some of you sharpening spades, some of you carrying dirt out of the way. Importantly, different parties will have to interact at certain points, and this can lead to bottlenecks. If you can’t shovel anymore because you’re waiting for someone to clear the dirt around you, you’re stuck idle and unproductive. In fact, we can visualise what happens when an interdependent group has to wait for its slowest member. The tasks can be different (i.e. this is not just parallelism, hence the different colours), and we simplify by illustrating members syncing at the least common denominator (rather than drawing out the full concurrency graph):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/380/1*tuuE502MrN8wq_tdx-mh3w.png" /></figure><p>There are two mains things we can do to avoid painful idle time. Firstly, we can try and make interactions <strong>asynchronous</strong> (non-blocking e.g. a text message) instead of <strong>synchronous </strong>(e.g. a big meeting). We’ll describe this more in the section on edge (communication) quality. Secondly, we can limit cross-team dependencies, which is exactly where the SWAT team model comes in. It’s worth noting that beyond simply wasting productivity, idleness due to excessive dependencies can be a leading cause of demotivation.</p><h3>Edge Quality</h3><p>Now that we’ve spoken about scaling communication, let’s look at how to maintain high standards of communication quality. This could be translated into our model as edge weights/thickness, denoting the quality or alternatively the cost of a given interaction link. (though cost makes more sense in that we could look at metrics — like the weighted average number of edges in the graph, as something to minimise subject to constraints).</p><p>I have a couple of strong views on this topic, so I’ll convey them one by one. First of all, a knee-jerk solution to communication breakdown I’ve seen at multiple organisations as they scale is to “overcommunicate”. On one hand, good communication is indispensable. On the other hand, as we’ve seen, quantity of communication simply does not scale. It’s like staying at the office an hour later, or two hours later…you’ll get more done, but not by a factor of 10 or 100. For that you need leverage.</p><p>In the context of communication, leverage can often be seen as <strong>bandwidth</strong>: in this case, how much information can be exchanged per unit time. I just mentioned “information”, and indeed the lens of information theory proves useful in analysing communication (<a href="https://en.wikipedia.org/wiki/Claude_Shannon">of course</a>!). If you think about it, an open-ended conversation with a person allows for the most flexibility in what is discussed. The tradeoff is that it takes more time, as you never quite know what the other person will say next. Ironically, despite amazing flexibility, one would characterise the bandwidth as very low.</p><p><em>Now consider the other extreme. Let’s say two people, Alice and Bob, are playing a game, deciding whether to launch a new product feature. The game is as follows: Alice says “go” or “no go”. Bob then does the same. If they coincide, the decision is made and they simply execute. If they disagree, they toss a coin, heads Alice wins, tails Bob wins. Flexibility is reduced; they would certainly have a hard time talking about the colour of the sky in this game. But bandwidth is extremely high; the interaction could take seconds.</em></p><p>Formally, we’d say each example has a state space X, the set of possibilities. Assuming a uniform distribution over possibilities, systems with bigger state space will have a higher <a href="https://en.wikipedia.org/wiki/Entropy_(information_theory)"><strong>entropy</strong></a> of communication. We want low entropy communication as much as possible. This model helps me reason about things, but feel free to use or discard it as you please.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*pumu3XUUZxtVTEJ1k1FNAg.png" /></figure><p>As a rule, for maximum output and minimum burden, interactions should always use the lowest entropy medium possible. If it can be a web form, don’t make it a conversation. If it can be histogram, don’t make it a paragraph over email. Improving communication entropy may be one of the lowest hanging fruits in increasing organisations’ effectiveness. A bit of design thinking can go a very, very long way.</p><p>When in-person meetings are required, a couple rules can be useful. Example rules could be:</p><p>- Amaximum of 5 people in any meeting.<br>- 30-minute duration on a given topic on a given day, unless it’s a brainstorming/design session.<br>- Ruthless punctuality, otherwise things get sloppy and everyone’s time is wasted.<br>- A clear agenda, which when reached, ends the meeting regardless of time allotted. Extend with caution.</p><p>One outlandish idea I’ve had is to enforce <strong>scarcity</strong> on meetings by fixing the maximum number of meetings any given individual can have per day. Other parties need to bid on those slots if they’d like that individual to join them for a meeting, using some sort of currency. This currency could be anything from an internal organisation token to a portion of one’s bonus.</p><blockquote>The <strong>game theoretic</strong> motivation would be that people are included in meetings where they’ll have the most impact on productivity, assuming bonuses are sufficiently tightly coupled to objectives.</blockquote><p>I wouldn’t invite someone for a meeting unless I thought they would add more value than the amount it’s costing me. In fact, a rigorous game theoretic analysis of company processes can also go a long way, but that’s perhaps a topic for another post.</p><h3>Information Dissemination</h3><p>If an organisation is an information processing system, with nodes communicating periodically, it makes sense to not only consider bi-directional channels, but one-way information dissemination as well. There are a couple of typical channels through which information is usually spread:</p><p>- email<br>- social text messengers e.g. Whatsapp, Telegram<br>- work messaging e.g. Slack<br>- publish-subscribe systems e.g. Twitter, Yammer<br>- kanban e.g. Trello<br>- integrated systems e.g. Jira, notion.so<br>- many others</p><p>Now that we have a few powerful concepts and some terminology under our belts, it’s pretty straightforward to articulate principles that might be useful for information dissemination. In particular, some considerations are:</p><p>- Whether ad-hoc requests are required, or self-service is possible<br>- Synchronous vs asynchronous<br>- Structured vs unstructured (entropy)<br>- Minimum duplication: complexity overhead of many specialised dashboards vs all in one place.</p><p>Massive amounts of information need to traverse companies on a daily basis, and digestible summaries in one place can trump a constant email barrage.</p><h3>Meta-Organisation</h3><p>It’s always seemed striking to me organisations devote so much effort to building a product, and yet building the organisation itself is an afterthought. It is so common to have <strong>data structures</strong> representing the product itself, but how often do we thoroughly model the members who build the product, and their interactions. Take the following relational database view of an actual product (say a delivery application) versus its counterpart for the organisation itself:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/1*JU1pSq4aro1YDonzLh6ePA.png" /></figure><p>Imagine the possibilities if a small meta-team within the organisation focused exclusively on optimising the company itself, as opposed to the product directly.</p><h3>Conclusion: The Human Touch</h3><p>This post is getting long, so I’ll wrap up with one final note. The engineering principles I’ve applied to organisations are extremely useful. But at the end of the day, we must of course remember: people are people. A couple miscellaneous things I’ve learnt are:</p><p>- Diversity (cultural, gender, etc…) makes the product better, and people happier.<br>- Balance diversity with shared qualities. The lists are endless and ubiquitous (teamwork, excellence etc…), so I’ll focus exclusively on one: humility. Make sure every single member has low or no ego, because life is too short.<br>- Strictly cultivate a zero BS environment. This goes hand in hand with humility, but also involves a <a href="http://www.paulgraham.com/identity.html">commitment to the Truth</a>. It means always focusing on the <strong>reality</strong> of the problem. Teams that focus on this will always win in the long run.</p><blockquote><strong>Finally, enable humans to maximally fulfil their humanity.</strong> We all need inspiration. <em>Inspire by practicing qualities you aspire to yourself</em>.</blockquote><p>Take an organic approach to things. Create an atmosphere where people can simply be themselves as much as possible. Everybody secretly just wants to be more like themselves, but we’re often too afraid, or restricted, or indoctrinated to do so.</p><p>And most of all remember, we’re all in this together. Would appreciate any thoughts around how you guys have been able to crack this.</p><h3>Acknowledgements</h3><p>Thanks to all the inspiring people I’ve known and/or worked with over the years, and the experiences that have helped me formulate these views on organisational theory.</p><p>[1]: <a href="http://www.businessinsider.com/elon-musk-says-theres-no-such-thing-as-a-business-2015-9">http://www.businessinsider.com/elon-musk-says-theres-no-such-thing-as-a-business-2015-9</a><br>[2]: <a href="http://www.dtic.mil/get-tr-doc/pdf?AD=ADA128980">http://www.dtic.mil/get-tr-doc/pdf?AD=ADA128980</a><br>[3]: For example [OKR](<a href="https://en.wikipedia.org/wiki/OKR)s/[KPI](https://en.wikipedia.org/wiki/KPI)s">https://en.wikipedia.org/wiki/OKR)s/[KPI](https://en.wikipedia.org/wiki/KPI)s</a> at the team level. N.B. I find these terms extremely corporate. Aesthetics do matter!</p><p>We’re hiring. We have 200 engineers serving 261 million people. We practice the philosophy of “lean engineering” and have 18+ products with quick decision-making because of our culture and people. Be part of this amazing team. Check out <a href="http://gojek.jobs/">gojek.jobs</a> for more.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb96dbe8aecd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gojekengineering/the-dynamics-of-scaling-an-organisation-cb96dbe8aecd">The Dynamics of Scaling an Organisation</a> was originally published in <a href="https://medium.com/gojekengineering">Gojek Product + Tech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Whence Softmax?]]></title>
            <link>https://medium.com/@misrabfaizullahkhan/whence-softmax-9ad6856e46b?source=rss-5ece7770f6dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ad6856e46b</guid>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Misrab Faizullah-Khan]]></dc:creator>
            <pubDate>Thu, 03 Aug 2017 00:00:00 GMT</pubDate>
            <atom:updated>2018-04-29T02:02:51.720Z</atom:updated>
            <content:encoded><![CDATA[<p>A probabilistic derivation of the Softmax classifier</p><p><em>Posted on August 3rd, 2017</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/327/0*66wsTf83Mls4qErU.png" /></figure><p><strong><em>Quick points on notation:</em></strong></p><p><em>bold </em><strong><em>θ </em></strong><em>and bar x̄ are used to denote vectors</em></p><p><em>x^T typically denotes the transpose of x, not x to the power T</em></p><p><em>underscore x_i denotes the subscript</em></p><p><em>have faith in parentheses ( ) where things are ambiguous</em></p><h3>Introduction</h3><p>What follows is a quick summary of one way to construct the Softmax classifier. This is really just a review for myself, but will perhaps be of use to someone out there. I’m also hoping it serves as a warm-up for more novel ideas and their exposition.</p><h3>Probabilities and the Exponential Family</h3><p>Probabilities (distributions) are just functions of a set of variables that are normalised to sum to one. Some of my favourite distributions follow.</p><h3>Multinomial</h3><p>Here we have a <em>K</em> sided die where side <em>k</em> has probability <em>θ_k</em> of showing up. We can let <strong><em>θ </em></strong><em>= [ θ₁, θ₂, …, θ_K ]</em>. The likelihood of a bunch of throws (or data points) is then given by <em>p(D | </em><strong><em>θ </em></strong><em>)= ∏ (θ_k)^ᴺᵏ </em>where <em>N_k</em> is how many times side <em>k </em>came up for <em>k=0…K</em>. We have a product since the data points are assumed to be independent, which is often a reasonable assumption.</p><h3>Beta and Dirichlet</h3><p>We’ll often want to model the probability of something being between 0 and 1. For example, we might want the probability of some indexed value like economic GDP or height. More interestingly, we may want the probability <em>of a probability parameter</em> (think of a <em>θ_k</em> above). The Beta distribution is great for this: with two parameters <em>a</em> and <em>b</em>, we can get a wide variety of “shapes” over [0,1].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*166mOq90Tld3CldYT6gxFQ.png" /></figure><p><em>B(a,b)</em> is called the “<a href="https://en.wikipedia.org/wiki/Beta_function">beta function</a>”: think of it as the normalisation factor. Here are some example Beta distributions with different <em>a</em> and <em>b</em>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/325/0*tJ6PVdeCqSesuHDt.png" /></figure><p>I like to remember distributions in pairs. The simplest way of doing so is considering their univariate and multivariate versions. The multivariate version of the Beta distribution, where a bunch of values can range from 0 to 1, is called the Dirichlet distribution:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/1*Rye7rYNPGk_zj7iroNWTrQ.png" /></figure><p>where <em>ind </em>is the indicator function, which is 0 unless its argument is true. In this case, that <em>θ</em> is in the “probability simplex” <em>S_k</em>. What’s that? It’s the set of <strong><em>θ</em></strong>’s such that each <em>θ_k</em> is between 0 and 1, and they all sum up to 1. So if <strong><em>θ</em></strong> is a joint distribution of parameters (or economic indices, indexed weights etc…), this would be a good way to model that. The indicator’s effect is super simple: is just means everything outside the simplex is 0.</p><p>Another great one is the Gamma distribution, which applies to positive real values (building heights, chemical concentrations etc…). I’ll leave that to the <a href="https://en.wikipedia.org/wiki/Gamma_distribution">reader</a>. Turns out all sorts of distributions like chi-squared and exponential are special cases thereof. Fun challenge: explore multivariate versions of each these!</p><h3>Generalised Linear Models (GLMs)</h3><h3>The Exponential Family</h3><p>As you can see, there are many common distributions. After seeing a handful, people began to notice patterns. One such pattern was that many distributions are of the following form:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/352/1*IhADaJfXtCg8ksJolOgVIg.png" /></figure><p><em>η</em> (pronounced “eta”) is often called the “natural parameter”. What I’ve found is that different notations are good in different contexts. In this case the bar would be clunky. A good approach is to be conscientious about what notation to use when writing, and flexible when reading. It’s also a good test of understanding to think about what the notation actually means in a given context.</p><p>Here’s an example: the Bernoulli distribution we all know and love (coin toss) is part of the exponential family. To see this, notice that</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/374/1*C5ZLqAxbONQXeviI1PTKtQ.png" /></figure><p>And we’re done. Can you map this to our formula for the exponential family?</p><h3>GLMs</h3><p>Many situations arise where we wish to impose a certain distribution on <em>y | x</em>; that is, given a value for <em>x</em>, we want to get the probability for <em>y</em> using a Bernoulli, Multinomial, Poisson, or other distribution based on the situation (a coin toss, multi-classification, rain droplets…). Turns out that if we take this as a starting point and add a few “linear” assumptions, we obtain a machinery to crank out prediction algorithms, including Softmax. The three step process is:</p><ol><li>Assume <em>y | x ; θ ∼ ExpFam(η)</em></li><li>Given <em>x</em>, we know that we want our hypothesis function <em>h_θ (x) = E[ y |x ; θ ]</em>, in other words we “predict what we expect”</li><li>The natural parameter is linear in <em>x</em>. That is, <em>η = θ^T . x</em></li></ol><p>For instance, using Bernoulli as our starting point (it’s a member of the Exponential Family), let’s figure out what our hypothesis function should be:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/494/1*6odI5zOXr1qaVfk8pg13dg.png" /></figure><p>Substitute <em>η = θ^T . x</em> and we have logistic regression! Brilliant.</p><p>The core limitations of GLMs lie in their assumptions. They’re pretty reasonable, but insofar as they are inaccurate, so is the system. For example, if <em>y | x </em>follows a different distribution to the one we choose, our predictions may suffer.</p><h3>Softmax</h3><p>Let’s say we want to predict one of several outcomes i.e. multi-classification. We can repeat the above process, using the Multinomial instead of Bernoulli distribution to obtain a suitable classifier.</p><p>First, we need to show that the Multinomial belongs to the Exponential Family. Beyond assuming this for our GLM, remember that it enables us to figure out what the natural parameter <em>η</em> is relative to the Multinomial’s parameter vector <strong><em>ϕ</em></strong>. We’ll need this to figure out what <em>E[ y | x]</em> should be in terms of <em>η</em> — that’s how we get our classifier <em>h_θ</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/307/1*9xD3KYR5phfUVOvHghkfig.png" /></figure><p>Notice the trick in the last exponent. Now how do we view this as part of the Exponential Family? The key is we want some <em>T(y)</em> in the exponent; the rest are constants that follow naturally (no pun intended). Remember <em>T(y)</em> can be a vector, so we set:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/202/1*_dWsbzsVePmuUsAfGSbinw.png" /></figure><p>In other words <em>T(i)</em> has a 1 in the <em>i</em>’th place only. Since we have <em>k-1</em> degrees of freedom, <em>T(y)</em> need only be <em>k-1</em> dimensional, with <em>T(k)</em> having <em>all zeros</em>. Then we continue:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*u0IEy8zt8jINGL4mIbOKzQ.png" /></figure><p>which has the correct form.</p><p>Now, where do we start, where do we end? We now want<em> p(y=i | x) = ϕ_i</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/357/1*4P4OMsnXFVfeXcrIOONQDw.png" /></figure><p>And voilà! We rearrange the final line to get <em>ϕ_k </em>in terms of the rest, and sub that into line (2) to get what we want:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/117/1*naH3Umtl8aiI9W2nGM4a8w.png" /></figure><p>This is also known as the “Softmax response function”! Using our assumption that <em>η = θ^T . x</em>, we have our classifier given <em>x</em>. Explicitly:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/188/1*-JnmA9uCGI3ACkRUZ-nYwA.png" /></figure><p>Notice that each <em>θ_i</em> is a vector. In other words, each class <em>i</em> has a bunch of weights for each element of <em>x</em> (each feature of <em>x</em> could represent say the height, weight etc. of an individual) that contribute to that being the right class. These are then “squooshed” (technically speaking) according to the Softmax function to obtain a probability for that class.</p><h3>Conclusion</h3><p>It’s always unsatisfactory to be given a formula without having at least one more fundamental view of where it comes from. Here we’ve presented Softmax classification, as derived from a few reasonable assumptions in what we call the GLM framework. Perhaps with a bit of creativity, we’ll stumble upon other ways of constructing predictive tools that prove useful.</p><h3>Acknowledgements</h3><p>As stated, the content here is not novel. It’s a re-exposition of Andrew Ng’s <a href="http://cs229.stanford.edu/notes/cs229-notes1.pdf">notes</a>, with some inspiration from <a href="http://cs231n.github.io/linear-classify/">Andrej Karpathy</a>. Hopefully it provides a slightly different review to some, and it most certainly served as one, as well as a warm-up, to me.</p><p><em>Originally published at </em><a href="http://misrab.github.io/machinelearning/2017-08-03-softmax.html"><em>misrab.github.io</em></a><em> on August 3, 2017.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ad6856e46b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[On Ephemerality & Knowledge]]></title>
            <link>https://medium.com/@misrabfaizullahkhan/on-ephemerality-knowledge-7778c0d3f6c5?source=rss-5ece7770f6dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/7778c0d3f6c5</guid>
            <category><![CDATA[education]]></category>
            <dc:creator><![CDATA[Misrab Faizullah-Khan]]></dc:creator>
            <pubDate>Fri, 03 Jun 2016 00:00:00 GMT</pubDate>
            <atom:updated>2018-04-29T01:27:31.402Z</atom:updated>
            <content:encoded><![CDATA[<p>How can knowledge and achievement be viewed through the lens of stocks and flows?</p><p><em>Posted on June 3rd, 2016</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/0*duEOrzfz9HYv9ZNK.jpg" /></figure><p>They say “the moment” is all one ever has. This got me thinking about the repercussions on how to spend one’s time, at least when it comes to being “productive”, however one defines that. In particular, how much should time be spent on pure learning versus building? While I speak of these in an economic context, I mean each in the broad sense: learning a new language, doing maths exercises, watching educational videos; likewise, building could mean meeting people and forming relationships, writing code, or even doing paperwork. I suppose the key distinction here is that learning is internal building (of knowledge and skills), as opposed to the externally demonstrable kinds (a business, a product). True, knowledge and skills can be demonstrated, but much less easily at any single instant in time. A house that I’ve built, on the contrary, can be “demonstrated” rather rapidly.</p><p>To get more concrete, let’s say one wants to have a positive influence on the world by building a business, whose product and associated socio-economic leverage could be used as a force for good. Let’s group all this in the term “leverage”, which will be the objective function in evaluating learning versus building as defined.</p><p>Now the problem is deciding how much to spend time learning, for example just reading stuff related to the business, versus executing. And this is where the ideas of stocks and flows really become pertinent. The mind generally only experiences a moment. This means that although I can acquire vast amounts of knowledge, I can only encompass so much of it at any time in my mind’s eye. There appears to be a fundamental bottleneck when it comes to cognitive ability. Practicing maths exposes me to more theorems, and sharpens my analytical skills, but no amount of maths in a lifetime will make me so powerful as to glimpse into all the patterns of the universe and see the meaning of it all (I believe). Or, to be more humble, when faced with a new mathematical challenge, I usually still need to focus and devote much effort to solving it. What’s more is that I often have to re-devote concentration and effort to re-understand something I already unlocked before. That is, I had unlocked it within a past attention scope, which has since drifted away. The traces remain, and help subsequently, but they remain traces nonetheless. A flow.</p><p>Consider instead spending time on the plumbing for a web application. This plumbing will certainly be less stimulating than learning something new, and contribute less to personal development. However, once built, it remains. The next step of development will be incremental, laying one brick upon another. Of course, the entire endeavour could prove fruitless, but that could be the case with learning as well. Furthermore, the idea of stocks versus flows is subjective. Everything could be seen as a flow on a certain timescale, it really just comes down to what one thinks is reasonable. Over a lifetime building a house is a stock. Over the course of history it’s a flow, where the supply must be regenerated. But all that taken into account, in the web app example we end up with a product that is roughly a stock, and that can be extended programatically. It can contribute to a business that is grown. Lasting relationships can be formed around this business, as well as a lasting effect on the world (or a recurrent one). As each layer is added, it need be replenished at a much slower rate than, say, familiarity with certain mathematical tricks or nuances of a language.</p><p>That doesn’t mean one should spend one’s whole life doing plumbing. At some point, you’ll need to build the spaceship, and if you didn’t spend any time learning in the process, you won’t know how. But don’t let yourself fall into the trap of endlessly accruing knowledge. We owe it to the knowledge to crystalise it into real endeavours that can continue to manifest as our mind’s gaze moves on.</p><p><em>Originally published at </em><a href="http://misrab.github.io/random/2016-06-03-ephemeral.html"><em>misrab.github.io</em></a><em> on June 3, 2016.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7778c0d3f6c5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Revealed Preference]]></title>
            <link>https://medium.com/@misrabfaizullahkhan/revealed-preference-76d193bfbdfe?source=rss-5ece7770f6dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/76d193bfbdfe</guid>
            <category><![CDATA[thinking-out-loud]]></category>
            <dc:creator><![CDATA[Misrab Faizullah-Khan]]></dc:creator>
            <pubDate>Fri, 29 Jan 2016 00:00:00 GMT</pubDate>
            <atom:updated>2018-04-29T01:28:13.839Z</atom:updated>
            <content:encoded><![CDATA[<p>Quick thought on decision making through revealed preference</p><p><em>Posted on January 29th, 2016</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*q2jDw3HXTIN-VWKP.jpg" /></figure><p>Decision making can be tricky, and nowhere is it trickier than in deciding what to do with one’s life. The challenge increases with privilege; for it is indeed privilege to have options in the first place.</p><p>Often a decision is portrayed when there really isn’t one being made. Ben Horowitz, of VC firm Andreessen Horowitz, <a href="https://www.youtube.com/watch?v=F2e3RqL4VWs">articulates this very well</a>. This usually takes the form of “do we want good X or great X?”. The question is tautological.</p><p>True decision making arises from alternatives with tradeoffs. And yet herein lies my main point for this post: we seem to seldom use the mental tool of tradeoffs when making decisions.</p><p>For example, as I write this post I’m occasionally gazing outside and wondering how nice it would be to pursue a life of learning and exploration, as opposed to trading my time for renumeration. For a while I was caught in this mental trap: obviously that seems splendid. But my true preference, call it <a href="https://en.wikipedia.org/wiki/Revealed_preference">“revealed preference”</a>, becomes much clearer when presented as a choice between alternatives, where good and bad consequences are seriously considered. You can further enhance this by considering multi-step consequences, or indirect consequences as things interact, much like a chess player.</p><p>If you ask me if I want ice cream, of course I’ll say yes. Now, ask me if I want ice cream <em>or</em> a steak, and right now I’d probably tell you I’m in the mood for a steak. Turns out I didn’t want that ice cream as much as I thought. I truly love learning. The thought of owning my time sounds amazing. But would I want to do pure academics and nothing else for a decade? Not me, the FOMO (fear of missing out) is terrifying. That doesn’t mean I don’t still want to own my time. But it suggests a different, more calculated approach.</p><p>The next time you question whether you want something, frame it as a choice against other things. Your priorities will become very clear, your preferences…revealed.</p><p><em>Originally published at </em><a href="http://misrab.github.io/random/2016-01-29-revealedpreference.html"><em>misrab.github.io</em></a><em> on January 29, 2016.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=76d193bfbdfe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Regularity]]></title>
            <link>https://medium.com/@misrabfaizullahkhan/regularity-e40f1b14b0a0?source=rss-5ece7770f6dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/e40f1b14b0a0</guid>
            <category><![CDATA[thinking-out-loud]]></category>
            <category><![CDATA[life-lessons]]></category>
            <dc:creator><![CDATA[Misrab Faizullah-Khan]]></dc:creator>
            <pubDate>Tue, 10 Nov 2015 00:00:00 GMT</pubDate>
            <atom:updated>2018-04-29T01:28:40.137Z</atom:updated>
            <content:encoded><![CDATA[<p>A note on accomplishing (great) things</p><p><em>Posted on November 10th, 2015</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/380/0*Fsfb89RTNBACoxKG.jpg" /></figure><p>Every so often I’ll have a moment of inspiration where I feel the need and ability to accomplish a million wonderful things. I’ve found that these moments have become ever more crucial the less time I have to myself. Back in college, although I was generally “busy”, I owned my time. When a moment of inspiration struck, not only could I have a go at it, but more importantly I knew I’d be able to dive as deeply into the endeavour as I liked. All-nighters were less disruptive, and my schedule more flexible. And if I didn’t dive in right away, the opportunity would probably come around again shortly after.</p><p>When one has a job or other commitments, there is less leeway, and a bit more organisation can go a long way. I think the key is regularity. No matter how intense your burst of inspiration, sporadic effort will only get you so far. What’s worse is that as you build up memories of stillborn endeavours, a pile of negative precedent begins to build up in your mind. Every new moment of inspiration begins with a recollection of the previous dead-ends, and the self-doubt can become paralysing. Even if you manage to overcome this, or are somehow free of it, there is another cost to sporadic inspiration: depreciation. The more time left before picking up the relay baton from your past self, the harder it is to do so. More effort and time go into getting yourself back up to speed and in the zone. Sometimes I think of it as a loan, where all the fluff is interest and productive or enjoyable time is principal. You want to have a very low interest to principal ratio. This analogy is probably useful in other contexts as well, such as minimising the “activation energy” it takes to get into the zone in general, but I’ll avoid going off on that tangent for now.</p><p>So the question is when you do feel a moment of inspiration, what do you do? Such events are beautifully free-form, and any rigidity would probably detract from them and be self-defeating. But I do think there is one very important habit to be nurtured: ask yourself at that moment how you will build in regularity over the longer term. It’s really a blessing to feel passion for something; it’s your mind and soul telling you very clearly, “I care about this” — at least for starters. And to respect that endeavour is to recognise that most of the time, it will not come to full fruition with a single Red Bull all-nighter. Like I said, no amount of intensity will match regularity over a sufficient period of time. Ask yourself how you’ll build the core element of the thought at hand into your daily or weekly schedule. The impact will be much greater, and I think it’s the only way to internalise things and grow as a person. Perhaps most importantly, dead-ends will turn into fond memories.</p><p>There is one caveat here: don’t use regularity as an excuse to avoid intensity or rigour. A tough workout three times a week will probably make you really fit; a five minute walk every hour less so. It’s about balance, as always (or as “most of the time” :). There’s nothing wrong with Red Bull and an all-nighter (although they’re probably not great for your health). But the key point is that repetition will matter more in the long-run. Perhaps a decent jog a few times a week will suffice, and perhaps you will need to sprint occasionally.</p><p>So next time you and I experience that moment of inspiration, let’s dive in. But let’s also take a moment to build it into our lives with regularity. We’ll likely learn more, have a blast, and perhaps even accomplish some (great) things.</p><p><em>Originally published at </em><a href="http://misrab.github.io/random/2015-11-10-regularity.html"><em>misrab.github.io</em></a><em> on November 10, 2015.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e40f1b14b0a0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Quotient Groups — Introduction]]></title>
            <link>https://medium.com/@misrabfaizullahkhan/quotient-groups-introduction-b56b64410b09?source=rss-5ece7770f6dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/b56b64410b09</guid>
            <category><![CDATA[mathematics]]></category>
            <dc:creator><![CDATA[Misrab Faizullah-Khan]]></dc:creator>
            <pubDate>Wed, 25 Mar 2015 00:00:00 GMT</pubDate>
            <atom:updated>2018-04-28T14:11:02.479Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Posted on March 25th, 2015</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*q0Bpzg2TWI1GNh5X2E1lBQ.png" /><figcaption>Clocks are an example of modular arithmetic</figcaption></figure><h3>Introduction</h3><p>This is a follow-up to my previous introduction to <a href="http://misrab.github.io/mathematics/2015-02-26-groups.html">abstract groups</a>.</p><p>Let’s recap what we’ve been doing so far. We have these things called “groups”, with an associative operation ∘ defined between elements, identities and inverses. Addition on real numbers is a group. Division on integers is not, since 1/2 ∉ <strong>Z</strong>.</p><p>We then looked at maps between groups written <em>f</em>: <em>G</em>→<em>G</em>′. <strong>Homomorphism</strong>, where <em>f</em>(<em>a</em>) ⋅ <em>f</em>(<em>b</em>)=<em>f</em>(<em>a </em>⋅ <em>b</em>) seemed interesting in the way they preserve some sort of structure between groups. Isomorphisms present seemingly disparate groups as one.</p><p>Let’s see if we can break these maps into more detail.</p><h3>Kernels, Images and Centers</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/473/1*2SeSzbL2xQMpFYVmSw-DbQ.png" /></figure><p>The collection of elements “reached” in <em>G’</em> by applying <em>f</em> to elements in <em>G </em>is called the image of <em>f</em>:</p><p>The elements in <em>G</em> that get mapped to the identity in <em>G’</em> are the kernel of <em>f</em>. I like to think of these as items in <em>G</em> that get “smashed” down to <em>e’</em>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/473/1*UNpvFBS3wwfcK9HMOHhhSg.png" /></figure><p>Finally, the center of a <em>group</em> are those elements that commute with other elements in the group.</p><h3>Normal Subgroups</h3><p>In our previous post we saw that a subgroup <em>K </em>⊂ <em>G </em>is just a subset of G with group properties. What’s more interesting is a normal subgroup, where for any <em>k </em>∈ <em>K</em>, <em>gkg⁻¹</em> ∈ <em>K </em>as well, for <em>g </em>∈ <em>G</em>.</p><p>Note that what’s special here is that <em>g</em> is in <em>G</em>, not necessarily <em>K</em>. In other words, you can surround an element in <em>K</em> by an element in <em>G</em> and its inverse, and stay within <em>K </em>itself — that’s what’s cool. This property applies to kernels of a homomorphism, which we’ll see now.</p><h3>Kernel of a Homomorphism</h3><p>Consider the kernel of a homomorphism <em>ϕ: G→G’</em>, which we write as <em>ker(ϕ) = { g ∈ G : ϕ(g) = e’ }</em> . It turns out that kernels are subgroups of <em>G</em>, but a <em>homomorphic</em> kernel is also a <em>normal</em> subgroup. The proof is straighforward.</p><p>Consider <em>b</em> ∈ ker(<em>ϕ</em>) and <em>a</em> ∈ <em>G</em>. We want to show that <em>ker(ϕ) ⊂ G </em>is closed as a normal subgroup. In other words, that<em> aba⁻¹ ∈ ker(ϕ)</em>…in <em>other</em> words, that <em>ϕ(aba⁻¹) = e’</em>. We use the homomorphism property:</p><p>So indeed <em>aba⁻¹ ∈ ker(ϕ)</em>. This is a useful point to remember: <em>the kernel of a homomorphism is a normal subgroup</em>. We’ll see later that the converse is true: every normal subgroup can be seen as the kernel of some homomorphism!</p><h3>Equivalence &amp; Mod Math</h3><p>Let’s recall some simple modular arithmetic. Say we are operating in <em>modulo</em> 5. Then We can then do additions such as <em>9 + 5 = 14 = 4 (mod 5)</em>. Notice the <em>cyclicality</em> — that should send some sparks flying in your brain (think cyclic groups)!</p><p>This leads to the notion of <strong>equivalence classes</strong>, which is just a generalisation of equality. For any two elements <em>a, b </em>(in some set), we say <em>a ∼ b</em> (“<em>a</em> relates to <em>b</em>”). A relation <em>∼</em> has the following properties:</p><ol><li><em>a ∼ a</em> for any <em>a</em> (reflexivity)</li><li><em>a ∼ b</em> implies <em>b ∼ a </em>(symmetry)</li><li><em>a ∼ b</em> and <em>b ∼ c</em> implies <em>a ∼ c</em> (transitivity)</li></ol><p>These are properties we’d like for a notion of equality. In our modular example, we could say <em>3 ∼ 8</em> since <em>3 = 8 (mod 5)</em>. In this specific context, we sometimes say “<em>a</em> is congruent to <em>b</em> <em>mod 5</em>” and write <em>a ≅ b (mod 5)</em>. Equivalence relations induce a <strong>partition</strong> on a set: disjoint subsets that together form the whole set:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/401/0*bdcAk4pk5hyrmI5E.png" /><figcaption><em>A partitioned set (taken from Wikipedia)</em></figcaption></figure><p>In the case of integers <em>mod n</em>, each partition corresponds to a set of integers, formed by given integer <em>a &lt; n</em>, with all integer multiples of <em>n</em>. So we have a class</p><p>We then have a <em>new</em> set of order <em>n</em> of these equivalence classes, that we call <em>𝐙</em>/n<em>𝐙</em>. Namely,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*S7Xd8bPI1WhBwD6ZnoDg9A.png" /></figure><h3>Cosets</h3><p>Fantastic, so now we’ve seen modular arithmetic as a partition of the integers, into equivalence classes. Let’s generalise this notion, through the use of <strong>cosets</strong>.</p><p><strong>Quick reminder</strong>: we’re doing group theory here, where we have an <em>arbitrary</em> operation <em>∘</em>. We use the symbols + and * because they’re familiar. But never forget, we want to generalise to any group operation <em>∘</em>, and will interchange notation. Try to keep reminding yourself of this whenever you see these symbols.</p><p>Cosets are easy. Take a subgroup <em>H ⊂ G</em>. Take a <em>fixed</em> element <em>a ∈ G</em>. We now have a coset of <em>H</em> in <em>G</em>, denoted <em>aH = { ah : h ∈ H }</em>. Voilà! A subtle point is that group operations are not always commutative, so technically this is a <em>left</em> coset; you can imagine what a right coset is.</p><p>Here’s what’s <em>really</em> cool: if you think about it, the left (or right) cosets of a <em>subgroup</em> partition the <em>group</em>. We’ve already seen this with modular arithmetic. The subgroup there was <em>n𝐙 = { …-3n, -2n, -n, 0, n, 2n, 3n… }</em>. The group was <em>𝐙</em>. We partitioned <em>𝐙</em> (the group) into <em>𝐙/n𝐙</em>.</p><p>The coset view of this partition is as follows: for each element <em>a ∈ 𝐙</em>, the equivalence class <em>ā</em> is given by <em>a ∘ n𝐙</em>. The <em>∘</em> operation we’ve been using is +, but as we’ll see now, we should not get too attached to this.</p><h3>Quotient Groups</h3><p>Alright, I promised an introductory generalisation of modular math, and here it is. The concept is deep and we’ll explore it further. The “thing” <em>𝐙/n𝐙</em> is called a quotient group, more generally <em>G / H</em> for a group <em>G</em> with subgroup <em>H</em>. However, it turns out we can’t choose just any subgroup <em>H</em>; it actually has to be <strong>normal</strong>.</p><p>Why is this the case? Because we’ve partitioned <em>G</em> into a set of equivalence classes, but for it to be called a (quotient) <em>group</em>, we need a to define a group operation. For this operation to be naturally well-defined, we’ll need normality. As the French would say, that allows “transport de structure” from the operation already defined on <em>G</em>.</p><p>In the modular case we had new equivalence classes denoted by cosets <em>a + n</em><strong><em>𝐙</em></strong>. We’ll now have equivalence classes denoted <em>a ∘ H = { ah : h ∈ H }</em>. I hope that whets your appetite regarding the power of quotient groups.</p><h3>Conclusion</h3><p>Quotient groups, a generalisation of modular arithmetic, require a fair bit of build-up to understand their true beauty. I hope I’ve presented an introduction that highlights some of the intuition behind them. In our next post, we’ll define quotient groups properly, and explore them in meaningful ways. Until next time!</p><h3>Ackowledgements</h3><p>A huge thanks to anyone contributing to open-source in general, ’tis the best way forward. In this specific case, thanks to Harvard’s online <a href="http://www.extension.harvard.edu/open-learning-initiative/abstract-algebra">Abstract Algebra course</a>.</p><p><em>Originally published at </em><a href="http://misrab.github.io/mathematics/2015-03-25-groups2.html"><em>misrab.github.io</em></a><em> on March 25, 2015.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b56b64410b09" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Abstract Groups]]></title>
            <link>https://medium.com/@misrabfaizullahkhan/abstract-groups-7c291481e794?source=rss-5ece7770f6dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c291481e794</guid>
            <category><![CDATA[group-theory]]></category>
            <category><![CDATA[mathematics]]></category>
            <dc:creator><![CDATA[Misrab Faizullah-Khan]]></dc:creator>
            <pubDate>Thu, 26 Feb 2015 00:00:00 GMT</pubDate>
            <atom:updated>2018-04-28T13:33:20.288Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Posted on February 26th, 2015</em></p><h3>Introduction</h3><p>Groups, and what follows from them, are really cool. Had I known earlier, I would have seriously started studying group theory a long time ago.</p><p>What makes abstract algebra so interesting, to me at least? I think it’s the balance between generality and structure. The foundation is very simple (and thus general), yet it leads to extremely interesting ways of thinking about specific problems. If for no other reason, it’s worth a look to enhance one’s mental flexibility.</p><p>‘Nuff said, let’s dive in.</p><h3>On Generalisation</h3><p>I want to make a quick point on the concept of generalisation. How does it occur and what is its use? My personal experience is that one first grapples with very specific problems. In this case one might be working with matrices, and seperately permutations. Generalisation occurs when one starts to notice <em>patterns</em> accross disparate fields. For instance, “hmmm, when I multiply this matrix by others nothing changes. That’s like the permutation where each element goes to itself!”.</p><p><em>The 3x3 identity matrix, and the identity permutation</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/143/0*OT5jg3BstxvsJmFC.jpg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/153/1*9GgZZUf-APP3e90lOyKgNw.png" /></figure><p>What then is the advantage of connecting seemingly disparate fields? On one hand, one might be able to solve multiple problems the same way, just as we do with basic algebra: the solution to <em>3x + 1 = 4</em> is <em>x = 1</em> , whether we’re talking about apples or spaceships. Another advantage, not to be understated, is getting a better mental grasp of the subject: understanding bounds on structure. By that I mean what are the minimal properties required for certain conclusions, and how far can these conclusions extend.</p><p>“Specific problems to general perspective. Simple solutions and better mental grasp”. Got it!</p><h3>Groups</h3><p>Let’s start to be precise. A group is formally:</p><ul><li>A set <em>G</em> with a binary operation ∘</li><li>The operation is associative: <em>a ∘(b ∘c) = (a ∘b) ∘ c</em></li><li>There is an identity element <em>e</em></li><li>Each element <em>a </em>has a unique inverse <em>a⁻¹</em> such that <em>a ∘ a⁻¹ = e</em></li></ul><p>If the operation further commutes i.e. <em>a ∘ b = b ∘ a</em> for all <em>a, b</em>, we say the group is Abelian. Many interesting groups will not be.</p><p>Let’s look at some examples. The most typical would be the real numbers <em>ℝ</em> under usual addition. When then have <em>e = 0 </em>and <em>a⁻¹ = -a</em>. For common operations we’ll use symbols like + or * instead of ∘, but it is <em>really</em> important to always be aware that we are really talking about an abstract operation. This will be crucial so as not to get confused when generalising.</p><p>We already touched upon permutations of <em>n</em> elements, also known as the <strong>symmetric group</strong> <em>Sn</em>. Aside from the identity permutation, we can think of each permutation <em>τᵢ</em> as fixing element <em>i</em> and swapping the other two:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/0*nGJAB_3jYNN2pGC6.png" /></figure><p>One can then work out composition rules, such as <em>τᵢ </em>∘<em> τᵢ= (τᵢ)² = e</em> . Note the exponential notation, and that the rightmost permutation is applied first.</p><p>Another interesting group is called the general linear group <em>GLn(ℝ)</em> of invertible <em>n x n</em> matrices with real components i.e. with non-zero determinant. If we further require the determinant to be +1, we get the special linear group S<em>Ln(ℝ)</em>.</p><p>As we explore more and more subtleties, we’ll see example of how they relate to groups like these. The advantage of studying underlying structures then slowly becomes clearer.</p><p>A subgroup <em>H</em> of a group <em>G</em> is just a <em>subset</em> of <em>G</em> has all the properties of a group, and is closed under ∘. In other words, elements don’t hop outside of the subgroup i.e. <em>a ∘ b = c ∉ H</em>, where <em>a, b ∈ H</em>.</p><p>In our previous examples, we see that S<em>Ln(ℝ)</em> is clearly a subgroup of G<em>Ln(ℝ)</em>: any matrix with determinant 1 has a non-zero determinant! One can also check it has group properties, for instance the identity matrix.</p><h3>Cyclic Groups</h3><p>A cyclic group is one that can be generated from a single element. “Generated” here means applying the group operation on the element with itself. We previously saw that single permutations <em>τᵢ</em> can generate the identity, but they can’t generate other permutations. Hence <em>S₃</em> is not cyclic.</p><p>Take the integers ℤ. This is a <em>cyclic group of infinite order</em> with generator 1. We write ℤ = 〈 1 〉 . It’s worth thinking <em>hard</em> about notation here: with the operation of addition <em>∘</em> = +, how on earth do we get the negative integers? It turns out the - sign we’re used to is just shorthand. <em>z⁻¹ = -z</em> for <em>z</em> <em>∈</em> ℤ. So in the terminology of “applying the group operation on the element”, we’re actually allowing for negative powers, which is to say applying powers to the inverse <em>z⁻ᵏ = (z⁻¹)ᵏ</em>. We’ve pretended the generator is alone when in fact we assumed the inverse tags along!</p><p>Back to the integers. We say their order is infinite because one can keep adding 1 and still get a new integer. Let’s look at a cool cyclic group of finite order: the <em>nᵗʰ</em> roots of unity, where <em>n</em> is the finite order. Recall that a complex number can be represented on the <em>(x, y) </em>plane, where the <em>y</em> coordinate is the imaginary component. For example <em>w = 4 + 3i </em>is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/0*J_m1ZlqSd0OG4hWd.png" /></figure><p>Another, more elegant way of representing <em>w</em> is <em>r.eⁱᶿ</em>, where <em>r</em> is the magnitude. In this case <em>r = 5</em>, and <em>θ = arctan(3/4)</em> (<a href="http://en.wikipedia.org/wiki/Trigonometry">good ol’ trig</a>).</p><p>The roots of unity are then the cyclic group generated by <em><br>e^(</em>2<em>πi</em>/<em>n)</em>, where <em>e^((</em>2<em>πi</em>/<em>n</em>)^<em>k) </em>= <em>e^(</em>2<em>πik</em>/<em>n</em>). For <em>n = 6</em>, <a href="http://en.wikipedia.org/wiki/Cyclic_group">we have</a>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*q7BVO9NKKyzhBWTY.png" /></figure><p>Not only are cyclic groups very pretty, but they also play an essential role in group theory (a role that I am still only beginning to appreciate).</p><h3>Maps and Morphisms</h3><p>Cool, so now we have groups. Let’s see what happens when we go from one to another, namely when we consider well-defined maps <em>m : G→G’</em>. Let’s start with an important propery known as <strong>homomorphism</strong>. Specifically, a map <em>m</em> is homomorphic if <em>m(a ∘ b) = m(a) * m(b)</em>. Note that <em>∘</em> and * are the group operations for <em>G</em> and <em>G’</em> respectively (notation matters!). So what does this property intuitively mean? One way to look at it is such: combining elements in <em>G</em> and <em>then</em> mapping them is the same as first mapping them separately, and then combining them in <em>G’</em>. Consider the following example where we transform each element <em>x→x’</em> homomorphically in a vector space with vector addition:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/571/1*G9cHrYwAMRrn5tJDoxpzCw.png" /></figure><p>Above taking <em>a + b</em> and then mapping the result <em>c→c’</em> is equivalent to <em>a’ + b’</em>. This can be useful in settings where we wish to preserve some level of structure across a transformation, for example in pattern recognition.</p><p>An <strong>isomorphism</strong> is a bijective homomorphism. When two groups are isomorphic, we can essentially hop between one and the other through the isomorphic map. A one-to-one correspondence of elements exists. An <strong>automorphism</strong> is just an isomorphism of a group to itself i.e. <em>m: G→G</em>. In other words, it is equivalent to a re-labeling of items.</p><h3>Conclusion</h3><p>I meant to talk about kernels, images, centers, and most importantly quotient groups, but this post is getting long. I’ll wait for a post on vector spaces to bring them up, hopefully with some intuitive linear examples! Quotient groups are really where things start getting funky, and are fundamental to modern applications like cryptography.</p><p>Hopefully we’ve gotten a sense here of what group theory is about, and glimpsed at some of the potency of such a way of thinking. Check <a href="http://misrab.github.io/2015/03/25/groups2.html">this</a> out next!</p><h3>Ackowledgements</h3><p>A huge thanks to anyone contributing to open-source in general, ’tis the best way forward. In this specific case, thanks to Harvard’s online <a href="http://www.extension.harvard.edu/open-learning-initiative/abstract-algebra">Abstract Algebra course</a>.</p><p><em>Originally published at </em><a href="http://misrab.github.io/mathematics/2015-02-26-groups.html"><em>misrab.github.io</em></a><em> on February 26, 2015.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c291481e794" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>