Connecting to an Overloaded Web Server: How Many Attempts Before Success?

In summary: But if you don't have a formula, then doing the series gives you a more accurate answer than just plugging in a number.
  • #1
steve23063
23
0

Homework Statement


A client is trying to connect to a web server on an overloaded machine that only accepts an average of one in 20 connections.

How many times would the client expect to try before getting a connection? Explain your answer.

The Attempt at a Solution



This is part 5 of a problem and I don't know where to start. I know that to find expected value you take a sum of all events times the probability of each event. I don't see how you can use that here though. Please help.
 
Physics news on Phys.org
  • #2
Let's get warmed up. What is the probability of connecting on the first call? What is the probability of failing the first call and connecting on the second? Probability of failing on k calls and then connecting?
 
  • #3
1/20 for first call
(1/20)*(19/20)^(k-1) in general to get a connection on the kth try
 
  • #4
Great! So now with these probabilities how do you get an expectation value for k?
 
  • #5
I honestly don't know. I'm back to where I started. I don't know how to figure out how many times the user should expect to try before getting connected.
 
  • #6
Sometimes it helps to look at the complementary problem. For example, the probability of not getting a connection on the first attempt is 19/20. What is the probability of not getting a connection on the first and second attempts? Now generalize: What is the probability of not getting a connection on the first through nth attempts? (Hint: These are easy probabilities to calculate.) Once you generate a general expression for this latter probability the answer to the original question is fairly easy to answer.
 
  • #7
For expectation values, you gave the answer in your problem post. Calling your computed probability p_k for any k, then the expectation value of k is the sum k*p_k over all k. This is a 'fairly' easy infinite series.
 
  • #8
OK I talked to a friend of mine who says the answer is simply 20. The question was how many times would the client expect to try before connecting and since the probability of connection is 1/20 then he would expect to get connected 1 time if he makes 20 attempts.

Do others here think that infinite series is the way to go?
 
  • #9
And 20 IS the sum of the series. Whether you HAVE to do the series depends on what you already know. If you already have a formula for this case (which was derived using the series) then no, you don't need to resum the series again.
 

Related to Connecting to an Overloaded Web Server: How Many Attempts Before Success?

What is the "Expected Value Problem"?

The Expected Value Problem is a mathematical concept used to calculate the average outcome of a random event. It is also known as the "Expected Value" or "Expected Outcome".

How is the Expected Value calculated?

The Expected Value is calculated by multiplying the probability of each possible outcome by its corresponding payoff or value, and then adding all of these products together.

What is the significance of the Expected Value?

The Expected Value helps us make decisions by giving us a measure of the average outcome of a situation. It allows us to assess the risk and potential benefits of different options and make informed choices.

What are some real-life examples of the Expected Value Problem?

The Expected Value Problem can be applied to many real-life situations, such as insurance policies, stock market investments, and gambling. For example, insurance companies use the Expected Value to determine premiums, while investors use it to assess the potential returns of different stocks.

What are the limitations of the Expected Value?

The Expected Value is based on the assumption that all outcomes have equal chances of occurring. In reality, this may not always be the case. Additionally, it does not take into account factors such as personal preferences or emotions, which can also influence decision-making.

Similar threads

  • Programming and Computer Science
Replies
1
Views
1K
Replies
11
Views
1K
  • Advanced Physics Homework Help
Replies
1
Views
365
Replies
14
Views
927
  • Differential Equations
Replies
1
Views
730
Replies
31
Views
2K
  • Precalculus Mathematics Homework Help
Replies
10
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
5
Views
1K
  • Precalculus Mathematics Homework Help
Replies
5
Views
1K
Replies
3
Views
973
Back
Top