6

Can somebody show me how to go about solving the following (really easy) equation for $\alpha$ please? $$\displaystyle 0 = \sum_{n=1}^{N}\left( \frac{y_n}{\alpha} + \frac{1-y_n}{1-\alpha}\right)$$

Michael Chen
  • 4,191
rbell
  • 69
  • Sorry, I made a change (forgot plus sign) in between times. It's ok though, turns out Wolfram Alpha can do these things! Thanks anyway – rbell May 18 '11 at 20:33
  • @rbell: look at picakhu's solution. Assuming that $y_i, i=1,..,n$ are known quantities, you can solve for $\alpha$ in terms of $\sum_{i=1}^n y_i$ and $n$. – Weltschmerz May 18 '11 at 20:40
  • Are there only finitely many values of $n$ that you are summing over? If the sum is an infinite sum, I'm struggling to think of an example where the sum converges. – Aaron May 18 '11 at 21:08
  • @Weltschmerz So I've worked this through for a while, but I keep getting stuck at $-N\alpha = \sum_n y_n(1 - 2\alpha)$, where N is the total number of $y$-terms. Can you give me a hint what I'm missing? – rbell May 18 '11 at 21:21
  • Please see proof, I am genuinely stuck working on a past paper, http://imgur.com/Dlk8c – rbell May 18 '11 at 21:46
  • @rbell: Several people (myself included) have posted derivations, preceding your comments above. Are you stuck even after seeing those solutions? – Arturo Magidin May 18 '11 at 23:31
  • @Arturo Magidin I'm ashamed to say that's the case. I'm trying to show that $\alpha = \frac{1}{N}\sum_{n=1}^{N}y_n$. – rbell May 19 '11 at 11:24
  • Sorry, turns out I made a mistake elsewhere. – rbell May 19 '11 at 14:02

2 Answers2

13

Multiplying through by $\alpha(1-\alpha)$ you get $$\begin{align*} 0 &= \sum_n\left(\frac{y_n}{\alpha} + \frac{1-y_n}{1-\alpha}\right)\\ 0 &= \sum_{n}\left( (1-\alpha)y_n + \alpha(1-y_n)\right)\\ 0 &= \sum_n \left( y_n + (1-2y_n)\alpha\right)\\ 0&= \sum_n y_n + \sum_n \alpha(1-2y_n)\\ \sum_n \alpha(2y_n -1) &= \sum_n y_n\\ \alpha\sum_n(2y_n-1) &= \sum_n y_n\\ \alpha &= \frac{\displaystyle \sum_n y_n}{\displaystyle\sum_n (2y_n-1)}. \end{align*} $$

Arturo Magidin
  • 398,050
10

$$\displaystyle 0 = \sum_n\left( \frac{y_n}{\alpha} + \frac{1-y_n}{1-\alpha}\right)$$ $$0 = \sum_n\left( \frac{y_n}{\alpha} \right) + \sum_n\left(\frac{1-y_n}{1-\alpha}\right)$$ $$0 = \frac{1}{\alpha} \sum_n y_n + \frac{1}{1-\alpha} \sum_n {(1-y_n)}$$

Then you can solve it.

Ross Millikan
  • 374,822
picakhu
  • 4,906