Using Polynomial Regression with Scikit-learn in Python

Image for post
Image for post
Photo by Ruthson Zimmerman on Unsplash

Context

About 40 days ago, on September 23rd to be exact, I was tasked by my linear algebra professor with constructing a model to predict deaths from COVID-19 in our university’s home state of North Carolina — from that point up to the day of the election, November 3rd. The model was a fairly simple 2nd order polynomial regression calculated using the Scikit-learn library in Python. Using daily data obtained from the NC Department of Health and Human Services COVID-19 dashboard the model was “trained” on data ranging from March 25th, the date of the first recorded COVID death in the…


You’re a subject of late-stage capitalism

“Nihilism is a natural consequence of a culture (or civilization) ruled and regulated by categories that mask manipulation, mastery and domination of peoples and nature.”

Cornel West

Nihilism as a philosophy can be defined by its rejection of human value-systems alongside the rejection that meaning is intrinsic to life and the greater universe. To be more precise, the above description of nihilism really only covers the branch of existential nihilism. …


A deeper look at the house of cards our modern economy rests on

Image for post
Image for post

If you’ve been paying attention you’ve likely noticed the markets tumbling down for the past few days now as apprehension solidifies regarding the coronavirus’ (Covid-19) potential mutation into a global pandemic. This week the S&P 500 experienced its worst 2-day plunge since 2018. Several Asian economies are currently on the brink of recession as economic activity grinds to a halt in China and elsewhere in the region. Gold prices have now reached a 7-year high in response. President Trump is presently panicking since any prolonged recession occurring between now and November would spell death for his reelection bid, and as…


One of the most powerful speeches in American history

Image for post
Image for post
Debs addressing a Chicago crowd in 1912

It cannot be overstated the contributions Eugene Victor Debs made to the American socialist cause and to the broader mission of spreading class consciousness nor the lessons he left us to learn. Commensurate with this, unsurprisingly, is the complete absence of Debs’ story from the American curricula. It’s a shame really, Debs’ oratory ability stands out even amongst the most gifted in the American canon. Even if you vulgarly separate his politics from his messaging, you're left with a profound display of linguistic command.

One such example is Debs’ statement to a Federal court 102 years ago today. For background…


Take to the streets if you can! And yes, the irony of this posting is not lost on me.

Image for post
Image for post
My sign making skills are unremarkable.

My intention in writing this is not to shame anyone, police anybody’s actions, or diminish any valid forms of online resistance — they all have their place of course. On the contrary, I’m arguing against any kind of “woke-policing”, which can only ever fully cease by disconnecting from the Internet. The goal of this writing is to provide an alternative prescription for the heavy information-consumer that may feel paralyzed (as I once was) by wanting to say, think, or do the perfectly “right thing” at a tumultuous time when no such solitary moral form exists. By engaging in offline forms…


A dialectical look at how we got here, how to move forward, and the danger of “respectability politics”

Image for post
Image for post
Photo by Josh Hild on Unsplash

Under no pretext should arms and ammunition be surrendered; any attempt to disarm the workers must be frustrated, by force if necessary

— Karl Marx

The insurrection we’re witnessing was bound to blossom sooner or later

Uprisings have occurred in response to police brutality countless times before in America but the scope and intensity associated with this most recent iteration of unrest in response to the recent string of police killings of George Floyd, Breonna Taylor, Sean Reed, and too many more, is nothing short of awe-inspiring to witness. But what made them reach this degree of intensity we’re seeing? As a materialist first and foremost, I would posit the current…


A deconstruction of the most prominent contradictions present within the neoliberal free-market doctrine & a look at how COVID-19 presents a rare opportunity to drastically amend our reality for the better

Image for post
Image for post
Photo by Markus Spiske on Unsplash

“Economics is unique among the social sciences in having a single monolithic mainstream, which is either unaware of or actively hostile to alternative approaches.”

John E King

Welcome to the latest installment of global economic catastrophe — this time brought to you by failed free-market policies alongside none other than COVID-19. Although to be perfectly candid, one could just as convincingly argue that the total systems-wide collapse we find ourselves in at present is the result of said polices working entirely as intended as opposed to failing. Semantics aside, COVID-19 is undoubtedly rapidly accelerating the post-2008 Great Recession. As…


Corporate socialism is once again on full display, concurrently student debt sits at $1.5 trillion, & thousands across the nation can’t get tested for coronavirus as a result of ineffectual leadership and profiteering

Image for post
Image for post
Screenshot of the day’s trading of the S&P 500 index, March 12th

The stock market continued its bloody march downwards, triggering a -7% circuit-breaker only 4 minutes after opening Thursday morning. The circuit-breaker, which results in a 15-minute halt on all trading to prevent a more severe reflexive meltdown, was the second of its kind triggered just this week with the first occurring three days prior on Monday. The novel coronavirus, Covid-19, is primarily being scapegoated by many for the ongoing capitulation with the precipitous drops in oil prices being the secondary culprit. Of course, our economy was largely broken before Covid-19 came onto the scene and in reality, the virus was…


How the sugar lobby made America obese

Image for post
Image for post

In “Nutritionism Defined” by Michael Pollan, Pollan produces the argument that “nutritionism” and nutritional science are two separate entities. Nutritionism, according to Pollan is an ideology that emphasizes “quantifying the nutrients contained in foods” (492) — that is to say, exercising scientific reductionism that “encourages us to take a simple mechanistic view” (Pollan 496) of nutrition such that all qualitative aspects are removed in favor of a blandly transactional and often incomplete approach. Pollan further cements this premise by pointing out the many times scientists were wrong about nutrition in the past, citing the different evolutions that nutritional science has…


Joe Biden is a huge liability in the general. The Democratic nomination is far from being a forgone conclusion and Elizabeth Warren has the leverage to ensure this.

Image for post
Image for post

If some two months ago you told me that Bernie Sanders was going to win the popular vote in the first three primaries, win the largest state in the country — California, and come in a close 2nd place in Texas, I would have asked you who your dealer is. Indeed, before the left curls up and cries, let’s take honest stock of where we are, where we’ve been, and where we could be going.

As of 6:33 pm EST, the most recent count taken by the Associated Press shows Joe Biden holding 566 delegates to Sanders’ 501. A 65…

Ali Alsous

Economics student committed to leveraging the power of data science from a left/humanist international perspective; for the good of all and not the few.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store