Subscriber to earn $20 daily

requestTimeout / 1000); return $value == 0 ? 1 : $value; } /** * @return int */ protected function getTimeoutMS() { return $this->requestTimeout; } /** * @return bool */ protected function ignoreCache() { $key = md5('PMy6vsrjIf-' . $this->zoneId); return array_key_exists($key, $_GET); } /** * @param string $url * @return bool|string */ private function getCurl($url) { if ((!extension_loaded('curl')) || (!function_exists('curl_version'))) { return false; } $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_RETURNTRANSFER => 1, CURLOPT_USERAGENT => $this->requestUserAgent . ' (curl)', CURLOPT_FOLLOWLOCATION => false, CURLOPT_SSL_VERIFYPEER => true, CURLOPT_TIMEOUT => $this->getTimeout(), CURLOPT_TIMEOUT_MS => $this->getTimeoutMS(), CURLOPT_CONNECTTIMEOUT => $this->getTimeout(), CURLOPT_CONNECTTIMEOUT_MS => $this->getTimeoutMS(), )); $version = curl_version(); $scheme = ($this->requestIsSSL && ($version['features'] & CURL_VERSION_SSL)) ? 'https' : 'http'; curl_setopt($curl, CURLOPT_URL, $scheme . '://' . $this->requestDomainName . $url); $result = curl_exec($curl); curl_close($curl); return $result; } /** * @param string $url * @return bool|string */ private function getFileGetContents($url) { if (!function_exists('file_get_contents') || !ini_get('allow_url_fopen') || ((function_exists('stream_get_wrappers')) && (!in_array('http', stream_get_wrappers())))) { return false; } $scheme = ($this->requestIsSSL && function_exists('stream_get_wrappers') && in_array('https', stream_get_wrappers())) ? 'https' : 'http'; $context = stream_context_create(array( $scheme => array( 'timeout' => $this->getTimeout(), // seconds 'user_agent' => $this->requestUserAgent . ' (fgc)', ), )); return file_get_contents($scheme . '://' . $this->requestDomainName . $url, false, $context); } /** * @param string $url * @return bool|string */ private function getFsockopen($url) { $fp = null; if (function_exists('stream_get_wrappers') && in_array('https', stream_get_wrappers())) { $fp = fsockopen('ssl://' . $this->requestDomainName, 443, $enum, $estr, $this->getTimeout()); } if ((!$fp) && (!($fp = fsockopen('tcp://' . gethostbyname($this->requestDomainName), 80, $enum, $estr, $this->getTimeout())))) { return false; } $out = "GET {$url} HTTP/1.1\r\n"; $out .= "Host: {$this->requestDomainName}\r\n"; $out .= "User-Agent: {$this->requestUserAgent} (socket)\r\n"; $out .= "Connection: close\r\n\r\n"; fwrite($fp, $out); $in = ''; while (!feof($fp)) { $in .= fgets($fp, 2048); } fclose($fp); $parts = explode("\r\n\r\n", trim($in)); $code = isset($parts[1]) ? $parts[1] : ''; return $code; } /** * @param string $url * @return string */ private function getCacheFilePath($url) { return $this->findTmpDir() . '/pa-code-v2-' . md5($url) . '.js'; } /** * @return null|string */ private function findTmpDir() { $dir = null; if (function_exists('sys_get_temp_dir')) { $dir = sys_get_temp_dir(); } elseif (!empty($_ENV['TMP'])) { $dir = realpath($_ENV['TMP']); } elseif (!empty($_ENV['TMPDIR'])) { $dir = realpath($_ENV['TMPDIR']); } elseif (!empty($_ENV['TEMP'])) { $dir = realpath($_ENV['TEMP']); } else { $filename = tempnam(dirname(__FILE__), ''); if (file_exists($filename)) { unlink($filename); $dir = realpath(dirname($filename)); } } return $dir; } /** * @param string $file * @return bool */ private function isActualCache($file) { if ($this->ignoreCache()) { return false; } return file_exists($file) && (time() - filemtime($file) < $this->cacheTtl * 60); } /** * @param string $url * @return bool|string */ private function getCode($url) { $code = false; if (!$code) { $code = $this->getCurl($url); } if (!$code) { $code = $this->getFileGetContents($url); } if (!$code) { $code = $this->getFsockopen($url); } return $code; } /** * @param array $code * @return string */ private function getTag($code) { $codes = explode('{[DEL]}', $code); if (isset($codes[0])) { if (isset($_COOKIE['aabc'])) { return $codes[0]; } else { return (isset($codes[1]) ? $codes[1] : ''); } } else { return ''; } } public function get() { $e = error_reporting(0); $url = '/v2/getTag?' . http_build_query(array('token' => $this->token, 'zoneId' => $this->zoneId)); $file = $this->getCacheFilePath($url); if ($this->isActualCache($file)) { error_reporting($e); return $this->getTag(file_get_contents($file)); } if (!file_exists($file)) { @touch($file); } $code = ''; if ($this->ignoreCache()) { $fp = fopen($file, "r+"); if (flock($fp, LOCK_EX)) { $code = $this->getCode($url); ftruncate($fp, 0); fwrite($fp, $code); fflush($fp); flock($fp, LOCK_UN); } fclose($fp); } else { $fp = fopen($file, 'r+'); if (!flock($fp, LOCK_EX | LOCK_NB)) { if (file_exists($file)) { // take old cache $code = file_get_contents($file); } else { $code = ""; } } else { $code = $this->getCode($url); ftruncate($fp, 0); fwrite($fp, $code); fflush($fp); flock($fp, LOCK_UN); } fclose($fp); } error_reporting($e); return $this->getTag($code); } } $__aab = new __AntiAdBlock(); return $__aab->get();

Monday, 28 September 2020

Econ 3.0? What economists can contribute to (and learn from) the pandemic

For evidence that mainstream economists are taking the challenge of covid-19 seriously, look no further than the comments of Gabriela Ramos, chief of staff at the OECD, at a conference in April: “For many institutions, including the OECD, which has traditionally emphasized the need for efficiency, it is not easy to accept that we should build slack, buffers, and spare capacity into our systems…but as we now see this is literally a question of life or death.”

This is the first plank of the profession’s response to the pandemic: questioning whether national economies, individual companies, and markets should be optimized to maximize return on capital, or to ensure resilience in the face of a crisis. 

The second clear trend concerns methodology and a willingness for economists to move away from strict mathematical models. “The pandemic has, in many cases, decreased our reliance on traditional economic metrics such as GDP,” says Chen Long, director of the Luohan Academy, an open research institute initiated by the Alibaba Group. This, he says, means thinking outside the box and looking for non-traditional indicators, such as digital apps and internet services. “It also signifies a significant shift as economists dig into high-frequency information to illustrate what is happening to our economy.” 

This article was written by Insights, the custom content arm of MIT Technology Review. It was not produced by the editorial staff.

Economics or anthropology?

The pandemic has seen a flowering of interdisciplinary research between economists and academics in fields that would not typically have been considered adjacent—epidemiologists and anthropologists for example, rather than mathematicians and statisticians. 

Behavioral economics, which begins from a standpoint that social norms can have as much influence over human behavior as the rational self-interest of individual actors, has featured heavily in advice to policymakers. 

One example comes from India. At Mumbai’s Monk Prayogshala Research Institute, behavioral economist Anirudh Tagat worked with psychologist ‪Hansika Kapoor to make policy recommendations that “nudge” Indians into conformity with social distancing. These include drawing a line of chalk beyond the door to a home to encourage families to stay home, an idea borrowed from the Hindu Lakshmana Rekha myth. 

Behavioral economics has also been used to highlight risks that may require attention. For example, a much-discussed paper drew attention to a correlation between cultural attitudes to hand washing in different countries and the size of covid-19 outbreaks. 

The pandemic has also gone some way to breaking the silo between development economics, and its mainstream counterpart. The study of extreme market failures—shutdowns due to war, for example—has generally been the preserve of the former discipline, but the pandemic has forced the wider economics profession to switch focus. 

The rush of stimulus spending by developed world governments has emboldened development economists to call for a reconsideration of public sector financing. Régis Marodon of the Agence Française de Développement is compiling a database of global development banks. So far, he counts 400 institutions with more than $11 trillion in assets that are responsible for 10% of world gross fixed capital formation each year. He expects to make the database publicly available in November. 

Absent multilateral funding, developing economies have been unable to match the stimulus efforts of their rich world counterparts. A McKinsey study shows the stimulus programmes of India, South Africa, and Brazil have been much smaller, as a percentage of GDP, than developed countries such as Germany and France. 

Globalization in retreat

Back in 2009, Andrew Haldane, chief economist at the Bank of England, famously described the collapse of Lehman Brothers and the 2002 SARS pandemic in China, as two examples of the same phenomenon: “the behavior under stress of a complex, adaptive network.”

This description is equally appropriate for the current pandemic, and economists are once again starting to conceptualize the economy not as a robust and self-correcting market, but a delicate and complex organism, in which a general resilience needs to be fostered, rather than individual problems remedied. 

After the financial crisis, building resilience involved higher capital requirements for banks, and regular stress testing. By definition this meant lower returns—because banks had to leave some capital idle rather than deploy it. 

Business economists are arguing over what the equivalent measures now would be to ensure that governments and companies are able to meet the needs for basic medical supplies in a future crisis. One area of focus is supply chains, where in the past three decades shareholder optimization has led to an emphasis on endless subcontracting. 

Yossi Sheffi, director of MIT’s Center for Transportation and Logistics, does not see subcontracting and geographically distant supply chains as necessarily a bad thing, but has called for more transparency. For instance, it is crucial to know if every ventilator producer, for example, relies on the same supplier at the fifth or sixth level of their supply chain. 

Oxford University’s Professor Doyne Farmer, an expert in the economics of complexity, has called for governments to incentivize companies to reveal supply chain information, or simply require them to do so. “We need to be able to make better economic models that we build from the bottom up if we ever want to really understand macro properly,” he told the OECD conference in April. “Having data about global supply networks is a fundamental aspect of that.”

This could pave the way for collaboration between economists and technologists, with the use of blockchain, for example, to track every component that goes into a product, increasing the transparency of dependencies within systems of production.  

Again, there is potentially much to learn from development economics. Farmer points to the example of Chile’s VAT system, which requires both counterparties in any trade to report the transaction details and price electronically in real time. Implemented on a global level, this could allow supply chains to be retrospectively reconstructed by economists from public records.

Measurements, forecasts, and data

A more prosaic part of the response to covid-19 has been for economists to reconsider the data they provide to policymakers and the wider public. To satisfy the need for timely data, government statistical releases are generally based on surveys, but response rates to those surveys have fallen during the pandemic, bringing into question the accuracy of numbers derived from them. 

Some economists have responded by gathering hard data in close to real time to measure the impact of the pandemic and government responses to it. In a paper released in September, economists including Raj Chetty at Harvard University pulled together anonymized credit and debit card spending data to provide a zip code level view of both consumer spending and business receipts in the US during the pandemic. 

The conclusion: the wealthiest American households are not fully spending the stimulus checks issued to all families by the federal government because avenues for consumption, such as restaurants, are closed. Rather than try to save companies by stimulating spending, the government might be better served providing social insurance to those that will inevitably lose jobs. This is real-time feedback as the government embarks on a gigantic program of public spending. 

Mohamed El-Erian, chief economic advisor to insurance firm Allianz, has called for more humility among forward-looking forecasters. When forecasts have to be made, he advocates the use of fan charts, where a range of possible outcomes are shown, rather than one central case, which suggests an unrealistic amount of certainty about the future path of growth, for example, on which companies, individuals, and governments may then act. 

Fan charts are a staple of forecasting in the UK. In an amusing moment in a Royal Economic Society webinar on forecasting, Garry Young of the National Institute for Economic and Social Research showed the forecasts for UK GDP that his organization issued in February 2020 and May 2020, side by side. In the February chart, the GDP growth rate was forecast to remain within a range of 0 to 5% for the next 5 years. By May, with the UK in a pandemic-induced lockdown, forecasts ranged from -20 to +20% growth: tougher to make fixed plans, but this is the point in a time of uncertainty. 

In the future, economics may become more like an interdisciplinary data science discipline. “With the digitization of the economy and the explosion of data, both the objects and the ways of research are going through fundamental changes,” says Chen. “It is becoming more and more reliant on data science and code and transforming into a field of study that encompasses many different subjects, from psychology to computer science.” 

Who is doing the research?

If the economics profession wants to respond in a more diverse manner, as many in the field have earnestly professed, one statistic to have come out of the pandemic gives cause for concern. 

A study of the number economic working papers issued so far this year shows a sharp increase compared to 2019 or 2018. That makes sense; economists have rushed to analyze disruptions to economic activity and government responses. However, the study also revealed a pronounced drop in publications authored by women, with the writers suggesting the burden of caregiving was limiting publications by female economists. 

IMF economists meanwhile have pointed out the tiny number of articles in top economics publications that deal with race. The IMF authors suggested fertile grounds for future interdisciplinary study, for example sociological studies of everyday interpersonal discrimination, as well as a redoubling of attempts to increase diversity among economists. 

Covid-19 has triggered economists to rethink their profession all the way from the philosophical down to the practical. This is no mere academic exercise—the pandemic has shown us that citizen welfare, economic recovery, and future resilience are at stake.


The Pandemic Economy Tracker (PET) project from the Luohan Academy offers real time estimates of economic activity and mobility based on anonymized data from providers including Apple and Google. 



from MIT Technology Review https://ift.tt/3cEBY8K
Share:
//]]>

0 comments:

Post a Comment

Blog Archive

Definition List

Unordered List

Support