docstr: Kolmogorov-Smirnov test for data coming from a student-t (degree of freedom = 3).
docstr_tok: ["Kolmogorov-Smirnov","test","for","data","coming","from","a","student-t","(","degree","of","freedom","=","3",")","."]
code: def test_linear_studentt_parent_dist(self, graph):
      """
      Kolmogorov-Smirnov test for data coming from a student-t (degree of freedom = 3).
      """
      np.random.seed(10)
  
      data = generate_continuous_data(
          graph,
          distribution="student-t",
          noise_scale=1,
          n_samples=100000,
          seed=10,
      )
  
      x = data[:, 0]
      _, p_val = stats.kstest(x, "t", args=[3])
      assert p_val < 0.01
  
imports: import re
  import string
  from itertools import product
  import numpy
  import pandas
  import pytest
  from scipy import stats
  from sklearn.gaussian_process.kernels import RBF
  from causalnex.structure import StructureModel
  from causalnex.structure.data_generators import gen_stationary_dyn_net_and_df, generate_binary_data, generate_binary_dataframe, generate_categorical_dataframe, generate_continuous_data, generate_continuous_dataframe, generate_count_dataframe, generate_dataframe_dynamic, generate_structure, generate_structure_dynamic
  from tests.structure.data_generators.test_core import calculate_proba
label_desc: Use image node_id 7 for calling the TestGenerateContinuousData obj's underlying member method code with example usage: obj.test_linear_studentt_parent_dist(graph) without return types