text
stringlengths
1
3.55k
source
stringlengths
24
207
emb
listlengths
1.02k
1.02k
. a historian traveling to italy to study ancient manuscripts to uncover historical insights about the roman empire b. a mathematician solving complex equations to model physical phenomena c. a biologist analyzing a large dataset of genetic sequences to gain insights about the genetic basis of diseases d. a chemist syn...
openstax_principles-of-data-science-web
[ 0.01598835550248623, -0.003079852322116494, 0.06484470516443253, -0.035558298230171204, 0.038080379366874695, 0.012037952430546284, -0.02495317906141281, -0.021020647138357162, 0.02586757205426693, 0.058677539229393005, 0.007564871106296778, -0.016340497881174088, 0.04491051658987999, -0.0...
and danceability ( y - axis ) of the spotify dataset ( https : / / openstax. org / r / filed ) using : a. python matplotlib b. a spreadsheet program such as ms excel or google sheets ( hint : search β€œ scatterplot ” on help. ) 7. regenerate the scatterplot of the spotify dataset ( https : / / openstax. org / r / filed )...
openstax_principles-of-data-science-web
[ 0.01842493563890457, 0.04819897562265396, 0.029609762132167816, 0.02311975508928299, -0.004023839719593525, -0.006227085832506418, 0.0008426787098869681, -0.019969433546066284, 0.014977073296904564, 0.015985338017344475, -0.03246457874774933, -0.03295358270406723, 0.021197058260440826, -0....
/ openstax. org / r / spreadsheet4 ), calculate the average bpm of the songs released in 2023 using : a. python pandas b. a spreadsheet program such as ms excel or google sheets ( hint : the formula average ( ) computes the average across the cells specified in the parentheses. for example, within excel, typing in the ...
openstax_principles-of-data-science-web
[ -0.015009247697889805, 0.051486145704984665, -0.0007735902909189463, 0.04575296863913536, 0.004295479506254196, 0.011762496083974838, 0.002601837972179055, -0.0032906837295740843, 0.041614633053541183, 0.08730009943246841, 0.01357339695096016, -0.011074784211814404, -0.0058259558863937855, ...
##achi drive farming efficiency with sustainable digital solutions. hitachi social innovation. https : / / social - innovation. hitachi / en - us / case _ studies / digital - solutions - in - agriculture - drive - sustainability - in - farming / iabac. ( 2023, september 20 ). fraud detection through data analytics : id...
openstax_principles-of-data-science-web
[ -0.004940143786370754, 0.031348034739494324, -0.0104844244197011, 0.018220722675323486, -0.02638736367225647, 0.008621112443506718, 0.002008248120546341, 0.007497158367186785, 0.048268962651491165, 0.06597590446472168, -0.03011075034737587, 0.014392513781785965, 0.028548184782266617, -0.01...
2. 5 handling large datasets introduction data collection and preparation are the first steps in the data science cycle. they involve systematically gathering the necessary data to meet a project's objectives and ensuring its readiness for further analysis. well - executed data collection and preparation serve as a sol...
openstax_principles-of-data-science-web
[ 0.006461816839873791, 0.01618303172290325, 0.012909838929772377, 0.010674698278307915, -0.012645797803997993, 0.025525785982608795, -0.026465723291039467, 0.0022657299414277077, 0.028273314237594604, 0.039295122027397156, -0.0005167998024262488, -0.026384826749563217, 0.024241583421826363, ...
2. 1 overview of data collection methods learning outcomes by the end of this section, you should be able to : β€’ 2. 1. 1 define data collection and its role in data science. β€’ 2. 1. 2 describe different data collection methods commonly used in data science, such as surveys and experiments. β€’ 2. 1. 3 recognize scenarios...
openstax_principles-of-data-science-web
[ -0.016734281554818153, 0.04450166970491409, -0.012584218755364418, -0.022143619135022163, -0.033774483948946, 0.007000053767114878, -0.022527901455760002, 0.012691149488091469, 0.025818902999162674, 0.029176851734519005, -0.015309988521039486, 0.002425964456051588, 0.029172996059060097, 0....
. a survey may be conducted online, via phone, or in person, while experimental research requires a controlled environment to ensure data validity and reliability. types of data observational and transactional data play important roles in data analysis and related decision - making, each offering unique insights into d...
openstax_principles-of-data-science-web
[ -0.03215857967734337, 0.03307183086872101, -0.0040331389755010605, -0.009764653630554676, 0.005478463601320982, -0.011660284362733364, -0.011889741756021976, 0.03076302260160446, 0.03550838306546211, 0.04290253669023514, -0.0022403134498745203, -0.0022342700976878405, 0.034899767488241196, ...
include financial data, but it also includes data related to customer purchases, website clicks, user interactions, or any other type of activity that is recorded and tracked. transactional data can be used to understand patterns and trends, make predictions and recommendations, and identify potential opportunities or ...
openstax_principles-of-data-science-web
[ -0.02320420742034912, 0.05988775193691254, 0.0010781669989228249, -0.004491223022341728, -0.03255689516663551, -0.019086232408881187, -0.0008923410205170512, 0.007724506314843893, 0.03988960012793541, 0.05928549915552139, -0.01847871206700802, -0.004753596615046263, 0.01912754587829113, 0....
2. 1 β€’ overview of data collection methods 61 solution ashley wants to ensure that there is enough food for her local birds while she is away for three days. to do this, she will carefully observe the feeder daily for two consecutive weeks. she will record the total amount of feed eaten each day and make sure to refill...
openstax_principles-of-data-science-web
[ -0.00039295441820286214, 0.033825311809778214, -0.012918822467327118, -0.002440946875140071, -0.022817932069301605, 0.0009714196203276515, 0.011265775188803673, 0.029461544007062912, 0.03148609399795532, 0.053937919437885284, -0.028637968003749847, 0.0014331915881484747, 0.044185735285282135...
health records system. this data may include patients'appointment schedules, visit durations, and wait times. this information can help identify patterns and trends in appointment scheduling and wait times. 2. appointment booking system : samantha can gather data from the hospital's appointment booking system. this dat...
openstax_principles-of-data-science-web
[ 0.007355751469731331, 0.011097586713731289, -0.006929412484169006, 0.004677088465541601, -0.01025388389825821, -0.0005109805497340858, -0.01495722308754921, 0.027777884155511856, 0.02060389146208763, 0.07101883739233017, 0.011579702608287334, 0.01775837317109108, 0.045367106795310974, -0.0...
measured and documented every week for four consecutive weeks. the main research objective was to determine the growth rate of plants exposed to eight hours of sunlight compared to those with only four hours. a total of 20 identical potted plants were used, with one group allocated to the " sunlight " condition and the...
openstax_principles-of-data-science-web
[ -0.008022377267479897, 0.032985709607601166, 0.01845179870724678, -0.01292671263217926, -0.020125675946474075, 0.021652936935424805, -0.00919419713318348, 0.0303155817091465, 0.062477514147758484, 0.01946841925382614, 0.008186004124581814, -0.03405876085162163, 0.03155306354165077, -0.0285...
2. 2 survey design and implementation learning outcomes by the end of this section, you should be able to : β€’ 2. 2. 1 describe the elements of survey design and identify the steps data scientists take to ensure the reliability of survey results. β€’ 2. 2. 2 describe methods for avoiding bias in survey questions. β€’ 2. 2. ...
openstax_principles-of-data-science-web
[ -0.030724672600626945, 0.037781696766614914, -0.0003642812662292272, -0.05185277760028839, 0.014779720455408096, -0.014239910989999771, 0.010796855203807354, 0.049907226115465164, 0.012974478304386139, 0.05214224383234978, -0.005794145632535219, -0.0031515879090875387, 0.01890283077955246, ...
2. 2 β€’ survey design and implementation 63 open - ended questions allow for more in - depth responses and provide the opportunity for unexpected insights. they also allow respondents to elaborate on their thoughts and provide detailed and personal responses. closed - ended questions have predetermined answer choices an...
openstax_principles-of-data-science-web
[ 0.00286207371391356, 0.022193526849150658, 0.025495970621705055, -0.023684438318014145, -0.013599622063338757, 0.020004993304610252, 0.0030700843781232834, 0.040254101157188416, -0.01697099395096302, 0.043697282671928406, 0.030044836923480034, -0.00622168043628335, 0.012973872944712639, 0....
such as age or location. sampling is necessary in a wide range of data science projects to make data collection more manageable and cost - effective while still drawing meaningful conclusions. a variety of techniques can be employed to determine a subset of data from a larger population to perform research or construct...
openstax_principles-of-data-science-web
[ 0.0032596727833151817, 0.06125415116548538, 0.009188185445964336, -0.029899336397647858, -0.043548472225666046, -0.0013902883511036634, -0.0022222830448299646, 0.025795606896281242, 0.0062421755865216255, 0.0560513436794281, 0.04551840201020241, -0.043221615254879, 0.028079384937882423, 0....
in engineering, this technique is used to select random samples of materials or components 64 2 β€’ collecting and preparing data access for free at openstax. org for quality control testing. in the political arena, simple random sampling is commonly used to select randomly registered voters for polls or surveys, ensurin...
openstax_principles-of-data-science-web
[ -0.008419022895395756, 0.054406266659498215, 0.029487498104572296, -0.03287757560610771, -0.05470694229006767, 0.001414035214111209, -0.014985642395913601, 0.02513260953128338, 0.008019279688596725, 0.05617014691233635, 0.03686952963471413, -0.019625086337327957, 0.0382993258535862, -0.019...
sampling applies to selecting people or items for the sample based on their availability and convenience to the data science research. for example, a researcher may choose to survey students in their classroom or manipulate data from social media users. convenience sampling is effortless to achieve, and it is useful fo...
openstax_principles-of-data-science-web
[ -0.013271544128656387, 0.013901284895837307, 0.029358485713601112, -0.025714140385389328, -0.007355324923992157, 0.0007103702519088984, -0.0040550087578594685, 0.03941528499126434, 0.003811258589848876, 0.08147662878036499, 0.04859907925128937, -0.026687247678637505, 0.0231106486171484, 0....
which means every student with a number ending in 4 ( 14, 24, 34, etc. ) will be included in the sample. this way, the researcher will have a representative sample of 100 students from the high school, which is 10 % of the population. the sample will consist of students from different grades, genders, and backgrounds, ...
openstax_principles-of-data-science-web
[ 0.029808325693011284, 0.033734727650880814, -0.00032473084866069257, 0.014503851532936096, -0.0006753896595910192, -0.01169968955218792, 0.0334959402680397, 0.04149181395769119, -0.025610368698835373, 0.056950643658638, 0.05451905354857445, -0.023057127371430397, 0.03461369499564171, 0.021...
2. 2 β€’ survey design and implementation 65 6. purposive sampling. with purposive sampling, one or more specific criteria are used to select participants who are likely to provide the most relevant and useful information for the research study. this can involve selecting participants based on their expertise, characteri...
openstax_principles-of-data-science-web
[ 0.0020748202223330736, 0.04750834405422211, -0.0028936523012816906, -0.0049361493438482285, -0.018065664917230606, -0.007998715154826641, 0.005035285372287035, 0.041076477617025375, 0.0072211408987641335, 0.07155338674783707, 0.018805239349603653, -0.016092952340841293, 0.022860940545797348,...
, as it allows for a fast and cost - effective way to gather data from a diverse range of individuals. however, it is important to note that the results of quota sampling may not accurately represent the entire population, as the sample is not randomly selected and may be biased toward certain characteristics. therefor...
openstax_principles-of-data-science-web
[ -0.008520310744643211, 0.02574516087770462, -0.006399683654308319, 0.0019341474398970604, -0.009669429622590542, -0.0268873143941164, 0.023912737146019936, 0.010831989347934723, 0.025129694491624832, 0.06540115922689438, 0.02462533302605152, -0.04720594361424446, 0.018949925899505615, 0.02...
ensure that each member of the population has an equal chance of being included in 66 2 β€’ collecting and preparing data access for free at openstax. org the sample. additionally, careful consideration of the sampling frame should ideally encompass all members of the target population and provide a clear and accessible ...
openstax_principles-of-data-science-web
[ -0.025627806782722473, 0.013934283517301083, 0.03538859635591507, 0.0006162002682685852, -0.04834704473614693, -0.004480492323637009, 0.0083951186388731, 0.00976591370999813, 0.004598730243742466, 0.05694429948925972, 0.011082849465310574, -0.03603768348693848, 0.01881052926182747, 0.00381...
: 1. sampling bias. one potential source of bias in this study is self - selection bias. as the participants are all college students, they may not be representative of the larger population, as college students tend to have more access and motivation to exercise compared to the general population. this could limit the...
openstax_principles-of-data-science-web
[ -0.009559901431202888, 0.012064832262694836, 0.02811346761882305, 0.004550420679152012, -0.038117665797472, -0.003295480739325285, 0.03750478848814964, 0.0356963612139225, -0.00966262724250555, 0.057043708860874176, 0.02356911636888981, -0.010174448601901531, 0.029820188879966736, -0.01968...
2. 2 β€’ survey design and implementation 67 researchers need to be aware of these potential errors and take steps to minimize them when designing and conducting their studies. example 2. 3 problem mark is a data scientist who works for a marketing research company. he has been tasked to lead a study to understand consum...
openstax_principles-of-data-science-web
[ -0.001505604013800621, 0.029430324211716652, 0.014074986800551414, -0.053723178803920746, 0.002176673151552677, -0.021007519215345383, -0.0009153722785413265, 0.02826126106083393, 0.009300898760557175, 0.046677764505147934, -0.017399858683347702, -0.018271420150995255, 0.03439551964402199, ...
2. 3 web scraping and social media data collection learning outcomes : by the end of this section, you should be able to : β€’ 2. 3. 1 discuss the uses of web scraping for collecting and preparing data for analysis. β€’ 2. 3. 2 apply regular expressions for data manipulation and pattern matching. β€’ 2. 3. 3 write python cod...
openstax_principles-of-data-science-web
[ -0.010812424123287201, 0.02683817222714424, -0.0017154969973489642, 0.008239519782364368, 0.0008659290033392608, 0.025592807680368423, -0.0020530703477561474, -0.0012176056625321507, 0.05251670256257057, 0.04721838980913162, -0.027160312980413437, -0.009624795988202095, 0.02576783485710621, ...
to navigate to other pages and collect data from them β€’ useful for scraping data from multiple pages of a website xpath β€’ powerful query language β€’ navigates through the elements in an html document β€’ often used in combination with html parsing to select specific elements to scrape regular expressions β€’ search for and ...
openstax_principles-of-data-science-web
[ -0.019436940550804138, 0.028722865507006645, -0.022093400359153748, 0.02145511470735073, 0.010929377749562263, 0.03263793885707855, -0.0060907891020178795, -0.00021410400222521275, 0.07275545597076416, 0.07700210064649582, -0.011378028430044651, -0.0021619044709950686, 0.018234796822071075, ...
can reveal influential users and communities. it involves identifying and analyzing influential individuals or groups as well as understanding patterns and trends within the network. image and video analysis can provide insights into visual trends and user behavior.
openstax_principles-of-data-science-web
[ 0.00964302010834217, 0.01134535763412714, -0.0269353985786438, -0.007053306791931391, 0.04939922317862511, -0.014841973781585693, -0.050938330590724945, 0.02020392194390297, 0.04840190336108208, 0.04252239316701889, -0.014125130139291286, 0.007438318338245153, 0.022602681070566177, -0.0228...
2. 3 β€’ web scraping and social media data collection 69 an example of social media data collection is conducting a twitter survey on customer satisfaction for a food delivery company. data scientists can use twitter's api to collect tweets containing specific hashtags related to the company and analyze them to understa...
openstax_principles-of-data-science-web
[ 0.000004949042249791091, 0.0045854477211833, 0.011392035521566868, 0.004818006884306669, 0.005276086740195751, 0.03246912732720375, -0.018668724223971367, 0.027274146676063538, 0.032027553766965866, 0.040995243936777115, -0.018321648240089417, -0.022817745804786682, 0.04777012765407562, 0....
4 ) from the list of dataframe objects returned by the read _ html ( ) function. the index here represents the table order in the web page. 4. store the data in a dataframe. the result of the read _ html ( ) function is a list of dataframe objects, and each dataframe represents a table from the web page. we can store t...
openstax_principles-of-data-science-web
[ -0.015541336499154568, -0.012530441395938396, 0.016613876447081566, -0.02817600592970848, -0.028238458558917046, 0.030393239110708237, 0.011849552392959595, 0.024614745751023293, 0.004808451049029827, 0.06353596597909927, -0.003590183798223734, -0.011262546293437481, 0.00014048590674065053, ...
same web page. this enables efficient data processing and analysis, making the 70 2 β€’ collecting and preparing data access for free at openstax. org task more manageable and streamlined. example 2. 4 problem extract data table " current population survey : household data : ( table a - 13 ). employed and unemployed pers...
openstax_principles-of-data-science-web
[ -0.02963912859559059, 0.0007849792018532753, -0.011876705102622509, 0.01141410879790783, -0.022199632599949837, 0.01983805000782013, 0.00037956133019179106, 0.012240699492394924, 0.03165503963828087, 0.051217708736658096, 0.019533783197402954, -0.016418520361185074, 0.016283279284834862, 0...
2. 3 β€’ web scraping and social media data collection 71 in python, there are several libraries and methods that can be used for parsing and extracting data from text. these include the following : 1. regular expressions ( regex or re ) ( https : / / openstax. org / r / docpython ). this is a built - in library in pytho...
openstax_principles-of-data-science-web
[ 0.02279292605817318, 0.009742687456309795, -0.0207467433065176, 0.01615038514137268, 0.018509941175580025, 0.03171616420149803, 0.017208285629749298, -0.022577308118343353, 0.027868280187249184, 0.05262824147939682, -0.018728923052549362, -0.004707940388470888, 0.01134076714515686, -0.0355...
the specific task and type of data being analyzed. it is important to research and determine the best approach for a given project. regular expressions in python regular expressions, also known as regex, are a set of symbols used to define a search pattern in text data. in python, these expressions are supported by the...
openstax_principles-of-data-science-web
[ 0.029724914580583572, -0.015396438539028168, -0.005342500284314156, -0.005036510527133942, 0.005027739331126213, 0.004151779692620039, 0.0516592338681221, 0.015087367035448551, 0.001077114837244153, 0.07501240074634552, 0.0003187290276400745, 0.01902424916625023, 0.0012005483731627464, -0....
a? b " would match either " ab " or " b ". β€’ the + character is known as the " plus sign " and is used to match one or more occurrences of the preceding character or group. for example, the regular expression " a + b " would match one or more " a " s followed by a " b ", such as " ab ", " aab ", " aaab ", etc. if there...
openstax_principles-of-data-science-web
[ 0.05794474855065346, 0.00695067411288619, -0.005330096930265427, -0.014430155046284199, -0.008929447270929813, -0.0140019366517663, 0.05363449081778526, 0.022334523499011993, -0.003823052393272519, 0.07977557927370071, 0.012656916864216328, 0.0027380192186683416, -0.00265119899995625, -0.0...
2. 3 β€’ web scraping and social media data collection 73 # use the " findall " to search for matching patterns in the data string words = re. findall ( pattern, story ) # print the number of repeated python print ( " the word'python'is repeated ", len ( words ), " times in the story. " ) # print the matched patterns pri...
openstax_principles-of-data-science-web
[ 0.02437623217701912, -0.0016954551683738828, 0.01136665791273117, 0.010624989867210388, -0.009289414621889591, -0.010587131604552269, 0.005466688424348831, -0.014201010577380657, 0.027089478448033333, 0.08641766011714935, 0.019730905070900917, -0.011997895315289497, 0.004505525343120098, -...
, deleting, or inserting new content into specific positions within the string. parsing and extracting data involves the analysis of a given dataset or string to extract specific pieces of information. this is accomplished using various techniques and functions, such as splitting and slicing strings, which allow for th...
openstax_principles-of-data-science-web
[ 0.025290489196777344, 0.005899270065128803, -0.013135991059243679, 0.009092387743294239, 0.0050093489699065685, 0.010329246520996094, -0.007971081882715225, -0.024109764024615288, 0.014799901284277439, 0.06897628307342529, 0.014135800302028656, 0.005856534466147423, -0.01081658061593771, -...
the words " model : " and captures anything that comes after it until it reaches a comma. the result is saved in a variable named " model ". finally, the third pattern searches for the words " price : " and captures any sequence of numbers or symbols that follows it until the end of the string. the result is saved in a...
openstax_principles-of-data-science-web
[ 0.009897394105792046, 0.00985186081379652, -0.013279605656862259, -0.011895709671080112, 0.00423383479937911, -0.008180161006748676, 0.021564876660704613, -0.02373092621564865, 0.02711120992898941, 0.07057926058769226, 0.01801767200231552, 0.021825144067406654, 0.0016068228287622333, -0.02...
) # print the extracted data print ( " product : " + product ) print ( " model : " + model ) print ( " price : " + price ) the resulting output will look like this : product : iphone 12 model : a2172 price : $ 799 processing and storing data once the data is collected, it should be processed and stored in a suitable fo...
openstax_principles-of-data-science-web
[ -0.021577704697847366, -0.01056134607642889, -0.012507801875472069, -0.02520759589970112, 0.013023833744227886, -0.009313413873314857, 0.0013986850390210748, -0.013662606477737427, 0.018784893676638603, 0.04767607897520065, 0.00008339445776073262, 0.03460666164755821, -0.017643816769123077, ...
2. 3 β€’ web scraping and social media data collection 75 cleaning process includes identifying and correcting any errors, inconsistencies, and missing values in a dataset and is essential for ensuring that the data is accurate, reliable, and usable for analysis or other purposes. python is often utilized for data proces...
openstax_principles-of-data-science-web
[ 0.018850143998861313, -0.012685810215771198, 0.040725212544202805, 0.016563095152378082, -0.0044282423332333565, 0.033280983567237854, -0.0031723123975098133, 0.0028714784421026707, 0.038769643753767014, 0.023746319115161896, -0.012418764643371105, -0.05529576167464256, -0.002123038517311215...
3 " : [ " thomas jefferson ", " virginia " ], " 4 " : [ " james madison ", " virginia " ], " 5 " : [ " james monroe ", " virginia " ], " 6 " : [ " john quincy adams ", " massachusetts " ], " 7 " : [ " andrew jackson ", " south carolina " ], " 8 " : [ " martin van buren ", " new york " ], " 9 " : [ " william henry harri...
openstax_principles-of-data-science-web
[ 0.0356614775955677, 0.018218666315078735, 0.0705055445432663, 0.03031313233077526, -0.050296228379011154, -0.014656425453722477, -0.017078178003430367, 0.011035839095711708, 0.022195367142558098, -0.014505943283438683, 0.04380281642079353, -0.00592587748542428, -0.011083392426371574, -0.02...
" theodore roosevelt ", " new york " ], " 27 " : [ " william howard taft ", " ohio " ], " 28 " : [ " woodrow wilson ", " virginia " ], " 29 " : [ " warren g. harding ", " ohio " ], " 30 " : [ " calvin coolidge ", " vermont " ], " 31 " : [ " herbert hoover ", " iowa " ], " 32 " : [ " franklin d. roosevelt ", " new york ...
openstax_principles-of-data-science-web
[ 0.019209371879696846, 0.006842739414423704, 0.04860176518559456, -0.007378488313406706, -0.04469354823231697, -0.01380724273622036, -0.023597557097673416, 0.01859578862786293, 0.01864975318312645, 0.00039343416574411094, 0.02692827768623829, -0.03496446833014488, -0.0002105897874571383, -0...
", " state of birth " ] # create a writer object writer = csv. dictwriter ( csv _ file, fieldnames = fieldnames ) # write the header row writer. writeheader ( ) # loop through the presidents dictionary for key, value in presidents. items ( ) : # write the data for each president to the csv file writer. writerow ( { " n...
openstax_principles-of-data-science-web
[ 0.005953697487711906, -0.015809092670679092, 0.023271463811397552, -0.02878015860915184, -0.006581026129424572, -0.02376345917582512, -0.0028412877582013607, 0.018469152972102165, 0.040834929794073105, 0.012365788221359253, 0.0017230482771992683, -0.03401114046573639, 0.02627149224281311, ...
2. 4 data cleaning and preprocessing learning outcomes by the end of this section, you should be able to : β€’ 2. 4. 1 apply methods to deal with missing data and outliers. β€’ 2. 4. 2 explain data standardization techniques, such as normalization, transformation, and aggregation. β€’ 2. 4. 3 identify sources of noise in dat...
openstax_principles-of-data-science-web
[ -0.012888296507298946, -0.022850127890706062, 0.030854837968945503, 0.022196095436811447, 0.004543926101177931, 0.010734503157436848, 0.00030512240482494235, 0.009797151200473309, -0.00023895189224276692, 0.04198684170842171, 0.025888722389936447, -0.007550879381597042, 0.006116753909736872,...
still maintaining the overall characteristics of the original dataset. the goal of data cleaning and preprocessing is to guarantee that the data used for analysis is accurate, consistent, and relevant. it helps to improve the quality of the results and increase the efficiency of the analysis process. a well - prepared ...
openstax_principles-of-data-science-web
[ -0.011417100206017494, -0.002192381303757429, 0.012294522486627102, 0.025653580203652382, 0.00007641635602340102, -0.013021467253565788, 0.0005331080756150186, 0.009902498684823513, 0.002838501939550042, 0.03839994966983795, 0.015353499911725521, -0.02215200662612915, -0.006426762789487839, ...
can be done through visualization techniques, such as scatterplots, box plots, iqr ( interquartile range ), or histograms, or through statistical methods, such as calculating the mean, median, and standard deviation ( see measures of center and measures of variation as well as encoding univariate data ). it is importan...
openstax_principles-of-data-science-web
[ -0.02625824697315693, 0.01910325698554516, -0.034788426011800766, -0.02998488023877144, -0.010846669785678387, -0.02126072533428669, 0.031779807060956955, -0.008600779809057713, 0.0012032435042783618, 0.07932925969362259, 0.019149698317050934, -0.0006610549171455204, -0.004183832090348005, ...
helpful to understand the reasons behind the missing data and outliers. some expected reasons for missing data include measurement errors, human error, or data not being collected for a particular variable. similarly, outliers can be caused by incorrect data entry, measurement errors, or genuine extreme values in the d...
openstax_principles-of-data-science-web
[ -0.016698934137821198, 0.009994287975132465, 0.005602707155048847, 0.010351958684623241, -0.02005200833082199, 0.0034572852309793234, 0.029607074335217476, 0.011313182301819324, 0.03657621517777443, 0.06501847505569458, -0.0003121982153970748, -0.026443438604474068, -0.007519623730331659, ...
2. 4 β€’ data cleaning and preprocessing 79 example 2. 6 problem starting in 1939, the united states bureau of labor statistics tracked employment on a monthly basis. the number of employers in the construction field between 1939 and 2019 is presented in figure 2. 2. a. determine if there is any outlier in the dataset th...
openstax_principles-of-data-science-web
[ -0.011735242791473866, -0.015143010765314102, 0.031733252108097076, 0.015611136332154274, -0.007492654025554657, -0.018958130851387978, 0.0008070011390373111, 0.00732264993712306, 0.0378594808280468, 0.08209361881017685, 0.01697559654712677, -0.03406926989555359, 0.019961539655923843, -0.0...
1990 9523 7 / 1 / 1990 5580 8 / 1 / 1990 5581 9 / 1 / 1990 5487 10 / 1 / 1990 5379 11 / 1 / 1990 5208 12 / 1 / 1990 4963 table 2. 3 monthly employment over 1990 the median employment level from may 1, 1990, to july 1, 1990, is 5, 289, as a replacement value for the outlier on may 28, 1990. the adjusted data is presente...
openstax_principles-of-data-science-web
[ -0.015084505081176758, -0.017642633989453316, 0.031195789575576782, 0.016860170289874077, -0.025860127061605453, -0.0146671487018466, 0.009331684559583664, -0.017036274075508118, -0.0202033668756485, 0.05679059028625488, 0.025802666321396828, -0.03005763329565525, 0.01567602902650833, -0.0...
2. 4 β€’ data cleaning and preprocessing 81 duplicates as well as converting data from various sources into a unified format, often termed a normal form ( defined in the next section ). data transformation involves modifying the data to make it more suitable for the analysis that is planned. data validation ensures that ...
openstax_principles-of-data-science-web
[ -0.007468053605407476, -0.008047930896282196, 0.05851268023252487, 0.02587340772151947, -0.03309296816587448, 0.015328316017985344, 0.02418230101466179, -0.004137860611081123, -0.023490771651268005, 0.048449207097291946, 0.02660331502556801, 0.024421727284789085, 0.006630387157201767, -0.0...
free from certain types of data irregularities, such as redundancy and inconsistency. the most commonly used normal forms are 1nf, 2nf, 3nf ( first, second, and third normal form ), and bcnf ( boyce - codd normal form ). normalization is the process of applying these rules to a database. the data must be organized and ...
openstax_principles-of-data-science-web
[ -0.02058599516749382, 0.00298945140093565, 0.024334048852324486, 0.04004655033349991, -0.01792382262647152, -0.008377390913665295, 0.011930583976209164, -0.0077391318045556545, -0.04790295287966728, 0.048534274101257324, 0.04348739609122276, 0.035396307706832886, -0.005255106836557388, -0....
and in - store purchases, they might choose one or the other to avoid duplication. the marketing team would ensure that the data is properly structured and organized. this could involve creating a data table with domains for each data element, such as a customer id, product code, and purchase amount. by normalizing the...
openstax_principles-of-data-science-web
[ -0.013883722014725208, 0.00728635722771287, 0.030318286269903183, 0.007423866540193558, 0.010968592949211597, -0.026644470170140266, 0.025693371891975403, 0.024997036904096603, -0.05557064339518547, 0.036794014275074005, 0.02380906231701374, 0.02008301392197609, -0.010769217275083065, -0.0...
women ’ s boutique apparel 40000 20000 branch 8 designer & fashion sunglasses 55000 27500 table 2. 5 retail company sales and profits 2. 4 β€’ data cleaning and preprocessing 83 solution using the normalization formula, the maximum sale is $ 55, 000, and the minimum sale is $ 15, 000, as shown in table 2. 6. branch produ...
openstax_principles-of-data-science-web
[ -0.004776307847350836, 0.03855743259191513, 0.00792008452117443, 0.014105475507676601, -0.012872929684817791, -0.024767832830548286, 0.03265716880559921, 0.03314344212412834, -0.03199775516986847, 0.03218235448002815, 0.016905440017580986, 0.03028937429189682, 0.0020402143709361553, 0.0101...
1. 00 table 2. 6 data of retail company sales on normalization scale overall, the retail company ’ s top - selling products generate the most profits for the company, with β€œ designer & fashion sunglasses ” being the highest in the normalization scale. the company can use this information to focus on promoting and resto...
openstax_principles-of-data-science-web
[ -0.029807517305016518, 0.03571600094437599, 0.019632866606116295, -0.01498439535498619, -0.017189759761095047, -0.004628124181181192, 0.016900498420000076, -0.0004652132629416883, -0.020345943048596382, 0.07815258949995041, 0.05892365798354149, 0.007535778917372227, 0.015576967969536781, -...
of the data values. whichever operation is used, data transformation can be a useful tool for data analysts to address issues with data distribution and improve the accuracy of their analyses. dealing with noisy data noisy data refers to data that retains errors, outliers, or irrelevant information that can conceal tru...
openstax_principles-of-data-science-web
[ -0.03204351291060448, 0.015794100239872932, 0.01917293108999729, 0.03494351729750633, 0.004000087268650532, -0.02907470241189003, 0.009227472357451916, -0.027721434831619263, 0.001459515537135303, 0.07352275401353836, 0.030647236853837967, -0.014257139526307583, 0.0012616905150935054, 0.00...
known medical conditions and past treatments. binning a researcher is studying the age demographics of a population in a city. instead of looking at individual ages, the researcher decides to bin the data into age groups of 10 years ( e. g., 0 – 10, 10 – 20, 20 – 30, etc. ). this allows for a more comprehensive and eas...
openstax_principles-of-data-science-web
[ -0.00014617526903748512, -0.0006902726017870009, 0.02006995864212513, -0.013206628151237965, 0.0318797267973423, -0.01745559461414814, 0.012972687371075153, -0.006737407296895981, 0.007861046120524406, 0.0577407069504261, 0.024006562307476997, -0.0427938848733902, 0.019672609865665436, -0....
performed
openstax_principles-of-data-science-web
[ -0.0093881506472826, -0.032848257571458817, -0.035191528499126434, 0.011411786079406738, -0.0381259024143219, -0.0323016494512558, -0.032771382480859756, -0.010299327783286572, 0.016470033675432205, 0.009058527648448944, 0.046866100281476974, 0.019068820402026176, 0.03965548425912857, -0.0...
2. 4 β€’ data cleaning and preprocessing 85 through a variety of techniques, including manual checks, automated scripts, and statistical analysis. some common inspections in data validation include checking for duplicates, checking for mislaid values, and verifying data against external sources or references. before coll...
openstax_principles-of-data-science-web
[ -0.004327651113271713, 0.0062036942690610886, 0.04479660093784332, 0.012133964337408543, -0.016499457880854607, 0.013353745453059673, 0.027608446776866913, -0.03564976528286934, 0.01198559906333685, 0.04688285291194916, 0.011236892081797123, 0.013565688394010067, 0.0028420526068657637, -0....
it is always a good idea to involve multiple team members or experts in the validation process to catch any errors or inconsistencies that may have been overlooked by a single person. documentation of the validation process, including the steps taken and any issues identified, is important in future data audits or for ...
openstax_principles-of-data-science-web
[ -0.03261991962790489, 0.03140353783965111, -0.013941784389317036, 0.03805583715438843, -0.010367478244006634, 0.013634724542498589, 0.010061091743409634, -0.010892562568187714, 0.0312730148434639, 0.06092511862516403, 0.0012296134373173118, 0.010717470198869705, -0.014466696418821812, 0.00...
statistical aggregation, attribute aggregation, and temporal aggregation. this methodology is commonly operated in marketing, finance, health care, and research to analyze large sets of data. data aggregation is used in various industries to combine and analyze large sets of data. examples include calculating total sal...
openstax_principles-of-data-science-web
[ 0.0032076938077807426, -0.00637078145518899, 0.016123108565807343, 0.03209025412797928, 0.006745590828359127, -0.011496992781758308, -0.019173258915543556, -0.012373668141663074, 0.01831282489001751, 0.06595228612422943, -0.0050584361888468266, -0.005777998827397823, -0.022518163546919823, ...
out commonly occurring words that do not add meaning or context consider : β€œ the sun was shining bright in the sky and the birds were chirping. it was a lovely day in the park and people were enjoying the beautiful weather. ” after removing stopwords, the paragraph would be transformed into : β€œ sun shining bright sky b...
openstax_principles-of-data-science-web
[ 0.012923507019877434, -0.022732550278306007, 0.030866118147969246, -0.018817923963069916, -0.014268397353589535, -0.04378460720181465, -0.0030442115385085344, 0.01677718572318554, -0.010236193425953388, 0.023634418845176697, -0.001248586573638022, 0.012688376940786839, -0.02177743799984455, ...
2. 4 β€’ data cleaning and preprocessing 87 preprocessing technique explanation example part - of - speech tagging identifying the grammatical components of each word where each word in a sentence is assigned a specific part - of - speech tag ( e. g., noun, verb, or adjective ) in the sentence β€œ i went to the market to b...
openstax_principles-of-data-science-web
[ 0.008978385478258133, -0.012267489917576313, 0.041877344250679016, 0.011654749512672424, 0.016602152958512306, -0.03179411217570305, 0.0026116848457604647, -0.01739194430410862, 0.00512717105448246, 0.02857270836830139, -0.00873926654458046, 0.016283640637993813, -0.01902335323393345, -0.0...
. table 2. 8 summary of text preprocessing techniques 88 2 β€’ collecting and preparing data access for free at openstax. org preprocessing technique explanation example spell - checking and correction correcting spelling errors to improve accuracy suppose we have a text like : β€œ the writting was very inpprecise and had ...
openstax_principles-of-data-science-web
[ 0.017074164003133774, -0.009448088705539703, 0.03924054652452469, 0.0013051838614046574, 0.010971751064062119, -0.0032226243056356907, 0.02034216932952404, -0.057950299233198166, -0.027944471687078476, 0.034801263362169266, 0.01998819038271904, -0.004810394253581762, 0.018065012991428375, ...
, 0, 0, 0, 0 ] ; food : [ 0, 0, 0, 1, 0, 0, 0 ] ; delicious : [ 0, 0, 0, 0, 1, 0, 0 ] ; service : [ 0, 0, 0, 0, 0, 1, 0 ] ; top - notch : [ 0, 0, 0, 0, 0, 0, 1 ]. these one - hot encoded vectors can now be used as input features for machine learning models. removing special characters and punctuation simplifying the te...
openstax_principles-of-data-science-web
[ 0.02845623902976513, -0.002585826674476266, 0.028155947104096413, 0.0008266304503194988, -0.01269721519201994, 0.00746906828135252, 0.011938176117837429, -0.008835251443088055, -0.03901977837085724, 0.04942908510565758, -0.015826432034373283, 0.00911760050803423, -0.0244069155305624, -0.03...
for machine learning algorithms. for example, when analyzing customer reviews, it may be beneficial to normalize text data so that variations of the same word ( e. g., β€œ colour ” and β€œ color ” ) are treated as the same, providing a more accurate understanding of sentiment toward a product or service.
openstax_principles-of-data-science-web
[ 0.009789697825908661, 0.0018343932460993528, 0.016367105767130852, -0.008082724176347256, 0.0009335629874840379, -0.022186478599905968, 0.04132162034511566, -0.02345038764178753, -0.03686727583408356, 0.025810888037085533, 0.01108460407704115, 0.01074909046292305, -0.020324138924479485, -0...
2. 5 handling large datasets learning outcomes by the end of this section, you should be able to : β€’ 2. 5. 1 recognize the challenges associated with large data, including storage, processing, and analysis limitations. β€’ 2. 5. 2 implement techniques for efficient storage and retrieval of large datasets, including compr...
openstax_principles-of-data-science-web
[ 0.012720786966383457, 0.0057245600037276745, 0.04531445726752281, 0.026514556258916855, -0.0002498810936231166, 0.009263409301638603, -0.003622838295996189, -0.010530609637498856, 0.012332011014223099, 0.0630909651517868, -0.009242438711225986, -0.014729252085089684, 0.008775260299444199, ...
data that is stored in a structured format β€” and cloud computing. data compression data compression is a method of reducing file size while retaining essential information ; it can be applied to many types of databases. data compression is classified into two categories, lossy and lossless : β€’ lossy compression reduces...
openstax_principles-of-data-science-web
[ 0.006574979517608881, 0.014268701896071434, 0.060987550765275955, -0.009224360808730125, -0.008619832806289196, -0.006330539006739855, 0.011450488120317459, -0.02770894393324852, -0.006138286087661982, 0.07996993511915207, 0.03171775862574577, -0.04983124881982803, 0.009164594113826752, -0...
of storage solution will depend on data volume, variety, velocity, performance requirements, scalability needs, budget constraints, and existing infrastructure. organizations often deploy a combination of storage technologies to address different uses and requirements within their big data environments. some common typ...
openstax_principles-of-data-science-web
[ -0.022305244579911232, -0.003964725416153669, 0.031498983502388, -0.011037387885153294, -0.03703119978308678, 0.009850898757576942, 0.0036173660773783922, -0.004339957609772682, 0.038635291159152985, 0.07208172976970673, -0.004692541901022196, -0.010193816386163235, 0.02745032124221325, -0...
each node contains a range of data values and pointers to child nodes, allowing for efficient searching within a specific range of values. hashes indexing involves using a hash function to map data to a specific index in a table. this allows for direct access to the data based on its hashed value, making retrieval fast...
openstax_principles-of-data-science-web
[ -0.02244931273162365, 0.008350474759936333, 0.026465119794011116, -0.022714007645845413, 0.02267913892865181, -0.004711660090833902, -0.005755983293056488, -0.02918749488890171, -0.00650762440636754, 0.08185352385044098, -0.024704132229089737, 0.017484158277511597, 0.019723329693078995, -0...
2. 5 β€’ handling large datasets 91 figure 2. 5 b - tree indexing data chunking data chunking, also known as data segmentation or data partitioning, is a technique used to break down large datasets into smaller, more manageable chunks and make them easier to manage, process, analyze, and store. chunking is particularly u...
openstax_principles-of-data-science-web
[ 0.0007283973973244429, 0.006186565849930048, 0.02079584449529648, 0.0536985769867897, 0.010146944783627987, 0.002988608321174979, 0.025321127846837044, -0.020024608820676804, 0.016579994931817055, 0.07084497809410095, -0.031072396785020828, -0.010683653876185417, 0.026170656085014343, -0.0...
##ing allows for the transfer and processing of only the required chunks rather than the entire dataset, providing flexibility in managing large datasets. database management systems database management is a crucial aspect of data science projects as it involves organizing, storing, retrieving, and managing large volum...
openstax_principles-of-data-science-web
[ 0.014991969801485538, 0.01850319467484951, 0.009451422840356827, 0.016268065199255943, -0.029948651790618896, 0.018989454954862595, 0.007923313416540623, 0.007568003609776497, 0.0012831463245674968, 0.05764726921916008, 0.015931153669953346, -0.012641788460314274, 0.008725499734282494, 0.0...
for the hospital. this showcases the significance of incorporating advanced data management techniques in health care systems. through accurate and efficient management and analysis of patient data, hospitals and health care providers are able to make informed decisions, eventually resulting in a more efficient and eff...
openstax_principles-of-data-science-web
[ 0.022698605433106422, 0.03657004237174988, -0.002522530732676387, 0.011782986111938953, -0.01519947499036789, 0.0031579553615301847, 0.003945035859942436, -0.014315781183540821, 0.05485649034380913, 0.05858215317130089, 0.021041877567768097, 0.009838041849434376, 0.01451465580612421, -0.00...
2. 5 β€’ handling large datasets 93 and increasing efficiency. however, this decision would require careful consideration of security measures and potentially training for employees to adapt to the new system. 2. implementing a data archiving strategy : instead of immediately migrating to the cloud or investing in new te...
openstax_principles-of-data-science-web
[ -0.017365949228405952, 0.003772348864004016, 0.025543374940752983, 0.0238301120698452, -0.005101940594613552, -0.007117960602045059, 0.007523088250309229, -0.0049767582677304745, 0.030452555045485497, 0.04830260947346687, 0.02835865132510662, 0.011334681883454323, 0.010200290009379387, -0....
9 problem what is the descending order of storage capacity in example 2. 8, starting from highest to lowest, while maintaining the same cost and the same level of security? solution the available storage options in example 2. 8, ranked from highest to lowest capacity at the same cost and security level, are : 1. cloud ...
openstax_principles-of-data-science-web
[ -0.021579276770353317, -0.0026566723827272654, 0.05854932963848114, 0.005078484769910574, -0.03729657083749771, -0.0414239875972271, 0.009857702068984509, 0.007550574839115143, 0.02076844498515129, 0.09406439960002899, 0.01655508764088154, 0.022464171051979065, 0.009435132145881653, -0.023...
consolidating data and processes : by streamlining processes and eliminating redundancies, the company can potentially reduce the need for excessive storage capacity. however, this would also depend on the company's current setup and level of optimization. 8. regular audits of data usage and storage : this option may n...
openstax_principles-of-data-science-web
[ -0.02140618860721588, 0.010597598738968372, 0.035078566521406174, 0.05667643994092941, -0.013756336644291878, 0.008168810978531837, -0.025742104277014732, 0.006406246218830347, -0.0018820769619196653, 0.06171639263629913, 0.03787650167942047, 0.022376518696546555, 0.013791199773550034, -0....
2. 5 β€’ handling large datasets 95 key terms application programming interface ( api ) set of protocols, tools, and definitions for building software applications that allow different software systems to communicate and interact with each other and enable developers to access data and services from other applications, o...
openstax_principles-of-data-science-web
[ 0.011543400585651398, -0.0011959236580878496, 0.026928501203656197, 0.05994238704442978, -0.007711693178862333, 0.00352394487708807, 0.01283129770308733, -0.005171518307179213, 0.019458690658211708, 0.05881427600979805, 0.003062265692278743, 0.005623151548206806, 0.005079255439341068, -0.0...
unified view data processing the process of collecting, organizing, and manipulating data to produce meaningful information involving the transformation of raw data into a more useful and understandable format data standardization the process of transforming data into a common scale or range to help remove any unit dif...
openstax_principles-of-data-science-web
[ -0.005232672672718763, -0.01759127341210842, 0.008633805438876152, -0.0043085175566375256, -0.020224805921316147, -0.005557443015277386, 0.027698619291186333, -0.030634639784693718, -0.015950527042150497, 0.05462531000375748, 0.028854213654994965, -0.015069086104631424, 0.0057363444939255714...
data can be accounted for and included in the analysis through statistical techniques missing completely at random ( mcar ) data type of missing data that is not related to any other variables, with no underlying cause for its absence missing not at random ( mnar ) data type of data missing in a way that depends on uno...
openstax_principles-of-data-science-web
[ -0.03452146425843239, -0.0026491822209209204, -0.0008816246408969164, -0.010119975544512272, 0.0085962675511837, 0.005630450323224068, 0.009049816988408566, -0.014514748938381672, -0.015051196329295635, 0.07666397094726562, 0.04272349551320076, -0.011457047425210476, -0.007197064347565174, ...
structured or unstructured format relational databases databases that organize data in tables and use structured query language ( sql ) for data retrieval and management ; often used with financial data sampling the process of selecting a subset of a larger population to represent and gather information about that popu...
openstax_principles-of-data-science-web
[ -0.03178364783525467, -0.02390691451728344, 0.03737378865480423, -0.004359988030046225, -0.020927995443344116, -0.0074841235764324665, 0.023378003388643265, -0.008481818251311779, -0.030748356133699417, 0.06895385682582855, 0.027179792523384094, -0.015286305919289589, 0.005596233531832695, ...
called tokens, which can be words, phrases, symbols, or individual characters transactional data a type of information that records financial transactions, including purchases, sales, and payments. it includes details such as the date, time, and parties involved in the transaction. web scraping a method of collecting d...
openstax_principles-of-data-science-web
[ 0.014842653647065163, 0.01846303790807724, -0.010328719392418861, 0.016094636172056198, 0.016338704153895378, 0.0032498533837497234, 0.029408743605017662, 0.0017973135691136122, 0.03848931938409805, 0.05034055560827255, 0.016704745590686798, 0.0005509004695340991, -0.017933601513504982, 0....
project a required data and example 4. collaborative data cleaning. students will work together to clean the collected data, identifying and addressing any missing or duplicate information. they will also ensure that the data is standardized, allowing for accurate analysis and comparison. 5. data storage determination....
openstax_principles-of-data-science-web
[ 0.01357406284660101, 0.05296918377280235, 0.025093380361795425, 0.013271988369524479, -0.007371480111032724, 0.03513248637318611, -0.05303554981946945, 0.005548568442463875, 0.025605637580156326, 0.06515161693096161, -0.0034928431268781424, 0.007427385542541742, 0.03262041136622429, -0.019...
to maintain the same surrounding conditions. this includes using the same tools, such as a thermometer, and staying in the same location throughout the time period. any uncontrolled changes or errors should be noted and recorded to ensure accuracy in the data. repeat this process for seven days to gather a sufficient a...
openstax_principles-of-data-science-web
[ -0.0033942132722586393, 0.04220171272754669, -0.002209848491474986, 0.004495513625442982, -0.003018117742612958, 0.02768573723733425, -0.037445779889822006, 0.027163248509168625, 0.01195082999765873, 0.06888315826654434, 0.0003933132393285632, -0.005507582798600197, 0.03520253673195839, -0...
school is conducting a survey to understand the opinions of the school ’ s students toward the food options available in the cafeteria. they have divided the student population into four groups based on grade level ( 9th, 10th, 11th, 12th ). a random sample of 60 students is selected from each group and asked to rate t...
openstax_principles-of-data-science-web
[ 0.02923419326543808, 0.0025491046253591776, -0.004198636393994093, -0.01811004802584648, -0.04397217929363251, 0.011243552900850773, 0.039403803646564484, 0.044650718569755554, -0.03619876503944397, 0.07248328626155853, 0.012170625850558281, 0.0067139542661607265, 0.026574013754725456, -0....
6. 1 table 2. 11 high school survey what sampling technique was used to collect this data? 4. a research study is being conducted to understand the opinions of people on the new city budget. the population consists of residents from different neighborhoods in the city with varying income levels. the following table pro...
openstax_principles-of-data-science-web
[ 0.00940804835408926, 0.027445867657661438, -0.013145686127245426, 0.01911957561969757, -0.009132618084549904, -0.0017226405907422304, -0.002040750114247203, 0.039433371275663376, 0.013185037299990654, 0.06762319058179855, -0.014489317312836647, -0.018562134355306625, 0.0013492596335709095, ...
##5 10 / 19 / 2021 tuesday 4849 10 / 20 / 2021 wednesday 3940 10 / 21 / 2021 thursday 4821 10 / 22 / 2021 friday 4357 10 / 23 / 2021 saturday 0 10 / 24 / 2021 sunday 0 10 / 25 / 2021 monday 8572 10 / 26 / 2021 tuesday 4463 10 / 27 / 2021 wednesday 5323 10 / 28 / 2021 thursday 5012 10 / 29 / 2021 friday 4710 10 / 30 / 2...
openstax_principles-of-data-science-web
[ 0.007268036715686321, 0.008101711980998516, 0.0013988990103825927, 0.036975305527448654, -0.01497835386544466, -0.009334426373243332, 0.013054420240223408, 0.03834635391831398, 0.0021798766683787107, 0.05689646676182747, -0.008298642933368683, -0.00902771670371294, 0.03244097903370857, 0.0...
there was noise ( error ) present in the data. he wanted to investigate the main source of the error in the data so that he could take corrective actions and thus minimize the impact of the error ( s ) on the experiment results. what is the most likely source of error that paul might encounter in this experiment : huma...
openstax_principles-of-data-science-web
[ 0.007377308327704668, 0.000963006925303489, -0.003496787277981639, 0.014904748648405075, -0.019823221489787102, -0.018411632627248764, -0.00045052453060634434, -0.008730540983378887, 0.024676451459527016, 0.031495463103055954, 0.005177246872335672, -0.010014074854552746, 0.05315723642706871,...
figure 2. 6 data collection based on text processing 12. how can a data analyst for a large airline company efficiently collect and organize a significant amount of data pertaining to flight routes, passenger demographics, and operational metrics in a manner that ensures reliable and up - to - date records, complies wi...
openstax_principles-of-data-science-web
[ 0.019051413983106613, 0.004281393252313137, 0.02171570621430874, 0.020049506798386574, 0.002708759857341647, 0.02622741460800171, -0.009030942805111408, 0.02061263471841812, 0.02507614903151989, 0.06470255553722382, -0.019461041316390038, 0.007882052101194859, 0.018982350826263428, -0.0111...
/ pmc / articles / pmc5325924 / 2. lusinchi, d. ( 2012 ). president landon and the 1936 literary digest poll : were automobile and telephone owners to blame? social science history, 36 ( 1 ), 23 – 54. https : / / doi. org / 10. 1017 / s014555320001035x 2 β€’ references 103 104 2 β€’ references access for free at openstax. ...
openstax_principles-of-data-science-web
[ 0.02493945322930813, 0.012562201358377934, 0.06542877107858658, -0.04515654221177101, 0.007049490697681904, -0.0005756252212449908, -0.0019260100089013577, 0.027513809502124786, 0.035308681428432465, 0.027798518538475037, 0.026119865477085114, -0.004918805789202452, -0.002875374397262931, ...
3. 5 discrete and continuous probability distributions introduction statistical analysis is the science of collecting, organizing, and interpreting data to make decisions. statistical analysis lies at the core of data science, with applications ranging from consumer analysis ( e. g., credit scores, retirement planning,...
openstax_principles-of-data-science-web
[ -0.029648682102560997, 0.008439662866294384, 0.028117939829826355, -0.05177798867225647, 0.014828236773610115, -0.02046399936079979, -0.011732321232557297, 0.004751646891236305, 0.0017852068413048983, 0.06991284340620041, 0.041134633123874664, -0.03080705739557743, -0.00016275250527542084, ...
human resources administrator might also want to derive estimates and predictions about the average salary in the company five years into the future, taking into account inflation effects, or they might want to create a model to predict an individual employee ’ s salary based on the employee's years of experience in th...
openstax_principles-of-data-science-web
[ -0.009247099049389362, 0.025583907961845398, 0.005976349115371704, -0.06287633627653122, 0.017595654353499413, 0.016325905919075012, -0.004415974486619234, 0.00247561139985919, 0.0023462739773094654, 0.07916813343763351, 0.03769589960575104, -0.050698693841695786, 0.008106068708002567, -0....
).
openstax_principles-of-data-science-web
[ 0.00007268417539307848, 0.009733580984175205, -0.028186935931444168, 0.04046890512108803, 0.016261974349617958, 0.005769412964582443, 0.018548769876360893, -0.001098250038921833, 0.05922728031873703, -0.011421183124184608, 0.03478723764419556, 0.018851393833756447, 0.009846396744251251, -0...
3. 1 measures of center learning outcomes by the end of this section, you should be able to : β€’ 3. 1. 1 define and calculate mean, trimmed mean, median, and mode for a dataset. β€’ 3. 1. 2 determine the effect of outliers on the mean and the median. β€’ 3. 1. 3 use python to calculate measures of center for a dataset. meas...
openstax_principles-of-data-science-web
[ 0.02303115464746952, 0.006798912771046162, 0.007869399152696133, -0.007577807642519474, -0.03251916170120239, -0.02532697096467018, 0.022474631667137146, -0.00832973700016737, -0.015412066131830215, 0.041785627603530884, -0.007050620391964912, -0.03312151879072189, 0.0038071908056735992, -...
you will encounter two types of datasets : sample data and population data. population data represents all the outcomes or measurements that are of interest. sample data represents outcomes or measurements collected from a subset, or part, of the population of interest. of course in many applications, collecting data f...
openstax_principles-of-data-science-web
[ -0.00821766909211874, 0.02706741914153099, 0.013762624934315681, 0.014786478132009506, -0.027623333036899567, -0.037746015936136246, 0.022757064551115036, 0.0012098582228645682, 0.01535722240805626, 0.04148304834961891, 0.030661439523100853, -0.01674320362508297, 0.02563120238482952, 0.014...
this sum by the number of data values, which is 10. the result is :
openstax_principles-of-data-science-web
[ 0.0037529966793954372, 0.033528901636600494, 0.01831059530377388, 0.01152840070426464, -0.02168511226773262, -0.05940975248813629, 0.03832181170582771, 0.034439392387866974, 0.025394225493073463, 0.038841623812913895, 0.02739497274160385, 0.060370072722435, 0.00177436089143157, -0.00617259...
3. 1 β€’ measures of center 107 example 3. 2 problem a college professor records the ages of 25 students in a data science class as shown : student age number of students ( frequency ) 19 3 20 4 21 8 22 6 23 2 27 1 31 1 total 25 calculate the mean age for this sample of students. solution substitute the values from the t...
openstax_principles-of-data-science-web
[ 0.005194483790546656, 0.02513076178729534, 0.03517456352710724, -0.019554516300559044, -0.030130520462989807, -0.031402911990880966, 0.01525941863656044, 0.01078341156244278, -0.017982637509703636, 0.04045376181602478, 0.015644384548068047, -0.031793367117643356, 0.01745964214205742, -0.01...
values. then calculate the mean for the resulting dataset. any outliers would tend to be deleted as part of the trimmed mean calculation, and thus the trimmed mean would then be a more representative measure of the center of the data for datasets containing outliers. example 3. 3 problem a real estate agent collects da...
openstax_principles-of-data-science-web
[ -0.003434192854911089, 0.033250898122787476, 0.0026691481471061707, -0.021359797567129135, -0.041007865220308304, -0.04954918846487999, 0.020186705514788628, 0.03560962527990341, -0.0004815105930902064, 0.038909830152988434, 0.020440755411982536, -0.008160697296261787, 0.009073255583643913, ...
. the sum of these 9 data values is 4, 880, 200. divide this sum by the number of data values ( 9 ). the result is : notice how the mean calculated in part ( a ) is significantly larger as compared to the trimmed mean calculated in part ( b ). the reason is the presence of several large outlier home prices. once these ...
openstax_principles-of-data-science-web
[ 0.00480800261721015, 0.03239089623093605, 0.011892681941390038, -0.014714368619024754, -0.04027052968740463, -0.029017766937613487, 0.013617335818707943, 0.029570411890745163, -0.010885294526815414, 0.04451897740364075, 0.01828574202954769, -0.04063914343714714, -0.013196716085076332, -0.0...
3. 1 β€’ measures of center 109 to determine the median of a dataset, first order the data from smallest to largest, and then find the middle value in the ordered dataset. for example, to find the median value of 50 exam scores, find the score that splits the data into two equal parts. the exam scores for 25 students wil...
openstax_principles-of-data-science-web
[ 0.016617687419056892, 0.026877358555793762, 0.019861113280057907, -0.007886724546551704, -0.008320500142872334, -0.013267787173390388, 0.021128296852111816, 0.020951710641384125, -0.011461633257567883, 0.0642087310552597, 0.007216370664536953, -0.013313569128513336, 0.0053612771444022655, ...
that the median is located in the 13th data position. as another example, let ’ s say a dataset has 100 data values. since is even, to identify the position of the median, calculate, which is, which is 50, and also calculate, which is, which is 51. this indicates that the median is calculated as the mean of the 50th an...
openstax_principles-of-data-science-web
[ -0.0009580901241861284, 0.024930983781814575, 0.019477522000670433, 0.023046882823109627, -0.03064858168363571, -0.02474626526236534, 0.03144495561718941, 0.01090745348483324, -0.007432343438267708, 0.05965490639209747, 0.011203808709979057, -0.02328849583864212, -0.004267035983502865, 0.0...
influence of outliers on measures of center as mentioned earlier, when outliers are present in a dataset, the mean may not represent the center of the dataset, and the median will provide a better measure of center. the reason is that the median focuses on the middle value of the ordered dataset. thus, any outliers at ...
openstax_principles-of-data-science-web
[ 0.011504705995321274, 0.003438908839598298, -0.005642076954245567, -0.003889363491907716, 0.0013678978430107236, -0.02751518227159977, 0.03178480640053749, 0.021005531772971153, -0.022462273016572, 0.060340557247400284, 0.025780517607927322, -0.054871220141649246, -0.017496654763817787, -0...
how the dataframe. describe ( ) method is used to
openstax_principles-of-data-science-web
[ 0.02018796280026436, -0.028273984789848328, 0.018860578536987305, -0.011072313413023949, 0.008773396722972393, 0.011814530938863754, -0.023753773421049118, 0.023762710392475128, 0.016694698482751846, 0.058759160339832306, 0.02721025049686432, -0.024578779935836792, -0.013046410866081715, -...
3. 1 β€’ measures of center 111 summarize data. recall that the method describe ( ) is defined for a dataframe type object so should be called upon a dataframe type variable ( e. g. given a dataframe d, use d. describe ( ) ). figure 3. 2 shows the output of dataframe. describe ( ) on the β€œ movie profit ” dataset we used ...
openstax_principles-of-data-science-web
[ 0.029537128284573555, -0.019353222101926804, 0.014869536273181438, -0.009623641148209572, -0.003674521343782544, -0.008134803734719753, 0.002829617587849498, 0.005398882087320089, -0.02385602332651615, 0.024743378162384033, 0.01990358904004097, -0.014364156872034073, -0.026302458718419075, ...
3. 2 measures of variation learning outcomes by the end of this section, you should be able to : β€’ 3. 2. 1 define and calculate the range, the variance, and the standard deviation for a dataset. β€’ 3. 2. 2 use python to calculate measures of variation for a dataset. providing some measure of the spread, or variation, in...
openstax_principles-of-data-science-web
[ 0.034350018948316574, 0.02845722809433937, 0.018804876133799553, -0.026533663272857666, -0.0049477373249828815, -0.004107548855245113, 0.02078738994896412, 0.011188741773366928, -0.015915200114250183, 0.08512929826974869, -0.009717299602925777, -0.01139788143336773, 0.003807149128988385, -...
for a dataset that is calculated by subtracting the minimum from the maximum of the dataset : range is a straightforward calculation but makes use of only two of the data values in a dataset. the range can also be affected by outliers. example 3. 6 problem calculate the range for dataset a and dataset b : dataset a : e...
openstax_principles-of-data-science-web
[ 0.0003166752867400646, -0.0012668324634432793, 0.004158828407526016, 0.018064184114336967, -0.029069803655147552, -0.030231449753046036, 0.016730207949876785, 0.023241950199007988, -0.036010969430208206, 0.08693809807300568, 0.020943118259310722, -0.020283028483390808, -0.005254433024674654,...