Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I received the answers for the bellow questions. But For loop i was not found inside the program in both problems 1 and 2. Please

I received the answers for the bellow questions. But For loop i was not found inside the program in both problems 1 and 2. Please repeat

HW_3 #

Using Python please answer the bellow two questions.

The dataFrame variables are : 'age' , 'success, , 'accident' , 'events' , 'time' , 'income 1. Simulate data of size 2500 such that variable 'age' will have values from 1 to 100, variable 'success' will be simulated from geometric distribution with success probability p=.30, variable 'accident' will be simulated from binomial distribution with parameters n=10 and p=.60, variable 'events' will be simulated from Poisson distribution with parameter lambda=4, variable 'time' from exponential distribution with parameter 1/7, variable 'income' from normal distribution with parameters 10 and 2. Split the simulated data by age variable. Compute mean for each age of the simulated data. Randomly replicate this procedure for 100 times and then again compute mean.

2. In this simulation design, we will simulate data of size 2500 from various probability models under the assumption that data will be generated with varying parameter values where age takes values from 1 to 100 from uniform distribution. The probability models are binomial (parameters, n=10, p

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essential Calculus Early Transcendental Functions

Authors: Ron Larson, Robert P. Hostetler, Bruce H. Edwards

1st Edition

618879188, 618879182, 978-0618879182

More Books

Students also viewed these Mathematics questions

Question

Examine data collection in research using the questions provided.

Answered: 1 week ago