Skip to content

Commit

Permalink
Figures with info on PP
Browse files Browse the repository at this point in the history
  • Loading branch information
bazilinskyy committed Dec 29, 2024
1 parent a0503db commit a6c0ed5
Show file tree
Hide file tree
Showing 37 changed files with 299 additions and 5 deletions.
41 changes: 41 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,13 @@ Percentage of participants pressing the response key as a function of elapsed vi
### For only lab participants
todo

#### Correlation and scatter matrices
![correlation matrix](https://github.com/bazilinskyy/trust-crowdsourced/blob/main/figures/corr_matrix.jpg?raw=true)
Correlation matrix.

[![scatter matrix](figures/scatter_matrix.png)](https://htmlpreview.github.io/?https://github.com/bazilinskyy/trust-crowdsourced/blob/main/figures/scatter_matrix.html)
Scatter matrix.

## Area of Interest (AOI)
### For all participants
[![plot_all_0](figures/AOI_0.png?raw=true)](https://htmlpreview.github.io/?https://github.com/bazilinskyy/trust-crowdsourced/blob/main/figures/AOI_0.html)
Expand Down Expand Up @@ -258,12 +265,46 @@ Plot of AOI analysis for video 20 for lab participants.
[![driving frequency](figures/hist_driving_freq.png)](https://htmlpreview.github.io/?https://github.com/bazilinskyy/trust-crowdsourced/blob/main/figures/hist_driving_freq.html)
Driving frequency.

[![mileage](figures/hist_milage.png)](https://htmlpreview.github.io/?https://github.com/bazilinskyy/trust-crowdsourced/blob/main/figures/hist_milage.html)
Mileage.

[![input device](figures/hist_device.png)](https://htmlpreview.github.io/?https://github.com/bazilinskyy/trust-crowdsourced/blob/main/figures/hist_device.html)
Input device.

[![driving behaviour questionnaire](figures/hist_dbq.png)](https://htmlpreview.github.io/?https://github.com/bazilinskyy/trust-crowdsourced/blob/main/figures/hist_dbq.html)
Driving behaviour questionnaire (DBQ).

[![time of participation](figures/hist_time.png)](https://htmlpreview.github.io/?https://github.com/bazilinskyy/trust-crowdsourced/blob/main/figures/hist_time.html)
Time of participation.

[![year of license](figures/hist_year_license.png)](https://htmlpreview.github.io/?https://github.com/bazilinskyy/trust-crowdsourced/blob/main/figures/hist_year_license.html)
Year of obtaining driver's license.

[![education](figures/hist_education.png)](https://htmlpreview.github.io/?https://github.com/bazilinskyy/trust-crowdsourced/blob/main/figures/hist_education.html)
Highest obtained level of education.

[![communication_others](figures/hist_communication_others.png)](https://htmlpreview.github.io/?https://github.com/bazilinskyy/trust-crowdsourced/blob/main/figures/hist_communication_others.html)
Responses to statement "I would like to communicate with other road users while driving (for instance, using eye contact, gestures, verbal communication, etc.)".

[![technology](figures/hist_technology_worried-technology_enjoyment-technology_lives_easier-technology_lives_change-technology_not_interested.png)](https://htmlpreview.github.io/?https://github.com/bazilinskyy/trust-crowdsourced/blob/main/figures/hist_technology_worried-technology_enjoyment-technology_lives_easier-technology_lives_change-technology_not_interested.html)
Technology acceptance scale.

[![machines](figures/scatter_machines_roles-machines_profit.png)](https://htmlpreview.github.io/?https://github.com/bazilinskyy/trust-crowdsourced/blob/main/figures/scatter_machines_roles-machines_profit.html)
Responses to x:"I enjoy making use of the latest technological products and services when I have the opportunity" and y:"New technologies are all about making profits rather than making people's lives better".

[![attitude AD](figures/hist_attitude_ad.png)](https://htmlpreview.github.io/?https://github.com/bazilinskyy/trust-crowdsourced/blob/main/figures/hist_attitude_ad.html)
Responses to statement "Please indicate your general attitude towards automated cars".

[![driving with AD](figures/scatter_driving_in_ad-driving_alongside_ad.png)](https://htmlpreview.github.io/?https://github.com/bazilinskyy/trust-crowdsourced/blob/main/figures/scatter_driving_in_ad-driving_alongside_ad.html)
Responses to x:"When the autonomous vehicle is on the road, I would feel comfortable about driving on roads alongside autonomous cars" and y:"When the autonomous vehicle is on the road, I would feel comfortable about
using an autonomous car instead of driving a traditional car.".

[![capability of AD](figures/hist_capability_ad.png)](https://htmlpreview.github.io/?https://github.com/bazilinskyy/trust-crowdsourced/blob/main/figures/hist_capability_ad.html)
Responses to question "Who do you think is more capable of conducting driving-related tasks?"

[![experience of AD](figures/hist_experience_ad.png)](https://htmlpreview.github.io/?https://github.com/bazilinskyy/trust-crowdsourced/blob/main/figures/hist_experience_ad.html)
Responses to question "Which options best describes your experience with automated cars?"

[![map of counts of participants](figures/map_counts.png)](https://htmlpreview.github.io/?https://github.com/bazilinskyy/trust-crowdsourced/blob/main/figures/map_counts.html)
Map of counts of participants.

Expand Down
14 changes: 14 additions & 0 deletions figures/hist_attitude_ad.html

Large diffs are not rendered by default.

Binary file added figures/hist_attitude_ad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions figures/hist_capability_ad.html

Large diffs are not rendered by default.

Binary file added figures/hist_capability_ad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions figures/hist_communication_others.html

Large diffs are not rendered by default.

Binary file added figures/hist_communication_others.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions figures/hist_device.html

Large diffs are not rendered by default.

Binary file added figures/hist_device.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions figures/hist_driving_freq.html

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions figures/hist_education.html

Large diffs are not rendered by default.

Binary file added figures/hist_education.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions figures/hist_experience_ad.html

Large diffs are not rendered by default.

Binary file added figures/hist_experience_ad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions figures/hist_milage.html

Large diffs are not rendered by default.

Binary file added figures/hist_milage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions figures/hist_time.html

Large diffs are not rendered by default.

Binary file added figures/hist_time.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions figures/hist_year_license.html

Large diffs are not rendered by default.

Binary file added figures/hist_year_license.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions figures/scatter_driving_alongside_ad-end-slider-0-0.html

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions figures/scatter_driving_in_ad-driving_alongside_ad.html

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions figures/scatter_driving_in_ad-end-slider-1-0.html

Large diffs are not rendered by default.

Binary file added figures/scatter_driving_in_ad-end-slider-1-0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions figures/scatter_machines_roles-machines_profit.html

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions figures/scatter_participant_group-end-slider-0-0.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion trust/analysis/appen.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class Appen:
'what_is_the_highest_level_of_education_you_have_completed': 'education', # noqa: E501
'which_input_device_are_you_using_now': 'device',
'if_you_answered_other_in_the_previous_question_please_describe_your_input_device_below': 'device_other', # noqa: E501
'i_would_like_to_communicate_with_other_road_users_while_driving_for_instance_using_eye_contact_gestures_verbal_communication_etc': 'communcation_others', # noqa: E501
'i_would_like_to_communicate_with_other_road_users_while_driving_for_instance_using_eye_contact_gestures_verbal_communication_etc': 'communication_others', # noqa: E501
'i_am_worried_about_where_all_this_technology_is_leading': 'technology_worried', # noqa: E501
'i_enjoy_making_use_of_the_latest_technological_products_and_services_when_i_have_the_opportunity': 'technology_enjoyment', # noqa: E501
'science_and_technology_are_making_our_lives_healthier_easier_and_more_comfortable': 'technology_lives_easier', # noqa: E501
Expand Down
9 changes: 5 additions & 4 deletions trust/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
CALC_COORDS = False # extract points from heroku data
UPDATE_MAPPING = False # update mapping with keypress data
SHOW_OUTPUT = True # should figures be plotted
SHOW_OUTPUT_KP = False # should figures with keypress data be plotted
SHOW_OUTPUT_ST = False # should figures with stimulus data be plotted
SHOW_OUTPUT_KP = True # should figures with keypress data be plotted
SHOW_OUTPUT_ST = True # should figures with stimulus data be plotted
SHOW_OUTPUT_PP = True # should figures with info about participants be plotted
SHOW_OUTPUT_ET = False # should figures for eye tracking be plotted

Expand Down Expand Up @@ -347,6 +347,7 @@
df = appen_data
df['country'] = df['country'].fillna('NaN')
df['time'] = df['time'] / 60.0 # convert to min
# histogram of duration of participation
analysis.hist(df,
x=['time'],
color='country',
Expand Down Expand Up @@ -381,11 +382,11 @@
save_file=True)
# histogram of communication with other
analysis.hist(appen_data,
x=['communcation_others'],
x=['communication_others'],
marginal='violin',
pretty_text=True,
save_file=True)
# grouped barchart of technology questions
# grouped barchart of technology scale
analysis.hist(appen_data,
x=['technology_worried',
'technology_enjoyment',
Expand Down

0 comments on commit a6c0ed5

Please sign in to comment.