Toolverse
All skills

entropy

by parcadei

Problem-solving strategies for entropy in information theory

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
parcadei
Category
Data Science
Views
1

About this skill

Problem-solving strategies for entropy in information theory

How to use

  1. Zidentyfikuj typ problemu entropii: czy pracujesz z entropią Shannona (rozkład dyskretny), entropią warunkową, czy entropią różniczkową (rozkład ciągły). Umiejętność zawiera decyzyjne drzewo dla każdego przypadku.

  2. Dla entropii dyskretnej użyj narzędzia SciPy. Przygotuj wektor prawdopodobieństw p (na przykład [0.25, 0.25, 0.25, 0.25] dla rozkładu jednostajnego) i uruchom polecenie: uv run python -c "from scipy.stats import entropy; p = [wartości]; H = entropy(p, base=2); print('Entropy:', H, 'bits')". Wynik H to entropia w bitach.

  3. Dla rozbieżności Kullbacka-Leiblera między dwoma rozkładami p i q uruchom: uv run python -c "from scipy.stats import entropy; kl = entropy(p, q); print('KL divergence:', kl)". To mierzy różnicę między rozkładami.

  4. Dla entropii ciągłej lub wyrażeń symbolicznych użyj SymPy. Uruchom: uv run python -m runtime.harness scripts/sympy_compute.py simplify "-p*log(p, 2) - (1-p)*log(1-p, 2)" aby obliczyć entropię binarną lub dostosuj wyrażenie do swojego problemu.

  5. Sprawdź właściwości entropii: entropia jest zawsze nieujemna, maksymalna dla rozkładu jednostajnego, a dla rozkładu Gaussa można użyć wzoru h(X) = 0.5 * log2(2pie*sigma^2). Umiejętność zawiera pełne wzory dla entropii łącznej i warunkowej.

Related skills

a-stock-analysis

by openclaw

A股实时行情与分时量能分析。获取沪深股票实时价格、涨跌、成交量,分析分时量能分布(早盘/尾盘放量)、主力动向(抢筹/出货信号)、涨停封单。支持持仓管理和盈亏分析。Use when: (1) 查询A股实时行情, (2) 分析主力资金动向, (3) 查看分时成交量分布, (4) 管理股票持仓, (5) 分析持仓盈亏。

Data Science
48153

ml-paper-writing

by davila7

Write publication-ready ML/AI papers for NeurIPS, ICML, ICLR, ACL, AAAI, COLM. Use when drafting papers from research repos, structuring arguments, verifying citations, or preparing camera-ready submissions. Includes LaTeX templates, reviewer guidelines, and citation

Data Science
2681

quant-analyst

by zenobi-us

Expert quantitative analyst specializing in financial modeling, algorithmic trading, and risk analytics. Masters statistical methods, derivatives pricing, and high-frequency trading with focus on mathematical rigor, performance optimization, and profitable strategy development.

Data Science
67217

deepwiki-rs

by sopaco

AI-powered Rust documentation generation engine for comprehensive codebase analysis, C4 architecture diagrams, and automated technical documentation. Use when Claude needs to analyze source code, understand software architecture, generate technical specs, or create professional

Data Science
18144

xlsx

by anthropics

Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2)

Data Science
40128

docx

by anthropics

Comprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting preservation, and text extraction. When Claude needs to work with professional documents (.docx files) for: (1) Creating new documents, (2) Modifying or editing content,

Data Science
39142