Horje
confidence intervals in python Code Example
confidence intervals in python
import numpy as np
import scipy.stats as st

#define sample data
data = [12, 12, 13, 13, 15, 16, 17, 22, 23, 25, 26, 27, 28, 28, 29]

#create 95% confidence interval for population mean weight
st.t.interval(alpha=0.95, df=len(data)-1, loc=np.mean(data), scale=st.sem(data)) 

(16.758, 24.042)




Python

Related
matplotlib background color Code Example matplotlib background color Code Example
tkinter app icon Code Example tkinter app icon Code Example
AlphaTauri Code Example AlphaTauri Code Example
python two-way comparisons Code Example python two-way comparisons Code Example
python two sides comparison Code Example python two sides comparison Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7