# least squares method to solve a coin problem

Not what you're looking for?

I do a fair flip of a fair coin until I get heads for the first time. If I get heads for the first time on the nth throw, Sally pays me 2^n dollars. How much does she pay me on average? Solve by simulation (least squares)

##### Purchase this Solution

##### Solution Summary

Least squares method is discussed. The expert determines how much she pays on average using a simulation to solve the problem.

##### Solution Preview

question:

I do a fair flip of a fair coin until I get heads for the first time. If I get heads for the first time on the nth throw, Sally pays me 2^n dollars. How much does she pay me on average? Solve by simulation (least squares)

Solution:

Let's assume we are going to do this experiment N times. We use rand() function to generate random numbers and use ...

##### Purchase this Solution

##### Free BrainMass Quizzes

##### Graphs and Functions

This quiz helps you easily identify a function and test your understanding of ranges, domains , function inverses and transformations.

##### Multiplying Complex Numbers

This is a short quiz to check your understanding of multiplication of complex numbers in rectangular form.

##### Exponential Expressions

In this quiz, you will have a chance to practice basic terminology of exponential expressions and how to evaluate them.

##### Geometry - Real Life Application Problems

Understanding of how geometry applies to in real-world contexts

##### Know Your Linear Equations

Each question is a choice-summary multiple choice question that will present you with a linear equation and then make 4 statements about that equation. You must determine which of the 4 statements are true (if any) in regards to the equation.