Generation

generate functionFri, 17 Mar 2023

Write a function that will determine the size of the necessary sample for the study if the following parameters are known: - error (delta); - variance (sigsqr); - Confidence level (conf). Round up the answer to a whole number by round function.

def sample_size(error, sigsqr, conf): return (error**2)*sigsqr/(1.96**2)

Questions about programming?Chat with your personal AI assistant