logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Jude NnajiLaw
(5/5)

925 Answers

Hire Me
expert
Jesse RossesManagement
(5/5)

738 Answers

Hire Me
expert
Leroy BicknellBusiness
(5/5)

997 Answers

Hire Me
expert
Glenn BolyardGeneral article writing
(5/5)

936 Answers

Hire Me
Python Programming

write a program that can help you prepare to analyze a set of data collected from a cognitive psychology study using either eye-tracking or brain activity (EEG) observations

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Assignment Instructions

There are two main parts to the Project. The first part is to write a program that can help you prepare to analyze a set of data collected from a cognitive psychology study using either eye-tracking or brain activity (EEG) observations. The second part of the project is to create an experiment using PsychoPy that could produce the same data file you analyzed for the first part

PART ONE

Write a program that can help you prepare to analyze a set of data collected from a cognitive psychology study using either eye-tracking or brain activity (EEG) observations

Write a program that can summarize the data collected for each trial, such that your new data file has only 1 row of data for each trial. Your summary data file should have the following comma-separated header:

Participant        Trial     Stimulus            RT       Error    MW

Plus, one pair from:

Total Eye Distance                                Blinked

Left_Mean_Alpha                                Right_Mean_Alpha

Left_Mean_Beta                                  Right_Mean_Beta

Left_Mean_Delta                                 Right_Mean_Delta

Left_Mean_Gamma                              Right_Mean_Gamma

Left_Mean_Theta                                 Right_Mean_Theta

Your program will need to:

  1. Ignore data for trial numbers < 1 entirely
  2. Ignore eye position and EEG data recorded after 1150 ms for any given trial
  3. Output the participant number, trial number, stimulus, response time, error status, mind wandering status (if known), and either some eye tracking data or EEG data.
  4. Get response times (RT) for each trial based on the time recorded for a ‘press’ observation
  5. Calculate and output whether the trial response was an error or correct, based on the presence of a ‘press’ observation, where an error is either pressing when the stimulus is a 3 or not pressing when it isn’t a 3. Errors should be coded as 1 and correct responses as 0.
  6. Output ‘mind_wandering’ or ‘not_mind_wandering’ observations as a number instead, with mind wandering status coded as 1 (mind_wandering) and 0 (not_mind_wandering), otherwise leave this cell blank
  7. Calculate: a. The mean alpha/beta/delta/gamma/theta EEG frequency power values for each trial, as you prefer, for the left and right frontal lobes OR b. Total eye distance travelled during the trial and whether a blink occurred, where blinks are defined as an (x, y) coordinate of (0, 0) for more than 40 ms in a row
  8. If you use a pandas data frame to output your summary data CSV file and it outputs with a data frame row number, your header should also include ‘ROW’ prior to the ‘Participant’ heading.

Finally, using either jamovi or a separate Python program, you will need to analyze this data file to determine whether either of the Eye/EEG measures you chose to output above show significant differences based on whether an error was made or not, only for trials where the stimulus is a 3. Accordingly, for Part 1 you will need to submit each of the following:

  1. A Python program that produces your summary data file
  1. The summary data file you produced
  1. Either a jamovi file with your analysis showing or another Python program conducting your analysis

PART TWO

The job will be to recreate a version of the Sustained Attention to Response Task (SART, for short) that includes 18 practice trials 288 experimental trials, each of which consists of a stimulus number displayed for 250 milliseconds and then a mask image for 900 milliseconds, such that each trial lasts a total of 1150 milliseconds. After displaying some simple instructions, the program will run the practice trials and then pause to allow the participant to ask questions, before continuing with the 288 experimental trials. The required order for the stimuli will be provided, as will some custom code that needs to be inserted into your program in order for it to simulate receiving either eye or EEG data. This program will need to create a CSV data file like the one you analyzed in Part 1, in addition to the data file PsychoPy will create by default. Although we are doing it backwards, this project will simulate the process of completing an entire study, from creating a task to collecting and analyzing the data

 

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme