Below is what I am working. The first two screen caps are from Codio a program we use online at my school. I have been running my code through Python 3 to make sure it works before submitting my assignments; usually I have little to no issues. But now I am stuck on this one problem. Please help.
actually you forget close the PARENTHESIS
of 2nd and 3rd line x and n values.
you are open the PARENTHESIS but you didn't close the PARENTHESIS.
so that's why you get syntax error.and you must open the files based on the column names
you able to do operations.
code:
#in plain text format
import pandas as pd
from scipy import stats
print("Confidence Interval-step 4")
production=pd.read_csv("filename.csv")
n=(production["company1"].count())
x=(production[production['company1']>307200]['company1'].sum())
p=x/n*1.0
stderror=(p*(1-p)/n)**0.5
print(stats.norm.interval(0.99,p,stderror))
print(' ')
#if you have any doubts comment below..
Below is what I am working. The first two screen caps are from Codio a program we use online at my school. I have been r...
Please see the questions below from the attached picture. It has been claimed from previous studies that the average diameter of ball bearings from this manufacturing process is 2.30 cm. Based on the sample of 50 that you collected, is there evidence to suggest that the average diameter is greater than 2.30 cm? Perform a hypothesis test for the population mean at alpha = 0.01. Please answer the below: Define the null and alternative hypothesis for this test in mathematical...