{"id":43062,"date":"2024-04-26T23:10:39","date_gmt":"2024-04-26T23:10:39","guid":{"rendered":"http:\/\/localhost\/branding\/statistics-project-statistics-homework\/"},"modified":"2024-04-26T23:10:39","modified_gmt":"2024-04-26T23:10:39","slug":"statistics-project-statistics-homework","status":"publish","type":"post","link":"https:\/\/sheilathewriter.com\/blog\/statistics-project-statistics-homework\/","title":{"rendered":"Statistics Project, Statistics Homework"},"content":{"rendered":"<p>Your Name<\/p>\n<p>Instructor <\/p>\n<p>Subject <\/p>\n<p>Date of Submission<\/p>\n<p>Statistics Project, Statistics Homework<\/p>\n<p>Question 11.)a.)&gt; Project=read. table (&#8220;c:\/xyz\/data.csv&#8221;, sep=&#8221;,&#8221;,header=T)<\/p>\n<p>&gt; attach (project)<\/p>\n<p>b.)&gt; hist (physician,col=&#8221;blue<\/p>\n<p>c.)&gt; sd (physician)<\/p>\n<p>d.) [1] 1591.87<\/p>\n<p>e.) Regression<\/p>\n<p>(X, Y) ~ N(mx, my, sx^2, sy^2, r), r being the correlation, not<\/p>\n<p>Covariance), where mx and my are the respective means of x and y, whereas sx^2 and sy^2 are the respective variances.<\/p>\n<p>Question 36. a and b) mvrnorm (n = 1, mu, Sigma, tol = 1e-6, empirical = FALSE, EISPACK = FALSE)<\/p>\n<p>sigma-a positive-definite symmetric matrix specifying the covariance matrix of the variables.<\/p>\n<p>n-the number of samples required.<\/p>\n<p>mu-a vector giving the means of the variables<\/p>\n<p>tol-tolerance (relative to largest variance) for numerical lack of positive-definiteness in Sigma.<\/p>\n<p>empirical-logical. If true, mu and Sigma specify the empirical not population mean and covariance matrix.<\/p>\n<p>EISPACK-logical. Set to true to reproduce results from MASS versions prior to 3.1-21<\/p>\n<p>Sigma &lt;- matrix(c(1,1,1,1),2,2)<\/p>\n<p>Sigma<\/p>\n<p>var(mvrnorm(n=500, rep(0, 30), Sigma))<\/p>\n<p>var(mvrnorm(n=500, rep(0, 30), Sigma, empirical = TRUE))<\/p>\n<p>mvrnorm(500,rep(0,3),0,0,1,1)<\/p>\n<p>1.) No. These estimates are not valid since it does not take into consideration of the total number voters in the survey.<\/p>\n<p>2.)<\/p>\n<p>a.)  Cluster sampling is a sampling technique where the entire population is divided into groups, or clusters and a random sample of these clusters are selected. In this case, the group selected is a few clinics in Chicago area as opposed to the entire clinics in Chicago. All observations in the selected clinics are included in the sample. This may be as a result of limited capital to conduct the survey, limited amount of time and some other factors.<\/p>\n<p>First Stage Sampling (FSU): Chicago<\/p>\n<p>Second Stage Sampling (SSU): Selected clinics<\/p>\n<p>Once the data from the questionnaire has been complied, sections of household which have accessed to a gun are noted down and the section of those that do not access to a gun also noted. The number of households that has accessed to a gun is divided by the total number of data gotten from the questionnaire, after which the result is multiplied by 100% to get the proportion of the households which have access to a gun.<\/p>\n<p>Standard error of the proportion of children whose household has access to a gun is estimated from the average of the proportion of the same households that has access to a gun.<\/p>\n<p>b.) The sampling population is the total number of parents who attend the selected clinics in Chicago. This sampling procedure does result in a representative sample of households with children due to the following reasons;<\/p>\n<p>More testing is required<\/p>\n<p>It\u2019s not as accurate as the simple random sample especially if the sample is the same<\/p>\n<p>This is a second-stage cluster sampling.<\/p>\n<p>4a.) Cluster sampling is a sampling technique where the entire population is divided into groups, or clusters and a random sample of these clusters are selected. All observations in the selected clusters are included in the sample. Jacoby and Handlin choose 26 journals from a list of 1285 scholarly journals. Cluster sampling is typically used when the researcher cannot get a complete list of the scholarly journals they wish to study but can get a complete list of groups or &#8216;clusters&#8217; of the journals. It is also used when a random sample would produce a list of subjects so widely scattered that surveying them would prove to be far too expensive, for example, examining all the 1285 scholarly journals.<\/p>\n<p>4 b. ) &gt; Data=(read.table(&#8220;c:\/xyz\/jay.csv&#8221;,sep=&#8221;,&#8221;,header=T))<\/p>\n<p>&gt; attach(Data)<\/p>\n<p>&gt; sum(nonprob)<\/p>\n<p>[1] 137<\/p>\n<p>&gt; sum(Data)<\/p>\n<p>[1] 288<\/p>\n<p>&gt; sum(prob)<\/p>\n<p>[1] 3<\/p>\n<p>&gt; sum(numemp)<\/p>\n<p>[1] 148<\/p>\n<p>&gt; mean(nonprob)<\/p>\n<p>[1] 5.269231<\/p>\n<p>4c) Proportion that used non-probability method = 137\/288 <\/p>\n<p>&gt; sum(nonprob)\/sum(Data)<\/p>\n<p>[1] 0.4756944<\/p>\n<p>&gt; sd(nonprob)<\/p>\n<p>[1] 10.09775<\/p>\n<p>From the above results, it seems that experts have confidence in using non-probability sampling. This is seen by the number of those who prefer using the non-probability method being overwhelmingly more than those that do prefer the probability method.<\/p>\n<p>Works Cited<\/p>\n<p>Gentleman, Robert. R Programming for Bioinformatics. Boca Raton: CRC Press, 2009. Print.<\/p>\n<p>Matloff, Norman S. The Art of R Programming: Tour of Statistical Software Design. San Francisco: No Starch Press, 2011. Print.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Your Name Instructor Subject Date of Submission Statistics Project, Statistics Homework Question 11.)a.)&gt; Project=read. table (&#8220;c:\/xyz\/data.csv&#8221;, sep=&#8221;,&#8221;,header=T) &gt; attach (project)<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-43062","post","type-post","status-publish","format-standard","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Statistics Project, Statistics Homework - sheilathewriter<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/sheilathewriter.com\/blog\/statistics-project-statistics-homework\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Statistics Project, Statistics Homework - sheilathewriter\" \/>\n<meta property=\"og:description\" content=\"Your Name Instructor Subject Date of Submission Statistics Project, Statistics Homework Question 11.)a.)&gt; Project=read. table (&#8220;c:\/xyz\/data.csv&#8221;, sep=&#8221;,&#8221;,header=T) &gt; attach (project)\" \/>\n<meta property=\"og:url\" content=\"https:\/\/sheilathewriter.com\/blog\/statistics-project-statistics-homework\/\" \/>\n<meta property=\"og:site_name\" content=\"sheilathewriter\" \/>\n<meta property=\"article:published_time\" content=\"2024-04-26T23:10:39+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/sheilathewriter.com\/blog\/statistics-project-statistics-homework\/\",\"url\":\"https:\/\/sheilathewriter.com\/blog\/statistics-project-statistics-homework\/\",\"name\":\"Statistics Project, Statistics Homework - sheilathewriter\",\"isPartOf\":{\"@id\":\"https:\/\/sheilathewriter.com\/blog\/#website\"},\"datePublished\":\"2024-04-26T23:10:39+00:00\",\"author\":{\"@id\":\"https:\/\/sheilathewriter.com\/blog\/#\/schema\/person\/f5844d28db4a1882523a0a69560bf0ab\"},\"breadcrumb\":{\"@id\":\"https:\/\/sheilathewriter.com\/blog\/statistics-project-statistics-homework\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/sheilathewriter.com\/blog\/statistics-project-statistics-homework\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/sheilathewriter.com\/blog\/statistics-project-statistics-homework\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/sheilathewriter.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Statistics Project, Statistics Homework\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/sheilathewriter.com\/blog\/#website\",\"url\":\"https:\/\/sheilathewriter.com\/blog\/\",\"name\":\"sheilathewriter\",\"description\":\"Custom essay writing\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/sheilathewriter.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/sheilathewriter.com\/blog\/#\/schema\/person\/f5844d28db4a1882523a0a69560bf0ab\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/sheilathewriter.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9cf817440d627e98709fcac9c5cc379958985e679d683af80df1879b5a471013?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/9cf817440d627e98709fcac9c5cc379958985e679d683af80df1879b5a471013?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/opskill.com\/propapers\"],\"url\":\"https:\/\/sheilathewriter.com\/blog\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Statistics Project, Statistics Homework - sheilathewriter","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:\/\/sheilathewriter.com\/blog\/statistics-project-statistics-homework\/","og_locale":"en_US","og_type":"article","og_title":"Statistics Project, Statistics Homework - sheilathewriter","og_description":"Your Name Instructor Subject Date of Submission Statistics Project, Statistics Homework Question 11.)a.)&gt; Project=read. table (&#8220;c:\/xyz\/data.csv&#8221;, sep=&#8221;,&#8221;,header=T) &gt; attach (project)","og_url":"https:\/\/sheilathewriter.com\/blog\/statistics-project-statistics-homework\/","og_site_name":"sheilathewriter","article_published_time":"2024-04-26T23:10:39+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/sheilathewriter.com\/blog\/statistics-project-statistics-homework\/","url":"https:\/\/sheilathewriter.com\/blog\/statistics-project-statistics-homework\/","name":"Statistics Project, Statistics Homework - sheilathewriter","isPartOf":{"@id":"https:\/\/sheilathewriter.com\/blog\/#website"},"datePublished":"2024-04-26T23:10:39+00:00","author":{"@id":"https:\/\/sheilathewriter.com\/blog\/#\/schema\/person\/f5844d28db4a1882523a0a69560bf0ab"},"breadcrumb":{"@id":"https:\/\/sheilathewriter.com\/blog\/statistics-project-statistics-homework\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/sheilathewriter.com\/blog\/statistics-project-statistics-homework\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/sheilathewriter.com\/blog\/statistics-project-statistics-homework\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/sheilathewriter.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Statistics Project, Statistics Homework"}]},{"@type":"WebSite","@id":"https:\/\/sheilathewriter.com\/blog\/#website","url":"https:\/\/sheilathewriter.com\/blog\/","name":"sheilathewriter","description":"Custom essay writing","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/sheilathewriter.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/sheilathewriter.com\/blog\/#\/schema\/person\/f5844d28db4a1882523a0a69560bf0ab","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/sheilathewriter.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/9cf817440d627e98709fcac9c5cc379958985e679d683af80df1879b5a471013?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9cf817440d627e98709fcac9c5cc379958985e679d683af80df1879b5a471013?s=96&d=mm&r=g","caption":"admin"},"sameAs":["http:\/\/opskill.com\/propapers"],"url":"https:\/\/sheilathewriter.com\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/sheilathewriter.com\/blog\/wp-json\/wp\/v2\/posts\/43062","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sheilathewriter.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sheilathewriter.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sheilathewriter.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sheilathewriter.com\/blog\/wp-json\/wp\/v2\/comments?post=43062"}],"version-history":[{"count":0,"href":"https:\/\/sheilathewriter.com\/blog\/wp-json\/wp\/v2\/posts\/43062\/revisions"}],"wp:attachment":[{"href":"https:\/\/sheilathewriter.com\/blog\/wp-json\/wp\/v2\/media?parent=43062"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sheilathewriter.com\/blog\/wp-json\/wp\/v2\/categories?post=43062"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sheilathewriter.com\/blog\/wp-json\/wp\/v2\/tags?post=43062"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}