{"id":834,"date":"2023-07-28T14:30:02","date_gmt":"2023-07-28T14:30:02","guid":{"rendered":"https:\/\/statorials.org\/de\/glockenkurven-python\/"},"modified":"2023-07-28T14:30:02","modified_gmt":"2023-07-28T14:30:02","slug":"glockenkurven-python","status":"publish","type":"post","link":"https:\/\/statorials.org\/de\/glockenkurven-python\/","title":{"rendered":"So erstellen sie eine glockenkurve in python"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">Eine \u201eGlockenkurve\u201c ist der Spitzname f\u00fcr die Form einer<\/span><a href=\"https:\/\/statorials.org\/de\/die-normalverteilung\/\" target=\"_blank\" rel=\"noopener noreferrer\">Normalverteilung<\/a> <span style=\"color: #000000;\">, die eine ausgepr\u00e4gte \u201eGlockenform\u201c aufweist:<\/span> <\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-9236 \" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/courbe-en-clochepython1.png\" alt=\"Glockenkurve in Python\" width=\"439\" height=\"270\" srcset=\"\" sizes=\"\"><\/p>\n<p> <span style=\"color: #000000;\">In diesem Tutorial wird erl\u00e4utert, wie Sie in Python eine Glockenkurve erstellen.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>So erstellen Sie eine Glockenkurve in Python<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">Der folgende Code zeigt, wie man mit den Bibliotheken <strong>numpy<\/strong> , <strong>scipy<\/strong> und <strong>matplotlib<\/strong> eine Glockenkurve erstellt:<\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #107d3f;\">import<\/span> numpy <span style=\"color: #107d3f;\">as<\/span> np\n<span style=\"color: #107d3f;\">import<\/span> matplotlib.pyplot <span style=\"color: #107d3f;\">as<\/span> plt\n<span style=\"color: #107d3f;\">from<\/span> scipy.stats <span style=\"color: #107d3f;\">import<\/span> norm\n\n<span style=\"color: #008080;\">#create range of x-values from -4 to 4 in increments of .001<\/span>\nx = np.arange(-4, 4, 0.001)\n\n<span style=\"color: #008080;\">#create range of y-values that correspond to normal pdf with mean=0 and sd=1<\/span> \ny = norm.pdf(x,0,1)\n\n<span style=\"color: #008080;\">#defineplot<\/span> \nfig, ax = plt.subplots(figsize=(9,6))\nax.plot(x,y)\n\n<span style=\"color: #008080;\">#choose plot style and display the bell curve<\/span> \nplt.style.use('fivethirtyeight')\nplt.show()<\/strong> <\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-9236 \" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/courbe-en-clochepython1.png\" alt=\"Glockenkurve in Python\" width=\"439\" height=\"270\" srcset=\"\" sizes=\"\"><\/p>\n<h3> <span style=\"color: #000000;\"><strong>So f\u00fcllen Sie eine Glockenkurve in Python<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">Der folgende Code veranschaulicht, wie der Bereich unter der Glockenkurve von -1 bis 1 gef\u00fcllt wird:<\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>x = np.arange(-4, 4, 0.001)\ny = norm.pdf(x,0,1)\n\nfig, ax = plt.subplots(figsize=(9,6))\nax.plot(x,y)\n\n<span style=\"color: #008080;\">#specify the region of the bell curve to fill in<\/span> \nx_fill = np.arange(-1, 1, 0.001)\ny_fill = norm.pdf(x_fill,0,1)\nax.fill_between(x_fill,y_fill,0, alpha=0.2, color='blue')\n\nplt.style.use('fivethirtyeight')\nplt.show()<\/strong> <\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-9237 \" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/courbe-en-clochepython2.png\" alt=\"Glockenkurve mit gef\u00fcllter Fl\u00e4che in Python\" width=\"439\" height=\"270\" srcset=\"\" sizes=\"\"><\/p>\n<p> <span style=\"color: #000000;\">Beachten Sie, dass Sie den Plot mithilfe der zahlreichen Gestaltungsoptionen <strong>von matplotlib<\/strong> auch nach Ihren W\u00fcnschen gestalten k\u00f6nnen. Sie k\u00f6nnen beispielsweise ein \u201eSonnenlicht\u201c-Thema mit einer gr\u00fcnen Linie und einer gr\u00fcnen Schattierung verwenden:<\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>x = np.arange(-4, 4, 0.001)\ny = norm.pdf(x,0,1)\n\nfig, ax = plt.subplots(figsize=(9,6))\nax.plot(x,y, color=' <span style=\"color: #008000;\">green<\/span> ')\n\n<span style=\"color: #008080;\">#specify the region of the bell curve to fill in<\/span> \nx_fill = np.arange(-1, 1, 0.001)\ny_fill = norm.pdf(x_fill,0,1)\nax.fill_between(x_fill,y_fill,0, alpha=0.2, color=' <span style=\"color: #008000;\">green<\/span> ')\n\nplt.style.use(' <span style=\"color: #008000;\">Solarize_Light2<\/span> ')\nplt.show()<\/strong> <\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-9238 \" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/courbe-en-clochepython3.png\" alt=\"Normalverteilungskurve in Python mit Matplotlib\" width=\"439\" height=\"287\" srcset=\"\" sizes=\"\"><\/p>\n<p> <span style=\"color: #000000;\"><em>Das vollst\u00e4ndige Stylesheet-Referenzhandbuch f\u00fcr Matplotlib finden Sie <a href=\"https:\/\/matplotlib.org\/3.2.1\/gallery\/style_sheets\/style_sheets_reference.html\" target=\"_blank\" rel=\"noopener noreferrer\">hier<\/a> .<\/em><\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Zus\u00e4tzliche Ressourcen<\/strong><\/span><\/h3>\n<p> <a href=\"https:\/\/statorials.org\/de\/glockenkurve-excel\/\" target=\"_blank\" rel=\"noopener noreferrer\">So erstellen Sie eine Glockenkurve in Excel<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Eine \u201eGlockenkurve\u201c ist der Spitzname f\u00fcr die Form einerNormalverteilung , die eine ausgepr\u00e4gte \u201eGlockenform\u201c aufweist: In diesem Tutorial wird erl\u00e4utert, wie Sie in Python eine Glockenkurve erstellen. So erstellen Sie eine Glockenkurve in Python Der folgende Code zeigt, wie man mit den Bibliotheken numpy , scipy und matplotlib eine Glockenkurve erstellt: import numpy as np [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>So erstellen Sie eine Glockenkurve in Python \u2013 Statorials<\/title>\n<meta name=\"description\" content=\"In diesem Tutorial wird erkl\u00e4rt, wie Sie in Python ganz einfach eine Glockenkurve erstellen.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/statorials.org\/de\/glockenkurven-python\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"So erstellen Sie eine Glockenkurve in Python \u2013 Statorials\" \/>\n<meta property=\"og:description\" content=\"In diesem Tutorial wird erkl\u00e4rt, wie Sie in Python ganz einfach eine Glockenkurve erstellen.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/de\/glockenkurven-python\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-28T14:30:02+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/courbe-en-clochepython1.png\" \/>\n<meta name=\"author\" content=\"Dr. Benjamin Anderson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dr. Benjamin Anderson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 Minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/de\/glockenkurven-python\/\",\"url\":\"https:\/\/statorials.org\/de\/glockenkurven-python\/\",\"name\":\"So erstellen Sie eine Glockenkurve in Python \u2013 Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/de\/#website\"},\"datePublished\":\"2023-07-28T14:30:02+00:00\",\"dateModified\":\"2023-07-28T14:30:02+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/de\/#\/schema\/person\/ec75c4d6365f2708f8a0ad3a42121aa0\"},\"description\":\"In diesem Tutorial wird erkl\u00e4rt, wie Sie in Python ganz einfach eine Glockenkurve erstellen.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/de\/glockenkurven-python\/#breadcrumb\"},\"inLanguage\":\"de-DE\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/de\/glockenkurven-python\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/de\/glockenkurven-python\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Heim\",\"item\":\"https:\/\/statorials.org\/de\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"So erstellen sie eine glockenkurve in python\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/statorials.org\/de\/#website\",\"url\":\"https:\/\/statorials.org\/de\/\",\"name\":\"Statorials\",\"description\":\"Ihr Leitfaden f\u00fcr statistische Kompetenz !\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/statorials.org\/de\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"de-DE\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/statorials.org\/de\/#\/schema\/person\/ec75c4d6365f2708f8a0ad3a42121aa0\",\"name\":\"Dr. Benjamin Anderson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de-DE\",\"@id\":\"https:\/\/statorials.org\/de\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/statorials.org\/de\/wp-content\/uploads\/2023\/11\/Benjamin-Anderson-96x96.jpg\",\"contentUrl\":\"https:\/\/statorials.org\/de\/wp-content\/uploads\/2023\/11\/Benjamin-Anderson-96x96.jpg\",\"caption\":\"Dr. Benjamin Anderson\"},\"description\":\"Hallo, ich bin Benjamin, ein pensionierter Statistikprofessor, der sich zum engagierten Statorials-Lehrer entwickelt hat. Mit umfassender Erfahrung und Fachwissen auf dem Gebiet der Statistik bin ich bestrebt, mein Wissen zu teilen, um Studenten durch Statorials zu bef\u00e4higen. Mehr wissen\",\"sameAs\":[\"https:\/\/statorials.org\/de\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"So erstellen Sie eine Glockenkurve in Python \u2013 Statorials","description":"In diesem Tutorial wird erkl\u00e4rt, wie Sie in Python ganz einfach eine Glockenkurve erstellen.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/statorials.org\/de\/glockenkurven-python\/","og_locale":"de_DE","og_type":"article","og_title":"So erstellen Sie eine Glockenkurve in Python \u2013 Statorials","og_description":"In diesem Tutorial wird erkl\u00e4rt, wie Sie in Python ganz einfach eine Glockenkurve erstellen.","og_url":"https:\/\/statorials.org\/de\/glockenkurven-python\/","og_site_name":"Statorials","article_published_time":"2023-07-28T14:30:02+00:00","og_image":[{"url":"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/courbe-en-clochepython1.png"}],"author":"Dr. Benjamin Anderson","twitter_card":"summary_large_image","twitter_misc":{"Verfasst von":"Dr. Benjamin Anderson","Gesch\u00e4tzte Lesezeit":"2 Minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/de\/glockenkurven-python\/","url":"https:\/\/statorials.org\/de\/glockenkurven-python\/","name":"So erstellen Sie eine Glockenkurve in Python \u2013 Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/de\/#website"},"datePublished":"2023-07-28T14:30:02+00:00","dateModified":"2023-07-28T14:30:02+00:00","author":{"@id":"https:\/\/statorials.org\/de\/#\/schema\/person\/ec75c4d6365f2708f8a0ad3a42121aa0"},"description":"In diesem Tutorial wird erkl\u00e4rt, wie Sie in Python ganz einfach eine Glockenkurve erstellen.","breadcrumb":{"@id":"https:\/\/statorials.org\/de\/glockenkurven-python\/#breadcrumb"},"inLanguage":"de-DE","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/de\/glockenkurven-python\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/de\/glockenkurven-python\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Heim","item":"https:\/\/statorials.org\/de\/"},{"@type":"ListItem","position":2,"name":"So erstellen sie eine glockenkurve in python"}]},{"@type":"WebSite","@id":"https:\/\/statorials.org\/de\/#website","url":"https:\/\/statorials.org\/de\/","name":"Statorials","description":"Ihr Leitfaden f\u00fcr statistische Kompetenz !","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/statorials.org\/de\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"de-DE"},{"@type":"Person","@id":"https:\/\/statorials.org\/de\/#\/schema\/person\/ec75c4d6365f2708f8a0ad3a42121aa0","name":"Dr. Benjamin Anderson","image":{"@type":"ImageObject","inLanguage":"de-DE","@id":"https:\/\/statorials.org\/de\/#\/schema\/person\/image\/","url":"https:\/\/statorials.org\/de\/wp-content\/uploads\/2023\/11\/Benjamin-Anderson-96x96.jpg","contentUrl":"https:\/\/statorials.org\/de\/wp-content\/uploads\/2023\/11\/Benjamin-Anderson-96x96.jpg","caption":"Dr. Benjamin Anderson"},"description":"Hallo, ich bin Benjamin, ein pensionierter Statistikprofessor, der sich zum engagierten Statorials-Lehrer entwickelt hat. Mit umfassender Erfahrung und Fachwissen auf dem Gebiet der Statistik bin ich bestrebt, mein Wissen zu teilen, um Studenten durch Statorials zu bef\u00e4higen. Mehr wissen","sameAs":["https:\/\/statorials.org\/de"]}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/posts\/834"}],"collection":[{"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/comments?post=834"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/posts\/834\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/media?parent=834"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/categories?post=834"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/tags?post=834"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}