High-Dimensional AnalysisPython

Java Python High-Dimensional Analysis

Weighting: 20%

Late-onset Alzheimer’s disease (LOAD) is not well understood in terms of its causes and suitable treatments. A deep understanding of relevant genetic factors could allow the development of effective drugs or other interventions to treat or prevent this condition. Zhang et al. (2013) published a study which looked at gene expression in the prefrontal cortex (PFC) of a large number of deceased donor subjects, with slightly over half having had LOAD, and   the remainder being cognitively healthy. These were provided by the Harvard Brain Tissue Resource Center (HBTRC) at McLean Hospital in Belmont, Massachusetts, USA (Boston). Each subject had been diagnosed with respect to LOAD while still alive, with further extensive pathology examination after death.

The datasets were made public, with the brain dataset now available from https://www.ncbi.nlm.nih.gov/geo/geo2r/?acc=GSE44772and also from Blackboard. We ask that you use the Blackboard version as this has had a small amount of imputation done, and    we will only consider part of the original dataset.

The patient condition labels are stored in brain_sample_descriptions_PFC.csv : normal (“N”) or with Alzheimer’s (“A”), along with their age in years at time of death and sex (“M” or “F”). The batch-normalised, logged and otherwise processed gene expression data is stored in braindat.csv. This processed dataset contains gene expression data derived from brain samples from 230 people, processed with microarrays to record values for 39280 probes, each of which is intended to represent a different gene or other transcript.

In addition to the scientific interest in the differences in the gene expression of subjects with  LOAD and those without, it is of interest to be able to determine whether a deceased subject  would have been diagnosed with LOAD. In time, it might be possible to use gene expression profile try to predict this in living subjects also.

Your tasks with the dataset are focused on classification of a sample as coming from a patient with late-onset Alzheimer’s disease or without, and identification of genes of potential interest.

You should select one classifier for the task of classification, which you have not used in previous assignments. Probability-based classifiers discussed in this course include linear, quadratic, mixture and kernel density discriminant analysis. Non-probability-based classifiers discussed include k nearest neighbours, neural networks, support vector machines, classification trees, random forests and boosted ensembles. All of these are implemented via various packages available in R and Python. If you wish to use a different method, please check with the lecturer. In addition, you will make use of lasso-penalised logistic regression. Note that you cannot choose another form. of logistic regression as your other classifier.

The number of observations is less than the number of variables, and so some form. of dimensionality reduction is needed for most forms of probability-based classifier and can be used if desired with the non-probability-based classifiers.

Here we consider analysis of this data to

(i) develop a model which is capable of accurately predicting the class (Alzheimer’s or normal) of new observations.

(ii) determine which genes are expressed differently between the two groups, individually, or as part of a combination.

Discriminant analysis/supervised classification can be applied to solve (i), and in combination with feature (predictor) selection, can be used to provide a limited solution to (ii) also.  Other  methods such as single-variable analysis can also be applied to attempt to answer (ii). You should use R or Python for the assignment.

Tasks:

1.   (3 marks) Perform. principal component analysis of the gene expression dataset and report and comment on the results. Detailed results should be submitted via a separate file, including what each principal component direction is composed of in terms of the (transformed) original explanatory variables, with some explanation in the main report about what is in the file. Give a plot or plots which shows the individual proportions of variance explained by each component up to the first 30. Also produce and include another plot about the principal components which you think would be of interest to scientists and clinicians such as Zhang et. al, along with some explanation and discussion. The R package FactoMineR is a good option for PCA.

2.   (3 marks) Perform. single variable analysis of the dataset with respect to the genetic probes, looking for a relation High-Dimensional AnalysisPython ship with the response variable (the class). In doing so, use a linear model and adjust for both age and sex. Use the Benjamini-Hochberg (1995) or Benjamini-Yekutieli (2001) approach to control the false discovery rate to be at most 0.1 with respect to the probe hypothesis tests. Explain the assumptions of this approach and whether or not these are likely to be met by this dataset, along with possible consequences of any violations. Give pseudocode for the method you use. Give a plot of the log of gene  index, ordered by p-value, versus the log ofunadjusted p-value, along with a line indicating the FDR control (similar to Figure 18.19 from Hastie et al., 2009). Determine which genes are then declared significant along with the resulting threshold in the original p-values and report the count of these. If you find more than 30 genes significant, list only the top 30 in your report, along with their p-values (adjusted for the two covariates mentioned, but not adjusted for the purposes of FDR).

Within the R stats package (built-in) is the function p.adjust, which offers this method. More advanced implementations include the fdrame package in Bioconductor.

3.   (2 marks) Define binary logistic regression with a lasso penalty mathematically, including the function to be optimised and briefly introduce a method than can be used to optimise it. Note that this might require a little research.

4.   (1 mark) Explain the potential benefits and drawbacks of using PCA to reduce the dimensionality of the data before attempting to fit each type of classifier to this dataset. Decide whether you will use PCA to reduce dimensionality for each classifier and justify this decision.

5. Apply each classification method (your choice and lasso logistic regression) to the dataset using R or Python.

For lasso logistic regression in R, I suggest you use the glmnet package, available in CRAN, and make use of the function cv.glmnet and the family=“binomial” option. If you are interested, there is a recording of Trevor Hastie giving a tutorial on the lasso and glmnet at http://www.youtube.com/watch?v=BU2gjoLPfDc . There are other options in Python including in scikit-learn.

a) (1 mark) For your chosen classifier, characterise each fitted class by reporting parameter estimates or a reasonable alternative.

b) (2 marks) For lasso logistic regression, you will need to use cross-validation to estimate of the optimal value of λ . Explain how you plan to search over possible values. Then produce and explain a graph of your cost function versus λ. You should also produce a list ordered by importance of the genes included as predictor variables in the optimal classifier, along with    their estimated coefficients.

For your chosen classifier, also determine an ordered list of the most important genes, stopping at 30, or earlier if justified. For each classifier, comment on any differences between the apparent and CV-derived overall error rates.

c) (2 marks) For both classifiers, give cross-validation (CV)-based estimates of the overall and class-specific error rates: obtained by training the classifier on a large fraction of the whole dataset and then applying it to the remaining data and checking error rates. You may use K-fold cv with K ≥ 5 or leave-one-out cross-validation to estimate performance. Additionally report the overall apparent error rates (when trained on all the data and applied back to it).

6. (3 marks) Compare the results from all approaches to analysis of the dataset (PCA, single- variable analysis and the two classifiers). Explain what each approach seems to offer, including consideration of these results as an example. In particular, if you had to suggest 10 genes for the biologists to study further for possible links to LOAD, which ones would you   prioritise, and what makes you think they are worth studying further?

7. (3 marks) Mathematically define the partial correlation between two variables, assuming they come from ap-dimensional joint distribution. Consider only the probes which were selected using the lasso logistic regression. If you found more than 30, choose the 30 probes with largest absolute value of coefficient. For this set of probes, estimate two Gaussian graphical models using the graphical lasso – one for subjects who were diagnosed with LOAD, and one for those who were not. Produce two graph to represent the partial correlation matrices for each group, ignoring any partial correlations with absolute value less than 0.1. The graphs should include relevant edges, node labels and indicate the strength of any dependence shown. What are the main differences between the two graphs? Note: you do not need to find out more about what each probe represents genetically         

【四旋翼无人机】具备螺旋桨倾斜机构的全驱动四旋翼无人机:建模与控制研究(Matlab代码、Simulink仿真实现)内容概要:本文围绕具备螺旋桨倾斜机构的全驱动四旋翼无人机展开研究,重点探讨其系统建模与控制策略,结合Matlab代码与Simulink仿真实现。文章详细分析了无人机的动力学模型,特别是引入螺旋桨倾斜机构后带来的全驱动特性,使其在姿态与位置控制上具备更强的机动性与自由度。研究涵盖了非线性系统建模、控制器设计(如PID、MPC、非线性控制等)、仿真验证及动态响应分析,旨在提升无人机在复杂环境下的稳定性和控制精度。同时,文中提供的Matlab/Simulink资源便于读者复现实验并进一步优化控制算法。; 适合人群:具备一定控制理论基础和Matlab/Simulink仿真经验的研究生、科研人员及无人机控制系统开发工程师,尤其适合从事飞行器建模与先进控制算法研究的专业人员。; 使用场景及目标:①用于全驱动四旋翼无人机的动力学建模与仿真平台搭建;②研究先进控制算法(如模型预测控制、非线性控制)在无人机系统中的应用;③支持科研论文复现、课程设计或毕业课题开发,推动无人机高机动控制技术的研究进展。; 阅读建议:建议读者结合文档提供的Matlab代码与Simulink模型,逐步实现建模与控制算法,重点关注坐标系定义、力矩分配逻辑及控制闭环的设计细节,同时可通过修改参数和添加扰动来验证系统的鲁棒性与适应性。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值