Giter VIP home page Giter VIP logo

psychtest's Introduction

Pssychtest!

This is a little tiny demonstration app that collects some psychological data and stores it. It also does some summary aggregation. The responses will come through as a kind of heterogonous sludge of json. (Note: How true is this, actually? There's at least some defined structure to these responses. Can we actually just store these as structured data?)

The data we'll collect here will be the lag between a screen stimulus and keypress; we'll do it by showing a periodic flashing stimulus and having participants push a button when it blinks; the same trick is used in rhythm games. Participants can anticipate the flash, so it's not a reaction time test. However, there will be some lag between when the screen flashes and when a keypress is registered; we'll measure that.

For this test, we're gonna try stuffing things in a postgresql database.

For this example, we have three tables:

  • Assessments, which stores each individual "session" of our task.
  • Events, which contains data for every actual event (eg, screen flash, keypress) that happens during the task. Most of the data about an individual event is stored in an event_json json field.
  • Measurements, which contains numeric derived data about the task โ€” for example, reaction times. The main fields here are type which is simply a string to classify the data, and value which is a double-precision floating point number. This field may be used to store both individual measurements as well as aggregate measures such as mean and standard deviation.

Both events and measurements are recorded by a javascript-based client system, so it's possible for network problems and client bugs to cause repeated values in these tables. To help combat this, both tables contain a unique_id field that will be unique in combination with the assessment id. Yes, this id needs to be filled in by the client, and there could be a bug that makes events or measurements get added more than once, but it should be fairly easy to make that not happen.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.