Skip to content

Commit

Permalink
Correlation between SPGQ total & inter-brain connections
Browse files Browse the repository at this point in the history
 - Significant correlations in :
  * coherence - theta
  * coherecen - beta
  * coherence - gamma
  * PLV - gamma
  • Loading branch information
ihgumilar committed Nov 7, 2022
1 parent 932eae1 commit 6ef7b5b
Showing 1 changed file with 27 additions and 5 deletions.
32 changes: 27 additions & 5 deletions Questionnaire/questionnaire_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -1282,14 +1282,36 @@ def average_actual_score(path: str):
# ### Correlation SPGQ and Averted

# %%
df_diff_averted = df_averted_post["SPGQ Total"][:-2] - df_averted_pre["SPGQ Total"][:-2]
print("Averted")
for i in range(len(diff_averted)):
print(F"{i}, {pearsonr(diff_averted[i], substracted_averted)}")

#TODO : Still has an issue because it does not have the same length
print(diff_averted[8])
print(list(df_diff_averted))
# %% [markdown]
# ### Sig. Correlation SPGQ and Direct *

# %%
""" NOTE :
Significant correlation between SPGQ and Direct eye conditions (EEG) in :
Coherence
- total_sig_coh_theta_connections
- total_sig_coh_beta_connections
- total_sig_coh_gamma_connections
PLV
- total_sig_plv_gamma_connections
"""

print("Direct")
for i in range(len(diff_direct)):
print(F"{i}, {pearsonr(diff_direct[i], substracted_direct)}")

pearsonr(df_diff_averted,list(diff_averted[8]))
# %% [markdown]
# ### Correlation SPGQ and Natural

# %%
print("Natural")
for i in range(len(diff_natural)):
print(F"{i}, {pearsonr(diff_natural[i], substracted_natural)}")

# %% [markdown]
# ## Statistical Summary
Expand Down

0 comments on commit 6ef7b5b

Please sign in to comment.