COVID-19 Tracking Data API and Data Anomalies (No Correlations? Cases to Hospitalizations Increases)

Is there a correlation between Positive cases and Hospitalizations? Below is the API for python access, open to all who desire to filter the data. I want to just give easy access to all the beginner students data scientists out there, such as myself..Explore and Discover: **My Apologies It says High Def, but does not look High Def on video here**

Code: import matplotlib.pyplot as plt import pandas as pd from scipy import stats import statsmodels.api as sm import requests import time from IPython.display import clear_output response = requests.get(“https://covidtracking.com/api/v1/us/daily.csv”) covid = response.content ccc = open(“daily.csv”,”wb”) ccc.write(covid) ccc.close() df = pd.read_csv(“daily.csv”, index_col = ‘date’) df.head() data = df[[‘positiveIncrease’,’hospitalizedIncrease’]] dataT = df[[‘positiveIncrease’,’hospitalizedIncrease’,’hospitalizedCurrently’]] dataD = df[[‘hospitalizedIncrease’,’deathIncrease’]] dataT.head(20) plt.figure(figsize=(20,10)) Y = data[‘positiveIncrease’] X = data[‘hospitalizedIncrease’] plt.scatter(X,Y) plt.ylabel(“Tested Positive Increase”) plt.xlabel(“Hospitalization Increase”) plt.show() Y1 = sm.add_constant(Y) reg = sm.OLS(X, Y1).fit() reg.summary() data.plot(y=[‘hospitalizedIncrease’,’positiveIncrease’],xticks=data.index[0:len(data):30], rot=90, figsize=(20,10) ) for x in range(len(data)): plt.figure(figsize=(20,10)) plt.xticks( data.index.values[0:len(data):30], rotation = 90, fontsize=20 ) plt.plot(data.tail(x))

Author: Ralph Turchiano

In short, I review clinical research on an almost daily basis. What I post tends to be articles that are relevant to the readers in addition to some curiosities that have intriguing potential. As a hobby, I truly enjoy the puzzle-solving play that statistics and programming as in the python language bring to the table. I just do not enjoy problem-solving, I love problem-solving and the childlike inspiration and exploration of that innocent exhilaration of discovering something new. Enjoy ;-)