# Homework Help: Statistics Probability Densities

1. Jan 20, 2013

### whitehorsey

1. It is known that the probability of being able to log on to a computer from a remote terminal at any given time is .7. Let X denote the number of attempts that must be made to gain access to the computer.
a) Find the first four terms of the density table.
b) Find a closed form expression for f(x).
c) Find P[X = 6].

3. I got this:
a) x P[X = x]
-------------
1 0.7
2 0.49
3 0.343
4 0.2401
b) f(x) = (0.7)^x where x = 1, 2, 3, 4, ...
0 elsewhere
c) f(x) = (0.7)^6
= 0.117649

I'm not sure if I did it correctly.

2. Jan 20, 2013

### LCKurtz

Remember that for the first successful attempt to be the second try, you must fail on the first try. That changes things..

3. Jan 20, 2013

### whitehorsey

Hmmm why do you have to fail on the first try? Couldn't you be successful on the first two tries?

4. Jan 20, 2013

### haruspex

Because if you succeed the first time, you don't need to try again. You're only logging on once.

5. Jan 20, 2013

### whitehorsey

Oh so my table instead should be
1 0.7
2 0.21 (.3)*(0.7)
3 0.063
4 0.0189

I think?

6. Jan 20, 2013

### LCKurtz

That's better.

7. Jan 20, 2013

### whitehorsey

Thank You!! Could you also help me on this problem?

The basic storage unit of a digital computer is a "bit". A bit is a storage position that can be designated as either on (1) or off (0) at any given time. In converting picture images to a form that can be transmitted electronically, a picture element, called a pixel is used. Each pixel is quantized into gray levels and coded using a binary code. For example, a pixel with four gray levels can be coded using two bits by designating the gray levels by 00, 01, 10, and 11.
(a) How many gray levels can be quantized using a four bit code?
(b) How many bits are necessary to code a pixel quantized to 32 gray levels?

I'm not sure how to start it. I believe it has something to do with permutations and combinations.

8. Jan 20, 2013

### Dick

Not really. It has more to do with powers of two and how many binary digits you need to encode them. Sure you aren't overthinking this? You can encode 4 gray levels with 2 bits because you have two choices 0 and 1 for each bit. Since you have 2 bits you have 2*2 choices.

9. Jan 20, 2013

### whitehorsey

Oh!! So for
a) Since I have 2 choices and 4 bits, I would have 2 * 4 = 8 gray levels.
b) 32/2 = 16 bits

Is this correct?

10. Jan 20, 2013

### Dick

Nope. If you had 3 bits you would have two choices for EACH bit and three bits. That's 2*2*2=8 total choices. With four bits you should have more. Think again.

11. Jan 20, 2013

### whitehorsey

Ah! So this is what I got,
a) 2 ^ 4 = 16
b) 2 ^ x = 32
x = 5 bits

12. Jan 20, 2013

### Dick

Yes, that's it.

13. Jan 20, 2013

Thank You!!