<jupyter_start><jupyter_text>Experian Marketing Services reported that the typical American spends a mean of 144 minutes (2.4 hours) per day accessing the Internet via a mobile device. (Source: The 2014 Digital Marketer, available at ex.pn/1kXJjfX.) In order to test the validity of this statement, you select a sample of 30 friends and family. The results for the time spent per day accessing the Internet via mobile device (in minutes) are stored in InternetMobileTime .a. Is there evidence that the population mean time spent per day accessing the Internet via mobile device is different from 144 minutes? Use the p-value approach and a level of significance of 0.05.b. What assumption about the population distribution is needed in order to conduct the t test in (a)?<jupyter_code>import numpy as np
import pandas as pd
mydata = pd.read_csv("InternetMobileTime .csv")
mydata.head()
mydata.describe()
mydata.info()
#Null Hypothesis - Mean=144
#Alternate Hypothesis - Mean != 144
xbar = mydata.mean()
mu=144
s = mydata.std()
n=30
tstat = (xbar - mu) / (s/np.sqrt(n))
tstat
from scipy import stats

p = stats.t.cdf(1.224674, df = 29)
(1 - p)*2<jupyter_output><empty_output>