Expected number of light bulbs on

  • MHB
  • Thread starter oyth94
  • Start date
  • Tags
    Light
In summary: of bulbs lit after 50 flips as 21.78, 21.70, 21.78, 21.75, 21.73, 21.80, 21.73, 21.78, 21.75, 21.70, 21.75, 21.80, 21.78, 21.73, 21.75, 21.75, 21.75, 21.78, 21.70, 21.78, 21.75, 21.75, 21.75, 21.73, 21.78, 21.73, 21.75, 21.75, 21
  • #1
oyth94
33
0
There are 50 light bulbs in a room each with its own switch. If a light bulb is on, Dick turns it off and if it is off , he turns it on. Initially all light bulbs are off . After 50 flips and assuming that Dick chooses switches to be flipped randomly, what is the expected number of light bulbs on in the room rounded to the nearest natural number?

To be honest, i tried many times but i can;t seem to arrive at an answer. i am stuck. any help would be appreciated!

so i have started with this:
Let Ei be the event that bulb i is on after 50 flips. This is the case if switch i is chosen an odd number of times. Compute Pr(Ei) and let Xi be the indicator random variable for Ei. Then E[Xi]=Pr(Ei). Now, let X be the total number of bulbs on after 50 flips. X=∑Xi, so E[X]=∑E[Xi]=n⋅Pr(Ei).
 
Last edited:
Physics news on Phys.org
  • #2
oyth94 said:
There are 50 light bulbs in a room each with its own switch. If a light bulb is on, Dick turns it off and if it is off, he turns it on. Initially all light bulbs are off. After 50 flips and assuming that Dick chooses switches to be flipped randomly, what is the expected number of light bulbs on in the room rounded to the nearest natural number?

To be honest, i tried many times but i can;t seem to arrive at an answer. i am stuck. any help would be appreciated!

so i have started with this:
Let Ei be the event that bulb i is on after 50 flips. This is the case if switch i is chosen an odd number of times. Compute Pr(Ei) and let Xi be the indicator random variable for Ei. Then E[Xi]=Pr(Ei). Now, let X be the total number of bulbs on after 50 flips. X=∑Xi, so E[X]=∑E[Xi]=n⋅Pr(Ei).

The core of the problem is the meaning of 'Dick chooses switches to be flipped randomly'... if it means that any bulb has probability 1/2 to be switched by Dick at any iteration it is evident that at the end of each iteration the expected number of switched on bulbs is 25...

Kind regards

$\chi$ $\sigma$
 
  • #3
oyth94 said:
There are 50 light bulbs in a room each with its own switch. If a light bulb is on, Dick turns it off and if it is off, he turns it on. Initially all light bulbs are off. After 50 flips and assuming that Dick chooses switches to be flipped randomly, what is the expected number of light bulbs on in the room rounded to the nearest natural number?
Fascinating problem! I have wasted half my Sunday morning on it. (Coffee) (Yawn)

Let's generalise it a bit, to the case where there are $k$ switches. Denote by $E(k,n)$ the expected number of lit bulbs after $n$ random flips, given that initially all light bulbs were off. I found $50$ much too large a number to work with, so I did some experiments with smaller numbers. For $k=4$, I found that the values of $E(4,n)$, for $n=1,2,3,4,5,6$ are $$1,\ \frac32,\ \frac74,\ \frac{15}8,\ \frac{31}{16}, \frac{63}{32},$$ which makes it seem likely that $E(4,n) = \dfrac{2^n-1}{2^{n-1}}$.

I then tried $k=6$ and found something even more interesting: for $n=1,2,3,4$, the values of $E(6,n)$ are $$1,\ \frac53,\ \frac{19}9,\ \frac{65}{27},$$ which very strongly suggests that $E(6,n) = \dfrac{3^n-2^n}{3^{n-1}}.$

If so, then it seems inevitable that the general formula must be $\boxed{E(2k,n) = \dfrac{k^n - (k-1)^n}{k^{n-1}}}.$

I'm not prepared to put money on it, but I'm 99% sure that $$E(50,50) = \dfrac{25^{50} - 24^{50}}{25^{49}} = 25 - 24\Bigl(\frac{24}{25}\Bigr)^{\!49} \approx 21.75.$$

Now it's time for Sunday lunch, so I'll leave it to others to see if those results can be proved.
 
  • #4
Opalg said:
Fascinating problem! I have wasted half my Sunday morning on it. (Coffee) (Yawn)

Let's generalise it a bit, to the case where there are $k$ switches. Denote by $E(k,n)$ the expected number of lit bulbs after $n$ random flips, given that initially all light bulbs were off. I found $50$ much too large a number to work with, so I did some experiments with smaller numbers. For $k=4$, I found that the values of $E(4,n)$, for $n=1,2,3,4,5,6$ are $$1,\ \frac32,\ \frac74,\ \frac{15}8,\ \frac{31}{16}, \frac{63}{32},$$ which makes it seem likely that $E(4,n) = \dfrac{2^n-1}{2^{n-1}}$.

I then tried $k=6$ and found something even more interesting: for $n=1,2,3,4$, the values of $E(6,n)$ are $$1,\ \frac53,\ \frac{19}9,\ \frac{65}{27},$$ which very strongly suggests that $E(6,n) = \dfrac{3^n-2^n}{3^{n-1}}.$

If so, then it seems inevitable that the general formula must be $\boxed{E(2k,n) = \dfrac{k^n - (k-1)^n}{k^{n-1}}}.$

I'm not prepared to put money on it, but I'm 99% sure that $$E(50,50) = \dfrac{25^{50} - 24^{50}}{25^{49}} = 25 - 24\Bigl(\frac{24}{25}\Bigr)^{\!49} \approx 21.75.$$

Now it's time for Sunday lunch, so I'll leave it to others to see if those results can be proved.

Thank you so much! I arrived with the same answer but I used either Poisson or Binomial. But my approach I didn't involve expected value...which I should...
 
  • #5
Opalg said:
Fascinating problem! I have wasted half my Sunday morning on it. (Coffee) (Yawn)

Let's generalise it a bit, to the case where there are $k$ switches. Denote by $E(k,n)$ the expected number of lit bulbs after $n$ random flips, given that initially all light bulbs were off. I found $50$ much too large a number to work with, so I did some experiments with smaller numbers. For $k=4$, I found that the values of $E(4,n)$, for $n=1,2,3,4,5,6$ are $$1,\ \frac32,\ \frac74,\ \frac{15}8,\ \frac{31}{16}, \frac{63}{32},$$ which makes it seem likely that $E(4,n) = \dfrac{2^n-1}{2^{n-1}}$.

I then tried $k=6$ and found something even more interesting: for $n=1,2,3,4$, the values of $E(6,n)$ are $$1,\ \frac53,\ \frac{19}9,\ \frac{65}{27},$$ which very strongly suggests that $E(6,n) = \dfrac{3^n-2^n}{3^{n-1}}.$

If so, then it seems inevitable that the general formula must be $\boxed{E(2k,n) = \dfrac{k^n - (k-1)^n}{k^{n-1}}}.$

I'm not prepared to put money on it, but I'm 99% sure that $$E(50,50) = \dfrac{25^{50} - 24^{50}}{25^{49}} = 25 - 24\Bigl(\frac{24}{25}\Bigr)^{\!49} \approx 21.75.$$

Now it's time for Sunday lunch, so I'll leave it to others to see if those results can be proved.

I can report that simulation gives the mean number off after 50 flips of the 50 switchs is 21.74 with a standard error ~0.034

(another exercise on my Python learning curve)

.
 
Last edited:
  • #6
I now see how to prove the formula for $E(2k,n)$, and it's really quite easy. When the $(n+1)$th switch is flipped, the probability that it is already on is $\dfrac{E(2k,n)}{2k}$, in which case the flip turns it off, and the number of "on" switches is reduced by $1$. Likewise, the probability that the $(n+1)$th switch is off is $\dfrac{2k-E(2k,n)}{2k}$, in which case the flip turns it on, and the number of "on" swiches is increased by $1$. Therefore $$E(2k,n+1) = \frac{E(2k,n)}{2k}(E(2k,n)-1) + \frac{2k-E(2k,n)}{2k}(E(2k,n)+1) = \frac{(k-1)E(2k,n) + k}k.$$ Now assume as an inductive hypothesis that $E(2k,n) = \dfrac{k^n-(k-1)^n}{k^{n-1}}$. Then $$E(2k,n+1) = \frac{(k-1)E(2k,n) + k}k = \frac{(k-1)k^n-(k-1)^{n+1} + k^n}{k^n} = \frac{k^{n+1} - (k-1)^{n+1}}{k^n},$$ which completes the inductive step. The base case $E(2k,1) = 1$ is easy to check, so the result is proved.
 

1. What is the expected number of light bulbs that will be on at any given time?

The expected number of light bulbs that will be on at any given time depends on several factors, such as the number of light bulbs in the space, the type of light bulbs being used, and the duration of time they are in use. However, on average, it is estimated that about 20% of the total number of light bulbs in a space will be on at any given time.

2. Does the expected number of light bulbs on change if they are LED versus incandescent?

Yes, the expected number of light bulbs on may change if they are LED versus incandescent. This is because LED light bulbs are more energy-efficient and have a longer lifespan compared to incandescent bulbs. Therefore, it is more likely that a higher percentage of LED light bulbs will be on at any given time compared to incandescent bulbs.

3. How does the expected number of light bulbs on affect energy consumption?

The expected number of light bulbs on can have a significant impact on energy consumption. The more light bulbs that are on, the more energy is being used. It is important to turn off unnecessary lights to conserve energy and reduce electricity costs.

4. Can the expected number of light bulbs on be calculated?

Yes, the expected number of light bulbs on can be calculated by multiplying the total number of light bulbs in a space by the average percentage of light bulbs that are on at any given time. This calculation can be used to estimate energy usage and costs.

5. How can the expected number of light bulbs on be reduced?

The expected number of light bulbs on can be reduced by using more energy-efficient light bulbs, turning off unnecessary lights, and utilizing natural light sources when possible. Additionally, implementing energy-saving measures, such as motion sensors or timers, can also help reduce the expected number of light bulbs on.

Similar threads

  • Set Theory, Logic, Probability, Statistics
Replies
3
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
5
Views
817
  • Set Theory, Logic, Probability, Statistics
Replies
3
Views
1K
  • Electrical Engineering
Replies
11
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
7
Views
328
  • Quantum Physics
Replies
15
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
1
Views
832
  • Set Theory, Logic, Probability, Statistics
Replies
1
Views
2K
  • Calculus and Beyond Homework Help
Replies
15
Views
2K
  • General Discussion
Replies
2
Views
3K
Back
Top