var presentation = ["population<\/word>","sample<\/word>","same characteristics<\/word>","representing<\/word>","Sampling\nGathering information about an entire population<\/strong> often costs too much or is virtually impossible. Instead, we use a sample<\/strong>\nof the population<\/strong>. A sample<\/strong> should have the same characteristics<\/strong> as the population<\/strong> it is representing<\/strong>.<\/phrase>","random sampling<\/word>","Most statisticians use various methods of random sampling<\/strong> in an attempt to achieve this goal. This section will describe a few of the most common methods. There are several different methods of random sampling<\/strong>. In each form of random sampling<\/strong>, each\nmember of a population<\/strong> initially has an equal chance of being selected for the sample<\/strong>. Each method has pros and cons.<\/phrase>","simple random sample<\/word>","The easiest method to describe is called a simple random sample<\/strong>. Any group of n individuals is equally likely to be chosen by\nany other group of n individuals if the simple random sampling<\/strong> technique is used. In other words, each sample<\/strong> of the same\nsize has an equal chance of being selected.<\/phrase>","names in a hat<\/word>","table of random numbers<\/word>","computer<\/word>","For example, suppose Lisa wants to form a four-person study group (herself and three other people) from her pre-calculus class, which has 31 members not including Lisa. To choose a simple random sample<\/strong> of size three from the other members of her class, Lisa could put all 31 names in a hat<\/strong>, shake the hat, close her eyes, and pick out three names. Lisa can use a table of random numbers<\/strong> (found in many statistics books and mathematical handbooks), a calculator, or a computer<\/strong> to generate random numbers.<\/phrase>","stratified sample<\/word>","cluster sample<\/word>","systematic sample<\/word>","divide<\/word>","groups called strata<\/word>","Besides simple random sampling<\/strong>, there are other forms of sampling that involve a chance process for getting the sample<\/strong>. Other well-known random sampling<\/strong> methods are the stratified sample<\/strong>, the cluster sample<\/strong>, and the systematic sample<\/strong>. To choose a\nstratified sample<\/strong>, divide<\/strong> the population<\/strong> into groups called strata<\/strong> and then take a proportionate number from each stratum.<\/phrase>","For example, you could stratify (group) your college population<\/strong> by department and then choose a\nproportionate simple random sample<\/strong> from each stratum (each department) to get a stratified random sample<\/strong>. To choose\na simple random sample<\/strong> from each department, number each member of the first department, number each member of\nthe second department, and do the same for the remaining departments. Then use simple random sampling<\/strong> to choose\nproportionate numbers from the first department and do the same for each of the remaining departments. Those numbers\npicked from the first department, picked from the second department, and so on represent the members who make up the\nstratified sample<\/strong>.<\/phrase>","divide the population into clusters<\/word>","To choose a cluster sample<\/strong>, divide the population into clusters<\/strong> (groups) and then randomly select some of the clusters.\nAll the members from these clusters are in the cluster sample<\/strong>. For example, if you randomly sample<\/strong> four departments\nfrom your college population<\/strong>, the four departments make up the cluster sample<\/strong>. Divide<\/strong> your college faculty by department.\nThe departments are the clusters. Number each department, and then choose four different numbers using simple random\nsampling. All members of the four departments with those numbers are the cluster sample<\/strong>.<\/phrase>","randomly select a starting point<\/word>","take every nth piece of data<\/word>","To choose a systematic sample<\/strong>, randomly select a starting point<\/strong> and take every nth piece of data<\/strong> from a listing of the\npopulation<\/strong>. For example, suppose you have to do a phone survey. Your phone book contains 20,000 residence listings. You\nmust choose 400 names for the sample<\/strong>. Number the population<\/strong> 1-20,000 and then use a simple random sample<\/strong> to pick a\nnumber that represents the first name in the sample<\/strong>. Then choose every fiftieth name thereafter until you have a total of 400\nnames (you might have to go back to the beginning of your phone list). Systematic sampling is frequently chosen because\nit is a simple method.<\/phrase>","non-random<\/word>","convenience sampling<\/word>","A type of sampling that is non-random<\/strong> is convenience sampling<\/strong>. Convenience sampling<\/strong> involves using results that are\nreadily available. For example, a computer<\/strong> software store conducts a marketing study by interviewing potential customers\nwho happen to be in the store browsing through the available software. The results of convenience sampling<\/strong> may be very\ngood in some cases and highly biased (favor certain outcomes) in others.<\/phrase>","Sampling data should be done very carefully<\/word>","Sampling data should be done very carefully<\/strong>. Collecting data carelessly can have devastating results. Surveys mailed to\nhouseholds and then returned may be very biased (they may favor a certain group). It is better for the person conducting the\nsurvey to select the sample<\/strong> respondents.<\/phrase>","True random sampling<\/word>","done with replacement<\/word>","Surveys are typically done without replacement<\/word>","sampling without replacement<\/word>","True random sampling<\/strong> is done with replacement<\/strong>\n-That is, once a member is picked, that member goes back into the population<\/strong> and thus may be chosen more than once. However for practical reasons, in most populations, simple random sampling<\/strong> is done without replacement.\n-Surveys are typically done without replacement<\/strong>. That is, a member of the population<\/strong> may be chosen only once. Most samples are taken from large populations and the sample<\/strong> tends to be small in comparison to the population<\/strong>. Since this is the case, sampling without replacement<\/strong> is approximately the same as sampling with replacement because the chance of picking the same individual more than once with replacement is very low.<\/phrase>","In a college population<\/strong> of 10,000 people, suppose you want to pick a sample<\/strong> of 1,000 randomly for a survey.\nFor any particular sample<\/strong> of 1,000, if you are sampling with replacement,\n-the chance of picking the first person is 1,000 out of 10,000 (0.1000);\n-the chance of picking a different second person for this sample<\/strong> is 999 out of 10,000 (0.0999);\n-the chance of picking the same person again is 1 out of 10,000 (very low).<\/phrase>","If you are sampling without replacement<\/strong>,\n-the chance of picking the first person for any particular sample<\/strong> is 1000 out of 10,000 (0.1000);\n-the chance of picking a different second person is 999 out of 9,999 (0.0999);\n-you do not replace the first person before picking the next person.<\/phrase>","Compare the fractions 999\/10,000 and 999\/9,999. For accuracy, carry the decimal answers to four decimal places. To four\ndecimal places, these numbers are equivalent (0.0999).<\/phrase>","becomes a mathematical issue<\/word>","when the population is small<\/word>","Sampling without replacement<\/strong> instead of sampling with replacement becomes a mathematical issue<\/strong> only when the population is small<\/strong>. For example, if the population<\/strong> is 25 people, the sample<\/strong> is ten, and you are sampling with replacement for any particular sample<\/strong>, then the chance of picking the first person is ten out of 25, and the chance of picking a different second person is nine out of 25 (you replace the first person).<\/phrase>","If you sample<\/strong> without replacement, then the chance of picking the first person is ten out of 25, and then the chance of\npicking the second person (who is different) is nine out of 24 (you do not replace the first person).\nCompare the fractions 9\/25 and 9\/24. To four decimal places, 9\/25 = 0.3600 and 9\/24 = 0.3750. To four decimal places,\nthese numbers are not equivalent.<\/phrase>","important to be aware<\/word>","sampling errors<\/word>","nonsampling errors<\/word>","When you analyze data, it is important to be aware<\/strong> of sampling errors<\/strong> and nonsampling errors<\/strong>. The actual process of\nsampling causes sampling errors<\/strong>. For example, the sample<\/strong> may not be large enough. Factors not related to the sampling\nprocess cause nonsampling errors<\/strong>. A defective counting device can cause a nonsampling error.<\/phrase>","In reality, a sample<\/strong> will never be exactly representative of the population<\/strong> so there will always be some sampling error. As a\nrule, the larger the sample<\/strong>, the smaller the sampling error.<\/phrase>","In statistics, a sampling bias is created when a sample<\/strong> is collected from a population<\/strong> and some members of the population<\/strong>\nare not as likely to be chosen as others (remember, each member of the population<\/strong> should have an equally likely chance of\nbeing chosen). When a sampling bias happens, there can be incorrect conclusions drawn about the population<\/strong> that is being\nstudied.<\/phrase>","Download for free at\nhttp:\/\/cnx.org\/content\/col11562\/latest\/<\/phrase>"]; var currentPosition = 0; var totalPositions = 0; var timePerWord = 1500; var timePerPhraseWord = 120 var readAheadPlayerTimer; var autoPlay = true; var setMinimized = false; var wordSpeedOptions = {'Slower':2000,'Moderate':1200,'Fast':800}; var phraseSpeedOptions = {'Slower':280,'Moderate':200,'Fast':80}; var defaultWordSpeedOption = 'Moderate'; var defaultPhraseSpeedOption = 'Moderate'; var logToLTI = false; $(window).load(function(){ totalPositions = presentation.length; if (totalPositions > 0){ $('body').prepend('
'); $('body').prepend('
'); $('#read_ahead_player').prepend('
'); initializeReadAheadControls(); initializeReadAheadSlider(); initializeReadAheadSpeedOptions(); currentReadAheadControls(); resumeReadAheadPlayback(); } }); $(document).keyup(function(e){ switch(e.which) { case 37: pauseReadAheadPresentation(); priorReadAheadPresentationItem(); break; case 39: pauseReadAheadPresentation(); nextReadAheadPresentationItem(); break; default: break; } }); function initializeReadAheadControls(){ var s = ''; s += ''; s += ''; s += ''; s += '
'; s += ''; s += ''; s += ''; s += ''; s += ''; s += ''; s += ''; s += ''; s += ''; s += '
'; $('#read_ahead_player').append(s); } function initializeReadAheadSlider(){ var s = ''; s += '
'; s += '
'; s += '
'; $('#read_ahead_controls').prepend(s); updateReadAheadSliderPosition(); } function initializeReadAheadSpeedOptions(){ var s = '
'; s += '
'; s += ' Word Speed
'; s += '
'; optionCount = 0; for (index in wordSpeedOptions) { optionCount++; } optionWidth = 100 / optionCount; for (index in wordSpeedOptions) { var option = wordSpeedOptions[index]; if (index == defaultWordSpeedOption) { s += ''; updateReadAheadWordSpeed(option); } else { s += ''; } } s += '
'; s += '
'; s += '
'; s += ' Phrase Speed
'; s += '
'; optionCount = 0; for (index in phraseSpeedOptions) { optionCount++; } optionWidth = 100 / optionCount; for (index in phraseSpeedOptions) { var option = phraseSpeedOptions[index]; if (index == defaultWordSpeedOption) { s += ''; updateReadAheadPhraseSpeed(option); } else { s += ''; } } s += '
'; s += '
'; s += '
'; $('#read_ahead_controls').append(s); } function updateReadAheadWordSpeed(microseconds,sender) { microseconds = microseconds != undefined && microseconds > 0 ? microseconds : 0; if (microseconds > 0) { timePerWord = microseconds; } if (sender!=undefined) { $('#slider_control_word_speed').find('a').removeClass('current_speed'); $(sender).addClass('current_speed'); } logReadAheadPlayerAction('updateReadAheadWordSpeed','Presentation',microseconds); } function updateReadAheadPhraseSpeed(microseconds,sender) { microseconds = microseconds != undefined && microseconds > 0 ? microseconds : 0; if (microseconds > 0 ) { timePerPhraseWord = microseconds; } if (sender!=undefined) { $('#slider_control_phrase_speed').find('a').removeClass('current_speed'); $(sender).addClass('current_speed'); } logReadAheadPlayerAction('updateReadAheadPhraseSpeed','Presentation',microseconds); } function updateReadAheadSliderPosition(){ var currentSliderBarWidth = 100 - (100 / totalPositions * (currentPosition + 1)); $('#readAheadSliderBar').css('width',currentSliderBarWidth+'%'); } function currentReadAheadControls(){ $('#read_ahead_player_pause_play').show(); if (currentPosition < totalPositions - 1) { $('#read_ahead_player_next_word').removeClass('disabled'); } else { $('#read_ahead_player_next_word').addClass('disabled'); } if (currentPosition > 0) { $('#read_ahead_player_previous_word').removeClass('disabled'); } else { $('#read_ahead_player_previous_word').addClass('disabled'); } } function restartReadAheadPresentation(){ currentPosition = 0; logReadAheadPlayerAction('restartReadAheadPresentation','Presentation',''); resumeReadAheadPlayback(); } function resumeReadAheadPlayback(){ $('.fa-repeat').removeClass('fa-repeat').addClass('fa-play'); $('#read_ahead_player_pause_play').each(function(){ $(this).find('.fa-play').removeClass('fa-play').addClass('fa-pause'); $(this).off('click'); $(this).attr('onclick','pauseReadAheadPresentation()'); }); logReadAheadPlayerAction('resumeReadAheadPlayback','Presentation',''); playReadAheadPresentation(); } function pauseReadAheadPresentation(){ $('#read_ahead_player_pause_play').each(function(){ $(this).find('.fa-pause').removeClass('fa-pause').addClass('fa-play'); $(this).off('click'); $(this).attr('onclick','resumeReadAheadPlayback()'); }); logReadAheadPlayerAction('pauseReadAheadPresentation','Presentation',''); read_ahead_pause(); } function endReadAheadPresentation(){ $('.fa-play').removeClass('fa-play').addClass('fa-repeat'); $('.fa-pause').removeClass('fa-pause').addClass('fa-repeat'); $('#read_ahead_player_pause_play').each(function(){ $(this).off('click'); $(this).attr('onclick','restartReadAheadPresentation()'); }); logReadAheadPlayerAction('endReadAheadPresentation','Presentation',''); logLTIEndPresentation(); } function playReadAheadPresentation(){ autoPlay=true; currentPosition--; logReadAheadPlayerAction('playReadAheadPresentation','Presentation',''); nextReadAheadPresentationItem(); } function startReadAheadStepper(timeDisplayWord){ clearInterval(readAheadPlayerTimer); readAheadPlayerTimer = setTimeout(function() { read_ahead_step(); },timeDisplayWord); } function stopReadAheadStepper(){ clearInterval(readAheadPlayerTimer); } function read_ahead_step(){ if (autoPlay) { nextReadAheadPresentationItem(); } } function read_ahead_pause(){ autoPlay=false; stopReadAheadStepper(); } function showReadAheadPresentationItem(index){ currentPosition = index; currentPresentationItem = presentation[currentPosition] != undefined ? presentation[currentPosition].trim() : ""; if (currentPresentationItem != "") { currentItemWordCount = presentation[currentPosition].replace("\n","").split(" ").length; if (currentPresentationItem.startsWith("")){ startReadAheadStepper(currentItemWordCount*timePerWord); $('#read_ahead_player_field').html('
'+currentPresentationItem+'
'); logReadAheadPlayerAction('showReadAheadPresentationItem','Word',currentPresentationItem); } else { startReadAheadStepper(currentItemWordCount*timePerPhraseWord); $('#read_ahead_player_field').html('
'+currentPresentationItem.replace("\n","
")+'
'); logReadAheadPlayerAction('showReadAheadPresentationItem','Phrase',''); } } else { if (currentPosition < totalPositions) { nextReadAheadPresentationItem(); } else { endReadAheadPresentation(); read_ahead_minimize(); } } currentReadAheadControls(); updateReadAheadSliderPosition(); saveReadAheadPosition(); } function priorReadAheadPresentationItem(){ stopReadAheadStepper(); logReadAheadPlayerAction('priorReadAheadPresentationItem','Controls',''); showReadAheadPresentationItem(currentPosition-1); } function nextReadAheadPresentationItem(){ stopReadAheadStepper(); logReadAheadPlayerAction('nextReadAheadPresentationItem','Controls',''); showReadAheadPresentationItem(currentPosition+1); } function read_ahead_playAgain(){ currentWordIndex = 0; logReadAheadPlayerAction('read_ahead_playAgain','Controls',''); playReadAheadPresentation(); } function read_ahead_minimize(){ setMinimized = true; logReadAheadPlayerAction('read_ahead_minimize','Controls',''); read_ahead_switch_min_max(); } function read_ahead_maximize(){ setMinimized = false; logReadAheadPlayerAction('read_ahead_maximize','Controls',''); read_ahead_switch_min_max(); } function read_ahead_switch_min_max(forceSwitch){ forceSwitch = forceSwitch != undefined ? forceSwitch : false; if (forceSwitch) { setMinimized = !setMinimized; } if (setMinimized) { $('#read_ahead_player_back').fadeOut(); $('#read_ahead_player').addClass('minimize'); $('.player-icons .fa-stack').removeClass('fa-lg').addClass('fa-sm'); $('.player-icons .fa-minus').removeClass('fa-minus').addClass('fa-expand'); logReadAheadPlayerAction('read_ahead_switch_min_max','Min',''); //$('#read_ahead_player_max_min').each(function(){ // $(this).off('click'); // $(this).attr('onclick','read_ahead_maximize()'); //}); } else { $('#read_ahead_player_back').fadeIn(); $('#read_ahead_player').removeClass('minimize'); $('.player-icons .fa-stack').removeClass('fa-sm').addClass('fa-lg'); $('.player-icons .fa-expand').removeClass('fa-expand').addClass('fa-minus'); logReadAheadPlayerAction('read_ahead_switch_min_max','Max',''); //$('#read_ahead_player_max_min').each(function(){ // $(this).off('click'); // $(this).attr('onclick','read_ahead_minimize()'); //}); } } function saveReadAheadPosition(){ $.ajax({ type:'POST', url:'/ajax/save_user_presentation_position.php', data: { 'id':276, 'position': currentPosition } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); } function logLTIEndPresentation(action) { if (!logToLTI) { return; } $.ajax({ type:'POST', url:'/lti/presentationEnded.php', data: { 'documentId':276, 'userId':0, } }) } function logReadAheadPlayerAction(action,area,details){ var d = new Date(); var t = d.getTime(); action = action != undefined ? action.trim() : 'UNKNOWN'; area = area != undefined ? area.trim() : ''; details = details != undefined ? details : ''; // If we are about to show a new word, increase the number of keywords // reinforced so we can log that for the Dashboard page. if (area == 'Word') { window.keywordCount++; } $.ajax({ type:'POST', url:'/logging/logPlayerAction.php', data: { 'documentId':276, 'userId':0, 'playerAction':action, 'playerArea':area, 'details':details, 'timestamp': t } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); }