Questions: 5 831

Answers by our Experts: 5 728

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

One of the many methods of generating values ​​of a Poisson X random variable with parameter  is as follows.

1-Generate random variables Uniforms U1, U2, ...

2-Let I be the smallest index such that
Π_ (i = 1) ^ (I + 1) ▒ 〖U_ (i) <e ^ (- λ)〗

3- Do X = I-1

Make a function in Python that simulates n Poisson values ​​with parameter  using the given method.
- The number of customers arriving at a restaurant car behaves like a Poisson variable with  = 25 per hour. Simulate the arrival process by time intervals of 5 minutes.
-Using the simulated data, estimate the mean and variance of the number of clients that arrive at the car service in a period of 10 minutes.
- Estimate the probability that more than 10 cars arrive in half an hour. Compare the estimate with the true result.
-If X is a Poisson with parameter . Generate 1000 values ​​of the variable Y = (X-) / 1 / 2 for  = 5,10,20,30,40 and 50 and make your histogram, what comments do you deserve?
Assignment 2: Room Area
Room shape

For this lab you will find the area of an irregularly shaped room with the shape as shown above.

Ask the user to enter the values for sides A, B, C, D, and E and print out the total room area.

Remember the formula for finding the area of a rectangle is length * width and the area of a right triangle is 0.5 * the base * height.

Please note the final area should be in decimal format.

Sample Run

Enter side A: 11
Enter side B: 2
Enter side C: 4
Enter side D: 7
Enter side E: 1
Output

Room Area: 53.5
Assume there is a variable, h already associated with a positive integer value. Write the code necessary to count the number of perfect squares whose value is less than h, starting with 1. (A perfect square is an integer like 9, 16, 25, 36 that is equal to the square of another integer (in this case 3*3, 4*4, 5*5, 6*6 respectively).) Assign the sum you compute to a variable q For example, if h is 19, you would assign 4 to q because there are perfect squares (starting with 1) that are less than h are: 1, 4, 9, 16.
For this lab you will find the area of an irregularly shaped room with the shape as shown above.

Ask the user to enter the values for sides A, B, C, D, and E and print out the total room area.

Remember the formula for finding the area of a rectangle is length * width and the area of a right triangle is 0.5 * the base * height.

Please note the final area should be in decimal format.

Sample Run
A king has 100 servants, then he decides that he wants only one servant:
He numbers them from 1 to 100 and puts them in a circle, gives servant no.1 a sword and begins a round: 1 kills 2 and passes the sword to 3, 3 kills 4 and moves to 5 and so on ...
What is the last remaining servant ? We have to write a small program that will solve it & present the solution.
Enter a name: Grace
Enter an adjective: stinky
Enter an adjective: blue
Enter an adverb: quietly
Enter a food: soup
Enter another food: bananas
Enter a noun: button
Enter a place: Paris
Enter a verb: jump
Grace was planning a dream vacation to Paris.
Grace was especially looking forward to trying the local
cuisine, including stinky soup and bananas.
Grace will have to practice the language quietly to
make it easier to jump with people.
Grace has a long list of sights to see, including the
button museum and the blue park.
How do you build a website?
Given the string, s, and the list, lst, associate the variable contains with True if every string in lst appears in s (and False otherwise). Thus, given the string Hello world and the list ["H", "wor", "o w"], contains would be associated with True.
Ask the user to input an integer. Print out the next three consecutive numbers.
Use the variables k and total to write a while loop that computes the sum of the squares of the first 50 counting numbers, and associates that value with total. Thus your code should associate 1*1 + 2*2 + 3*3 +... + 49*49 + 50*50 with total. Use no variables other than k and total.
LATEST TUTORIALS
APPROVED BY CLIENTS