Knowledge

File:CAPM-SML.svg

Source 📝

292:")), silent = TRUE), "try-error")) { start <- strftime(as.POSIXlt(Sys.time() - nDs*24*3600), format="%Y-%m-%d") end <- strftime(as.POSIXlt(Sys.time()), format = "%Y-%m-%d") x <- get.hist.quote(instrument=inst, start=start, end=end, quote = c("AdjClose"), compression="m", quiet=T, retclass="zoo") } return(x) } yield=2.9 nDays=1042 comp<-c("^DJI", "AA", "AIG", "AXP", "BA", "C", "CAT", "DD", "DIS", "GE", "GM", "HD", "HON", "HPQ", "IBM", "INTC", "JNJ", "JPM", "KO", "MCD", "MMM", "MO", "MRK", "MSFT", "PFE", "PG", "T", "UTX", "VZ", "WMT", "XOM") comp.quote<-quote(comp,nDays) from= as.Date(index(comp.quote),format="%Y-%m-%d") to= as.Date(index(comp.quote),1]),format="%Y-%m-%d") for (c in 2:length(comp)) { comp.quote<-merge(comp.quote,quote(comp,nDays)) } rdt<-12*diff(comp.quote)/comp.quote*100 points=array(NA,dim=c(length(comp),2)) for (p in 1:length(comp)) { points= cov(rdt,rdt)/var(rdt) points=mean(rdt) } devSVG(file="CAPM-SML.svg", width=10, height=8, bg="transparent", fg="black", onefile=TRUE, xmlHeader=TRUE) par(lwd=2) plot(points,type="p",col="blue",xlab="beta",ylab="return (in % p.a.)",main="CAPM: Security Market Line",xlim=range(0,points)) lines(points,points,col="red",type="p") abline(a=yield,b=points-yield,col="purple") text(points,points,comp,pos=3,col="blue") text(points, points, comp,pos=3,col="red") lm1<-lm(points~points) abline(lm1,col="darkgrey",lwd=1) text(x=par("usr"), y=par("usr")+0.5, labels=paste("Dow Jones monthly data from", format.Date(from,"%d %b %Y"), "to", format.Date(to,"%d %b %Y"),""), col="grey",adj=c(1,0) ) grid(lwd=1) dev.off() 525:"}},"text\/plain":{"en":{"":"checksum"}}},"{\"value\":\"d8332e6c26cf2fa1d2b0308dcca9328b675998bb\",\"type\":\"string\"}":{"text\/html":{"en":{"P4092":"d8332e6c26cf2fa1d2b0308dcca9328b675998bb"}},"text\/plain":{"en":{"P4092":"d8332e6c26cf2fa1d2b0308dcca9328b675998bb"}}},"{\"value\":{\"entity-type\":\"property\",\"numeric-id\":459,\"id\":\"P459\"},\"type\":\"wikibase-entityid\"}":{"text\/html":{"en":{"":" 449:"}},"text\/plain":{"en":{"":"inception"}}},"{\"value\":{\"time\":\"+2006-11-08T00:00:00Z\",\"timezone\":0,\"before\":0,\"after\":0,\"precision\":11,\"calendarmodel\":\"http:\\\/\\\/www.wikidata.org\\\/entity\\\/Q1985727\"},\"type\":\"time\"}":{"text\/html":{"en":{"P571":"8 November 2006"}},"text\/plain":{"en":{"P571":"8 November 2006"}}}}": --> 199: 521: 210: 43: 95: 297: 487:"}},"text\/plain":{"en":{"":"media type"}}},"{\"value\":\"image\\\/svg+xml\",\"type\":\"string\"}":{"text\/html":{"en":{"P1163":"image\/svg+xml"}},"text\/plain":{"en":{"P1163":"image\/svg+xml"}}}}": --> 529:"}},"text\/plain":{"en":{"":"determination method"}}},"{\"value\":{\"entity-type\":\"item\",\"numeric-id\":13414952,\"id\":\"Q13414952\"},\"type\":\"wikibase-entityid\"}":{"text\/html":{"en":{"P459":" 405:"}},"text\/plain":{"en":{"":"copyright license"}}},"{\"value\":{\"entity-type\":\"item\",\"numeric-id\":19113751,\"id\":\"Q19113751\"},\"type\":\"wikibase-entityid\"}":{"text\/html":{"en":{"P275":" 361:"}},"text\/plain":{"en":{"":"copyright status"}}},"{\"value\":{\"entity-type\":\"item\",\"numeric-id\":50423863,\"id\":\"Q50423863\"},\"type\":\"wikibase-entityid\"}":{"text\/html":{"en":{"P6216":" 592:"}},"text\/plain":{"en":{"":"data size"}}},"{\"value\":{\"amount\":\"+11475\",\"unit\":\"http:\\\/\\\/www.wikidata.org\\\/entity\\\/Q8799\"},\"type\":\"quantity\"}":{"text\/html":{"en":{"P3575":"11,475 637:"}},"text\/plain":{"en":{"":"height"}}},"{\"value\":{\"amount\":\"+578\",\"unit\":\"http:\\\/\\\/www.wikidata.org\\\/entity\\\/Q355198\"},\"type\":\"quantity\"}":{"text\/html":{"en":{"P2048":"578 874: 682:"}},"text\/plain":{"en":{"":"width"}}},"{\"value\":{\"amount\":\"+723\",\"unit\":\"http:\\\/\\\/www.wikidata.org\\\/entity\\\/Q355198\"},\"type\":\"quantity\"}":{"text\/html":{"en":{"P2049":"723 678: 782:{{Information| |Description = dow jones index and it's 30 stocks: the CAPM and the security market line (purple). the grey line is the linear model. mean yield is assumed to be 2.9% |Source = data by quote.yahoo, atomatically retrieved with GNU R, see gra 839: 884: 251:– You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use. 801: 530: 406: 362: 679: 634: 589: 522: 484: 358: 526: 446: 402: 138:
dow jones index and it's 30 stocks: the CAPM and the security market line (purple). the grey line is the linear model. mean yield is assumed to be 2.9%
409:"}},"text\/plain":{"en":{"P275":"Creative Commons Attribution-ShareAlike 2.5 Generic"}}}}": --> 775: 175: 574: 432: 388: 927:
This file contains additional information, probably added from the digital camera or scanner used to create or digitize it.
258: 693: 648: 603: 540: 494: 372: 567: 456: 416: 347: 829: 220: 930:
If the file has been modified from its original state, some details may not fully reflect the modified file.
69: 65: 61: 57: 53: 47: 796: 257:– If you remix, transform, or build upon the material, you must distribute your contributions under the 596:"}},"text\/plain":{"en":{"P3575":"11,475 byte"}}}}": --> 365:"}},"text\/plain":{"en":{"P6216":"copyrighted"}}}}": --> 310: 106: 904: 686:"}},"text\/plain":{"en":{"P2049":"723 pixel"}}}}": --> 641:"}},"text\/plain":{"en":{"P2048":"578 pixel"}}}}": --> 78: 288:
library(tseries) library(RSvgDevice) quote<-function(inst, nDs) { if(!inherits(try(open(url("
114: 533:"}},"text\/plain":{"en":{"P459":"SHA-1"}}}}": --> 217: 8: 182: 164: 101: 337: 764: 759: 156:
data by quote.yahoo, atomatically retrieved with GNU R, see graph source below
42: 802:
User:Saurabh Mittra/Gather lists/18958 – Saurabh's Articles Collection
703: 658: 613: 550: 504: 466: 426: 382: 894: 830:
Principles of Finance/Section 1/Chapter 7/Capital Asset Pricing Model
844: 819: 732:
Click on a date/time to view the file as it appeared at that time.
306: 296: 289: 146: 89: 83:(SVG file, nominally 723 × 578 pixels, file size: 11 KB) 331:
Add a one-line explanation of what this file represents
790: 810: 730: 113:
Commons is a freely licensed media file repository.
433:
Creative Commons Attribution-ShareAlike 2.5 Generic
407:
Creative Commons Attribution-ShareAlike 2.5 Generic
864: 914: 854: 268:https://creativecommons.org/licenses/by-sa/2.5 94: 274:Creative Commons Attribution-Share Alike 2.5 198: 170: 142: 131: 905:Modelo de precificação de ativos financeiros 160: 152: 14: 683: 638: 593: 234:– to copy, distribute and transmit the work 46:Size of this PNG preview of this SVG file: 812:The following other wikis use this file: 556:d8332e6c26cf2fa1d2b0308dcca9328b675998bb 875:पूँजीगत परिसम्पत्ति कीमत निर्धारण मॉडल 792:The following 2 pages use this file: 125: 885:Կապիտալ ակտիվների գնագոյացման մոդել 840:مدل قیمت‌گذاری دارایی‌های سرمایه‌ای 723: 221:Attribution-Share Alike 2.5 Generic 209: 204: 13: 925: 336: 330: 301: 195: 126: 76: 951: 932: 335: 321: 295: 245:Under the following conditions: 216:This file is licensed under the 208: 203: 197: 93: 31: 21: 318: 807: 727: 317: 26: 1: 36: 787: 343:Items portrayed in this file 7: 922: 895:Capital asset pricing model 861:Usage on he.wiktionary.org 797:Capital asset pricing model 10: 956: 911:Usage on ru.wikipedia.org 901:Usage on pt.wikipedia.org 891:Usage on nl.wikipedia.org 881:Usage on hy.wikipedia.org 871:Usage on hi.wikipedia.org 851:Usage on he.wikipedia.org 836:Usage on fa.wikipedia.org 826:Usage on en.wikibooks.org 816:Usage on de.wikibooks.org 259:same or compatible license 128: 724: 16: 320: 225: 100:This is a file from the 41: 820:Benutzer:Produnis/GNU R 781: 145: 104:. Information from its 760:14:08, 8 November 2006 290:http://quote.yahoo.com 107:description page there 568:determination method 527:determination method 70:2,560 × 2,047 pixels 66:1,280 × 1,023 pixels 240:– to adapt the work 52:Other resolutions: 943: 942: 808:Global file usage 785: 685: 640: 595: 417:copyright license 403:copyright license 329: 309:was created with 193: 192: 185:put it under the 179: 176:Reusing this file 122: 121: 102:Wikimedia Commons 32:Global file usage 947: 933: 772: 734: 712: 667: 622: 577: 572: 373:copyright status 359:copyright status 327: 299: 281: 278: 275: 272: 269: 261:as the original. 218:Creative Commons 212: 211: 207: 206: 201: 200: 173: 148: 135: 129: 118: 97: 96: 90: 84: 73: 62:961 × 768 pixels 58:601 × 480 pixels 54:300 × 240 pixels 48:723 × 578 pixels 955: 954: 950: 949: 948: 946: 945: 944: 921: 806: 786: 778: 770: 726: 725: 722: 721: 720: 719: 718: 717: 716: 715: 713: 710: 700: 699: 698: 696: 677: 676: 675: 674: 673: 672: 671: 670: 668: 665: 655: 654: 653: 651: 632: 631: 630: 629: 628: 627: 626: 625: 623: 620: 610: 609: 608: 606: 587: 586: 585: 584: 583: 582: 581: 580: 579: 578: 573: 570: 561: 560: 559: 557: 547: 546: 545: 543: 520: 519: 518: 517: 516: 515: 514: 513: 511: 501: 500: 499: 497: 482: 481: 480: 479: 478: 477: 476: 475: 473: 472:8 November 2006 463: 462: 461: 459: 444: 443: 442: 441: 440: 439: 438: 437: 435: 423: 422: 421: 419: 400: 399: 398: 397: 396: 395: 394: 393: 391: 379: 378: 377: 375: 356: 355: 354: 353: 352: 350: 334: 333: 332: 315: 314: 304:W3C-unspecified 293: 283: 282: 279: 276: 273: 270: 267: 266: 224: 213: 194: 147:8 November 2006 133: 124: 123: 112: 111: 110:is shown below. 86: 82: 75: 74: 51: 12: 11: 5: 953: 941: 940: 937: 924: 920: 919: 918: 917: 909: 908: 907: 899: 898: 897: 889: 888: 887: 879: 878: 877: 869: 868: 867: 859: 858: 857: 849: 848: 847: 842: 834: 833: 832: 824: 823: 822: 809: 805: 804: 799: 789: 784: 783: 780: 776: 773: 767: 762: 757: 753: 752: 749: 746: 743: 740: 737: 729: 714: 708: 706: 705: 704: 702: 701: 697: 692: 690: 689: 688: 687: 681: 669: 663: 661: 660: 659: 657: 656: 652: 647: 645: 644: 643: 642: 636: 624: 618: 616: 615: 614: 612: 611: 607: 602: 600: 599: 598: 597: 591: 566: 565: 564: 563: 562: 558: 555: 553: 552: 551: 549: 548: 544: 539: 537: 536: 535: 534: 532: 528: 524: 512: 509: 507: 506: 505: 503: 502: 498: 493: 491: 490: 489: 488: 486: 474: 471: 469: 468: 467: 465: 464: 460: 455: 453: 452: 451: 450: 448: 436: 431: 429: 428: 427: 425: 424: 420: 415: 413: 412: 411: 410: 408: 404: 392: 387: 385: 384: 383: 381: 380: 376: 371: 369: 368: 367: 366: 364: 360: 351: 346: 344: 341: 340: 339: 338: 326: 325: 322: 319: 294: 287: 265: 264: 263: 262: 252: 243: 242: 241: 235: 228:You are free: 215: 214: 196: 191: 190: 183:Thomas Steiner 180: 168: 167: 165:Thomas Steiner 162: 158: 157: 154: 150: 149: 144: 140: 139: 136: 127: 120: 119: 98: 88: 87: 45: 40: 39: 34: 29: 24: 19: 9: 6: 4: 3: 2: 952: 938: 935: 934: 931: 928: 916: 913: 912: 910: 906: 903: 902: 900: 896: 893: 892: 890: 886: 883: 882: 880: 876: 873: 872: 870: 866: 863: 862: 860: 856: 853: 852: 850: 846: 843: 841: 838: 837: 835: 831: 828: 827: 825: 821: 818: 817: 815: 814: 813: 803: 800: 798: 795: 794: 793: 779: 774: 768: 766: 763: 761: 758: 755: 754: 750: 747: 744: 741: 738: 736: 735: 733: 707: 695: 691: 662: 650: 646: 617: 605: 601: 576: 569: 554: 542: 538: 510:image/svg+xml 508: 496: 492: 470: 458: 454: 434: 430: 418: 414: 390: 386: 374: 370: 349: 345: 342: 323: 316: 312: 308: 305: 298: 291: 286: 271:CC BY-SA 2.5 260: 256: 253: 250: 247: 246: 244: 239: 236: 233: 230: 229: 227: 226: 222: 219: 202: 188: 184: 181: 177: 172: 169: 166: 163: 159: 155: 151: 141: 137: 130: 116: 109: 108: 103: 99: 92: 91: 85: 80: 79:Original file 71: 67: 63: 59: 55: 49: 44: 38: 35: 33: 30: 28: 25: 23: 20: 18: 15: 929: 926: 811: 791: 731: 728:File history 303: 284: 254: 248: 237: 231: 187:CC-by-SA 2.5 186: 134:CAPM-SML.svg 115:You can help 105: 77: 22:File history 939:R SVG Plot! 936:Image title 389:copyrighted 363:copyrighted 255:share alike 249:attribution 132:Description 788:File usage 769:723 × 578 745:Dimensions 495:media type 485:media type 285:R source: 171:Permission 27:File usage 742:Thumbnail 739:Date/Time 604:data size 590:data size 457:inception 447:inception 923:Metadata 845:مدل CAPM 541:checksum 523:checksum 324:Captions 238:to remix 232:to share 223:license. 37:Metadata 771:(11 KB) 756:current 751:Comment 619:11,475 348:depicts 328:English 81:‎ 649:height 635:height 300:  161:Author 153:Source 777:Thire 711:pixel 694:width 684:pixel 680:width 666:pixel 639:pixel 575:SHA-1 531:SHA-1 307:chart 302:This 915:CAPM 865:CAPM 855:CAPM 748:User 709:723 664:578 621:byte 594:byte 280:true 277:true 143:Date 17:File 571:: 68:| 64:| 60:| 56:| 50:. 313:. 311:R 189:. 178:) 174:( 117:. 72:.

Index

File
File history
File usage
Global file usage
Metadata
File:CAPM-SML.svg
723 × 578 pixels
300 × 240 pixels
601 × 480 pixels
961 × 768 pixels
1,280 × 1,023 pixels
2,560 × 2,047 pixels
Original file
Wikimedia Commons
description page there
You can help
Thomas Steiner
Reusing this file
Thomas Steiner
Creative Commons
Attribution-Share Alike 2.5 Generic
same or compatible license
http://quote.yahoo.com

chart
R
depicts
copyright status<\/a>"}},"text\/plain":{"en":{"":"copyright status"}}},"{\"value\":{\"entity-type\":\"item\",\"numeric-id\":50423863,\"id\":\"Q50423863\"},\"type\":\"wikibase-entityid\"}":{"text\/html":{"en":{"P6216":"copyrighted<\/a>"}},"text\/plain":{"en":{"P6216":"copyrighted"}}}}">

copyright status
copyrighted
copyright license<\/a>"}},"text\/plain":{"en":{"":"copyright license"}}},"{\"value\":{\"entity-type\":\"item\",\"numeric-id\":19113751,\"id\":\"Q19113751\"},\"type\":\"wikibase-entityid\"}":{"text\/html":{"en":{"P275":"Creative Commons Attribution-ShareAlike 2.5 Generic<\/a>"}},"text\/plain":{"en":{"P275":"Creative Commons Attribution-ShareAlike 2.5 Generic"}}}}">

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.