Debian Codegraph @

html/formules/reynold_least_square.xhtml

raw
1 <?xml version="1.0"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
3 "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd" [
4 <!ENTITY mathml "http://www.w3.org/1998/Math/MathML">
5 ]>
6 <html xmlns="http://www.w3.org/1999/xhtml">
7 <head>
8 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
9 <title>Reynold's genetic distance</title>
10 <link rel="stylesheet" href="../libcss/mathematica.css" type="text/CSS"/>
11 <!--<link rel="stylesheet" href="../libcss/main.css" type="text/CSS"/>
12 <link rel="shortcut icon" href="./libimage/icon.png" type="images/x-icon"/> -->
13 <meta name="description" content="Reynold's genetic distance"/>
14 <meta name="keywords" content="formules"/>
15 <meta name="resource-type" content="document"/>
16 <meta name="distribution" content="global"/>
17 </head>
18 <body>
19
20 <h2>
21 Reynold's genetic distance for short-term evolution (1983) [Reynolds, J. 83]
22 </h2>
23
24 <div>
25 <math:math xmlns:math="http://www.w3.org/1998/Math/MathML">
26 <math:semantics>
27 <math:mrow>
28 <math:mrow>
29 <math:mi math:fontstyle="italic">DReynold</math:mi>
30 <math:mo math:stretchy="false">=</math:mo>
31 <math:mrow>
32 <math:mo math:stretchy="false">−</math:mo>
33 <math:mi>ln</math:mi>
34 </math:mrow>
35 </math:mrow>
36 <math:mrow>
37 <math:mo math:stretchy="false">(</math:mo>
38 <math:mrow>
39 <math:mn>1</math:mn>
40 <math:mo math:stretchy="false">−</math:mo>
41 <math:mo math:stretchy="false">θ</math:mo>
42 </math:mrow>
43 <math:mo math:stretchy="false">)</math:mo>
44 </math:mrow>
45 </math:mrow>
46 <math:annotation math:encoding="StarMath 5.0">DReynold = -ln (1 - %theta)</math:annotation>
47 </math:semantics>
48 </math:math>
49 </div>
50
51
52
53 <div>
54 the following notation is used, for all 𝚹 estimators:
55 </div>
56
57 <div>
58 <math:math xmlns:math="http://www.w3.org/1998/Math/MathML">
59 <math:semantics>
60 <math:mrow>
61 <math:mrow>
62 <math:mover math:accent="true">
63 <math:mi>n</math:mi>
64 <math:mo math:stretchy="false">ˉ</math:mo>
65 </math:mover>
66 <math:mo math:stretchy="false">=</math:mo>
67 <math:mrow>
68 <math:msubsup>
69 <math:mo math:stretchy="false">∑</math:mo>
70 <math:mrow>
71 <math:mi>i</math:mi>
72 <math:mo math:stretchy="false">=</math:mo>
73 <math:mn>1</math:mn>
74 </math:mrow>
75 <math:mi>r</math:mi>
76 </math:msubsup>
77 <math:mfrac>
78 <math:msub>
79 <math:mi>n</math:mi>
80 <math:mi>i</math:mi>
81 </math:msub>
82 <math:mi>r</math:mi>
83 </math:mfrac>
84 </math:mrow>
85 </math:mrow>
86 <math:mi>,</math:mi>
87 <math:mrow>
88 <math:msub>
89 <math:mi>n</math:mi>
90 <math:mi>c</math:mi>
91 </math:msub>
92 <math:mo math:stretchy="false">=</math:mo>
93 <math:mfrac>
94 <math:mrow>
95 <math:mo math:stretchy="false">(</math:mo>
96 <math:mrow>
97 <math:mi>r</math:mi>
98 <math:mrow>
99 <math:mover math:accent="true">
100 <math:mi>n</math:mi>
101 <math:mo math:stretchy="false">ˉ</math:mo>
102 </math:mover>
103 <math:mo math:stretchy="false">−</math:mo>
104 <math:mrow>
105 <math:msubsup>
106 <math:mo math:stretchy="false">∑</math:mo>
107 <math:mrow>
108 <math:mi>i</math:mi>
109 <math:mo math:stretchy="false">=</math:mo>
110 <math:mn>1</math:mn>
111 </math:mrow>
112 <math:mi>r</math:mi>
113 </math:msubsup>
114 <math:mfrac>
115 <math:msubsup>
116 <math:mi>n</math:mi>
117 <math:mi>i</math:mi>
118 <math:mn>2</math:mn>
119 </math:msubsup>
120 <math:mrow>
121 <math:mi>r</math:mi>
122 <math:mover math:accent="true">
123 <math:mi>n</math:mi>
124 <math:mo math:stretchy="false">ˉ</math:mo>
125 </math:mover>
126 </math:mrow>
127 </math:mfrac>
128 </math:mrow>
129 </math:mrow>
130 </math:mrow>
131 <math:mo math:stretchy="false">)</math:mo>
132 </math:mrow>
133 <math:mrow>
134 <math:mo math:stretchy="false">(</math:mo>
135 <math:mrow>
136 <math:mi>r</math:mi>
137 <math:mo math:stretchy="false">−</math:mo>
138 <math:mn>1</math:mn>
139 </math:mrow>
140 <math:mo math:stretchy="false">)</math:mo>
141 </math:mrow>
142 </math:mfrac>
143 </math:mrow>
144 <math:mi>,</math:mi>
145 <math:mrow>
146 <math:mover math:accent="true">
147 <math:msub>
148 <math:mi>p</math:mi>
149 <math:mi math:fontstyle="italic">lu</math:mi>
150 </math:msub>
151 <math:mo math:stretchy="false">˜</math:mo>
152 </math:mover>
153 <math:mo math:stretchy="false">=</math:mo>
154 <math:mfrac>
155 <math:mrow>
156 <math:msubsup>
157 <math:mo math:stretchy="false">∑</math:mo>
158 <math:mrow>
159 <math:mi>i</math:mi>
160 <math:mo math:stretchy="false">=</math:mo>
161 <math:mn>1</math:mn>
162 </math:mrow>
163 <math:mi>r</math:mi>
164 </math:msubsup>
165 <math:mrow>
166 <math:msub>
167 <math:mi>n</math:mi>
168 <math:mi>i</math:mi>
169 </math:msub>
170 <math:mover math:accent="true">
171 <math:msub>
172 <math:mi>p</math:mi>
173 <math:mi math:fontstyle="italic">ilu</math:mi>
174 </math:msub>
175 <math:mo math:stretchy="false">˜</math:mo>
176 </math:mover>
177 </math:mrow>
178 </math:mrow>
179 <math:mrow>
180 <math:mi>r</math:mi>
181 <math:mover math:accent="true">
182 <math:mi>n</math:mi>
183 <math:mo math:stretchy="false">ˉ</math:mo>
184 </math:mover>
185 </math:mrow>
186 </math:mfrac>
187 </math:mrow>
188 <math:mi>,</math:mi>
189 <math:mrow>
190 <math:mover math:accent="true">
191 <math:msub>
192 <math:mo math:stretchy="false">α</math:mo>
193 <math:mi math:fontstyle="italic">il</math:mi>
194 </math:msub>
195 <math:mo math:stretchy="false">˜</math:mo>
196 </math:mover>
197 <math:mo math:stretchy="false">=</math:mo>
198 <math:mrow>
199 <math:mn>1</math:mn>
200 <math:mo math:stretchy="false">−</math:mo>
201 <math:mrow>
202 <math:msubsup>
203 <math:mo math:stretchy="false">∑</math:mo>
204 <math:mrow>
205 <math:mi>u</math:mi>
206 <math:mo math:stretchy="false">=</math:mo>
207 <math:mn>1</math:mn>
208 </math:mrow>
209 <math:msub>
210 <math:mi>v</math:mi>
211 <math:mn>1</math:mn>
212 </math:msub>
213 </math:msubsup>
214 <math:mover math:accent="true">
215 <math:msubsup>
216 <math:mi>p</math:mi>
217 <math:mi math:fontstyle="italic">ilu</math:mi>
218 <math:mn>2</math:mn>
219 </math:msubsup>
220 <math:mo math:stretchy="false">˜</math:mo>
221 </math:mover>
222 </math:mrow>
223 </math:mrow>
224 </math:mrow>
225 </math:mrow>
226 <math:annotation math:encoding="StarMath 5.0">bar n = sum _{i=1} ^r {{n_i} over r } , n_c = (r bar n - sum _{i=1} ^r {n^2 _i over {r bar n}}) over (r-1), tilde p _lu = sum _{i=1} ^r {n_i tilde p _ilu} over {r bar n},
227 tilde %alpha _il = 1 - sum ^{v_1} _{u=1} tilde p _ilu ^2</math:annotation>
228 </math:semantics>
229 </math:math>
230 </div>
231
232
233 <h2>
234 least squares 𝛉 estimator :
235 </h2>
236
237
238
239 <div>
240 <math:math xmlns:math="http://www.w3.org/1998/Math/MathML">
241 <math:semantics>
242 <math:mrow>
243 <math:mover math:accent="true">
244 <math:msub>
245 <math:mo math:stretchy="false">θ</math:mo>
246 <math:mi>L</math:mi>
247 </math:msub>
248 <math:mo math:stretchy="false">˜</math:mo>
249 </math:mover>
250 <math:mo math:stretchy="false">=</math:mo>
251 <math:mfrac>
252 <math:mrow>
253 <math:mrow>
254 <math:mrow>
255 <math:mn>2x</math:mn>
256 <math:mo math:stretchy="false">+</math:mo>
257 <math:mi>y</math:mi>
258 </math:mrow>
259 <math:mo math:stretchy="false">−</math:mo>
260 <math:mi>z</math:mi>
261 </math:mrow>
262 <math:mo math:stretchy="false">±</math:mo>
263 <math:msqrt>
264 <math:mrow>
265 <math:msup>
266 <math:mrow>
267 <math:mo math:stretchy="false">(</math:mo>
268 <math:mrow>
269 <math:mi>z</math:mi>
270 <math:mo math:stretchy="false">−</math:mo>
271 <math:mi>y</math:mi>
272 </math:mrow>
273 <math:mo math:stretchy="false">)</math:mo>
274 </math:mrow>
275 <math:mn>2</math:mn>
276 </math:msup>
277 <math:mo math:stretchy="false">+</math:mo>
278 <math:msup>
279 <math:mn>4x</math:mn>
280 <math:mn>2</math:mn>
281 </math:msup>
282 </math:mrow>
283 </math:msqrt>
284 </math:mrow>
285 <math:mrow>
286 <math:mn>2</math:mn>
287 <math:mrow>
288 <math:mo math:stretchy="false">(</math:mo>
289 <math:mrow>
290 <math:mi>y</math:mi>
291 <math:mo math:stretchy="false">−</math:mo>
292 <math:mi>z</math:mi>
293 </math:mrow>
294 <math:mo math:stretchy="false">)</math:mo>
295 </math:mrow>
296 </math:mrow>
297 </math:mfrac>
298 </math:mrow>
299 <math:annotation math:encoding="StarMath 5.0">tilde{%theta }_{L} = {2x+y-z +- sqrt{( z-y) ^{2}+4x^{2}}} over {2( y-z) }</math:annotation>
300 </math:semantics>
301 </math:math>
302 </div>
303 <div>
304 where: <math:math xmlns:math="http://www.w3.org/1998/Math/MathML">
305 <math:semantics>
306 <math:mrow>
307 <math:mi>z</math:mi>
308 <math:mo math:stretchy="false">=</math:mo>
309 <math:mrow>
310 <math:msubsup>
311 <math:mo math:stretchy="false">∑</math:mo>
312 <math:mrow>
313 <math:mi>l</math:mi>
314 <math:mo math:stretchy="false">=</math:mo>
315 <math:mn>1</math:mn>
316 </math:mrow>
317 <math:mi>m</math:mi>
318 </math:msubsup>
319 <math:msubsup>
320 <math:mi>a</math:mi>
321 <math:mi>l</math:mi>
322 <math:mn>2</math:mn>
323 </math:msubsup>
324 </math:mrow>
325 </math:mrow>
326 <math:annotation math:encoding="StarMath 5.0">z= sum ^{m}_{l=1}a_{l}^{2}</math:annotation>
327 </math:semantics>
328 </math:math>
329 ,
330 <math:math xmlns:math="http://www.w3.org/1998/Math/MathML">
331 <math:semantics>
332 <math:mrow>
333 <math:mrow>
334 <math:mi>x</math:mi>
335 <math:mo math:stretchy="false">=</math:mo>
336 <math:mrow>
337 <math:msubsup>
338 <math:mo math:stretchy="false">∑</math:mo>
339 <math:mrow>
340 <math:mi>l</math:mi>
341 <math:mo math:stretchy="false">=</math:mo>
342 <math:mn>1</math:mn>
343 </math:mrow>
344 <math:mi>m</math:mi>
345 </math:msubsup>
346 <math:msub>
347 <math:mi>a</math:mi>
348 <math:mi>l</math:mi>
349 </math:msub>
350 </math:mrow>
351 </math:mrow>
352 <math:msub>
353 <math:mi>b</math:mi>
354 <math:mi>l</math:mi>
355 </math:msub>
356 </math:mrow>
357 <math:annotation math:encoding="StarMath 5.0">x= sum ^{m}_{l=1}a_{l}b_{l}</math:annotation>
358 </math:semantics>
359 </math:math>
360 and
361 <math:math xmlns:math="http://www.w3.org/1998/Math/MathML">
362 <math:semantics>
363 <math:mrow>
364 <math:mi>y</math:mi>
365 <math:mo math:stretchy="false">=</math:mo>
366 <math:mrow>
367 <math:msubsup>
368 <math:mo math:stretchy="false">∑</math:mo>
369 <math:mrow>
370 <math:mi>l</math:mi>
371 <math:mo math:stretchy="false">=</math:mo>
372 <math:mn>1</math:mn>
373 </math:mrow>
374 <math:mi>m</math:mi>
375 </math:msubsup>
376 <math:msubsup>
377 <math:mi>b</math:mi>
378 <math:mi>l</math:mi>
379 <math:mn>2</math:mn>
380 </math:msubsup>
381 </math:mrow>
382 </math:mrow>
383 <math:annotation math:encoding="StarMath 5.0">y= sum ^{m}_{l=1}b_{l}^{2}</math:annotation>
384 </math:semantics>
385 </math:math>
386 .
387
388 to check which of the two solutions for ̃𝛉
389
390 <sub>L</sub> provides the minimum, the residual sum of squares, R, should be calculated for each where:
391 </div>
392
393 <div>
394 <math:math xmlns:math="http://www.w3.org/1998/Math/MathML">
395 <math:semantics>
396 <math:mrow>
397 <math:mi>R</math:mi>
398 <math:mo math:stretchy="false">=</math:mo>
399 <math:mfrac>
400 <math:mrow>
401 <math:mrow>
402 <math:mo math:stretchy="false">(</math:mo>
403 <math:mrow>
404 <math:mrow>
405 <math:mn>2x</math:mn>
406 <math:mo math:stretchy="false">+</math:mo>
407 <math:mi>y</math:mi>
408 </math:mrow>
409 <math:mo math:stretchy="false">+</math:mo>
410 <math:mi>z</math:mi>
411 </math:mrow>
412 <math:mo math:stretchy="false">)</math:mo>
413 </math:mrow>
414 <math:mrow>
415 <math:mover math:accent="true">
416 <math:msubsup>
417 <math:mo math:stretchy="false">θ</math:mo>
418 <math:mi>L</math:mi>
419 <math:mn>2</math:mn>
420 </math:msubsup>
421 <math:mo math:stretchy="false">˜</math:mo>
422 </math:mover>
423 <math:mo math:stretchy="false">−</math:mo>
424 <math:mn>2</math:mn>
425 </math:mrow>
426 <math:mrow>
427 <math:mo math:stretchy="false">(</math:mo>
428 <math:mrow>
429 <math:mi>x</math:mi>
430 <math:mo math:stretchy="false">+</math:mo>
431 <math:mi>z</math:mi>
432 </math:mrow>
433 <math:mo math:stretchy="false">)</math:mo>
434 </math:mrow>
435 <math:mrow>
436 <math:mover math:accent="true">
437 <math:msub>
438 <math:mo math:stretchy="false">θ</math:mo>
439 <math:mi>L</math:mi>
440 </math:msub>
441 <math:mo math:stretchy="false">˜</math:mo>
442 </math:mover>
443 <math:mo math:stretchy="false">+</math:mo>
444 <math:mi>z</math:mi>
445 </math:mrow>
446 </math:mrow>
447 <math:mrow>
448 <math:mrow>
449 <math:mn>1</math:mn>
450 <math:mo math:stretchy="false">−</math:mo>
451 <math:mn>2</math:mn>
452 </math:mrow>
453 <math:mrow>
454 <math:mover math:accent="true">
455 <math:msub>
456 <math:mo math:stretchy="false">θ</math:mo>
457 <math:mi>L</math:mi>
458 </math:msub>
459 <math:mo math:stretchy="false">˜</math:mo>
460 </math:mover>
461 <math:mo math:stretchy="false">+</math:mo>
462 <math:mn>2</math:mn>
463 </math:mrow>
464 <math:mover math:accent="true">
465 <math:msubsup>
466 <math:mo math:stretchy="false">θ</math:mo>
467 <math:mi>L</math:mi>
468 <math:mn>2</math:mn>
469 </math:msubsup>
470 <math:mo math:stretchy="false">˜</math:mo>
471 </math:mover>
472 </math:mrow>
473 </math:mfrac>
474 </math:mrow>
475 <math:annotation math:encoding="StarMath 5.0">R={ ( 2x+y+z ) tilde{%theta }_{L}^{2}-2 ( x+z ) tilde{%theta }_{L}+z} over {1-2 tilde{%theta }_{L}+2 tilde{%theta }_{L}^{2}}</math:annotation>
476 </math:semantics>
477 </math:math>
478 </div>
479 </body>
480 </html>