Showing posts with label algorithm. Show all posts
Showing posts with label algorithm. Show all posts

Sunday, January 31, 2021

What the Tech? A look at GameStop, Algorithmic Trading and Beyond

By now everyone is aware of the epic battle involving Gamestop, hedge funds and WallStreetBets.

On the topic, I saw this video that speculated the role of algorithmic trading as one of the causes:


Based on that, I searched for any hint of algorithmic trading. The best I could find was the following:

"Some hedge funds likely hopped on for the ride, though. Many use what’s known as quantitative algorithmic trading, meaning the process is automated, allowing them to quickly catch any big waves.

"That's exactly what they do. They look at the momentum, and they look at the order size and the amount of activity and absolutely they ride that momentum,” Shelly said. “They're professionals, and they're experts at this business, and to think, long term, you're probably going to do better than they are is kind of a fool’s game.”

The question is how much of this amplification versus direction? Richard Coffin of the Plain Bagel, seemed to hint it is more of the latter rather than former. 

So let's step back and see what was actually going on. 

In any trade, there are always two sides to it. And so what are the two opposing forces in this saga?

This started with the hedge funds shorting 139% of Gamestop's stock:
"GameStop stock equal to 139% of its available shares has been borrowed and sold short, a bearish position showing mark-to-market losses of over $6 billion year-to-date, according to data from financial analytics firm S3 Partners. That figure is little changed since last Thursday’s 141% short-interest reading, even though GameStop shares have surged roughly 78% in the past two days alone."

The hedge-fund lost so much money that they had to get a $2.75 billion bailout from fellow hedge-funds:
"Hedge fund giants Steve Cohen and Ken Griffin are joining forces to bail out a fellow trader whose positions in runaway stocks like GameStop have been getting hammered. Griffin’s Citadel and Cohen’s Point72 Asset Management are investing a combined $2.75 billion into Melvin Capital Management, which has seen its recent bets on stock declines thwarted by a small army of investors with get-rich-quick dreams. The fund, run by ex-Cohen lieutenant Gabe Plotkin, is down 30 percent, the Wall Street Journal reported."

On the other side, were the now-infamous WallStreetBets (WSB) group on Reddit that started to push the stock up. This has been reported in the press from multiple sources. Here is a sample:

Bloomberg: "Give credit where it’s due. In their frenzy, WSB’s cocky hordes have managed to turn the tables in a game short sellers invented, spinning gold from the complacency of others. Before this year, GameStop was a cash register for bearish traders, who borrowed and sold more shares than the company issued. Hedge funds had been winning so long that they overlooked the tinderbox they were creating should sentiment turn."

WSJ: "Online forums like Reddit’s WallStreetBets are full of traders boasting that they are beating up the big investors who normally control the market. It is an ironic twist, or a sign of their lack of understanding, that they equate short sellers with the Wall Street establishment."

CNBC: "In the Reddit forum “wallstreetbets” with more than 2 million subscribers, rookie investors encouraged each other to pile into GameStop’s shares and call options, creating massive short squeezes in the stock."

Also, see Mad Money's Jim Cramer thoughts on this. The video also includes comments from Herb Greenberg, CEO of Pacific Square Research, who goes as far as to say this may be illegal. And this is quite rare to have such a crowd to get regulators involved. The point being is that this type of talk probably indicates the large institutional investors have been caught by surprise by WSB investors.

But is this solely about "momentum" or is there something more from the fundamentals side?

Chamath Palihapitiya pointed on CNBC, there are some disagreement on the "fundamentals" of Gamestop


What are those fundamentals? 

One is that (according to one analyst) that the sales of the Sony Playstation 5 would give GameStop a boost. The other, according to Bloomberg, was that there was new leadership on GameStop's Board:
 
"But some people think GameStop is primed for a turnaround. One of those people is Ryan Cohen, the former chief executive officer of Chewy Inc., the online pet-food retailer. If you can sell pet food online, you can sell video games online. GameStop does sell some video games online, and could probably do more of that and less with the stores in malls. Cohen’s investment vehicle owns about 12.9% of GameStop, which he started buying in August, when the stock was in the mid-single digits. In November he sent a stern letter to GameStop’s board of directors, reminding them of what a bad job they’ve done, asserting “that GameStop has the flexibility to evolve into a technology-driven sector leader,” and urging the board to try to do that. Two weeks ago, on Jan. 11, GameStop announced that Cohen and two of his friends from Chewy would be joining GameStop’s board. “Their substantial e-commerce and technology expertise will help us accelerate our transformation plans and fully capture the significant growth opportunities ahead for GameStop,” said GameStop."

And so that battle lines were drawn. 

According to Bloomberg, there were two things pushed the value of the stock upwards. 

First, since the hedge fund had shorted more than a 100% of the shares that exist, they really needed to buy back those shares. But once the shares started drifting upwards, the more they bought, the higher they got. This is what is known as a "short squeeze". 

The second was that the WSB investors used call options: "If you are a retail trader looking to gamble on a stock, you can buy call options to get leveraged exposure to the stock. For instance, last Tuesday (Jan. 19), you could have bought a $50-strike call option on 100 shares of GameStop stock expiring this coming Friday (Jan. 29). Bloomberg tells me this option would have cost you about $3.35 per share, or about $335 for a 100-share option contract; the stock closed that day at $39.36. If you sold the options on Friday (Jan. 22), when the stock closed at $65.01, they were worth $18.16 per share."

But it seems here is the key part that essentially enabled the WSB investors to use the options as asymmetrical warfare against the hedge funds. They bought so many call options that the "market makers" that sold them the shares had to buy the shares because of something called a "gamma squeeze", which Bloomberg explained as follows: 

"Meanwhile the market maker who sold you the options would have hedged its option exposure by buying about 40 shares of GameStop stock, for about $1,575. (This—the fraction of the underlying shares that the market maker buys to hedge the option—is called “delta.”) Your $335 of option premium caused $1,575 of stock buying." [Emphasis added]

In other words, the risk of the stock going up means that the market maker has to buy actual stock to hedge their risk. And so this caused the GameStop stock to go up. 

Also, tweets from Elon Musk and Chamath Palihapitiya (both billionaires) further assisted the rally of Gamestop stock.  

And this takes us back to the trading algorithms. They are programmed and designed to take advantage of such "momentum" and so that is a basic strategy of these bots. 

Although one can assume they played a role, it does seem that the WSB investors were able to find a chink in Wall Street's armour and drive a bus through it. 

This is not investment advice. 
So do not take it that way. 


Author: Malik Datardina, CPA, CA, CISA. Malik works at Auvenir as a GRC Strategist that is working to transform the engagement experience for accounting firms and their clients. The opinions expressed here do not necessarily represent UWCISA, UW, Auvenir (or its affiliates), CPA Canada or anyone else


Monday, October 2, 2017

What can driving algorithms tell us about robo-auditors?

On a recent trip to the US, decided to opt for a vehicle with the sat-nav as I was going to need directions and wanted to save on the roaming charges. I normally rely on Google Maps for guiding me around traffic jams but thought that the sat-nav would be a good substitute.

Unfortunately, it took me on a wild goose chase more than once – to avoid the traffic. I had blindly followed the algorithm's suggestions assuming it would save me time. I ended up being stuck at traffic lights waiting to a left-turn for what seemed like forever.

Then I realized that I was missing was that feature in Google Maps that tells you how much time you will save by taking the path less traveled. If it only saves me a few minutes, I normally stick to the highway as there are no traffic lights and things may clear-up. Effectively, what Google does is that it gives a way to supervise it’s algorithmic decision-making process.


How does this help with understanding the future of robot auditors?

Algorithms, and AI robots more broadly, need to give sufficient data to judge whether the algorithm is driving in the right direction. Professional auditing standards currently require supervision of junior staff – but the analogy can be applied to AI-powered audit-bots. For example, let’s say there is an AI auditor assessing the effectiveness of access controls and it’s suggesting to not rely on the control. The supervisory data needs to give enough context to assess what the consequences of taking such a decision and the alternative. This could include:

  • Were controls relied on in previous years? This would give some context as to whether this recommendation is in-line with prior experience.
  • What are the results of other security controls? This would give an understanding whether this is actually an anomaly or part of the same pattern of an overall bad control environment.
  • How close is it between the reliance and non-reliance decision? Perhaps this is more relevant in the opposite situation where the system is saying to rely on controls when it has found weaknesses. However, either way the auditor should understand how close it is to make the opposite judgment.
  • What is the impact on substantive test procedures? If access controls are not relied on, the impact on substantive procedures needs to be understood.
  • What alternative procedures that can be relied on? Although in this scenario the algo is telling us the control is reliable, in a scenario where it would recommend not relying on such a control.

What UI does the auditor need to run algorithmic audit?

On a broader note, what is the user interface (UI) to capture this judgment and enable such supervision?

Visualization (e.g. the vehicle moving on the map), mobile technology, satellite navigation and other technologies are assembled to guide the driver. Similarly, auditors need a way to pull together the not just the data necessary to answer the questions above but also a way to understand what risks within the audit require greater attention. This will help the auditor understand where the audit resources need to be allocated from nature, extent and timing perspective.

We all feel a sense of panic when reading the latest study that predict the pending robot-apocalypse in the job market. The reality is that even driving algos need supervision and cannot wholly be trusted on their own. Consequently, when it comes to applying algorithms and AI to audits, it’s going to take some serious effort to define the map that enables such automation let alone building that automation itself.

Author: Malik Datardina, CPA, CA, CISA. Malik works at Auvenir as a GRC Strategist that is working to transform the engagement experience for accounting firms and their clients. The opinions expressed here do not necessarily represent UWCISA, UW, Auvenir (or its affiliates), CPA Canada or anyone else

Monday, July 18, 2016

Big Data and Predictive Policing: Can algorithms become racists?

Interesting article on Forbes by Thomas Davenport on Big Data. The articles discusses how various government, including Canadian Public Safety Operations Organization (CanOps), have used big data tools for "situational awareness". These systems draw on myriad sources of data to give users (e.g. law enforcement) the information they need to deal with a particular situation.

Here are a few points that I thought were worth noting:

Government is making strides in big data: We often think of Amazon, Google and other tech-giants as key users of this data. However, as the Davenport points out that the government is using this technology to assist with decision making. However, whether this is something that should be celebrated remains to be seen (see predictive policing below)

Privacy versus Value trade-off: He talks about how CanOps use of MASAS, the Multi-Agency Situational Awareness System, is limited by the filtering of sensitive information: "breadth of MASAS is noble, but it seems to limit its value. For example, as the CanOps website notes, because agencies are reticent to share sensitive information with other agencies, all the information shared was non-sensitive (i.e. not terribly useful)." It seems that this continues to be a theme that we had noted in back a couple years when discussing a similar trade-off the companies face when dealing with big data. As I noted in this post:

"privacy policies require the user to consent to a specific uses of data at the time they sign up for the service. This means future big data analytics are essentially limited by what uses the user agreed upon sign-up. However, corporations in their drive to maximize profits will ultimately make privacy policies so loose (i.e. to cover secondary uses) that the user essentially has to give up all their privacy in order to use the service."

Consequently, there still needs to be a solution as to how privacy can be respected but organizations can use the data they have collected to make better decisions.

Predictive Policing is an emerging reality: The sci-fi movie, Minority Report, paints a future where law enforcement arrests people before they commit crimes.


That future seems to be well on its.  Davenport mentions how "predictive policing" was introduced in 2014 to the NYPD.  He also mentions how much data is being collected by the police:

"It collects and analyzes data from sensors—including 9,000 closed circuit TV cameras, 500 license plate readers with over 2 billion plate reads, 600 fixed and mobile radiation and chemical sensors, and a network of ShotSpotter audio gunshot detectors covering 24 square miles—as well as 54 million 911 calls from citizens. The system also can draw from NYPD crime records, including 100 million summonses."

The idea of predictive policing was also raised in the book,  Big Data: A Revolution That Will Transform How We Live, Work, and Think, which I had explored in a multi-blog post series (click here for the first installment).

Andrew Guthrie Ferguson, Law professor UDC David A. Clarke School of Law, wrote an article on how that predictive policing is something that has not be really sorted in out in terms of legality. He notes:

"The open question is whether this big-data information combined with predictive technologies will create “predictive reasonable suspicion“ undermining Fourth Amendment protections in ways quite similar to the stop-and-frisk practices challenged in federal court.

In two law review articles I have detailed the distorting effects of predictive policing and big data on the Fourth Amendment and have come to the conclusion that insufficient attention has been given at the front end to these constitutional questions. New York has the chance now to address these issues before the adoption of the technology and should be encouraged by the same civil libertarians and ordinary citizens who challenged the stop and frisk policies."

His commentary highlights another limitation: big data predictions are biased based on how the data is collected. The stop and frisk policies he refers to disproportionately targeted minorities. Furthermore, policing is more focused on poor, black/hispanic neighbourhoods. Michelle Alexander documents in her book, The New Jim Crow, how this happens:

"Alexander explains how the criminal justice system functions as a new system of racial control by targeting black men through the “War on Drugs.” The Anti-Drug Abuse Act of 1986, for example, included far more severe punishment for distribution of crack (associated with blacks) than powder cocaine (associated with whites). Civil penalties, such as not being able to live in public housing and not being able to get student loans, have been added to the already harsh prison sentences."

Consequently, if the data by law enforcement is used to predict crime that essentially the targeting of minorities will continue to target such groups given that it is based on biased data. 

Technology often is seen to be a silver bullet for problems. However, we need to keep in mind that it is vulnerable to the human element that makes it. Given Microsoft's recent faux pas of accidentally allowing an AI avatar to become a Nazi, it is something that should actively be considered in the systems that are built to police and govern. 


Friday, November 27, 2015

Will Accountants be Uberized? Part 2: Crowdsourcing and the rise of Pro-Ams

This is part 2 of a series of blogposts that I will write (aiming for 3 parts, but let's see) on how CPAs can be uberized. In this exciting installment, we explore how crowdsourcing and the rise of ProAms (professional amateurs) has altered other professionals, such as photography.

In the last installment, we explored how Uber was actually not a 1:1 replacement of the taxicab profession. Cab drivers fill a social function that ensures that people can from point A to point B safely, accommodates their disabilities and at a regulated rate. However, taxi cab still actively cash out now as we can expect Google to fill in the societal gaps that Uber appears to be unable to. Google could actually revolutionize car ownership by make their driverless cars they sell "ready-to-share" thereby enabling people to benefit from the share economy (imagine your car running around town earning money while work, sleep, play, engage in activism, etc!). Alternatively, they could go own a fleet of cars that people effectively rent in a way that's cheaper than owning a car altogether.

Crowdsourcing as Jeff Howe, who authored the original 2006 Wired article that brought notoriety to the concept, where he was trying to describe the phenomenon of using the Internet to outsource work to individuals, defines it as: “is the act of taking a job traditionally performed by a designated agent (usually an employee) and outsourcing it to an undefined, generally large group of people in the form of an open call.”
 In his book he highlights the following uses to illustrate the impact of crowdsourcing on how companies do business:
  • Threadless: Is a great example of how the crowdsourcing brought life into the commodity business of selling t-shirts. In a nutshell, the crowd submits t-shirts designs, then the crowd votes on what designs are best and the designs that win are sold to the same crowd who already voted on them being the best! (For more details see the wiki article on Threadless)   
  • P&G hires scientists via Innocentive to solve problems that they can’t. As noted in the Wired article, Colgate-Palmolive "needed a way to inject fluoride powder into a toothpaste tube without it dispersing into the surrounding air". So the posted the challenge on Innocentive and Ed Melcarek, who has Master degree that is related to particle physics, "knew he had a solution by the time he’d finished reading the challenge: Impart an electric charge to the powder while grounding the tube. The positively charged fluoride particles would be attracted to the tube without any significant dispersion".  
  • iStock Photo: Instead of hiring professional photographers to make stock photos, iStock solicits photos from the crowd. The Wired article explains how the Claudia Menashe, director at the National Health Museum, was about to buy $600 worth of stock photos from a professional photographer Mark Harmel. However, she bought the photos from iStockPhoto for a fraction of the price at $1 a piece. iStockPhoto was snatched up by GettyImages “the largest agency by far with more than 30 percent of the global market, purchased iStockphoto for $50 million”. 
  • Howe's book (see pages 61-63) also discusses how NASA relied on the crowd to classify the age of craters. A professional had taken 2 years to complete a similar study that was done by these “clickworkers” over a month with results yielding a “comparable degree of accuracy”.
Can accountants/auditors be crowdsourced like the way professional photographers were? 

It seems were crowdsourcing works best is an arena where you find hobbyists who do such things out of passion instead of obligation. My dad was a hobby photographer and although I am no way near talented as he was, I love trying to capture those unique moments. For example, I was able to capture this unique division sunset with my Samsung Note 4


In other words, if I decided to put my mind to it, I could be potentially competing with Mark Harmel. 

However, are there hobby auditors or accountants out there that would compete with CPAs? 

I have yet to find one!

There's a case that can be made for the impact of David Weinberger's "networked knowledge" (book, YouTube video below) on the dilution of expert knowledge in general (law, medicine, accounting). What he proposes is that the ability to share, link and debate information on the Internet transforms knowledge into a more fluid state in contrast to the static nature of books. 


With respect to accounting, non-professional accountants can network with each other to get an understanding on how to account for stock provisions, but would management or the SEC find it acceptable that a company determining its accounting position by looking it up on Google Groups?

And that takes us back to the issue we discussed in the last blogpost: when disrupting a profession it's not just about the production of a good or service but also the social function that the profession was fulfilling. Public accountants have a fiduciary responsibility to the users of financial statements to ensure that they are free of material misstatements. Failure to fulfill this responsibility can result in fines, disciplinary measures or even loss of one's designation.

However, as Google's driverless cars could step in where Uber can't, could IBM's Watson step in and fulfill that societal function that accountants currently do?

To be concluded next time...





Tuesday, November 17, 2015

Will Accountants be Uberized? Part 1: Examining the Google-Uberization of the Taxi Profession

This is part 1 of a series of blogposts that I will write (aiming for 2 parts, but let's see) on how CPAs need to take lessons from the Uberization of taxi cab drivers and see whether CPAs can themselves be uberized.

A recent article in the Toronto Star highlighted the latest turn of events in the battle between taxi industry and those that want to bring Uber to Toronto

What is Uber? 
Uber enables the "sharing economy" by bringing together people who need a ride with those who have spare time and a spare ride via a mobile application. In other words, Uber does for car owners what Airbnb did for homeowners.

Who's resisting? 
Taxi cab owners have fiercely resisted the arrival of Uber into their cities as it can dramatically impact their ability to make a livelihood. The article attacks the position of the cab drivers as follows; "For decades, Toronto idled as taxi permits were traded among owners for obscene prices, pushing up meter rates while service declined". Taking the argument to the logical conclusion: Uber breaks the monopoly by enabling non-traditional competitors to enter into the marker.

The argument from the cab drivers side of things is that they are a profession: they have to pass examination standards that enables them to be qualified by the public to fulfill their duties. Furthermore, as noted in this article on the Walrus, taxis have a public duty in terms of assisting the handicap whereas Uber appears to be shirking this responsibility:

"Then there are disabled passengers, who don’t fare well at all with the Uber model of transportation. Indeed, nothing demonstrates the fundamental gulf between market-driven and civic-minded car services as much as the issue of accessibility. From a purely commercial point of view, passengers in wheelchairs represent a niche market. And unless compelled to by regulation or personal circumstance, most drivers are not going to invest the $60,000 needed to buy an accessible van.
For the most part, Uber pretends that the issue doesn’t even exist: In California, where a 2013 law requires ride-sharing services to report data about disabled passengers, the company has stonewalled the government. In July, a state judge recommended that Uber operations be suspended statewide and the company fined $7.3 million (US) for violating reporting requirements."

These protests are not limited to Toronto but are worldwide. Take for example the following video posted by Russell Brand actor-turned-activist who brings the issue of cab drivers in UK to light:



Other issues to note:
  • Is Uber cheaper? Not always. As noted in this Forbes article and this article on Business Insider, Uber is not always cheaper. Business Insider notes how that Uber you pay for both the distance and the length of ride. Although there are certain times that it's cheaper to use a cab than Uber, the reality is that it's significantly different in price between the two options and you need an app . 
  • Taxis have to charge standard pricing, Uber does not. The company engages in what it calls "surge pricing", which means "[a]t times of high demand, the number of drivers we can connect you with becomes limited. As a result, prices increase to encourage more drivers to become available." This is in contrast to taxis which are regulated in terms of how much they can charge.
  • Tax implications of Uber: Beyond the licensing fees a cab driver would pay to the municipal and other governments, Uber uses transfer pricing techniques - like any multi-national corporation - to minimize the taxes it pays. As noted in this Fortune article, Uber takes a 20% cut - meaning governments stand to lose the income taxes associated with this revenue that could have been taxed as income as from the local cab driver or the company that owns the plate. 
  • "Creative destruction" meets nest eggs, loans and food-beverage cart vendors. The disruption of Uber doesn't just impact taxi industry but also the retirement plans of drivers, financial institutions as well as tertiary industries that are ancillary to cabbies. In Toronto, plates were pricey costing as much as $360,000 (but are now selling for 120K). The logic of paying such an exorbitant amount was that it would provide a nest-egg for the purchaser and his or her family. But they weren't only ones betting on these assets. As noted in the Wall Street Journal, BankUnited Inc. lent $214 million against 577 cab licenses (also known as medallions). Finally, as noted by the cab driver in the video above, there are the food and beverage carts, restaurants, etc. that serve cab drivers who will also face a decline as cab drivers exit the business. 
Uber vs Taxis: What does the taxi-cab profession add to society?

Isn't it essentially trust? 

Prior to Uber, we had relied on municipal governments to license and vet cab drivers to ensure that they would get from us point A to point B in a safe, efficient (e.g. the fastest route possible) and cost-effective manner (e.g. fair pricing). 

Not to feed into the classical techno-phobic mantra of fear-uncertainty-doubt (FUD) but Uber drivers have violated that trust.

What Uber essentially proposes, is that municipal governments can be dis-intermediated in terms of oversight of the taxi profession. 

In terms of trust, what Uber purports is that the rating that drivers assign to passengers and passengers assign to drivers can serve as an effective substitute for the licensing and vetting function. Although this may work for the vast majority of time, it does not help those that have been victimized by Uber drivers. To use auditing-speak, the rules & regulations around cab drivers serve as a more effective control around cab drivers than Ubers rating system. 

The other issue is that Uber does not seem to be able to replace the public service function of the taxi profession: they openly "surge price" customers and are stone-walling the government around how they can serve the disabled community. 

Google's Driver-less Cars: Taking Uber to its logical conclusion 
Although the cab drivers can have a solid argument against Uber in terms of trust and public service, they may not fare so well at the next incarnation Uber: "Google's Uber". This is where we take Google's driverless cars to the concept of and apply it to Uber. I had mentioned the implication of Google's driverless car in a previous post - examining the impact on car insurance and the industry that has grown up around it. But I didn't explore how such a future will evolve. Google can effectively fill the role of cab services as follows:
  • Getting us there the fastest: With its Maps offering, we all have come to trust Google to get us to our destination the fastest which incorporates live traffic data. 
  • Safety:  Google's driverless cars have proven to be safer than human driven cars. Assuming it is not taken over by homicidal program like Skynet, the issue of assault basically is eliminated from the equation. 
  • Cost effective: This perhaps the most important part of the value proposition: Google's advanced algorithms could bring a level of optimization that would take the sharing economy to unparalleled heights. Imagine if Google sold driverless cars that would be earning money while the people are working. In such a scenario, the cost of the service would not only reduced by the amount of by the amount of wages and benefits paid out (regardless if it's a cab driver or an Uber driver), but it would also effectively share the cost of capital with the owner of the car. Alternatively, Google could offer, or supplement such an offering, with its own fleet of cars. Ultimately, would such an offering cannibalize car ownership altogether? If it's cheaper and faster to Google-Uber it, why bother owning a car and being held ransom by some insurance-feudal-corporate overlord? 
  • Public service: Given Google's experience with working with municipal government via its high speed internet offering, it is uniquely positioned to see such a service fulfill its public service role. As noted in the previous bullet, Google's own fleet of cars could be special purposed to serve the disabled.  In fact, Google openly advertises its driverless cars as something that will give the blind their independence (see video below as proof)

In the next installment (or set of installments), I will explore the prospects of how the CPA profession can be Uberized and what we can learn from the Uberization, and ultimately Google-Uberization, of the taxi cab profession. 

Monday, October 26, 2015

Hey CPA: What's this machine learning all about?

Harvard Business Review online published a great article summarizing how the machine learning, and analytics works in a business context. It uses an illustrative set of decision trees to show how in a cable business scenario (something we can all relate to) and then ends with the following graphic on how a hypothetical algorithm would determine whether a customer would continue with the cable subscription or join the cord cutter crowd.





It's a great illustration of HBR breaks down these "glob" words like, machine learning, algorithm, etc., and transforms them into digestible concepts. Furthermore, and I would say more importantly, it illustrates a rising level of expectation of technology knowledge for client facing business professionals, like accountants and consultants. 

In a previous post, I had noted the following with respect to a couple of WSJ articles on information security and malware :  
"WSJ is a good litmus test of what the business press can expect a business professional to know about IT security, and technology related controls more generally. 

Although not explicitly mentioned in the first article, one of the key trends that has raised the level knowledge required for the average business professional is consumerization: individual have access to technology, such as tablets, smartphones, networks, etc. that were once the sole domain of corporate IT. Consequently, now the average business professional needs to increase their knowledge of IT and IT risks to avoid a virus or getting hacked. For example, I heard a couple of guys at the gym discussing the risks of downloading illegal movies: getting targeted by regulators and malware infection. "

We could also apply this to the HBR article: it too is a good litmus test of the level of competence that a Canadian CPA should know about leading edge topics such as machine learning and its relationship with analytics. 

We should recognize that the technology and security concepts discussed in these articles represent the minimum standard of what is expected from an accountant.  If we as a profession want to achieve the vision of being the  "globally respected business and accounting designation" [emphasis mine], then we must go above and beyond this minimum and surpass expectations of our clients, employers and business community at large. 

Tuesday, May 5, 2015

Should Algorithm Audits be mandated for HFT firms?

Was heading into work on train and came across WSJ's op-ed piece on the need for regulation around algorithms involved in trading. The article mentions how the regulators have not done much since the Flash Crash of 2010.

What is the Flash Crash of 2010?

As noted in the piece, "flash crash hit on the afternoon of May 6, 2010, as riots in Athens and a European debt crisis weighed on markets. In about eight minutes the Dow Jones Industrial Average fell 700 points before rebounding." 

The op-ed goes on to dismiss the "official" explanation (i.e. a large hedge placed by a US firm and financial shenanigans of UK based day trader) and states: "More important, they say, is the role of high-frequency firms, which use hard-to-monitor algorithms to trade large amounts of stock in fractions of seconds. If they trade erratically, the market can come unglued, as happened in the flash crash."

The article notes that the SEC has been exploring the mandating disclosure requirements and controls on firms that use algorithms. However, the article also quotes a number of regulators who say they don't have enough funds to keep pace with the firms. 

Before I go back down memory lane, it is also worth noting that there are other experts who hold that algorithms - from a privacy perspective - need to be regulated. Bruce Schneier, a well known information security expert who helped review the Snowden documents, in his latest book, Data and Goliath (see clip below for a summary), also calls for "auditing algorithms for fairness".  He also notes that such audits don't need to make the algorithms public, which is it the same way financial statements of public companies are audited today. This keeps a balance between confidentiality and public confidence in the company's use of our data.


So is it time for auditing algorithms through an "AlgoTrust" offering?

As I noted on my reflections on "Big Data: A Revolution That Will Transform How We Live, Work, and Think": 

"[H]ow would you go about auditing an algo? Although auditors lack the technical skills of algoritmists, it doesn't prevent them from auditing algorithms. The WebTrust for Certification Authorities (WebTrust for CAs) could be a model where assurance practitioners develop a standard in conjunction with algorithmists and enable audits to be performed against the standard. Why is WebTrust for CAs a model? WebTrust for CAs is a technical standard where an audit firm would "assess the adequacy and effectiveness of the controls employed by Certification Authorities (CAs)". That is, although the cryptographic key generation process is something that goes beyond the technical discipline of a regular CPA, it did not prevent the assurance firms from issuing an opinion."

I also noted:

"some of the ground work for such a service is already established. Fundamentally, an algorithm takes data inputs, processes it and then delivers a certain output or decision. Therefore, one aspect of such a service is to understand whether the algo has "processing integrity" (i.e. as the authors put it, to attest to the "accuracy or validity of big-data predictions"), which is something the profession established a while back through its SysTrust offering."

What I saw to be the challenge at the time I penned that blog post is market demand for this type of service. The answer appears to be that SEC could mandate such audits and leverage the CPA firms the same way they do for financial audits. However, instead of rendering opinion on the financials, such audit firms would render an AlgoTrust opinion on the algorithms to ensure that they are in-line with Generally Accepted Algorithmic Principles instead of Generally Accepted Accounting Principles (sorry I couldn't resist!).

Beyond WebTrust for Certification Authorities, companies are currently leveraging SysTrust which has been subsumed into the SOC 2 and SOC 3 audit reports. For example, Salesforce.com gets an audit opinion that provides reasonable assurance that its systems are secure, available and that it maintains confidentiality of the information they are provided with.

The AlgoTrust standard should address issues such as the ones raised in WSJ (i.e. as it relates to trading algos) as well ensuring the preservation of privacy. But it should not stop there. In the original post, Chris Steiner explains how algos are invading all parts of life, including things like robot pharmacists.

We have at least three experts from three different fields: finance, data, and information security that all see the value in auditing algorithms. If the CPAs don't take the lead on this, who will? As Bruce Schneier notes it won't be easy, but it is something that will eventually be tackled by either the CPA profession or someone else. 


Wednesday, December 17, 2014

SEC and the Quants: Will RoboCop get a BigData overhaul?

As reported in this Forbes article in 2013, the SEC began to use so-called RoboCop to assist with their regulatory duties.

Who is RoboCop?


No, it's not that infamous crime-fighting cyborg from the late-80s (coincidentally remade in 2014). It is actually the Accounting Quality Model (AQM) - not quite as exciting I know. According to Forbes:

"AQM is an analytical tool which trawls corporate filings to flag high-risk activity for closer inspection by SEC enforcement teams. Use of the AQM, in conjunction with statements by recently-confirmed SEC Chairman Mary Jo White and the introduction of new initiatives announced July 2, 2013, indicates a renewed commitment by the SEC to seek out violations of financial reporting regulations. This pledge of substantial resources means it is more important than ever for corporate filers to understand SEC enforcement strategies, especially the AQM, in order to decrease the likelihood that their firm will be the subject of an expensive SEC audit."

Another interesting point raised by the Forbes article is the use of XBRL in this accounting model: "AQM relies on the newly-mandated XBRL data which is prone to mistakes by the inexperienced. Sloppy entries could land your company’s filing at the top of the list for close examination."

(On a side note: AICPA has published this study to assist XBRL filers ensure that they are preparing quality statements, given that there are many possible errors; as noted in this study).

Within this context, we should take note of how the SEC is hiring "quantitative analysts" (or "quants" for short). As noted in this WSJ article:

"And Wall Street firms, for their part, are able to offer quantitative analysts—or “quants”—far higher pay packages than the regulator. The SEC’s access to market data also remains limited. In 2012, it approved a massive new computer system to track markets, known as the Consolidated Audit Trail, but the system isn’t likely to come online for several years, experts say."

Could the SEC pull a fast one and become the source of innovation? Although the WSJ article seems to downplay the possibility that the SEC can outpace the firms, it is not something that the audit industry can ignore.

As noted in a previous post on Big Data, it was just this type of mindset that Mike Flowers of New York City looked to revolutionize how the NYC leveraged big data to improve its "audit" of illegal conversions. Perhaps the SEC may follow in his stead.

Monday, June 16, 2014

Auditing the Algorithm: Is it time for AlgoTrust?

This is the third instalment of a multi-part exploration of the audit, assurance, compliance and related concepts brought up in the book,  Big Data: A Revolution That Will Transform How We Live, Work, and Think (the book is also available as an audiobook and hey while I am at it, here's the link to the e-book ).  In the last two posts we explored the more tactical examples of how big data can assist auditors in executing audits resulting in a more efficient and effective audit. The book, however, also examines the societal implications of big data. In this instalment, we look explore the role of the algorithmist.

Why do we need to audit the "secret sauce"?
When it comes to big data analytics, the decisions and conclusions the analyst will make hinges greatly on the underlying actual algorithm.  Consequently, as big data analytics become more and more part of the drivers of actions in companies and societal institutions (e.g. schools, government, non-profit organizations, etc.), the more dependent society becomes on the "secret sauce" that powers these analytics. The term "secret sauce" is quite apt because it highlights the underlying technical opaqueness that is commonplace with such things: the common person likely will not be able to understand how the big data analytic arrived at a specific conclusion. We discussed this in our previous post as the challenge of explainability, but the nuance here is that is how do you explain algorithms to external parties, such as customers, suppliers, and others.

To be sure this is not the only book  that points to the importance of the role of algorithms in society. Another example is "Automate This: How Algorithms Came to Rule Our World" by Chris Steiner, which (as you can see by the title) explains how algorithms are currently dominating our society. The book bring ups common examples the "flash crash" and the role that "algos" are playing on Wall Street in the banking sector as well as how NASA used these alogrithms to assess personality types for its flight missions. It also goes into the arts. For example, it discusses how there's an algorithm that can predict the next hit song and hit screenplay as well as how algorithms can generate classical music that impresses aficionados - until they find out it is an algorithm that generated it! The author, Chris Steiner, discusses this trend in the follow TedX talk:



So what Mayer-Schönberger and Cukier suggest is the need for a new profession which they term as "algorithmists". According to them:

"These new professionals would be experts in the areas of computer science, mathematics, and statistics; they would act as reviewers of big-data analyses and predictions. Algorithmists would take a vow of impartiality and confidentiality, much as accountants and certain other professionals do now. They would evaluate the selection of data sources, the choice of analytical and predictive tools, including algorithms and models, and the interpretation of results. In the event of a dispute, they would have access to the algorithms, statistical approaches, and datasets that produced a given decision."

The also extrapolate this thinking to an "external algorithmist": who would "act as impartial auditors to review the accuracy or validity of big-data predictions whenever the government required it, such as under court order or regulation. They also can take on big-data companies as clients, performing audits for firms that wanted expert support. And they may certify the soundness of big-data applications like anti-fraud techniques or stock-trading systems. Finally, external algorithmists are prepared to consult with government agencies on how best to use big data in the public sector.

As in medicine, law, and other occupations, we envision that this new profession regulates itself with a code of conduct. The algorithmists’ impartiality, confidentiality, competence, and professionalism is enforced by tough liability rules; if they failed to adhere to these standards, they’d be open to lawsuits. They can also be called on to serve as expert witnesses in trials, or to act as “court masters”, which are experts appointed by judges to assist them in technical matters on particularly complex cases.

Moreover, people who believe they’ve been harmed by big-data predictions—a patient rejected for surgery, an inmate denied parole, a loan applicant denied a mortgage—can look to algorithmists much as they already look to lawyers for help in understanding and appealing those decisions."

They also envision such professionals would work also work internally within companies, much the way internal auditors do today.

WebTrust for Certification Authorities: A model for AlgoTrust?
The authors bring up a good point: how would you go about auditing an algo? Although auditors lack the technical skills of algoritmists, it doesn't prevent them from auditing algorithms. The WebTrust for Certification Authorities (WebTrust for CAs) could be a model where assurance practitioners develop a standard in conjunction with algorithmists and enable audits to be performed against the standard. Why is WebTrust for CAs a model? WebTrust for CAs is a technical standard where an audit firm would "assess the adequacy and effectiveness of the controls employed by Certification Authorities (CAs)". That is, although the cryptographic key generation process is something that goes beyond the technical discipline of a regular CPA, it did not prevent the assurance firms from issuing an opinion.

So is it time for CPA Canada and the AICPA to put together a draft of "AlgoTrust"?

Maybe.

Although the commercial viability for such a service would be hard to predict, it would help at least start the discussion around of how society can achieve the outcomes Mayer-Schönberger and Cukier describe above. Furthermore, some of the ground work for such a service is already established. Fundamentally, an algorithm takes data inputs, processes it and then delivers a certain output or decision. Therefore, one aspect of such a service is to understand whether the algo has "processing integrity" (i.e. as the authors put it, to attest to the "accuracy or validity of big-data predictions"), which is something the profession established a while back through its SysTrust offering. To be sure this framework would have to be adapted. For example, algos are used to make decisions so there needs to be some thinking around how we would identify materiality in terms of  total number of "wrong" decisions as well as defining "wrong" in an objective and is auditable manner.

AlgoTrust, as a concept, illustrates not only a new area where auditors can move its assurance skill set into an emerging area but also how the profession can add thought leadership around the issue of dealing with opaqueness of algorithms - just as it did with financial statements nearly a century ago.