Answer:
Explanation:
The python code to generate this is quite simple to run.
i hope you understand everything written here, you can as well try out other problems to understand better.
First to begin, we import the package;
Code:
import pandas as pd
import matplotlib.pyplot as plt
name = input('Enter name of the file: ')
op = input('Enter name of output file: ')
df = pd.read_csv(name)
df['Date'] = pd.to_datetime(df["Date"].apply(str))
plt.plot(df['Date'],df['Absent']/(df['Present']+df['Absent']+df['Released']),label="% Absent")
plt.legend(loc="upper right")
plt.xticks(rotation=20)
plt.savefig(op)
plt.show()
This should generate the data(plot) as seen in the uploaded screenshot.
thanks i hope this helps!!!
Answer:
Explanation:
kindly check he attached file below
Answer:


And we can find this probability with this difference:

And then we can conclude that the probability that someone watches between 3 and 5 hours a day is approximately 0.591 using a normal distribution
Explanation:
For this case we can define the random variable X as "hours that a person watches television". For this case we don't have the distribution for X but we have the following parameters:

We can assume that the distribution for X is normal

And we want to find this probability:

And we can use the z score formula given by:

And we can find the z score for each limit and we got:


And we can find this probability with this difference:

And then we can conclude that the probability that someone watches between 3 and 5 hours a day is approximately 0.591 using a normal distribution