Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Generate bootstrap replicate of 1D data that return a particular operation

def bootstrap_replicate_1d(data, func):
    """Generate bootstrap replicate of 1D data."""
    bs_sample = np.random.choice(data, len(data))
    return func(bs_sample)
Source by campus.datacamp.com #
 
PREVIOUS NEXT
Tagged: #Generate #bootstrap #replicate #data #return #operation
ADD COMMENT
Topic
Name
4+9 =