text stringlengths 1 3.55k | source stringlengths 24 207 | emb listlengths 1.02k 1.02k |
|---|---|---|
3. 2 β’ measures of variation 113 variance the variance provides a measure of the spread of data values by using the squared deviations from the mean. the more the individual data values differ from the mean, the larger the variance. a financial advisor might use variance to determine the volatility of an investment and... | openstax_principles-of-data-science-web | [
-0.0020824752282351255,
0.06549068540334702,
0.02409900166094303,
-0.020784948021173477,
-0.007329274900257587,
-0.007437844295054674,
0.03888251259922981,
-0.02590113691985607,
0.0064853192307055,
0.06412501633167267,
0.03438052535057068,
-0.005933715030550957,
-0.011963333003222942,
0.00... |
can be confusing. by contrast, standard deviation is measured in the same units as the original dataset, and thus the standard deviation is more commonly used to measure the spread of a dataset. standard deviation the standard deviation of a dataset provides a numerical measure of the overall amount of variation in a d... | openstax_principles-of-data-science-web | [
0.007306770887225866,
0.04392297565937042,
0.016081327572464943,
-0.013293174095451832,
-0.0022165952250361443,
-0.020446039736270905,
0.04907357320189476,
-0.0302584171295166,
-0.008264399133622646,
0.07987885177135468,
0.039028964936733246,
-0.003836003364995122,
0.010278058238327503,
-0... |
. this means that once the sample variance has been calculated, the sample standard deviation can then be easily calculated as the square root of the sample variance, as in example 3. 7. example 3. 7 problem a biologist calculates that the sample variance for the amount of plant growth for a sample of plants is 8. 7 cm... | openstax_principles-of-data-science-web | [
-0.00925089418888092,
0.05667222663760185,
0.02532711625099182,
-0.054489683359861374,
-0.010434933006763458,
-0.011278520338237286,
0.01788819395005703,
-0.007504906039685011,
0.033942319452762604,
0.06801056116819382,
0.05983036383986473,
-0.02408539690077305,
0.00714906957000494,
0.0021... |
3. 2 β’ measures of variation 115 solution the sample standard deviation ( ) is calculated as the square root of the variance. this result indicates that the standard deviation is about 6. 5 years. notice that the sample variance is the square of the sample standard deviation, so if the sample standard deviation is know... | openstax_principles-of-data-science-web | [
0.016118649393320084,
0.0817955955862999,
0.05110848322510719,
-0.03931358829140663,
-0.01798022910952568,
0.017123272642493248,
0.014438462443649769,
-0.03433580696582794,
-0.0001544105471111834,
0.04492098465561867,
0.012415971606969833,
-0.022214407101273537,
0.0055100033059716225,
-0.0... |
3. 3 measures of position learning outcomes by the end of this section, you should be able to : β’ 3. 3. 1 define and calculate percentiles, quartiles, and - scores for a dataset. β’ 3. 3. 2 use python to calculate measures of position for a dataset. common measures of position include percentiles and quartiles as well a... | openstax_principles-of-data-science-web | [
0.026250742375850677,
0.0034460730385035276,
0.018198402598500252,
-0.010680116713047028,
-0.0029745721258223057,
-0.013184732757508755,
0.0752154067158699,
-0.0014831398148089647,
-0.0026316342409700155,
0.033823609352111816,
-0.019864341244101524,
0.005268977489322424,
0.017189105972647667... |
than your score. percentiles are useful for comparing many types of values. for example, a stock market mutual fund might report that the performance for the fund over the past year was in the 80th percentile of all mutual funds in the peer group. this indicates that the fund performed better than 80 % of all other fun... | openstax_principles-of-data-science-web | [
0.0018390171462669969,
0.02824290655553341,
0.012020310387015343,
-0.0027308976277709007,
0.004397657234221697,
-0.028847839683294296,
0.06946735084056854,
-0.025276049971580505,
0.010899059474468231,
0.036629438400268555,
-0.003692068625241518,
0.01802597939968109,
0.004246051888912916,
-... |
3. 3 β’ measures of position 117 example 3. 10 problem the following ordered dataset represents the scores of 15 employees on an aptitude test : 51, 63, 65, 68, 71, 75, 75, 77, 79, 82, 88, 89, 89, 92, 95 determine the percentile for the employee who scored 88 on the aptitude test. solution there are 15 data values in to... | openstax_principles-of-data-science-web | [
0.006933848839253187,
0.004078785888850689,
0.02683299221098423,
-0.005318420473486185,
-0.006599147338420153,
-0.010267885401844978,
0.03531156852841377,
0.010408429428935051,
0.013792452402412891,
0.06217890977859497,
-0.02053200826048851,
0.01645059697329998,
0.0029397623147815466,
-0.0... |
. 1. note that these are the data values below the median. the upper half of the data values are 7. 4, 7. 5, 7. 9, 8. 2, 8. 7, which are the data values above the median. to find the first quartile,, locate the middle value of the lower half of the data ( 5. 4, 6. 0, 6. 3, 6. 8, 7. 1 ). the middle value of the lower ha... | openstax_principles-of-data-science-web | [
-0.005832633003592491,
0.005846552550792694,
0.014421075582504272,
-0.025845706462860107,
-0.008889882825314999,
-0.027814464643597603,
0.01807837001979351,
0.013167280703783035,
0.0008754216833040118,
0.07505595684051514,
0.01909245178103447,
0.0014641991583630443,
-0.01720449887216091,
-... |
a dataset. for example, if most employees at a company earn about $ 50, 000 and the ceo of the company earns $ 2. 5 million, then we consider the ceo β s salary to be an outlier data value because this salary is significantly different from all the other salaries in the dataset. an outlier data value can also be a valu... | openstax_principles-of-data-science-web | [
-0.018908947706222534,
0.03431035950779915,
0.005228673107922077,
-0.01246161200106144,
-0.018705148249864578,
-0.02427048236131668,
0.05743005499243736,
0.018835939466953278,
0.005210559815168381,
0.05280081555247307,
0.018816186115145683,
0.00042839974048547447,
0.002892519347369671,
-0.... |
13 data values, so the median is the middle data value, which is 488, 800. next, calculate the and. for the first quartile, look at the data values below the median. the two middle data values in this lower half of the data are 230, 500 and 387, 000. to determine the first quartile, find the mean of these two data valu... | openstax_principles-of-data-science-web | [
0.004973102360963821,
0.011722341179847717,
0.01882411353290081,
-0.022241929545998573,
-0.024915695190429688,
-0.021414127200841904,
0.027557596564292908,
0.019099172204732895,
0.020634813234210014,
0.06958945095539093,
0.009287596680223942,
-0.013153469190001488,
-0.0010043487418442965,
... |
3. 3 β’ measures of position 119 now, calculate the interquartile range ( iqr ) : calculate the value of 1. 5 interquartile range ( iqr ) : calculate the lower and upper bound for outliers : the lower bound for outliers is β201, 625. of course, no home price is less than β201, 625, so no outliers are present for the low... | openstax_principles-of-data-science-web | [
-0.020866094157099724,
0.04357745125889778,
-0.0004852569254580885,
-0.0055827125906944275,
-0.03544989600777626,
-0.013365454971790314,
0.051796745508909225,
0.03742390498518944,
-0.007217604201287031,
0.05367710813879967,
0.032444316893815994,
-0.0001484325621277094,
-0.03433327004313469,
... |
will be a negative value. if the measurement is exactly equal to the mean, the corresponding - score will be zero. if the measurement is above the mean, the corresponding - score will be a positive value. - scores can also be used to identify outliers. since - scores measure the number of standard deviations from the m... | openstax_principles-of-data-science-web | [
0.010120035149157047,
0.05382608622312546,
0.007848739624023438,
-0.018354471772909164,
-0.050741251558065414,
-0.026910793036222458,
0.04204075410962105,
0.025740619748830795,
-0.019902322441339493,
0.06959472596645355,
0.016681764274835587,
-0.012784186750650406,
0.007675956003367901,
-0... |
3. 4 probability theory learning outcomes by the end of this section, you should be able to : β’ 3. 4. 1 describe the basic concepts of probability and apply these concepts to real - world applications in data science. β’ 3. 4. 2 apply conditional probability and bayes β theorem. probability is a numerical measure that a... | openstax_principles-of-data-science-web | [
0.03777309134602547,
0.023914512246847153,
0.03068164363503456,
-0.05444996431469917,
-0.0073189823888242245,
-0.028245463967323303,
0.007222861982882023,
-0.011690428480505943,
-0.03237342834472656,
0.08099263906478882,
0.02733997069299221,
-0.05892282724380493,
0.019835839048027992,
0.00... |
3. 4 β’ probability theory 121 want to know the probability of rain. the probability of obtaining heads on one flip of a coin is one - half, or 0. 5. a data scientist is in interested in expressing probability as a number between 0 and 1 ( inclusive ), where 0 indicates impossibility ( the event will not occur ) and 1 i... | openstax_principles-of-data-science-web | [
0.014225457794964314,
0.02171538770198822,
0.02873160131275654,
-0.0837850421667099,
-0.0010353333782404661,
-0.03897879645228386,
0.007134716492146254,
0.010986783541738987,
-0.013897793367505074,
0.06705709546804428,
0.02880716137588024,
-0.03528425097465515,
-0.004355228506028652,
0.003... |
school funding. the probability for a randomly selected person being in favor of increased funding can then be calculated as follows ( notice that event in this example corresponds to the event that a person is in favor of the increased funding ) : example 3. 15 problem a medical patient is told they need knee surgery,... | openstax_principles-of-data-science-web | [
0.03084818832576275,
0.004057534970343113,
0.018032047897577286,
-0.0052794842049479485,
-0.009994116611778736,
-0.01929858699440956,
0.022387444972991943,
0.029796140268445015,
-0.02738630771636963,
0.06125432252883911,
0.06923256069421768,
-0.06175372004508972,
0.016572024673223495,
0.00... |
randomly guesses. what is the probability that the student selects the correct answer? solution since the student is guessing, each answer choice is equally likely to be selected. there is 1 correct answer out of 5 possible choices. the probability of selecting the correct answer can be calculated as : notice in exampl... | openstax_principles-of-data-science-web | [
0.0006817062385380268,
0.00551401823759079,
0.03414703905582428,
-0.023519400507211685,
-0.005752941593527794,
-0.04275859147310257,
0.018321318551898003,
0.032923623919487,
-0.03982795402407646,
0.09824991226196289,
0.05780820921063423,
0.019942961633205414,
-0.021674619987607002,
0.01804... |
3. 4 β’ probability theory 123 example 3. 17 problem a company estimates that the probability that an employee will provide confidential information to a hacker is 0. 1 %. determine the probability that an employee will not provide any confidential information during a hacking attempt. solution let event be the event th... | openstax_principles-of-data-science-web | [
-0.004465821664780378,
0.0031941148918122053,
0.0014166993787512183,
-0.021078109741210938,
-0.008300626650452614,
-0.04723958298563957,
-0.0024381044786423445,
0.009519691579043865,
-0.045176297426223755,
0.07716334611177444,
0.03613543137907982,
0.010680165141820908,
-0.003671955782920122,... |
of one event affects the probability of occurrence of another event. independent events are events where the probability of occurrence of one event is not affected by the occurrent of another event. the dependence of events has important implications in many fields such as marketing, engineering, psychology, and medici... | openstax_principles-of-data-science-web | [
-0.030955715104937553,
0.009767676703631878,
0.004595973528921604,
-0.021074160933494568,
-0.024601256474852562,
-0.034441184252500534,
-0.023971430957317352,
-0.005068562459200621,
-0.020537177100777626,
0.07643993198871613,
0.03432692214846611,
0.00011711899423971772,
-0.009212021715939045... |
affected by the selection of the ace, so these events are dependent. there are several ways to use conditional probabilities in data science applications. conditional probability can be defined as follows : when assessing the conditional probability of, if the two events are independent, this indicates that event is no... | openstax_principles-of-data-science-web | [
-0.022183733060956,
0.0026160194538533688,
0.011638008058071136,
-0.044679008424282074,
-0.041393499821424484,
-0.020595654845237732,
0.018760157749056816,
-0.0001768684305716306,
-0.049420733004808426,
0.055623121559619904,
0.02341424860060215,
0.006830248516052961,
0.02761276625096798,
-... |
3. 4 β’ probability theory 125 age group nursing degrees non - nursing degrees total 22 and under 1036 1287 2323 23 and older 986 932 1918 total 2022 2219 4241 table 3. 2 number of nursing and non - nursing degrees at a university by age group solution since we are given that the group of interest are those graduates in... | openstax_principles-of-data-science-web | [
-0.0009455134277231991,
-0.0035535036586225033,
0.031653642654418945,
-0.02544477954506874,
-0.03514334186911583,
-0.03696778044104576,
0.031341008841991425,
0.017240069806575775,
-0.03140515834093094,
0.07626460492610931,
0.06762723624706268,
-0.001945958472788334,
0.0389605276286602,
0.0... |
in many data science applications. for example, a doctor might be interested to know the probability that at least one surgery to be performed this week will involve an infection of some type. the phrase β at least one β implies the condition of one or more successes. from a sample space perspective, one or more succes... | openstax_principles-of-data-science-web | [
0.01535744871944189,
0.02142561599612236,
0.016389094293117523,
-0.006489317398518324,
-0.009558489546179771,
-0.05314725637435913,
0.02740732952952385,
0.030071409419178963,
-0.018954208120703697,
0.056867312639951706,
0.06650985032320023,
-0.007355125155299902,
-0.011521406471729279,
0.0... |
chance that all four knee surgeries will be successful. 2. the probability that a knee surgery will be unsuccessful can be calculated using the complement rule. if the probability of a successful surgery is 0. 89, then the probability that the surgery will be unsuccessful is 0. 11 : based on this, the probability that ... | openstax_principles-of-data-science-web | [
-0.0018203924410045147,
0.012493190355598927,
0.006543900817632675,
-0.005895907990634441,
-0.0043902527540922165,
-0.02082616090774536,
0.0402083583176136,
0.041966211050748825,
-0.002196167828515172,
0.055516090244054794,
0.06855791807174683,
-0.006862748879939318,
-0.016817910596728325,
... |
3. 4 β’ probability theory 127 since this is a very small probability, it is very unlikely that none of the surgeries will be successful. 3. to calculate the probability that at least one of the knee surgeries will be successful, use the probability formula for β at least one, β which is calculated as the complement of ... | openstax_principles-of-data-science-web | [
0.016623573377728462,
0.015572289936244488,
0.028345750644803047,
0.003251605434343219,
-0.008529714308679104,
-0.045861318707466125,
0.013304993510246277,
0.030403289943933487,
-0.0055419206619262695,
0.06298273801803589,
0.053322263062000275,
-0.03590796887874603,
-0.004938448313623667,
... |
result. the researcher is interested in calculating, where event is the person actually has cancer and event is the event that the person shows a positive result in the screening test. use bayes β theorem to calculate this conditional probability. 128 3 β’ descriptive statistics : statistical measurements and probabilit... | openstax_principles-of-data-science-web | [
0.02503037080168724,
0.0009735614294186234,
0.0373389907181263,
-0.016672659665346146,
-0.001189813599921763,
-0.06675073504447937,
0.0050927866250276566,
0.034400101751089096,
-0.006422447506338358,
0.07375899702310562,
0.04673105850815773,
-0.03042771853506565,
0.006121995858848095,
0.00... |
3. 5 discrete and continuous probability distributions learning outcomes by the end of this section, you should be able to : β’ 3. 5. 1 describe fundamental aspects of probability distributions. β’ 3. 5. 2 apply discrete probability distributions including binomial and poisson distributions. β’ 3. 5. 3 apply continuous pr... | openstax_principles-of-data-science-web | [
0.016115473583340645,
0.010856040753424168,
0.023714620620012283,
-0.029428280889987946,
-0.061678919941186905,
-0.03100154548883438,
0.02056451141834259,
-0.00008865231211530045,
-0.020434753969311714,
0.08940933644771576,
0.07772885262966156,
-0.019193850457668304,
0.013610602356493473,
... |
, the number of values is countable if it possible to count them individually. ) typically, a discrete random variable is the result of a count of some kind. for example, if the random variable represents the number of cars in a | openstax_principles-of-data-science-web | [
-0.025571953505277634,
0.006592826452106237,
0.03386223688721657,
-0.017832443118095398,
-0.02860230766236782,
-0.037135325372219086,
0.017211252823472023,
-0.008958092890679836,
0.02883254364132881,
0.06353513896465302,
0.0628688633441925,
0.008328557014465332,
0.004667731001973152,
-0.01... |
3. 5 β’ discrete and continuous probability distributions 129 parking lot, then the values that x can take on can only be whole numbers since it would not make sense to have cars in the parking lot. β’ continuous random variable β a random variable is considered continuous if the value of the random variable can take on ... | openstax_principles-of-data-science-web | [
-0.006995044182986021,
0.02225220575928688,
0.03335520625114441,
-0.050155241042375565,
-0.028846517205238342,
-0.05361751839518547,
0.020632237195968628,
-0.009956027381122112,
-0.0035320911556482315,
0.10193441808223724,
0.07343361526727676,
-0.01813202165067196,
0.039586734026670456,
-0... |
or continuous random variables : 1. the amount of gas, in gallons, used to fill a gas tank 2. number of children per household in a certain neighborhood 130 3 β’ descriptive statistics : statistical measurements and probability distributions access for free at openstax. org 3. number of text messages sent by a certain s... | openstax_principles-of-data-science-web | [
-0.0106344074010849,
0.01984628289937973,
0.05485902354121208,
-0.023390812799334526,
-0.047207385301589966,
-0.04732838273048401,
0.02855278179049492,
-0.018193885684013367,
0.02506515383720398,
0.09531281888484955,
0.047451116144657135,
-0.008586753159761429,
0.004022500943392515,
0.0014... |
and the two possible outcomes can be considered as success or failure. for example, when a baseball player is at - bat, the player either gets a hit or does not get a hit. there are many applications of binomial experiments that occur in medicine, psychology, engineering, science, marketing, and other fields. there are... | openstax_principles-of-data-science-web | [
-0.016845587641000748,
0.013600315898656845,
-0.0011239637387916446,
-0.029568616300821304,
-0.056999389082193375,
-0.0367841012775898,
-0.002759732771664858,
-0.010898097418248653,
0.034077562391757965,
0.061641525477170944,
0.020771998912096024,
0.005094627384096384,
-0.006873398087918758,... |
the experiment. for example, from past data we know that 35 % of people prefer vanilla as their favorite ice cream flavor. if a group of 15 individuals are surveyed to ask if vanilla is their favorite ice cream flavor, the probability of success for each trial will be 0. 35. β’ the random variable will count the number ... | openstax_principles-of-data-science-web | [
0.030138520523905754,
0.022199269384145737,
0.025382885709404945,
-0.022807540372014046,
-0.047213114798069,
-0.036950595676898956,
0.009326851926743984,
0.048019636422395706,
0.002061467384919524,
0.04985886439681053,
0.03472871705889702,
0.017397698014974594,
0.007392299361526966,
0.0054... |
3. 5 β’ discrete and continuous probability distributions 131 the number of successes, this implies that will be a discrete random variable. for example, if the researcher is counting the number of people in the group of 15 that respond to say vanilla is their favorite ice cream flavor, then can take on values such as 3... | openstax_principles-of-data-science-web | [
0.01185997761785984,
0.02525842934846878,
0.025743581354618073,
-0.028519369661808014,
-0.030974015593528748,
-0.030341677367687225,
0.018810663372278214,
0.005954749416559935,
0.013766535557806492,
0.0639365166425705,
0.04137963056564331,
0.005851040128618479,
0.002452455461025238,
-0.000... |
surgery is 92 %, so. the number of successes of interest is 18 since the researcher wants to determine the probability that 18 of the 20 patients had a successful result from the surgery, so. when calculating the probability for successes in a binomial experiment, a binomial probability formula can be used, but in many... | openstax_principles-of-data-science-web | [
-0.006418102886527777,
0.03405985236167908,
-0.0025641729589551687,
0.01997356489300728,
-0.01373897586017847,
-0.026854822412133217,
0.008168287575244904,
-0.0037162285298109055,
0.018231188878417015,
0.03500005230307579,
0.03218366205692291,
0.001355487504042685,
0.005330914165824652,
0.... |
than 14 are not shown on the graph since these corresponding probabilities are very close to zero. figure 3. 5 graph of the binomial distribution for and since these computations tend to be complicated and time - consuming, most data scientists will use technology ( such as python, r, excel, or others ) to calculate bi... | openstax_principles-of-data-science-web | [
0.027312923222780228,
0.005295212846249342,
0.03478021174669266,
-0.029847022145986557,
0.030219143256545067,
-0.040294550359249115,
0.039146069437265396,
-0.02664313279092312,
-0.010439016856253147,
0.06756796687841415,
0.042329877614974976,
-0.017901640385389328,
0.0027471319772303104,
-... |
3. 5 β’ discrete and continuous probability distributions 133 poisson distribution the goal of a binomial experiment is to calculate the probability of a certain number of successes in a specific number of trials. however, there are certain scenarios where a data scientist might be interested to know the probability of ... | openstax_principles-of-data-science-web | [
-0.006807290017604828,
0.052025239914655685,
0.024235151708126068,
-0.03756934776902199,
-0.0351107120513916,
-0.047819316387176514,
0.006338449195027351,
0.001745588961057365,
0.01856389082968235,
0.09145556390285492,
0.02598767727613449,
-0.0165439210832119,
-0.011168372817337513,
0.0090... |
variable will be discrete. to calculate the probability of successes, the poisson probability formula can be used, as follows : where : is the average or mean number of occurrences per interval is the constant 2. 71828 β¦ example 3. 26 problem from past data, a traffic engineer determines the mean number of vehicles ent... | openstax_principles-of-data-science-web | [
0.0013504879316315055,
0.06505740433931351,
0.035969361662864685,
-0.029950687661767006,
-0.02857980877161026,
-0.03415972739458084,
0.01447878498584032,
0.01664598286151886,
0.0021483644377440214,
0.09188918769359589,
0.05601576715707779,
-0.0005121137946844101,
-0.007597403135150671,
0.0... |
many values. we used the example about that if the random variable represents the weight of a bag of apples, then can take on any value such as pounds of apples. many probability distributions apply to continuous random variables. these distributions rely on determining the probability that the random variable falls wi... | openstax_principles-of-data-science-web | [
-0.013584818691015244,
0.04861903935670853,
0.039625152945518494,
-0.034787796437740326,
-0.02259238436818123,
-0.037033550441265106,
0.030153097584843636,
-0.005634384695440531,
-0.000850552343763411,
0.10574040561914444,
0.0636303648352623,
-0.014836052432656288,
0.011259890161454678,
-0... |
3. 5 β’ discrete and continuous probability distributions 135 in this section, we will examine an important continuous probability distribution that relies on the probability density function, namely the normal distribution. many variables, such as heights, weights, salaries, and blood pressure measurements, follow a no... | openstax_principles-of-data-science-web | [
0.005589150823652744,
0.03793739527463913,
0.0495254322886467,
-0.023386472836136818,
-0.03025275282561779,
0.000600463361479342,
0.01664082333445549,
0.020349595695734024,
-0.02185428887605667,
0.091927170753479,
0.06158817932009697,
-0.005368273705244064,
0.010961400344967842,
-0.0374327... |
symmetric about. as the notation indicates, the normal distribution depends only on the mean and the standard deviation. because the area under the curve must equal 1, a change in the standard deviation,, causes a change in the shape of the normal curve ; the curve becomes fatter and wider or skinnier and taller depend... | openstax_principles-of-data-science-web | [
0.019398769363760948,
0.042913250625133514,
-0.01361719612032175,
-0.020742103457450867,
-0.011682506650686264,
-0.015498284250497818,
0.04250539466738701,
0.003348527243360877,
-0.03738384321331978,
0.0935908630490303,
0.06408753246068954,
-0.010715009644627571,
0.0026622090954333544,
-0.... |
the area under the normal probability density curve to the right of the data value of $ 68, 000. see using python with probability distributions for the specific python program and results. the resulting probability is calculated as 0. 143. thus, there is a probability of about 14 % that a random employee has a salary ... | openstax_principles-of-data-science-web | [
-0.003125419607385993,
0.022333554923534393,
-0.011167452670633793,
-0.05444105714559555,
-0.027790991589426994,
-0.01982993446290493,
0.030361566692590714,
-0.020082972943782806,
-0.01303231529891491,
0.08987964689731598,
0.06945668160915375,
0.011555107310414314,
0.01856052316725254,
-0.... |
3. 5 β’ discrete and continuous probability distributions 137 of the mean ). β’ about 95 % of the - values lie between and units from the mean ( within two standard deviations of the mean ). β’ about 99. 7 % of the - values lie between and units from the mean ( within three standard deviations of the mean ). notice that a... | openstax_principles-of-data-science-web | [
0.011932697147130966,
0.019718319177627563,
0.036865051835775375,
-0.05077964812517166,
-0.003829649882391095,
-0.03080832213163376,
0.034098319709300995,
-0.007770090363919735,
-0.014851992018520832,
0.0719289630651474,
0.04618562012910843,
0.008632250130176544,
0.0018336203647777438,
-0.... |
. these functions are part of a library called scipy. stats ( https : / / openstax. org / r / scipy ). here are a few of these probability density functions available within python : β’ binom ( ) β calculate probabilities associated with the binomial distribution β’ poisson ( ) β calculate probabilities associated with t... | openstax_principles-of-data-science-web | [
0.03307691961526871,
0.021288959309458733,
0.0005157076520845294,
-0.004331179428845644,
-0.021766826510429382,
-0.01553394366055727,
0.006573435850441456,
-0.0256231427192688,
0.02282015234231949,
0.05953502655029297,
0.059990253299474716,
-0.0040812729857862,
-0.02037885971367359,
-0.019... |
: binom. pmf ( 18, 20, 0. 92 ) the round ( ) function is then used to round the probability result to 3 decimal places. here is the input and output of this python program : # import the binom function from the scipy. stats library from scipy. stats import binom # define parameters x, n, and p : x = 18 n = 20 p = 0. 92... | openstax_principles-of-data-science-web | [
0.03519635275006294,
-0.008669864386320114,
0.009287838824093342,
-0.02233610302209854,
-0.02215014025568962,
-0.009449192322790623,
0.008241777308285236,
-0.026912139728665352,
-0.027038689702749252,
0.04795956239104271,
0.05037500709295273,
-0.007507174275815487,
-0.025084275752305984,
0... |
3. 5 β’ discrete and continuous probability distributions 139 using python with the normal distribution the norm ( ) function in python allows calculations of normal probabilities. the probability density function is sometimes called the cumulative density function, and so this is referred to as norm. cdf ( ) within pyt... | openstax_principles-of-data-science-web | [
0.013453910127282143,
0.012509837746620178,
0.011820425279438496,
-0.010410268791019917,
-0.031025033444166183,
0.0015639046905562282,
-0.004312122706323862,
-0.03071357123553753,
-0.04556901380419731,
0.08059043437242508,
0.05451728031039238,
-0.014360123313963413,
0.026899686083197594,
0... |
normal probability - note this is # the area to the left # subtract this result from 1 to obtain area to the right of the x - value # use round ( ) function to round answer to 3 decimal places round ( 1 - norm. cdf ( x, mean, standard _ deviation ), 3 ) the resulting output will look like this : python code 140 3 β’ des... | openstax_principles-of-data-science-web | [
0.009460560977458954,
0.010788312181830406,
0.01601269841194153,
-0.01617060974240303,
-0.032451845705509186,
-0.016072748228907585,
0.005008226726204157,
-0.01097850501537323,
-0.05713323876261711,
0.08355928957462311,
0.03697383403778076,
0.0034477582667022943,
0.0046861604787409306,
0.0... |
3. 5 β’ discrete and continuous probability distributions 141 key terms bayes β theorem a method used to calculate a conditional probability when additional information is obtained to refine a probability estimate binomial distribution a probability distribution for a discrete random variable that is the number of succe... | openstax_principles-of-data-science-web | [
-0.025675572454929352,
0.02614727057516575,
0.03663317859172821,
-0.04908580705523491,
-0.025393091142177582,
-0.04511681944131851,
0.008335922844707966,
-0.010400054045021534,
-0.028695864602923393,
0.08751294016838074,
0.02260451577603817,
-0.017258552834391594,
-0.010685965418815613,
-0... |
not affected by the occurrence of another event interquartile range ( iqr ) a number that indicates the spread of the middle half, or middle 50 %, of the data ; the difference between the third quartile ( ) and the first quartile ( ) mean ( also called arithmetic mean ) a measure of center of a dataset, calculated by a... | openstax_principles-of-data-science-web | [
-0.02771623805165291,
0.02018202282488346,
-0.012693418189883232,
0.007032804191112518,
-0.02377551980316639,
-0.045371368527412415,
0.012542227283120155,
0.008462069556117058,
-0.022556273266673088,
0.07723582535982132,
0.00957188569009304,
-0.011059998534619808,
-0.019258033484220505,
-0... |
distribution of a discrete random variable quartiles numbers that divide an ordered dataset into quarters ; the second quartile is the same as the median random variable a variable where a single numerical value is assigned to a specific outcome from an experiment range a measure of dispersion for a dataset calculated ... | openstax_principles-of-data-science-web | [
-0.023963168263435364,
0.00849232543259859,
0.008665024302899837,
-0.005209405440837145,
-0.022391220554709435,
-0.03219655528664589,
0.04808589071035385,
0.00026492911274544895,
-0.011350627057254314,
0.06707066297531128,
0.037792593240737915,
-0.02500765770673752,
0.02844412438571453,
-0... |
bureau of labor statistics ( https : / / openstax. org / r / bls ). as a group : β’ research salary data by gender for a certain year. β’ compile descriptive statistics where available for statistical measurements including the mean, median, quartiles, and standard deviation by gender. β’ create graphical presentations fo... | openstax_principles-of-data-science-web | [
0.04126647114753723,
0.017169129103422165,
-0.036161236464977264,
-0.008086531423032284,
0.0013372472021728754,
-0.0004245534655638039,
0.005872094538062811,
0.012990061193704605,
-0.0018176920711994171,
0.053280919790267944,
0.017629684880375862,
-0.010550473816692829,
0.04527730867266655,
... |
reliever to provide relief from migraine headache ( time in minutes ) sample of 10 patients : 12. 1, 13. 8, 9. 4, 15. 9, 11. 5, 14. 6, 18. 1, 12. 7, 11. 0, 14. 2 a. for dataset c, calculate the range, standard deviation, and variance ( round answers to 1 decimal place ). use technology as appropriate and include approp... | openstax_principles-of-data-science-web | [
0.016238359734416008,
0.04170377552509308,
0.020345143973827362,
0.0015413948567584157,
-0.014915186911821365,
-0.006073955912142992,
0.030120015144348145,
-0.03194398060441017,
-0.028443749994039536,
0.05767074599862099,
0.02424517832696438,
0.0012447424232959747,
0.012754509225487709,
-0... |
. 6. at a website development company, the average number of sick days taken by employees per year is 9 days with a standard deviation of 2. 3 days. a. a certain employee has taken 2 sick days for the year. calculate the - score for this employee ( round your answer to 2 decimal places ). b. what does the - score commu... | openstax_principles-of-data-science-web | [
0.028345344588160515,
0.03288179636001587,
0.003379205707460642,
-0.028544532135128975,
-0.016071895137429237,
0.006270293146371841,
0.02627727761864662,
0.0025953243020921946,
-0.001335057895630598,
0.10844039171934128,
0.03485894575715065,
0.0024827055167406797,
0.02108442783355713,
-0.0... |
older ) get the flu each year. β’ 32 % of people under 65 get the flu each year. β’ in the population, there are 15 % senior citizens. a. are the events β being a senior β and β getting the flu β dependent or independent? b. find the probability that a person selected at random is a senior and will get the flu. c. find t... | openstax_principles-of-data-science-web | [
0.040132787078619,
0.024589339271187782,
-0.012406404130160809,
0.0027967928908765316,
0.0011991324136033654,
-0.034750767052173615,
0.01158473826944828,
0.01109472755342722,
-0.014214358292520046,
0.10795676708221436,
0.053113117814064026,
-0.02099028043448925,
0.02474210038781166,
0.0325... |
. b. find the probability that a randomly selected cell phone customer has a monthly bill more than $ 85. 146 3 β’ quantitative problems access for free at openstax. org figure 4. 1 inferential statistics is used extensively in data science to draw conclusions about a larger population β and drive decision - making. ( c... | openstax_principles-of-data-science-web | [
0.017128795385360718,
-0.006596408784389496,
0.005785069428384304,
-0.023623960092663765,
0.0022869405802339315,
0.00690044742077589,
0.024651262909173965,
0.00670993234962225,
0.022867685183882713,
0.08023735880851746,
0.0871339961886406,
-0.02692437171936035,
0.020315229892730713,
-0.000... |
4. 4 analysis of variance ( anova ) introduction inferential statistics plays a key role in data science applications, as its techniques allow researchers to infer or generalize observations from samples to the larger population from which they were selected. if the researcher had access to a full set of population dat... | openstax_principles-of-data-science-web | [
-0.0006119942991062999,
0.039163924753665924,
0.03961360827088356,
-0.029863137751817703,
-0.0143892178311944,
0.0387258380651474,
0.009426453150808811,
-0.004709960427135229,
0.015587185509502888,
0.05896397680044174,
0.012879261747002602,
-0.037089377641677856,
-0.00008817353955237195,
-... |
applications in data science, including in machine learning models where a mathematical model is created to determine a relationship between input and output variables of a dataset. several such applications of regression analysis in machine learning are further explored in decision - making using machine learning basi... | openstax_principles-of-data-science-web | [
-0.008578873239457607,
0.03753191605210304,
0.02559412643313408,
-0.017280427739024162,
-0.00701481755822897,
0.022268634289503098,
-0.017289726063609123,
0.012923916801810265,
0.006508711259812117,
0.07638641446828842,
-0.014310862869024277,
-0.0035409831907600164,
0.0010761420708149672,
... |
4. 1 statistical inference and confidence intervals learning outcomes by the end of this section, you should be able to : β’ 4. 1. 1 estimate parameters, create confidence intervals, and calculate sample size requirements. β’ 4. 1. 2 apply bootstrapping methods for parameter estimation. β’ 4. 1. 3 use python to calculate ... | openstax_principles-of-data-science-web | [
0.03745558485388756,
0.024127863347530365,
-0.000798769062384963,
-0.027177784591913223,
-0.021835800260305405,
0.011062468402087688,
-0.0047364006750285625,
0.04686891287565231,
0.007659818045794964,
0.07110340893268585,
0.054642245173454285,
-0.0417739637196064,
0.018817836418747902,
0.0... |
collect data from a sample to make inferences about a population, they calculate a point estimate based on the observed sample data. ( see survey design and implementation for coverage of sampling techniques. ) the point estimate serves as the best guess or approximation for the parameter's actual value. a confidence i... | openstax_principles-of-data-science-web | [
0.01656644605100155,
0.016255242750048637,
-0.043324533849954605,
-0.0009695438202470541,
-0.02616799809038639,
-0.01438968162983656,
0.027542900294065475,
0.05376606434583664,
0.04183545336127281,
0.05454471334815025,
0.05280676484107971,
-0.045431215316057205,
0.006311623379588127,
0.014... |
β’ the margin of error as noted, the point estimate is a single number that is used to estimate the population parameter. the margin of error ( usually denoted by e ) provides an indication of the maximum error of the estimate. the margin of error can be viewed as the maximum distance around the point estimate where the... | openstax_principles-of-data-science-web | [
-0.01166821364313364,
0.018776580691337585,
-0.023344550281763077,
-0.004865775350481272,
-0.03594379127025604,
-0.01320814061909914,
0.041291747242212296,
0.025922754779458046,
0.020191343501210213,
0.04404444620013237,
0.03283865749835968,
-0.003010509070008993,
0.0025415699928998947,
0.... |
4. 1 β’ statistical inference and confidence intervals 149 the data scientist can then state the following conclusion : there is 95 % confidence that the forecast for median income for all residents of california is between $ 64, 000 and $ 73, 000. example 4. 1 problem a medical researcher is interested in estimating th... | openstax_principles-of-data-science-web | [
0.0069469003938138485,
0.04614401236176491,
-0.014227009378373623,
0.0004965800326317549,
-0.008473933674395084,
0.0005955751985311508,
0.015611806884407997,
0.020522700622677803,
0.002240619855001569,
0.07272187620401382,
0.03307294100522995,
-0.022887619212269783,
0.00929445493966341,
-0... |
of the sample size. a. written mathematically : the central limit theorem describes the relationship between the sample distribution of sample means and 150 4 β’ inferential statistics and regression analysis access for free at openstax. org the underlying population. this theorem is an important tool that allows data s... | openstax_principles-of-data-science-web | [
-0.01024228148162365,
0.012116862460970879,
0.00881502777338028,
-0.0030846649315208197,
-0.0026785647496581078,
-0.015481020323932171,
-0.02716338261961937,
0.04077771306037903,
-0.005944105330854654,
0.08306138962507248,
0.05003367364406586,
-0.014804593287408352,
0.012689328752458096,
-... |
the sample size is at least 30, or the underlying population is known to follow a normal distribution. c. the population standard deviation ( ) is known. once these conditions are met, the margin of error is calculated according to the following formula : where : is called the critical value of the normal distribution ... | openstax_principles-of-data-science-web | [
-0.008556492626667023,
0.014151087030768394,
0.021053815260529518,
0.0018506626365706325,
-0.035728827118873596,
-0.027745189145207405,
0.023697758093476295,
0.010807272046804428,
-0.0340079702436924,
0.0691695362329483,
0.04964401200413704,
-0.0005414084298536181,
0.012390471063554287,
-0... |
2. 575 table 4. 2 typical values of for various confidence levels graphically, the critical values can be marked on the normal distribution curve, as shown in figure 4. 2. ( see discrete and continuous probability distributions for a review of the normal distribution curve. ) figure 4. 2 is an example for a 95 % confid... | openstax_principles-of-data-science-web | [
0.013582538813352585,
0.01599513180553913,
0.030850952491164207,
-0.02497146651148796,
-0.01945090852677822,
-0.044484224170446396,
0.04759247601032257,
0.009255967102944851,
-0.023331772536039352,
0.0810098648071289,
0.0671045258641243,
-0.012356315739452839,
0.011260773986577988,
-0.0202... |
6. 3 hours. the professor would like to forecast the amount of time spent on homework in future semesters. create a forecasted confidence interval using both a 90 % and 95 % confidence interval and provide a conclusion regarding the confidence interval. also compare the widths of the two confidence intervals. which con... | openstax_principles-of-data-science-web | [
0.01069661509245634,
0.042775917798280716,
0.008252773433923721,
-0.021238528192043304,
-0.019598636776208878,
0.012587535195052624,
0.04341868683695793,
0.003772181924432516,
-0.018668167293071747,
0.08205907046794891,
0.05152568966150284,
-0.007673478219658136,
0.03002305142581463,
-0.06... |
4. 1 β’ statistical inference and confidence intervals 153 parameters held constant, we should expect that the confidence interval will become wider. another way to consider this : the wider the confidence interval, the more likely the interval is to contain the true population mean. this makes intuitive sense in that i... | openstax_principles-of-data-science-web | [
0.014931516721844673,
0.026855425909161568,
-0.01178909745067358,
0.008492029272019863,
-0.036359671503305435,
-0.008799872361123562,
0.03715301677584648,
0.005238474812358618,
-0.017342371866106987,
0.08984024077653885,
0.05641832575201988,
-0.008268795907497406,
0.027548346668481827,
-0.... |
3 comparison of t - distribution and normal distribution curves the t - distribution is actually a family of curves, determined by a parameter called degrees of freedom ( df ), where df is equal to. the critical value is similar to a z - score and specifies the area under the t - distribution curve corresponding to the... | openstax_principles-of-data-science-web | [
0.024704059585928917,
-0.002416771138086915,
0.046147070825099945,
0.008473413996398449,
-0.0373075008392334,
0.013097920455038548,
0.036121297627687454,
-0.009915852919220924,
-0.05980943888425827,
0.08416203409433365,
0.03062804415822029,
0.013538890518248081,
0.01403700839728117,
-0.031... |
2. 750 table 4. 3 typical values of for various confidence levels and degrees of freedom note that python can be used to calculate these critical values. python provides a function called t. ppf ( ) that generates the value of the t - distribution corresponding to a specified area under the t - distribution curve and s... | openstax_principles-of-data-science-web | [
0.03403487801551819,
0.014603934250772,
0.0008566327160224319,
-0.008534739725291729,
-0.02101251110434532,
-0.02545599266886711,
0.053952716290950775,
-0.004167693667113781,
-0.03718842566013336,
0.05683145672082901,
0.010748574510216713,
-0.017090486362576485,
0.005392789840698242,
-0.00... |
2. 131 once the margin of error is calculated, the confidence interval is formed in the same way as the previous section, namely : example 4. 4 problem a company β s human resource administrator wants to estimate the average commuting distance for all 5, 000 employees at the company. since it is impractical to collect ... | openstax_principles-of-data-science-web | [
0.0026911268942058086,
0.020875176414847374,
0.019608033820986748,
-0.013538744300603867,
-0.006340226158499718,
-0.013571121729910374,
0.03794883191585541,
-0.009705151431262493,
0.011945916339755058,
0.06812431663274765,
0.043844666332006454,
-0.00680905394256115,
0.006372525822371244,
-... |
a researcher might be interested in the proportion of smokers among u. s. adults, and the number of smokers would be considered the number of successes. some terminology will be helpful : represents the population proportion, which is typically unknown. represents the sample proportion. represents the number of success... | openstax_principles-of-data-science-web | [
-0.002694228896871209,
0.009575259871780872,
0.006439871154725552,
-0.009088367223739624,
0.0031084525398910046,
-0.030883416533470154,
-0.002547143492847681,
0.02643267996609211,
0.006632837001234293,
0.05107473209500313,
0.05465684086084366,
-0.020400339737534523,
0.016738276928663254,
0... |
4. 1 β’ statistical inference and confidence intervals 157 start off by calculating the sample proportion : verify that the normal approximation to the binomial distribution is appropriate by ensuring that both and are both at least 5, where represents the sample proportion. for this example,, and. both of these results... | openstax_principles-of-data-science-web | [
0.005305949132889509,
0.02454536221921444,
0.015976637601852417,
0.005737388972193003,
-0.0022369215730577707,
-0.012570071034133434,
0.025651706382632256,
0.02159736678004265,
-0.010904038324952126,
0.060437727719545364,
0.06128472462296486,
-0.02543133683502674,
-0.011549732647836208,
-0... |
is the critical value of the normal distribution. is the population standard deviation. is the desired margin of error. note that for sample size calculations, sample size results are rounded up to the next higher whole number. 158 4 β’ inferential statistics and regression analysis access for free at openstax. org for ... | openstax_principles-of-data-science-web | [
-0.0044660368002951145,
-0.000743057404179126,
0.021502163261175156,
-0.011195946484804153,
-0.030734766274690628,
-0.013945776969194412,
0.02697821520268917,
0.014743953011929989,
-0.04450978711247444,
0.057219669222831726,
0.05838461592793465,
-0.000860922853462398,
0.02936190366744995,
... |
estimate for the sample proportion is available, then that prior estimate should be utilized. β’ if a prior estimate for the sample proportion is not available, then use. | openstax_principles-of-data-science-web | [
0.019444439560174942,
-0.005480537191033363,
-0.023196037858724594,
0.01570756360888481,
-0.03223615884780884,
-0.00378905376419425,
-0.02159028686583042,
0.04509247839450836,
0.03927692770957947,
0.060224421322345734,
0.07369983196258545,
-0.04267323389649391,
-0.0070214844308793545,
-0.0... |
4. 1 β’ statistical inference and confidence intervals 159 example 4. 7 problem political candidate smith is planning a survey to determine a 95 % confidence interval for the proportion of voters who plan to vote for smith. how many people should be surveyed? assume a margin of error is 3 %. a. assume there is no prior ... | openstax_principles-of-data-science-web | [
0.019463052973151207,
0.01962617225944996,
0.0055832876823842525,
-0.0072312927804887295,
-0.021687932312488556,
0.0020909097511321306,
0.020725948736071587,
0.046117331832647324,
-0.025158796459436417,
0.05581432208418846,
0.04635249450802803,
-0.036961156874895096,
0.004014505073428154,
... |
do when these requirements are not met? fortunately, there is another option called β bootstrapping β that can be used to find confidence intervals when the underlying distribution is unknown or if one of the conditions is not met. this bootstrapping method involves repeatedly taking samples with replacement. sampling ... | openstax_principles-of-data-science-web | [
0.0031890165992081165,
0.01842147670686245,
0.012423891574144363,
-0.006832452490925789,
-0.0065801856108009815,
-0.015338614583015442,
-0.017392517998814583,
0.05252672731876373,
0.007099644746631384,
0.07726721465587616,
0.06403537839651108,
-0.038966428488492966,
0.026335785165429115,
-... |
from which the data are sampled. ( parametric methods, by contrast, assume a specific form for the underlying distribution and require estimating parameters. ) since bootstrapping requires a large number of repeated samples, software ( such as excel, python, or r ) is often used to automate the repetitive sampling proc... | openstax_principles-of-data-science-web | [
0.024993708357214928,
0.041664209216833115,
0.03887050971388817,
-0.020064420998096466,
0.014134415425360203,
0.008300759829580784,
0.007935211062431335,
0.05669674277305603,
0.0018112317193299532,
0.07562564313411713,
0.03177550435066223,
-0.06764878332614899,
0.01981980726122856,
0.00132... |
4. 1 β’ statistical inference and confidence intervals 161 student id student age 005 29 006 23 007 21 008 20 009 19 010 21 011 25 012 28 013 22 014 37 015 24 016 31 017 23 018 19 019 26 020 20 table 4. 4 ages of 20 randomly selected students from one college solution for the bootstrapping process, we will form samples ... | openstax_principles-of-data-science-web | [
0.015303058549761772,
0.020210951566696167,
0.04316829517483711,
-0.02008853107690811,
-0.005005723796784878,
0.01768868789076805,
0.020890016108751297,
0.047841645777225494,
-0.017670143395662308,
0.07053301483392715,
0.04126003012061119,
-0.03714022785425186,
0.03129556402564049,
-0.0112... |
by 2. for this example, add 21. 9 to 22. 2 and divide by 2. the result is 22. 05. to find the 95th percentile ( p95 ), multiply the percentile ( 95 % ) times the number of data values, which is 20. the result is 19, so to find the 95th percentile, add the 19th and 20th data values together and divide by 2. for this exa... | openstax_principles-of-data-science-web | [
0.02440173365175724,
0.05721502751111984,
0.015586255118250847,
-0.015322026796638966,
-0.0060088844038546085,
-0.013256537728011608,
0.024539155885577202,
0.01970842480659485,
-0.007733277510851622,
0.07416264712810516,
0.00700205797329545,
-0.03806374967098236,
0.009648147970438004,
0.01... |
4. 1 β’ statistical inference and confidence intervals 163 # define random sample of ages ages = [ 22, 23, 25, 31, 24, 21, 28, 23, 21, 20, 22, 19, 34, 19, 37, 26, 29, 21, 24, 20 ] # convert ages to sequence ages = ( ages, ) # use bootstrap function for confidence interval for the mean conf _ interval = bootstrap ( ages,... | openstax_principles-of-data-science-web | [
0.016911890357732773,
0.03367048129439354,
0.00891873799264431,
-0.021387994289398193,
0.003662039991468191,
-0.010278673842549324,
-0.0011843320680782199,
0.03556041046977043,
0.0014680599560961127,
0.07867278158664703,
0.032575320452451706,
-0.05136328935623169,
0.0413336418569088,
-0.01... |
with these calculations. table 4. 5 provides a summary of various functions available within the scipy library ( https : / / openstax. org / r / spy ) for confidence interval calculations : 164 4 β’ inferential statistics and regression analysis access for free at openstax. org usage python function name syntax calculat... | openstax_principles-of-data-science-web | [
0.03294715657830238,
0.0278537068516016,
-0.013501182198524475,
-0.008283669129014015,
-0.017350753769278526,
-0.01139470562338829,
0.0027160667814314365,
0.021838119253516197,
-0.01771853119134903,
0.06661933660507202,
0.048838309943675995,
-0.01779932901263237,
-0.006384510546922684,
-0.... |
4. 1 β’ statistical inference and confidence intervals 165 # confidence level confidence _ level = 0. 90 # standard error standard _ error = population _ standard _ deviation / math. sqrt ( sample _ size ) # calculate confidence interval using norm. interval function stats. norm. interval ( confidence _ level, sample _ ... | openstax_principles-of-data-science-web | [
0.028130095452070236,
0.02901633456349373,
0.0030955583788454533,
-0.01203350443392992,
-0.01588786207139492,
0.00034240729291923344,
0.032226499170064926,
0.0033287350088357925,
-0.026430610567331314,
0.07501388341188431,
0.04269835725426674,
0.002124540042132139,
-0.0005577526171691716,
... |
4. 2 hypothesis testing learning outcomes by the end of this section, you should be able to : β’ 4. 2. 1 apply hypothesis testing methods to test statistical claims involving one sample. β’ 4. 2. 2 use python to assist with hypothesis testing calculations. β’ 4. 2. 3 conduct hypothesis tests to compare two means, two prop... | openstax_principles-of-data-science-web | [
0.015708522871136665,
0.03780321404337883,
-0.001089754281565547,
0.007060107309371233,
-0.049436554312705994,
0.01618257537484169,
-0.02359878271818161,
0.01782984472811222,
0.023381292819976807,
0.06813637167215347,
0.03640543669462204,
-0.014824826270341873,
0.010230276733636856,
0.0022... |
the null hypothesis. it provides the foundation for various data science investigations and plays a role at different stages of the analyses such as data collection and validation, modeling related tasks, and determination of statistical significance. for example, a local restaurant might claim that the average deliver... | openstax_principles-of-data-science-web | [
0.012713335454463959,
0.04256211966276169,
0.0013540779473260045,
-0.027961531654000282,
-0.022790614515542984,
0.005052944179624319,
-0.02168158069252968,
0.020972013473510742,
0.013222144916653633,
0.08872150629758835,
0.034211575984954834,
-0.009890479035675526,
0.006809153128415346,
-0... |
4. 2 β’ hypothesis testing 167 the steps for hypothesis testing are as follows : 1. set up a null and alternative hypothesis based on the claim. identify whether the null or the alternative hypothesis represents the claim. 2. collect relevant sample data to investigate the claim. 3. determine the correct distribution to... | openstax_principles-of-data-science-web | [
0.005895750597119331,
0.027989357709884644,
0.03055875189602375,
0.007946387864649296,
-0.015364104881882668,
0.025540754199028015,
0.019254134967923164,
0.012870684266090393,
0.014357363805174828,
0.10049392282962799,
0.029253603890538216,
0.0019354094984009862,
0.019532913342118263,
-0.0... |
equals symbol, then the alternative hypothesis will contain a not equals symbol. if the null hypothesis contains a symbol, then the alternative hypothesis will contain a symbol. if the null hypothesis contains a symbol, then the alternative hypothesis will contain a symbol. note that the alternative hypothesis will alw... | openstax_principles-of-data-science-web | [
-0.0019755875691771507,
0.0030060550197958946,
0.004723032005131245,
-0.01564929261803627,
-0.037347711622714996,
-0.018025510013103485,
0.03457990288734436,
0.02479218877851963,
-0.0029430503491312265,
0.06683014333248138,
0.051133185625076294,
0.013372293673455715,
0.008998925797641277,
... |
##s to use for a given hypothesis test : 1. determine if the hypothesis test involves a claim for a population mean or population proportion. if the hypothesis test involves a population mean, use either setup a, b, or c. 2. if the hypothesis test involves a population proportion, use either setup d, e, or f. 3. transl... | openstax_principles-of-data-science-web | [
0.016255958005785942,
0.014213149435818195,
0.02194124646484852,
-0.012838389724493027,
-0.04314468055963516,
-0.007436708547174931,
0.02018672786653042,
0.0042834198102355,
0.013473940081894398,
0.06321046501398087,
0.04161563143134117,
-0.0030072482768446207,
0.006539912894368172,
-0.014... |
4. 2 β’ hypothesis testing 169 example 4. 12 problem write the null and alternative hypotheses for the following claim : a medical researcher claims that the proportion of adults in the united states who are smokers is at most 25 %. solution note that the claim involves the phrase β at most, β which translates to a less... | openstax_principles-of-data-science-web | [
0.027241375297307968,
0.0007289636414498091,
0.007041046395897865,
-0.0023684767074882984,
-0.02586071752011776,
-0.010252437554299831,
0.029754869639873505,
0.024756263941526413,
0.005087395664304495,
0.06582783907651901,
0.038445357233285904,
-0.004667146131396294,
0.009359961375594139,
... |
is called the level of significance, denoted by the greek letter alpha,. from a practical standpoint, the level of significance is the probability value used to determine when the sample data indicates significant evidence against the null hypothesis. this level of significance is typically set to a small value, which ... | openstax_principles-of-data-science-web | [
0.025734659284353256,
0.05420694127678871,
0.05505548045039177,
-0.019020870327949524,
-0.04759739711880684,
-0.011490277014672756,
0.030703695490956306,
0.006219399627298117,
-0.0035705070476979017,
0.05685185641050339,
0.023441413417458534,
-0.026227016001939774,
0.008816501125693321,
-0... |
distribution curve. since the p - value is a probability, any p - value must always be a numerical value between 0 and 1 inclusive. when calculating a p - value as the area under the probability distribution curve, the corresponding area will be determined using the location under the curve, which favors the rejection ... | openstax_principles-of-data-science-web | [
0.025414984673261642,
0.026446588337421417,
0.03361104056239128,
-0.01920568384230137,
-0.042754895985126495,
-0.023580772802233696,
0.054525747895240784,
0.010772059671580791,
-0.010979664511978626,
0.08705807477235794,
0.01387359481304884,
-0.0003282847173977643,
-0.008745170198380947,
0... |
β fail to reject the null hypothesis β might be difficult to interpret for those not familiar with the terminology of hypothesis testing. these decisions can be translated into concluding statements such as those shown in table 4. 8. select the decision from the hypothesis test : is the claim in the null or the alterna... | openstax_principles-of-data-science-web | [
0.025232793763279915,
-0.022358819842338562,
0.014105785638093948,
-0.013489274308085442,
-0.0009507073555141687,
-0.006519925314933062,
0.005142455920577049,
0.0034560440108180046,
0.00033337846980430186,
0.094516821205616,
0.050480470061302185,
0.020825129002332687,
-0.0025351366493850946,... |
4. 2 β’ hypothesis testing 171 testing claims for the mean when the population standard deviation is known recall that in the discussion for confidence intervals we examined the confidence interval for the population mean when the population standard deviation is known ( normal distribution is used ) or when the populat... | openstax_principles-of-data-science-web | [
0.019019069150090218,
0.025720886886119843,
0.028408680111169815,
-0.0029647196643054485,
-0.05624724179506302,
0.014392423443496227,
-0.0006497818394564092,
0.011875852011144161,
0.011255303397774696,
0.08584973961114883,
0.05438721179962158,
-0.04389209672808647,
0.03308508172631264,
0.0... |
to a greater than or equals symbol. a greater than or equals symbol must be used in the null hypothesis. the complement of greater than or equals is a less than symbol, which will be used in the alternative hypothesis. the claim refers to the population mean time that college students spend on social media, so the symb... | openstax_principles-of-data-science-web | [
0.023653695359826088,
0.007131565827876329,
0.0383538194000721,
-0.007742654532194138,
-0.029373902827501297,
-0.012673746794462204,
0.039431340992450714,
0.013391915708780289,
-0.024714117869734764,
0.07685178518295288,
0.039779119193553925,
0.003383223433047533,
0.026858367025852203,
-0.... |
stats import norm from scipy. stats import norm # define parameters x, mean and standard _ deviation : x = - 1. 846 mean = 0 standard _ deviation = 1 # use norm. cdf function to calculate normal probability - note this is the area to the left of the x - value # subtract this result from 1 to obtain area to the right of... | openstax_principles-of-data-science-web | [
0.02441922016441822,
0.009726731106638908,
0.01773218624293804,
-0.01944144070148468,
-0.0318809375166893,
-0.0042887963354587555,
-0.012460248544812202,
-0.0020577358081936836,
-0.05004533752799034,
0.08158185333013535,
0.03694361075758934,
-0.0037065078504383564,
0.013279212638735771,
-0... |
4. 2 β’ hypothesis testing 173 hypothesis. this is accomplished by comparing the p - value with the level of significance. in this example, the p - value is 0. 032 and the level of significance is 0. 05 : since the p - value level of significance, then the decision is to β reject the null hypothesis. β conclusion : the ... | openstax_principles-of-data-science-web | [
0.039941057562828064,
0.020015791058540344,
0.03645216301083565,
-0.012090448290109634,
-0.0379449799656868,
-0.004265437368303537,
0.005219427868723869,
0.0009572442504577339,
0.0013269680785015225,
0.0846850797533989,
0.039240553975105286,
-0.0118631049990654,
0.029055194929242134,
0.006... |
collects a sample of 50 smartphones and determines that the mean battery life of the sample is 24. 1 hours with a sample standard deviation of 4. 1 hours. use this sample data to test the claim made by the smartphone manufacturer. use a level of significance of 0. 10 for this analysis. solution the first step in the hy... | openstax_principles-of-data-science-web | [
0.012983651831746101,
0.02544458396732807,
0.016742605715990067,
0.005021769553422928,
-0.03516170755028725,
-0.0009929833468049765,
0.03624667227268219,
-0.0077766054309904575,
0.012979639694094658,
0.08092305064201355,
0.02999691851437092,
0.004576434846967459,
0.028886592015624046,
-0.0... |
areas, which is 0. 127. the area under the t - distribution curve can be found using software. for example, in python, the area under the t - distribution curve to the left of a t - score of can be obtained using the function t. cdf ( ) the syntax for using this function is t. cdf ( x, df ) where : x is the measurement... | openstax_principles-of-data-science-web | [
0.01958572492003441,
0.030606361106038094,
-0.013934347778558731,
-0.02026141807436943,
-0.07188927382230759,
-0.008266458287835121,
0.04402654245495796,
-0.005274718627333641,
-0.02201210893690586,
0.07637091726064682,
0.004804089665412903,
-0.01583462953567505,
0.01731986552476883,
0.002... |
0. 0635 the final step in the hypothesis testing procedure is to come to a final decision regarding the null hypothesis. this is accomplished by comparing the p - value with the level of significance. in this example, the p - value is 0. 127 and the level of significance is 0. 10 : since the p - value level of signific... | openstax_principles-of-data-science-web | [
0.039719343185424805,
0.018284529447555542,
0.03249286860227585,
-0.01976468227803707,
-0.040444035083055496,
-0.008028746582567692,
-0.00861920602619648,
0.022695424035191536,
-0.01118079386651516,
0.08293235301971436,
0.036905303597450256,
-0.011435175314545631,
0.000029957631340948865,
... |
as part of their coursework is less than 45 %. to test the claim, the professor selects a sample of 200 students and surveys the students to determine if they use ai tools as part of their coursework. the results from the survey indicate that 74 out of 200 students use ai tools. use this sample data to test the claim m... | openstax_principles-of-data-science-web | [
0.031893420964479446,
0.033872149884700775,
0.03515467792749405,
-0.03166284039616585,
-0.03537576273083687,
-0.01432143896818161,
0.023209894075989723,
0.02310953103005886,
-0.011488793417811394,
0.07894296944141388,
0.03269373998045921,
0.006082820240408182,
-0.0005437823128886521,
-0.02... |
of the test statistic. the area under the normal curve to the left of a z - score of is approximately 0. 012. thus, the p - value for this hypothesis test is 0. 012. here is the python code to calculate the p - value for this example : # from scipy. stats import norm from scipy. stats import norm # define parameters x,... | openstax_principles-of-data-science-web | [
0.0257804486900568,
0.02258545346558094,
0.05240704491734505,
-0.022266393527388573,
-0.07173338532447815,
-0.021656109020113945,
0.004409382585436106,
0.0038798819296061993,
-0.052036743611097336,
0.08239845931529999,
0.021327607333660126,
-0.011065380647778511,
0.03136690706014633,
0.009... |
0. 0115 the final step in the hypothesis testing procedure is to come to a final decision regarding the null hypothesis. this is accomplished by comparing the p - value with the level of significance. in this example, the p - value is 0. 012 and the level of significance is 0. 05 : since the p - value level of signific... | openstax_principles-of-data-science-web | [
0.04462868347764015,
0.007156461011618376,
0.018111197277903557,
-0.010326589457690716,
-0.04266371577978134,
-0.006917753256857395,
-0.0010687510948628187,
0.015905948355793953,
-0.004400428384542465,
0.0882086306810379,
0.006838372442871332,
-0.000988319399766624,
0.007004091516137123,
-... |
complement of a β greater than β symbol is a β less than or equals β symbol, which will be used in the null hypothesis. the claim refers to the population mean oxygen level, so the symbol will be used. the claim corresponds to the alternative hypothesis. notice that this setup will correspond to setup b from table 4. 6... | openstax_principles-of-data-science-web | [
0.024541782215237617,
0.009730213321745396,
0.015111255459487438,
-0.008894704282283783,
-0.02679263800382614,
-0.02044980227947235,
0.03244984149932861,
0.02037697657942772,
-0.014620056375861168,
0.06212032213807106,
0.021428002044558525,
0.00878151599317789,
0.012689772993326187,
-0.011... |
", one _ tailed _ p _ value ) the resulting output will look like this : test statistic = 0. 6512171447631733 p - value = 0. 2655900985964262 the final step in the hypothesis testing procedure is to come to a final decision regarding the null hypothesis. this is accomplished by comparing the p - value with the level of... | openstax_principles-of-data-science-web | [
0.05114743858575821,
0.015309929847717285,
0.03775576502084732,
-0.022916710004210472,
-0.028306173160672188,
-0.02180788293480873,
-0.012428260408341885,
0.006798080634325743,
-0.01805494911968708,
0.06962818652391434,
-0.005193013697862625,
0.0012481254525482655,
-0.00528786750510335,
0.... |
4. 2 β’ hypothesis testing 179 conclusion : the decision is to fail to reject the null hypothesis ; the claim corresponds to the alternative hypothesis. this scenario corresponds to row 4 in table 4. 8, which means β there is not enough evidence to support the claim β that the average oxygen level for female patients is... | openstax_principles-of-data-science-web | [
0.018917731940746307,
0.018483171239495277,
-0.01090454775840044,
-0.01458799745887518,
-0.03719416260719299,
0.0056215329095721245,
-0.006500363349914551,
0.012838620692491531,
0.036870673298835754,
0.09596747159957886,
0.01853697933256626,
-0.028334612026810646,
0.014899292029440403,
-0.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.